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

subsampling rosbag images

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

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
2

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

lucasw gravatar image

This question is similar http://answers.ros.org/question/11429... , also look at http://wiki.ros.org/topic_tools/throttle . 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 http://wiki.ros.org/rosbag/Commandlin... 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

Question Tools

Stats

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

Seen: 987 times

Last updated: Mar 18 '16