rosbag time slicing?
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?
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org |
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?
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.
How do you export part of the bag with rxbag? That was my intuition as well, but I couldn't find the feature...
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2012-08-08 06:30:15 -0500
Seen: 1,859 times
Last updated: Aug 08 '12
unable to extract images from bag file
rosbag playing 100hz lidar data
Rosbag: Recording configurations or regenerate later?
record topics with time synchronizer
How to choose a fixed location for created bag files ?
rosbag: error: Cannot find rosbag/play executable
How to open IMU and GPS data from previous flights in robot_localization ROS2?