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

Revision history [back]

click to hide/show revision 1
initial version

Is there any way to convert the sensor_msgs/Image data into sensor_msgs/CompressedImage data?

yes: the republish node of the image_transport package can convert between uncompressed and compressed images (between any registered transports actually).

Note: this will incur overhead, as it subscribes, compressed and then publishes messages.