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

Save all recorded bag files with `rosbag record`

asked 2023-07-06 16:10:47 -0500

Ben Brian gravatar image

updated 2023-07-06 16:25:06 -0500

I am recording data from a range scanner with ROS Melodic using the following command:

rosbag record -o nav310_ws/bagFiles/session --split --duration=1 --max-splits 1 /cloud

In the bagFiles folder, only the latest bag files are kept. So I was wondering how to copy all recorded bag files and save them to another folder. I tried the following command just after the first one, but it did do anything.

cp -a nav310_ws/bagFiles/. nav310_ws/allBags/

Thank you for any suggestion you could provide.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2023-07-09 10:17:17 -0500

Mike Scheutzow gravatar image

If you want to keep the older bag files, you should not be using the --max-splits 1 option. The command:

rosbag record --help

explains what the options do.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2023-07-06 16:10:47 -0500

Seen: 56 times

Last updated: Jul 09 '23