rosbag record -d
录制所有发布出来的话题,此时默认将话题保存在一个以当时时间戳命名的文件夹中。
rosbag record /topic1 topic2
录制指定话题的数据
rosbag record -o filename.bag /topic name1
指定生成数据包的名字
rosbag info <your bagfile name>
播放指定的数据包
rosbag record -d
录制所有发布出来的话题,此时默认将话题保存在一个以当时时间戳命名的文件夹中。
rosbag record /topic1 topic2
录制指定话题的数据
rosbag record -o filename.bag /topic name1
指定生成数据包的名字
rosbag info <your bagfile name>
播放指定的数据包