Rosbag2 composable record - splitting files

Hi

I have been using the rosbag2 to record topics as a composable node for a while now. Does anyone here know how I could make use of splitting the recording into several files during the recording process using the max_file_size parameter? Is this even possible in the composable node method?

This should probably be asked on Robotics StackExchange or as an issue on the ros2/rosbag2 repo, but:

The rosbag2_transport::Recorder node is able to load storage/recording options from ROS parameters. This is done when using it as a component. The ROS param equivalent to the --max-bag-size CLI is storage.max_bagfile_size. See:

  1. rosbag2/rosbag2_transport/src/rosbag2_transport/config_options_from_node_params.cpp at 85d07432cb6f4f34800d007e13c9596209268c95 · ros2/rosbag2 · GitHub
  2. rosbag2/rosbag2_transport/test/resources/recorder_node_params.yaml at 85d07432cb6f4f34800d007e13c9596209268c95 · ros2/rosbag2 · GitHub
1 Like

Thanks, that is very helpful. Yes, you are right. I completely forgot about the Robotics Stack Exchange. Apologies!

1 Like