Home | Tutorials | Wiki | Issues
Ask Your Question

Problem: Depth camera plugin does not show any coloured images.

asked 2013-03-07 08:37:20 -0500

Morloth gravatar image

Hi everybody,

I'm currently trying to attach a camera to a robot. While that works fine, it seems that I can only see the depth images it produces and not the RGB images it should (I think?) also produce. Below is the SDF code I use to define the sensor:

<sensor name="downward_cam_camera_sensor" type="depth">
  <pose>0 0 0 0 1.57079632679 0</pose>

  <plugin name="downward_cam_camera_controller" filename="libgazebo_ros_depth_camera.so">
    <interface:camera name="downward_cam_camera_iface"/>

When I check out the depth image with the command:

rosrun image_view image_view image:=/downward_cam/camera/depth_image

then I see a grey scale image which is fine. But when I check the other topic:

rosrun image_view image_view image:=/downward_cam/camera/image

Nothing appears. I checked if that topic exists, which is the case. But when I check if any messages are coming though:

rostopic echo /downward_cam/camera/image

no messages appear...

Does anybody have an idea how I can extract coloured images from the camera? Am I using the wrong plugin, are my parameters wrong?

Any help is appreciated, thanks!


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-03-07 20:46:47 -0500

nkoenig gravatar image
edit flag offensive delete link more


The problem seems to be the class imagetransport::ImageTransport. In simulatorgazebo/gazeboplugin/gazeboroscamerautils.cpp we advertise the image service with:

this->imagepub = this->itnode->advertise( this->imagetopicname,1, boost::bind( &GazeboRosCameraUtils::ImageConnect,this), boost::bind( &GazeboRosCameraUtils::ImageDisconnect,this), ros::VoidPtr(), &this->cameraqueue);

However, the ImageConnect and ImageDisconnect are never called. So the variable image_co

Morloth gravatar imageMorloth ( 2013-03-08 08:08:50 -0500 )edit
Login/Signup to Answer

Question Tools


Asked: 2013-03-07 08:37:20 -0500

Seen: 1,349 times

Last updated: Mar 07 '13