Browse Source

Fix navigation_simple_commander.md fleet path

master
Mohamed Fazil 2 months ago
committed by GitHub
parent
commit
4bb34277b7
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      ros2/navigation_simple_commander.md

+ 2
- 2
ros2/navigation_simple_commander.md View File

@ -21,7 +21,7 @@ Let's set the patrol route up before you can execute this demo in your map. This
First, execute the following command while passing the correct map YAML. Then, press the 'Startup' button: First, execute the following command while passing the correct map YAML. Then, press the 'Startup' button:
```{.bash .shell-prompt} ```{.bash .shell-prompt}
ros2 launch stretch_nav2 navigation.launch.py map:=${HELLO_ROBOT_FLEET}/maps/<map_name>.yaml
ros2 launch stretch_nav2 navigation.launch.py map:=${HELLO_FLEET_PATH}/maps/<map_name>.yaml
``` ```
Since we expect the first point in the patrol route to be at the origin of the map, the first coordinates should be (0.0, 0.0). Next, to define the route, the easiest way to define the waypoints in the `security_route` array is by setting the robot at random locations in the map using the '2D Pose Estimate' button in RViz as shown below. For each location, note the x, and y coordinates in the position field of the base_footprint frame and add it to the `security_route` array in [simple_commander_demo.py](https://github.com/hello-robot/stretch_ros2/blob/humble/stretch_nav2/stretch_nav2/simple_commander_demo.py#L30). Since we expect the first point in the patrol route to be at the origin of the map, the first coordinates should be (0.0, 0.0). Next, to define the route, the easiest way to define the waypoints in the `security_route` array is by setting the robot at random locations in the map using the '2D Pose Estimate' button in RViz as shown below. For each location, note the x, and y coordinates in the position field of the base_footprint frame and add it to the `security_route` array in [simple_commander_demo.py](https://github.com/hello-robot/stretch_ros2/blob/humble/stretch_nav2/stretch_nav2/simple_commander_demo.py#L30).
@ -42,7 +42,7 @@ Go ahead and execute the following command to run the demo and visualize the res
Terminal 1: Terminal 1:
```{.bash .shell-prompt} ```{.bash .shell-prompt}
ros2 launch stretch_nav2 demo_security.launch.py map:=${HELLO_ROBOT_FLEET}/maps/<map_name>.yaml
ros2 launch stretch_nav2 demo_security.launch.py map:=${HELLO_FLEET_PATH}/maps/<map_name>.yaml
``` ```
<p align="center"> <p align="center">

Loading…
Cancel
Save