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

rosbag time slicing?

asked 2012-08-08 06:30:15 -0600

damonkohler gravatar image

Is there a tool for slicing a bag file by time (e.g. cut out 30m of data from the middle of a bag)? Or does everyone just use a filter over the timestamps?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-08-08 06:53:05 -0600

Lorenz gravatar image

I don't know about such a tool. With rxbag you can export parts of a bag file though. Another way would be to write a simple python script that uses the rosbag python API. Shouldn't be too much code and it should be pretty similar to the first example in the rosbag cookbook.

edit flag offensive delete link more

Comments

How do you export part of the bag with rxbag? That was my intuition as well, but I couldn't find the feature...

damonkohler gravatar image damonkohler  ( 2012-08-08 22:36:00 -0600 )edit

Mark a region on the timeline, above the marker for the current position, right-click and select 'copy region to bag'

Lorenz gravatar image Lorenz  ( 2012-08-08 23:10:31 -0600 )edit

Question Tools

Stats

Asked: 2012-08-08 06:30:15 -0600

Seen: 2,304 times

Last updated: Aug 08 '12