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

Converting a bag with uncompressed Images to CompressedImages

asked 2015-05-18 13:30:18 -0500

EEngineer gravatar image

updated 2015-05-18 13:31:10 -0500

I have an offline program that will bag.write sensor_msgs/Image and would rather compress them into a smaller format (e.g. JPEG) for easier streaming. Compressing the bags with bz2 or lz4 is insufficient. How do I do this offline (without using compressed image transport and publishing/subscribing) in C++ (for initial creation) and/or Python (post processing script on existing bags)?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-03-29 16:50:32 -0500

tfoote gravatar image

You will need to compress the image in your code like the compressed image transport does.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-05-18 13:30:18 -0500

Seen: 405 times

Last updated: Mar 29 '17