ros2 bag record <topic_name>
- Record data published to topic
ros2 bag record -o <filename> <topic1> <topic2> ...
- Record data published to multiple topics. -a
for recording all topics
ros2 bag info <bag_name>
- See details of bag
ros2 bag play <bag_name>
- Play bag