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.3 Logical camera in the factory simulation

Course subject(s) Module 5. Robot Vision

In this lecture, we will learn how to add a logical camera to our factory simulation. Furthermore, a few basics of Gazebo world files will be explained.

Gazebo world file:

  • We can create models for the Gazebo physics simulator.
      • Simulation description format (.sdf) models.
      • Multiple .sdf models composed in a world file.
      • More features than URDF (friction, non-robotic elements).
      • Spawn URDF models with spawner ROS node.
  • Functionality can be configured:
      • With a logical camera plugin.

The models reside in:

  • hrwros_gazebo ROS package
      • hrwros_gazebo/models
  • Camera model files
        • hrwros_gazebo/models/logical_camera/model.sdf 
    • Conveyor object(s)
        • config/conveyor_objects.yaml
        • simple box object

We can include .sdf models to our world with the include tag. You will have to add two logical camera models:

 <include> 
   <uri>model://conveyor</uri>
     <pose>1.2 5 0 0 0 -1571</pose>
   </include
   < -- include logical camera model(s) here -- >
  </world>
</sdf>

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]