Problem publishing Gazebo camera topic for ROS.

asked 2016-11-11 06:32:44 -0500

Robofred gravatar image

I'm trying to use the camera sensor in Gazebo to take images in my simulation and view them in ROS.

Things that Do work:

  • I can view the camera images in Gazebo by using the Topic Visualization and select my camera.
  • I installed gazebo_ros_pkgs from source.
  • If I run for example: 'roslaunch gazebo_ros empty_world.launch' and run 'rostopic list' I will see a list containing Gazebo topics.

The problem is that If I add my model with the camera, no new topic is published (nothing changes in the rostopic list). I suspect the problem has something to do with that the camera plug-in doesn't load properly. As far as I understand, this plug-in is responsible for the publishing to ROS. I noticed that my GAZEBO_PLUGIN_PATH isn't set. I have tried to set my path to the build directory in gazebo_ros_pkgs but that did nothing for me.

I'm completely stuck and would really appreciate any help,


edit retag flag offensive close merge delete


It sounds like, your model isn't right - Do you mind posting the Model you are using here too?

marauder gravatar imagemarauder ( 2016-11-12 03:41:51 -0500 )edit

You are absolutely correct marauder. I had made some weird mistake in the model. I think the camera plugin wasn't attached properly and therefore did not load. As soon as I set everything up as it should be, it works fine.

Robofred gravatar imageRobofred ( 2016-11-21 07:50:58 -0500 )edit