From 5da91b5661758ba609912a4eea21b76a1a455b1c Mon Sep 17 00:00:00 2001 From: Matthew Hansen <12618239+mkhansenbot@users.noreply.github.com> Date: Sun, 21 Jan 2024 18:03:39 +0000 Subject: [PATCH] Add build instructions to demo README --- nav2_demo/README.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/nav2_demo/README.md b/nav2_demo/README.md index 7ff8bcb..e1cd0c3 100644 --- a/nav2_demo/README.md +++ b/nav2_demo/README.md @@ -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 @@ -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