This tutorial covers connecting the camera Player interfaces to Gazebo.
Create a working directory
cd; mkdir gazebo_camera; cd gazebo_camera
Copy the config script below into a file called
camera.cfg. The following script is also accessible via this link.
driver ( name "gazebo" provides ["simulation:0"] plugin "libgazebo_player" # The name of a running Gazebo world, specified in a .world file world_name "default" ) driver ( name "gazebo" provides ["camera:0"] # This name must match a scoped name of a sensor in the "default" world # The format of a scoped name is "model_name::link_name::sensor_name" camera_name "pioneer2dx::camera::link::camera" )
You can now visualize the camera inside playerv.