Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Nav2 Tuning, Measured: Change Settings on Evidence
New

Nav2 Tuning, Measured: Change Settings on Evidence

Seeded, repeated Nav2 runs in headless Gazebo, scored from ground truth, with a test that catches regressions.
Last updated 11/2026
English
English

What you'll learn

  • Why one Nav2 run proves nothing, and how many trials a claim needs.
  • Read a result honestly: success rates with intervals, medians with ranges, and tests for a difference.
  • Measure the effect of costmap settings on clearance, time and contact.
  • Compare Nav2's controllers and planners on the same route, and find what each is bad at.
  • Spot a fix that is not a fix, a null result, and a setting that only works with a second one.
  • Find the goal, progress and smoother settings that quietly cause recoveries.
  • Set regression thresholds from measured spread, and run them as a pytest that drives the robot.
  • Tune a config to a written spec and ship the evidence.

Course content

9 sections • 75 lectures • 6h 29m total length
  • 1.1 How to Follow This Course5:05
  • 1.2 The Bench: One Trial, Scored Against Ground Truth6:08
  • 1.3 One Run Lies6:31
  • 1.4 Reading a Result: Intervals, Ranges and Trials6:06
  • 1.5 A Check That Would Have Caught It4:04
  • 1.6 A Tour of the Params File Behind Every Number6:13
  • 1.7 Every Metric, Defined: One Real Leg Recomputed by Hand5:13
  • 1.8 sweep.py: Overrides, the Load Guard and the Missing Trial4:17
  • 1.9 driver.py: What "the Leg Timed Out" Really Means4:33
  • 1.10 How a Lab Decides Pass or Fail3:59
  • 1.11 The Test World: Map, Route and Recorded Paths4:07
  • 1.12 Starting and Stopping a Trial: Isolation, Truth and Teardown3:59
  • 1.13 Nav2 Bring-Up, in Order: Where the First Six Seconds Go4:23
  • 1.14 report.py, Line by Line: How One Table Row Is Made4:42
  • 1.15 setup.sh and verify.sh, Line by Line5:13
  • 1.16 Is the First Trial Special? Fifty-Two Sweeps, Ten Positions4:41
  • 1.17 Does a Busy Laptop Change the Answer?4:50

Requirements

  • A working Nav2 setup knowledge: you know what a costmap, a planner and a controller are. This course does not re-teach them.
  • Python, and basic ROS 2: nodes, topics, launch files.
  • Ubuntu 24.04 with ROS 2 Jazzy. The setup script installs Nav2, TurtleBot3 and Gazebo. A laptop is enough: no GPU, Gazebo runs headless.

Description

This course contains the use of artificial intelligence. The narration is a synthetic voice; every number on screen comes from a run you can repeat.

75 lectures, about 6.0 hours, on ROS 2 Jazzy with a TurtleBot3 and Nav2 in headless Gazebo, on a laptop CPU. You have a robot that navigates. This course shows how to make it navigate better and how to prove it: every setting changed is compared against the stock one on the same route, over repeated seeded trials, scored from Gazebo's ground truth instead of odometry, with the spread shown. Some changes help, some do nothing, some make things worse, and each lecture says which, with numbers. Every lecture has a hands-on part recorded live in a real terminal.

Sections cover costmaps (inflation, footprint, resolution, clearing), controllers (DWB, Regulated Pure Pursuit, MPPI, Graceful, rotation shim), planners (NavFn, Theta*, Smac 2D, Hybrid and Lattice), goal and progress checkers and the velocity smoother, failure cases (a doorway, recovery loops, AMCL drift), regression thresholds from measured spread, a pytest that drives the robot, and a capstone where you tune to a written spec.

Some of what the runs measured:

- The same MPPI config, 20 identical trials: the first leg took anywhere from 18.51 to 60.99 seconds. One run proves nothing. Lecture 1.3.
- One DWB parameter, the trajectory simulation time, changed from 0.9 to 1.7 seconds: legs succeeded 80 of 80 before and 5 of 40 after. Lecture 3.2.
- Tightening only the goal checker to 0.10 metres: 2 of 40 legs succeeded; setting the same tolerance in the controller too: 40 of 40. Lecture 6.1.
- Progress checker allowance of 3, 1.5 and 1.0 seconds: 0.2, 7.1 and 49 false stalls per trial; the middle setting still finished 40/40 legs. Lecture 6.2.
- Costmap clearing switched off with a box that appears and disappears: median first-leg time 25.0 s against 14.7 s with clearing (Mann-Whitney p 0.026). Lecture 2.5.

What this course does not cover: how Nav2 is built (the architecture, layers and plugins are assumed), real hardware, other robots or maps, and tuning for a different simulator. Results are for the TurtleBot3 waffle on the routes shown; the course teaches the method and says where numbers will not transfer. No GPU is needed.

Who this course is for:

  • ROS 2 developers whose Nav2 robot works but is slow, close to walls, or stops for no clear reason.
  • Engineers who change Nav2 parameters by feel and want evidence instead.
  • Not for complete ROS 2 beginners, and not a course about how Nav2 is designed.