Extracting images from ros bag file

Imagine you have had dumped some ros bag files in which some topics were publishing images and now you want to extract those images and save them.
You can play your ros bag and then implement a node that listens to that topic and you save the data. In ros, There is a neat solution for that. All you have to do is just install image-view package, i.e ros-indigo-image-view if you are using indigo.
Then you can use this simple launch file that I have created to extract images from you favorite topic.


The example of run:


This will store image in the ROS folder at

Leave a Reply

1 Comment threads
0 Thread replies
Most reacted comment
Hottest comment thread
1 Comment authors
Ali Recent comment authors

This site uses Akismet to reduce spam. Learn how your comment data is processed.

newest oldest most voted
Notify of

What about the compressed images?