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

rxbag extraction of frames

asked 2012-07-05 23:28:56 -0500

Vincent_V gravatar image

updated 2012-07-06 06:51:10 -0500

tfoote gravatar image

Hello everyone !

I was wondering is there is any steps to follow in order to save all the frames that I put into a rosbag on my computer with rxbag.

I noticed that there is a button "save frames" when you open it with the following : "View (by type) -> sensor_msgs/Image->stereo/left/image_rect "

I'm able to "select" the frames or should I say the Timeline in the default menu of rxbag (because it's written at the bottom of the image_viewer that it "Save frames from selected region") but it seems to have no effect when I click on the "save frames" button.

any hints ?

Best regards

edit retag flag offensive close merge delete

3 Answers

Sort by » oldest newest most voted
0

answered 2012-07-11 20:35:13 -0500

Vincent_V gravatar image

updated 2012-07-11 20:39:39 -0500

Found it!

In order to use rxbag (much more efficient than the extract_image node => did not extract all the images of my bags files) you have to :

1°) select with your mouse the length of your timeline (a slightly cyan color show up as you select it)

2°) play your bag file (let it run)

3°) select the view "image"

4°) click on the button on the right of the text "frame%04d.png"

5°) And here normaly pop's up an another window that offers you to save all the frames

Regards

edit flag offensive delete link more
1

answered 2012-07-06 06:14:03 -0500

Thomas D gravatar image

You could try this answer that uses rospy and the rosbag API.

edit flag offensive delete link more
1

answered 2012-07-06 00:35:48 -0500

NsN gravatar image

Do you just want all the frames from a bag file?

In that case I would use rosbag instead of rxbag ad follow the description here

edit flag offensive delete link more

Comments

I knew that technique but it seems that it does not extract all the images when you saved them with a specific frame rate. So if you don't recompile the all extract_images.cpp with the specific framerate it does not work well. That's why I was looking for an another solution at this problem.

Vincent_V gravatar image Vincent_V  ( 2012-07-06 01:46:41 -0500 )edit

Question Tools

Stats

Asked: 2012-07-05 23:28:56 -0500

Seen: 518 times

Last updated: Jul 11 '12