Skip to content

Commit

Permalink
Add build instructions to demo README
Browse files Browse the repository at this point in the history
  • Loading branch information
mkhansenbot committed Jan 22, 2024
1 parent bda4b0f commit 5da91b5
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions nav2_demo/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# This folder contains the necessary files for running Nav2 on the Mars Rover demo

## First build this container using the build script
```
build.sh
```

There will now be a docker image called "osrf_space_nav2_demo:latest"

# Run the Mars Rover demo with Nav2 and SLAM toolbox

## Terminal 1 - launch the mars_rover demo
Expand All @@ -6,19 +15,19 @@ Follow instructions on space-ros/docker/space-robots/README.md
## Terminal 2 - launch Nav2
Start the space_nav2 container and launch the navigation2 nodes
```
space-ros/docker/navigation2/run.sh
run.sh
ros2 launch nav2_bringup navigation_launch.py use_sim_time:=True
```
## Terminal 3 - launch localization with map
```
docker exec -it osrf_space_nav2 bash
docker exec -it osrf_space_nav2_demo bash
source install/setup.bash
ros2 launch nav2_bringup localization_launch.py use_sim_time:=True map:=mars_map.yaml
```
## Terminal 4 - launch Rviz
Exec into the same space_nav2 container and launch Rviz2
```
docker exec -it -e DISPLAY=:0 osrf_space_nav2 bash
docker exec -it -e DISPLAY=:0 osrf_space_nav2_demo bash
source /opt/ros/humble/setup.bash
source install/setup.bash
ros2 launch nav2_bringup rviz_launch.py
Expand Down

0 comments on commit 5da91b5

Please sign in to comment.