From b4047e937f0b9149f470579380a6b725c25136f2 Mon Sep 17 00:00:00 2001 From: Cx330 <1487537121@qq.com> Date: Tue, 1 Jul 2025 22:54:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=AE=8C=E6=88=90=E5=AE=9E?= =?UTF-8?q?=E9=AA=8C=E4=BA=8C=E3=80=81=E5=AE=8C=E5=96=84=E6=8F=8F=E8=BF=B0?= =?UTF-8?q?=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index a75ca37..8909e8f 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ dpkg -l | grep ros-noetic-roslaunch # 若roslaunch以安装则无需执行下条命令 sudo apt install ros-noetic-roslaunch # 将路径换为文件/文件夹路径,赋予文件/文件夹可执行权限 -chmod -x /路径 +chmod +x /路径 # 将文件/文件夹可编辑权限赋予某用户 sudo chown -R 用户名:用户名 /路径 ``` @@ -91,27 +91,27 @@ rosrun turtlesim turtle_teleop_key ```c catkin_make ``` -启动roscore(终端A) -```c -roscore -``` 添加环境变量(所有新终端窗口要执行下列命令) ```c source /home/zmn/Gitea/ROS_Learn/devel/setup.bash ``` -启动发送端(终端B) +启动roscore(终端A) ```c -rosrun position_demo publisher_node.py +roscore ``` -启动订阅端(终端C) +启动订阅端(终端B) ```c -rosrun position_demo subscriber_node.py +rosrun Topic_Newsletter Subscriber_TN.py +``` +启动发送端(终端C) +```c +rosrun Topic_Newsletter Publisher_TN.py ``` 启动RViz(终端D) ```c rviz ``` -注:将RViz左侧 Global Options 面板中 Fixed Frame 改为程序中的 world 。 +将RViz左侧 Global Options 面板中 Fixed Frame 设为 map (默认无需修改)。 在 Displays 面板中,点击 Add,添加 Marker 类型。 ## 实验三