ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Both the RGB images and the depth images produced by the plugin are being published to the same topic (/kinect_camera/depth/image_raw), so the flickering you described is image_view alternating between showing the RGB image and the depth image. To fix this, make the RGB images and depth images be published to different topics.

For example, replace the block in your code that specifies the topics for the RGB image and depth image with the following:

<imageTopicName>/kinect_camera/rgb/image_raw</imageTopicName>
<cameraInfoTopicName>/kinect_camera/rgb/camera_info</cameraInfoTopicName>
<depthImageTopicName>/kinect_camera/depth/image_raw</depthImageTopicName>
<depthImageInfoTopicName>/kinect_camera/depth/camera_info</depthImageInfoTopicName>

Now, to view the RGB image, run:

rosrun image_view image_view image:=/kinect_camera/rgb/image_raw

To view the depth image, run:

rosrun image_view image_view image:=/kinect_camera/depth/image_raw