Ask Your Question
0

Converting a bag with uncompressed Images to CompressedImages

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

EEngineer gravatar image

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

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
0

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 131 times

Last updated: Mar 29 '17