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

Turtlebot depth image not displaying with Image_view with gazebo

asked 2013-09-18 18:17:08 -0500

Alkaros gravatar image

updated 2016-10-24 08:35:17 -0500

ngrennan gravatar image

Hey, I'm using the turtlebot_simulator package to simulate in gazebo.

Ubuntu 13.04 - 32bit

Ros Hydro

Turtlebot-apps v2.2.0

Gazebo v1.9

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

Using the image_view on the depth image returns a blank gray window. Where as using the same command on the RGB stream works perfectly. Here's a screen shot of whats happening so save myself trying to explain it.


Any ideas why this would occur? The depth data is displayed correctly in rviz.

Rostopic Hz /camera/depth/image_raw
subscribed to [/camera/depth/image_raw]
average rate: 2.609
    min: 0.360s max: 0.420s std dev: 0.02625s window: 4
average rate: 2.765
    min: 0.330s max: 0.420s std dev: 0.03023s window: 7
average rate: 2.769
    min: 0.330s max: 0.420s std dev: 0.02514s window: 10


Rostopic info /camera/depth/image_raw
Type: sensor_msgs/Image

 * /gazebo (<a href="http://Thesis-4740111:57881/">http://Thesis-4740111:57881/</a>)

Subscribers: None

After running those commands, the image_view started working on the depth. I guess magic will explain it.

Something must have changed over the last few days.

edit retag flag offensive close merge delete


Can you show the output of rostopic hz and info?

tfoote gravatar image tfoote  ( 2013-09-18 21:33:31 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2013-09-19 14:24:06 -0500

Alkaros gravatar image

Just started working again for no obvious reason.

edit flag offensive delete link more


Thanksfor your info. But using code to deal with the image probelm is too complicated for me. I am learn to create web image viewer and windows image viewer using some manual tools which can be customized by users to help me with the image displaying program. Any good suggestion? Thanks in adcance.

arronlee gravatar image arronlee  ( 2013-10-20 16:57:02 -0500 )edit

Any hints on how you solved it? I cant see depth/image_raw nor depth_registered/image_raw using image_view. However, depth_registered/image_raw is shown in Rviz but I can't save images directly from there. Depth_image_raw is not publishing (checked with rostopic hz).

aguadopd gravatar image aguadopd  ( 2014-03-01 11:36:43 -0500 )edit
aguadopd gravatar image aguadopd  ( 2014-03-01 12:12:47 -0500 )edit

Question Tools

1 follower


Asked: 2013-09-18 18:17:08 -0500

Seen: 2,430 times

Last updated: Sep 19 '13