Ask Your Question

Revision history [back]

There are a few things we can look at here to see if we can get it working.

Firstly if you want to compress a depth image topic you'll have to use the compressed_depth_image_transport package. Depth images are either floating point or 16 bit integer images, neither of which can be compressed by the standard codecs.

Note : It would be helpful if you could post the full launch files you're using to record and playback the bag file, the rosbag commands above don't give us all the information.

Here are few things you can check.

  1. Have you tried this using the raw (uncompressed) depth image to see if this is causing your problem?
  2. This may be a stupid question but you are running the openni node while you're playing back the bag file yes?
  3. Have you used rqt_graph to verify that the topics are being correctly subscribed to by the openni node?
  4. Have you viewed the RBG and depth images in RVIZ when you're playing the bag file back again to check good images are being published?

These should help us get to the bottom of this problem.