03-nav2-architecture.mdEstimated time: 35 minutes
Prerequisite: 03-nav2-architecture.md
Self-assessment guide: If you can explain why a planner chose a path using
g(n), h(n), and the selected motion model, you are no longer memorizing Nav2 terms —
you are reasoning like the planner.
This exercise set builds intuition for two separate but easy-to-mix ideas:
In practice, field debugging gets easier once you stop asking only “Did the planner find a path?” and start asking:
Use this tiny grid for the first two questions:
S . . .
. X . .
. X . G
. . . .
Movement is 4-connected: up, down, left, right. Each move costs 1.
It only cares about the exact cost from the start to the current node. It has no goal-directed heuristic, so every node at cost 2 is considered before any node at cost 3, regardless of whether it points toward or away from the goal.
It is useful when you want the true shortest-path cost field over the whole map, or when you have no good admissible heuristic.
[ ] Done
S = (0,0) and G = (3,2) using (x, y) = (column, row)?If the heuristic never overestimates the true remaining path cost, A* never becomes over-optimistic in a way that would skip a cheaper valid solution. It stays both goal-directed and optimal.
[ ] Done
For each platform, choose the better motion model and explain why.
Usually Reeds-Shepp, if reverse maneuvers are operationally allowed. Even if most motion is forward, the ability to back up can shorten or rescue tight maneuvers. If policy forbids reversing during normal operation, then Dubins is the correct model even though the platform could reverse physically.
[ ] Done
Answer all three:
Because the robot does not need to commit to a wide forward-only turning maneuver. It can back up, reorient, and continue, which often creates a shorter feasible path than any purely forward alternative.
[ ] Done
You are tuning SmacPlanner for a robot that must enter a narrow charging bay by backing in. Current settings:
motion_model_for_search: DUBIN
minimum_turning_radius: 1.2
Questions:
motion_model_for_search from DUBIN to REEDS_SHEPP.Because the search space excludes valid reverse maneuvers. The planner may report no path or return an awkward long path even though a human driver would simply reverse into the bay.
[ ] Done
A warehouse robot operates in wide, simple corridors. Reverse is disabled by policy.
SmacPlanner with REEDS_SHEPP works, but planning latency is high.
Questions:
DUBIN instead of REEDS_SHEPP.Keep Reeds-Shepp if reverse motion may be needed for recovery, docking, or confined goal poses even if the nominal task is mostly forward.
[ ] Done
Write a short answer to this prompt in 5 sentences or fewer:
“NavFn with A* and Smac with Reeds-Shepp are both path planners. Why are they not interchangeable?”
Target answer shape: mention grid vs kinematic state space, heuristic search, turn-radius constraints, and reverse motion.
When a Nav2 path looks strange, diagnose it in this order:
minimum_turning_radius reflect reality?That checklist usually gets you to the root cause faster than staring at the path alone.