0.前提
1. (Python & C++)Where does the bag file get saved? How can you change where it is saved?(功能包文件被保存在哪?如何更改保存的位置?)
1.Where does the bag file get saved?(功能包文件被保存在哪?)
回答:
mkdir ~/bagfiles
cd ~/bagfiles
可以去看我之前的文章:ROS学习笔记(5):rviz和rosbag数据记录、回放_rosbag rosmsg rviz命令-CSDN博客
2.How can you change where it is saved?(如何更改保存的位置?)
回答:其实直接新建一个文件夹就行,毕竟指令是根据你的根目录来的。
3.答案来源
本题答案来源官方文档:ROS/教程/记录和回放数据 - ROS Wiki
2. (Python & C++)Where will the bag file be saved if you were launching the recording of bagfile record through a launch file. How can you change where it is saved?(如果要通过launch文件执行数据记录呢?如何去更改呢?)
其实这两个在我看来是一个问题,我在官方文档里面没有找到答案,但我从另外的博主那里看到了很好的回答:ROS——一文读懂:rosbag-CSDN博客