ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

subsampling rosbag images

asked 2016-03-18 09:41:41 -0600

Jingwei gravatar image

Hello everyone, I got a problem by coping with the rosbag. I want to evaluate the SLAM performance in wide baseline. I got a rosbag, which is 50fps(frame per second) . The specific task is subsample the rosbag, make the fps to 25 or 20. Is there has some ways to modify the rosbag?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-03-18 10:54:54 -0600

lucasw gravatar image

This question is similar , also look at . You'd have to play the bag file into the throttle node and then re-record it into a new bag, or always play the source bag with the throttle when running with your slam nodes.

It would be nice if rosbag filter could throttle an input into an output directly - maybe with the right filter expression? A filter like "m.header.stamp.nsec < 500000000" /my_image_topic maybe could do a very crude time filtering where if there are 50 frames in one second, only the frames from the first half of the second would go into the output bag, but the output wouldn't be very smooth.

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


Asked: 2016-03-18 09:39:17 -0600

Seen: 813 times

Last updated: Mar 18 '16