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

1
Leave a Reply

avatar
1 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
1 Comment authors
Ali Recent comment authors
  Subscribe  
newest oldest most voted
Notify of
Ali
Guest
Ali

What about the compressed images?