Robotics StackExchange | Archived questions

rxbag can't load kinect depth images

Hi I'm trying to record kinect depth images using rosbag. I type the command rosbag record /camera/depth_registered/image to register depth images. When I launch rxbag and try to visualize depth images I get the following error:

Can't convert image: local variable 'mode' referenced before assignment Failed to load: ('/camera/depth_registered/image', 1352975975.9240148, 0.1, (151,))

Any idea on how to fix it?

Sequence of command:

roslaunch openni_launch openni.launch

rosbag record /camera/depth_registered/image

then I stop the recording and type

rxbag output.bag

In the rxbag GUI interface I click on the Thumbnails button, the interface does not show the images and the terminal gives me the error:

Can't convert image: local variable 'mode' referenced before assignment Failed to load: ('/camera/depth_registered/image', 1352975975.9240148, 0.1, (151,))

I've also tried to visualize the depth image using rviz and it shows the incoming images with no problems, so the topic /camera/depth_registered/image is correctly publishing images.

Thanks

Asked by Antonio on 2012-11-14 23:45:20 UTC

Comments

Please be more specific. Can you please edit your post and provide the exact sequence of commands that you executed to allow us to reproduce your problem?

Asked by Lorenz on 2012-11-15 01:01:13 UTC

just edited

Asked by Antonio on 2012-11-15 04:37:55 UTC

I guess this could just be a bug in rxbag. Consider filing a ticket.

Asked by Lorenz on 2012-11-15 05:13:28 UTC

Answers