File tree Expand file tree Collapse file tree 3 files changed +19
-28
lines changed
docs_versioned_docs/version-ros2jazzy/ros/tutorials/navigation_demos Expand file tree Collapse file tree 3 files changed +19
-28
lines changed Original file line number Diff line number Diff line change @@ -29,12 +29,11 @@ to `false`.
29
29
30
30
:::
31
31
32
- ** 1.** [ Start the simulation and Nav2] ( nav2.mdx#launching-the-simulation-and-nav2 )
33
- by following steps 1-3 of the Nav2 startup
34
-
35
- ** 2.** Open a terminal and run
32
+ To start localization using [ AMCL] ( https://docs.nav2.org/configuration/packages/configuring-amcl.html )
33
+ [ follow the steps] ( nav2.mdx#launching-the-simulation-and-nav2 ) described in the Nav2
34
+ startup. When you get to step 4, run
36
35
``` bash
37
- ros2 launch clearpath_nav2_demos localization .launch.py use_sim_time:=true
36
+ ros2 launch clearpath_nav2_demos localiztion .launch.py use_sim_time:=true
38
37
```
39
38
40
39
The default map used by ` localization.launch.py ` is a
@@ -43,8 +42,3 @@ If you are using a custom map, pass it in with the `map` launch argument:
43
42
``` bash
44
43
ros2 launch clearpath_nav2_demos localization.launch.py use_sim_time:=true map:=/path/to/my/map.yaml
45
44
```
46
-
47
- ** 3.** [ Start Rviz] ( nav2.mdx#launching-the-simulation-and-nav2 ) and set the robot's initial pose
48
- estimate by following steps 5-6 of the Nav2 startup
49
-
50
- ** 4.** Give the robot a navigation goal using the [ Nav2 Goal] ( nav2.mdx#nav2-goal ) tool.
Original file line number Diff line number Diff line change @@ -30,23 +30,23 @@ ros2 launch clearpath_gz simulation.launch.py
30
30
31
31
If the simulation does not start automatically, press the large orange "play" button in the bottom left corner.
32
32
33
- ** 3.** Open a second terminal and launch nav2:
34
-
33
+ ** 3.** Open a second terminal and start Rviz. If you are using a physical robot or running the simulation
34
+ on an external server, this step must be should on your workstation, not on the robot or simulation server itself.
35
35
```
36
- ros2 launch clearpath_nav2_demos nav2 .launch.py use_sim_time:=true
36
+ ros2 launch clearpath_viz view_navigation .launch.py namespace:=a300_0000 use_sim_time:=true
37
37
```
38
38
39
39
** 4.** Open a third terminal and start either [ SLAM] ( slam.mdx ) or [ Localization] ( localization.mdx ) , depdending on
40
40
whether or not you want to create a new map or use a pre-existing map.
41
41
42
- ** 5.** Open a fourth terminal and start Rviz. If you are using a physical robot or running the simulation
43
- on an external server, this step must be should on your workstation, not on the robot or simulation server itself.
42
+ ** 5.** Set the initial pose of the robot using the [ ** 2D Pose Estimate** ] ( #2d-pose-estimate ) tool in RViz.
43
+
44
+ ** 6.** Open fourth second terminal and launch nav2:
45
+
44
46
```
45
- ros2 launch clearpath_viz view_navigation .launch.py namespace:=a300_0000
47
+ ros2 launch clearpath_nav2_demos nav2 .launch.py use_sim_time:=true
46
48
```
47
49
48
- ** 6.** Set the initial pose of the robot using the [ ** 2D Pose Estimate** ] ( #2d-pose-estimate ) tool in RViz.
49
-
50
50
** 7.** Give the robot a navigation goal using the [ ** Nav2 Goal** ] ( #nav2-goal ) tool in RViz.
51
51
52
52
## Nav2 Tools in Rviz
Original file line number Diff line number Diff line change @@ -32,18 +32,15 @@ to `false`.
32
32
33
33
:::
34
34
35
- ** 1.** [ Start the simulation and Nav2] ( nav2.mdx#launching-the-simulation-and-nav2 )
36
- by following steps 1-3 of the Nav2 startup
37
-
38
- ** 2.** Open a terminal and run
35
+ To start SLAM, [ follow the steps] ( nav2.mdx#launching-the-simulation-and-nav2 ) described in the Nav2
36
+ startup. When you get to step 4, run
39
37
``` bash
40
38
ros2 launch clearpath_nav2_demos slam.launch.py use_sim_time:=true
41
39
```
42
40
43
- ** 3.** [ Start Rviz] ( nav2.mdx#launching-the-simulation-and-nav2 ) and set the robot's initial pose
44
- estimate by following steps 5-6 of the Nav2 startup
41
+ ### Building the map
45
42
46
- ** 4. ** Drive the robot around the world. Ensure you have mapped the region you want the robot
43
+ Drive the robot around the world. Ensure you have mapped the region you want the robot
47
44
to navigate through autonomously.
48
45
49
46
<center >
@@ -56,10 +53,10 @@ to navigate through autonomously.
56
53
</figure >
57
54
</center >
58
55
59
- ** 5.** Save the map by opening a new terminal and running
56
+ ### Saving the map
57
+
58
+ To save the map, open a new terminal and run
60
59
``` bash
61
60
ros2 run nav2_map_server map_saver_cli -f " map_name"
62
61
--ros-args -p map_subscribe_transient_local:=true -r __ns:=/a300_0000
63
62
```
64
-
65
- ** 6.** Give the robot a navigation goal using the [ Nav2 Goal] ( nav2.mdx#nav2-goal ) tool.
You can’t perform that action at this time.
0 commit comments