From 3fad563fa3152e7ada1bedfd753918330702f307 Mon Sep 17 00:00:00 2001 From: "Alan G. Sanchez" Date: Tue, 14 Jun 2022 11:56:23 -0700 Subject: [PATCH] Fixed typos and made minor format edits. --- navigation_stack.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/navigation_stack.md b/navigation_stack.md index c27376f..2a07e9a 100644 --- a/navigation_stack.md +++ b/navigation_stack.md @@ -4,7 +4,7 @@ stretch_navigation provides the standard ROS navigation stack as two launch file Then run the following commands to map the space that the robot will navigate in. -```bash +``` roslaunch stretch_navigation mapping.launch ``` Rviz will show the robot and the map that is being constructed. With the terminal open, use the instructions printed by the teleop package to teleoperate the robot around the room. Avoid sharp turns and revisit previously visited spots to form loop closures. @@ -15,7 +15,7 @@ Rviz will show the robot and the map that is being constructed. With the termina In Rviz, once you see a map that has reconstructed the space well enough, you can run the following commands to save the map to `stretch_user/`. -```bash +``` mkdir -p ~/stretch_user/maps rosrun map_server map_saver -f ${HELLO_FLEET_PATH}/maps/ ``` @@ -24,13 +24,14 @@ The `` does not include an extension. Map_saver will save two files as Next, with `.yaml`, we can navigate the robot around the mapped space. Run: -```bash +``` roslaunch stretch_navigation navigation.launch map_yaml:=${HELLO_FLEET_PATH}/maps/.yaml ``` -Rviz will show the robot in the previously mapped space, however, it's likely that the robot's location in the map does not match the robot's location in the real space. In the top bar of Rviz, use 2D Pose Estimate to lay an arrow down roughly where the robot is located in the real space. AMCL, the localization package, will better localize our pose once we give the robot a 2D Nav Goal. In the top bar of Rviz, use 2D Nav Goal to lay down an arrow where you'd like the robot to go. In the terminal, you'll see move_base go through the planning phases and then navigate the robot to the goal. If planning fails, the robot will begin a recovery behavior: spinning around 360 degrees in place. +Rviz will show the robot in the previously mapped space; however, the robot's location on the map does not match the robot's location in the real space. In the top bar of Rviz, use 2D Pose Estimate to lay an arrow down roughly where the robot is located in the real space. AMCL, the localization package, will better localize our pose once we give the robot a 2D Nav Goal. In the top bar of Rviz, use 2D Nav Goal to lay down an arrow where you'd like the robot to go. In the terminal, you'll see move_base go through the planning phases and then navigate the robot to the goal. If planning fails, the robot will begin a recovery behavior: spinning around 360 degrees in place. + +It is also possible to send 2D Pose Estimates and Nav Goals programmatically. In your launch file, you may include `navigation.launch` to bring up the navigation stack. Then, you can send *move_base_msgs::MoveBaseGoal* messages in order to navigate the robot programmatically. -It is also possible to send 2D Pose Estimates and Nav Goals programatically. In your own launch file, you may include `navigation.launch` to bring up the navigation stack. Then, you can send `move_base_msgs::MoveBaseGoal` messages in order to navigate the robot programatically.