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 | ros @ Robotics Stack Exchange |
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...
Asked: 2012-08-08 06:30:15 -0600
Seen: 2,003 times
Last updated: Aug 08 '12
convert/use rosbag1 with ROS2 on Ubuntu 22.04
Why am I getting a nullptr from my bag file?
Storing the data inside an array as rosbag
How can i read messages from a ROSbag file ?
how to play bag files from c++ or python class
Is there a way to record a single message?