Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In the Rviz window use the 2D Goal Pose toolbar button and then click to the location you want the robot to move to.

...

The robot moves to the assigned point.

...

  1. Open the Panels->Add new panel menu and select Navigation 2. The Navigation 2 panel is displayed in Rviz window.

  2. In the Displays view press Add, in the By Topic tab select /waypoints (Marker Array) to add Marker Array to the Displays view.

    Image Added
  3. On the Rviz menu toolbar press the + sign and select nav2_riz-plugins. A new button, Nav2 Goal, appears on the toolbar.

    Image Added
  4. In the Navigation 2 panel press Startup Waypoint/Nav through Poses Mode.

  5. Press Nav2 Goal on the toolbar and click on the map in Rviz window to specify a way point. wp_1 appears on the map.

  6. Repeat step 5 to specify more way points.

    Image RemovedImage Added
  7. To make the robot follow way points starting from wp_1 press Start Waypoint Following in Navigation2.Press Cancel in Navigation 2 once the robot reaches the last way point.

  8. To remove the current way points in the Displays view clear the Marker Array checkbox.

  9. To set up a new root for the robot using waypoints feature, check the Marker Array checkbox and start from Step 4.

...