Skip to content

Commit e518655

Browse files
committed
update 6.3.3-Navigation2.md
1 parent 2aeeda5 commit e518655

File tree

12 files changed

+42
-2
lines changed

12 files changed

+42
-2
lines changed

MYAGV_JN_2023_CN/6-SDKDevelopment/6.3-ApplicationBaseROS2/6.3.3-Navigation2.md

+21-1
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,32 @@ ros2 launch myagv_navigation2 navigation2_active.launch.py
4040

4141
在地图上选择一个要导航的目标位置。使用Nav2 Goal按钮发送目标位置和目标方向。
4242

43-
![26](../../resources/6-SDKDevelopment/6.3/27.png)
43+
![27](../../resources/6-SDKDevelopment/6.3/27.png)
4444

4545
Nav2就会规划路径并发送运动指令,完成导航。
4646

4747
![28](../../resources/6-SDKDevelopment/6.3/28.png)
4848

49+
> 路径点跟随
50+
51+
点击rviz2左下框的Waypoint/Nav Through Poses Mode,切换成路径点跟随模式
52+
53+
![29](../../resources/6-SDKDevelopment/6.3/29.png)
54+
55+
点击Nav2 Goal 发布两个导航点
56+
57+
![30](../../resources/6-SDKDevelopment/6.3/30.png)
58+
59+
![31](../../resources/6-SDKDevelopment/6.3/31.png)
60+
61+
点击左下角的Start Waypoint Following,然后就会依次按顺序进行导航。
62+
63+
![32](../../resources/6-SDKDevelopment/6.3/32.png)
64+
65+
导航到第一个点位后,继续导航到第二点位
66+
67+
![33](../../resources/6-SDKDevelopment/6.3/33.png)
68+
4969
## 更改起始导航地图
5070

5171
在此之前,我们已经成功创建了空间地图,并获得了一组地图文件,即位于 ~/myagv_ros2/src/myagv_navigation2/map 目录下的 **map.pgm 和 map.yaml**,我们就是基于这两个地图文件的基础上进行导航的。下面将介绍如果基于其他地图导航。
Loading
Loading
Loading
Loading
Loading

MYAGV_JN_2023_EN/6-SDKDevelopment/6.3-ApplicationBaseROS2/6.3.3-Navigation2.md

+21-1
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,32 @@ The 3D model is then moved to that location, and the lidar and map obstacles are
4040

4141
Select a target location on the map to navigate to. Use the Nav2 Goal button to send the target location and target direction.
4242

43-
![26](../../resources/6-SDKDevelopment/6.3/27.png)
43+
![27](../../resources/6-SDKDevelopment/6.3/27.png)
4444

4545
Nav2 will plan the path and send motion instructions to complete the navigation.
4646

4747
![28](../../resources/6-SDKDevelopment/6.3/28.png)
4848

49+
> Waypoint Following
50+
51+
Click Waypoint/Nav Through Poses Mode in the lower left box of rviz2 to switch to path point following mode.
52+
53+
![29](../../resources/6-SDKDevelopment/6.3/29.png)
54+
55+
Click Nav2 Goal to publish two navigation points.
56+
57+
![30](../../resources/6-SDKDevelopment/6.3/30.png)
58+
59+
![31](../../resources/6-SDKDevelopment/6.3/31.png)
60+
61+
Click Start Waypoint Following in the lower left corner, and then navigation will proceed in sequence.
62+
63+
![32](../../resources/6-SDKDevelopment/6.3/32.png)
64+
65+
After navigating to the first point, continue navigating to the second point.
66+
67+
![33](../../resources/6-SDKDevelopment/6.3/33.png)
68+
4969
## Change the starting navigation map
5070

5171
Before this, we have successfully created a spatial map and obtained a set of map files, namely **map.pgm** and map.yaml** in the ~/myagv_ros2/src/myagv_navigation2/map directory. We navigate based on these two map files. The following will introduce how to navigate based on other maps.
Loading
Loading
Loading
Loading
Loading

0 commit comments

Comments
 (0)