Nav2 (ROS2 Navigation Stack)
299 words · 2 min read · 1 source
Nav2 is the ROS2 navigation stack for mobile robots — planners, controllers, behaviour trees, recovery. Used in thousands of production AMRs worldwide.
Nav2 is the official ROS2 navigation stack — a collection of packages that together let a mobile robot autonomously move from point A to point B safely. It includes planners, controllers, costmaps, behaviour trees, localisation, and recovery behaviours.
What is Nav2 (ROS2 Navigation Stack)?
Nav2 is the official ROS2 navigation stack — a collection of packages that together let a mobile robot autonomously move from point A to point B safely. It includes planners, controllers, costmaps, behaviour trees, localisation, and recovery behaviours.
How It Works
Nav2 is structured as a set of ROS2 servers wired together by a top-level behaviour tree. The Planner Server runs a global planner (Smac, NavFn) over a costmap; the Controller Server runs a local planner (DWB, MPPI, Regulated Pure Pursuit); the Behaviour Server runs recovery actions when stuck; the BT Navigator orchestrates everything as a behaviour tree. Costmap layers provide static maps, dynamic obstacles, inflation, and voxels. AMCL provides localisation.
Real-World Example
Almost every Nav2-based mobile robot starts with the TurtleBot3 demo. GreyOrange Butler, ROBOTIS, Clearpath Husky, hospital delivery robots, and Indian warehouse robots all build on Nav2. Foxconn's smart factories use Nav2 in dozens of AMR designs.
Why It Matters for Robotics
Without Nav2 you would write a complete navigation stack from scratch — months of work. Nav2 fluency is non-negotiable for any AMR or service-robot engineering role in India. It is the most-asked-about stack in ROS2 interviews.
Try It Yourself
Launch the nav2_bringup tb3_simulation_launch.py demo in Gazebo + RViz2. Use RViz's '2D Pose Estimate' and '2D Goal Pose' tools to drive a TurtleBot3 across the simulated map. Then change a costmap parameter live and watch the behaviour change.
Quick Quiz
Quick Quiz
3 questions
1.Nav2 orchestrates its components with:
2.Which is NOT a typical Nav2 component?
3.A common local planner used in Nav2 is:
Further Reading
Ask R2 About This
Open the R2 Co-pilot (press ⌘K anywhere on R2BOT) and ask: "Explain Nav2 (ROS2 Navigation Stack) for a Class 9 student in India, with one real-world Indian example." You'll get a tailored, sourced answer in seconds.
🐍 Python Playground · runs in your browser
Editor · 15 lines
Output
Press ▶ Run to execute. First run downloads Python (~6MB) — only happens once per page.
Powered by Pyodide · Python in WebAssembly · no server required.
Next: the course path
Five free courses, from zero to your own robot design
Short videos with a quiz after each one, a final activity and a certificate per course.
See the course path →Plain English. Free. Unsubscribe in one click.
Keep going
ROS2
Robot Operating System 2 — the DDS-based middleware that runs nearly every modern research and commercial robo…
ConceptAMCL (Adaptive Monte Carlo Localisation)
AMCL is ROS2's standard particle-filter localiser. Given a known map, it tracks where the robot is using laser…
ConceptCostmap in ROS2 Navigation
A costmap is a 2D grid where each cell holds a cost reflecting how desirable it is to traverse. Backbone of Na…
Last updated · 2026-05-21
Spotted something off? Report an error →