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

0 0 votes
Article Rating
Subscribe
Notify of
guest

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

1 Comment
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Ali
Ali
5 years ago

What about the compressed images?

1
0
Would love your thoughts, please comment.x
()
x