8.16 Bag Recording Interface
You can directly use the launch file to start ros2 topic recording, which will be stored in the default path (/home/ubuntu/bags). Recording is split into 100M bags, and the maximum storage capacity of the recording directory is 2G. When the limit is exceeded, the earliest folders and bag files will be automatically deleted, applicable to all Tienkung Walker series.
# Run specified topic recording, the recording list is stored in
/home/ubuntu/ros2ws/install/utils/lib/utils/topics.config, the default list stores the key topics controlled by the ontology
ros2 launch utils record_config_topic.py
# Record all topic packages
ros2 launch utils record_all_topic.py