OLO RoboticsDocs
Tutorials

Navigation with Waypoints and AMCL

Use AMCL, place waypoints, and run autonomous navigation between waypoints.

This tutorial covers:

  • Starting Nav2 with AMCL
  • Using AMCL to navigate the world
  • Placing waypoints to direct the robot’s movements
  • Autonomous navigation between waypoints

Prerequisite: Complete the Launching the simulator with a robot tutorial. You need a simulation with a mobile robot and a pre-recorded map (e.g. from the Mapping and navigation tutorial).

Steps

  1. With a mobile robot in a simulation that has a saved map, open the Nav2 control panel and click Start Navigation Engine.

AMCL and map selection

  1. Choose AMCL (Localisation) and select the map to load from the dropdown (if you have more than one). Click Start Navigation Engine.

Waypoint picker and markers on map

  1. When the map has loaded in the simulator, turn on waypoint management in the Nav2 control panel.

Waypoint options

  1. With the waypoint picker on, place markers on the map in the visualizer. Click and drag to set the robot’s path from that marker.

Waypoints in Nav2 panel

  1. Keep placing markers where you want the robot to go.

  2. As you add markers, they are recorded with their coordinates in the Nav2 control panel. Use the trash icon to delete a marker.

  3. Select a waypoint in the panel to get options to navigate to or from that marker.

Start waypoint navigation

  1. When all markers are placed, start the robot moving between waypoints by clicking Start Navigation in the waypoint navigation section of the Nav2 control panel.

    You can enable Loop so the robot runs through all waypoints in order until you stop it.

On this page