Important announcement

Dear visitor,

Please note that this OpenCourseWare platform will be replaced at the end of 2026 by a new platform (under the same url ocw.tudelft.nl).

Courses and their contents that are currently available the platform will partly be migrated. URL’s for this content will change and content might be unavailable for some time. In addition, some courses will not be available anymore.

If you are linking to specific courses on this platform (for instance for your students), please take timely measures to avoid problems with access. Possible actions are:

  • Download the materials to your local platform (laptop, server)
  • For educators only (including TU Delft lecturers): Contact us at ocw@tudelft.nl and inform us what course you are using in what context (institute, program, period of use, number of students). We will research (in collaboration with the authors of the course) and decide if we will migrate the course, and if yes, can supply you with a new url.

Thank you.

5.1.5 Logical camera accessing data

Course subject(s) Module 5. Robot Vision

In the previous lecture, we have learned how to configure our logical camera plugin.  Now, we will learn how to use the data the logical camera produces.

The logical camera outputs models and poses of objects. The poses contain position and orientation information which are defined in the reference frame of the camera. This information is published as a ROS Topic:

$ rosmsg show hrwros_gazebo/LogicalCameraImage.msg -r
$ rosmsg show hrwros_gazebo/Model

The model message type has a string placeholder for the model name and a pose of the model itself.

ROS Topic contents:

Print poses of the objects seen by the logical camera:
$ rostopic echo /hrwros/logical_camera

Note: This command will not work for you yet because you will have to install and configure the logical cameras first by doing Assignment1. Then, you will be able to echo the topics you have configured. By the way, you can already complete the entire Assignment1 already without watching the rest of the videos!

The command publishes the models detected by the logical camera with the corresponding pose information.

In the model sdf files, we define model names that will be used by the logical camera to publish the name information. The logical camera plugin can be configured to only publish objects that are known. But we will not do this.

Creative Commons License
Hello (Real) World with ROS - Robot Operating System by TU Delft OpenCourseWare is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Based on a work at https://online-learning.tudelft.nl/courses/hello-real-world-with-ros-robot-operating-systems//.
Back to top
[sg_popup id=6]