This is a simple ROS package that allows starting and stopping rosbag recordings via service calls, which is useful for performing repeated data collection.
The config for the recording is in config/config.yaml. Configure the output directory for the rosbag files and topics to be recorded (regex syntax is ok). Rosbag files are saved with the current date and time as a filename.
roslaunch data_recording data_recording.launch
The package creates three services, which can be called with a std_srvs.srv.TriggerRequest
message:
- /data_recording/start_recording
- /data_recording/stop_recording
- /data_recording/toggle_recording