How to visualize compressed images with rqt_bag

asked 2021-01-05 08:06:43 -0600

Kansai gravatar image

I am running a ROS program and also running rqt_bag to visualize the data being published.

One of the data uses a custom made message type that consists of a int32 (an id) and a sensor_msgs/CompressedImage.

However when I try to visualize it with rqt_bag I cannot see the image as Image but the id (an int) and the image as header, format and data.

When I publish as Compressed Image only, rqt_bag actually visualizes the image, but for the custom type it does not recognize one of its components as an Image.

Is there any way to be able to visualize the image inside the custom message?

edit retag flag offensive close merge delete