From 0a2a2bc1d99f5594e2c8448d15c2f087c796aff0 Mon Sep 17 00:00:00 2001 From: Natsu-Akatsuki <1024756993@qq.com> Date: Tue, 21 May 2024 11:40:16 +0800 Subject: [PATCH] =?UTF-8?q?docs=EF=BC=9A=E6=9B=B4=E6=96=B0=20Record=20?= =?UTF-8?q?=E7=AC=94=E8=AE=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/Beginner/Record.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/Beginner/Record.md b/docs/Beginner/Record.md index e84fc44..2a13bdb 100755 --- a/docs/Beginner/Record.md +++ b/docs/Beginner/Record.md @@ -10,14 +10,14 @@ ```bash # >>> 回放 >>> (ROS) $ rosbag play <包名> -(ROS 2) $ ros2 bag play <包目录> +(ROS2) $ ros2 bag play <包目录> # >>> 只发布特定主题的消息 >> (ROS) $ rosbag play school.bag --topics /rslidar_points # >>> 主题重映射 >>> (ROS) $ rosbag play school.bag /rslidar_points:=/velodyne_points -(ROS 2) $ ros2 bag play school --remap /rslidar_points:=/velodyne_points +(ROS2) $ ros2 bag play school --remap /rslidar_points:=/velodyne_points # 只发布特定主题的消息 + 主题重映射 (ROS) $ rosbag play school.bag --topics /rslidar_points /rslidar_points:=/velodyne_points @@ -25,12 +25,12 @@ # >>> 指定位置播放 >>> (ROS) $ rosbag play <包名> -s 50 -(ROS 2) $ ros2 bag play <包名> --start-offset 100 +(ROS2) $ ros2 bag play <包名> --start-offset 100 # >>> 录制 >>> (ROS) $ rosbag record <主题名> # ROS2 导出的是一个文件夹 -(ROS 2) $ ros2 bag record -a +(ROS2) $ ros2 bag record -a # >>> 裁剪 >>> # 这种时刻指的是 ROS 时间戳,类似 1576119471.511449 @@ -41,6 +41,7 @@ # >>> 只播放特定一段时间的数据 >>> (ROS) $ rosbag play -u <秒> +(ROS2 iron) $ rosbag play --playback-until-sec <秒> # >>> 等待所有主题都有订阅器订阅器时才发布数据 >>> (ROS) $ rosbag play <包名> --wait-for-subscribers