decompression of registered depth gives weird duplicated depth image [closed]
I am recording from a kinect using:
roslaunch turtlebot_bringup 3dsensor.launch;
rosbag record -O rosbagtest /camera/rgb/image_color/compressed /camera/depth_registered/image_raw/compressed
then afterwards to replay I do:
rosbag play -l rosbagtest.bag;
rosrun image_transport republish compressed in:=/camera/depth_registered/image_raw/ raw out:=/camera/depth_registered/image_raw;
rosrun image_transport republish compressed in:=/camera/rgb/image_color raw out:=/camera/rgb/image_raw;
This gives me a weird depth image that somehow seems to be duplicated and the depths are wrong as well (too far away):
When I run the same program for displaying the depth and rgb stream directly without record and replay everything looks fine.
I am using groovy on a 12.04 linux. Does anyone have a clue whats going on here? Is the compression/decompression of depth images not yet stable in groovy?
Yes, I have the same problem! I think we forgot to change the compression from jpg to png, as jpg can't handle 16bit images. Also there is not only the duplicate problem, the depth image also looks like a binary image.. See my problem here: http://answers.ros.org/question/64666/openni-depth-image-problem/
Thanks for the reply - reading this I did: "rosparam set /camera/depth_registered/image_raw/compressed/format png" before recording the rosbag and then once I am replaying it. But the decompressed depth image still looks duplicated and binary.
Hmm, thought that was the problem. Would be interesting to know how this error can occur,