1️⃣ Record all topics

ros2 bag record -a

2️⃣ Record specific topics

ros2 bag record /turtle1/cmd_vel /turtle1/pose


3️⃣ Playback the bag

ros2 bag play <bag_folder>


4️⃣ Inspect a bag

ros2 bag info <bag_folder>


5️⃣ Options