参考:https://github.com/ros2/rosbag2
ros2 topic list -t #查看当前topic
ros2 bag record <topic name1> <topic name...n>
ros2 bag record -o <my folder name> <topic name1>
-o 指定录制文件夹名字,已经对于bag的文件名
bag 文件后缀*.db3 是 sqlite3的数据文件
*yaml记录了 文件类型(记录了哪些topic)
记录全部topic- a
$ ros2 bag record -a
The specified topics don't necessarily have to be present at start time. The discovery function will automatically recognize if one of the specified topics appeared. In the same fashion, this auto discovery can be disabled wi