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

Revision history [back]

This is happening because extract_images tries to decode the images as bgr8 so they're in a suitable format to save to disk, but because depth images are 32FC1, they can't be decoded as bgr8. Arguably, this is the correct behavior, especially considering that images are saved using lossy compression which isn't designed for depth images.

Is there a reason you want individual images saved out of your depth data rather than using the bag file itself? There are a few options depending on what you want to do.