Navigation · Simulation game
Navigation Arena
Plan paths. Avoid obstacles. Control motion. Complete autonomous missions.
Loading…
Missions
Workspace
goal planned path unsmoothed ground truth odometry only LiDAR. Click the map to set a goal (drag to set its heading in the 2D views). WASD drive in Manual mode · Space emergency stop · Costmap colours: free, yellow to red = inflated cost, magenta = inscribed, white = lethal, grey = unknown.
Global planner comparison
Each row is a real run of that planner on the current goal (Plan only). Change the algorithm in the controls and press Plan only again.
| Planner | Result | Planning time | Path length | Cells expanded |
|---|
Navigation stack settings
Every control changes the running simulation. The line under each says what it changes.
Debug mode
Inject a real fault into the stack or the arena, read the symptom, find the cause in the telemetry and the costmaps, and fix it. "Check my fix" tells you which setting is still wrong.
How it works
How This Maps to ROS 2 Nav2
Navigation Arena is a teaching model with the same shape as Nav2. It is not Nav2, it does not run ROS 2, and its algorithms are simpler than the production plugins. This table says what corresponds to what.
| Navigation Arena | ROS 2 Nav2 equivalent |
|---|---|
| Global costmap | Nav2 global costmap (nav2_costmap_2d: static, obstacle and inflation layers) |
| Local costmap | Nav2 local costmap (rolling window, obstacle and inflation layers) |
| A* / Dijkstra / Theta* / Hybrid A* | Global planner plugins (for example NavFn, Smac 2D, Theta*, Smac Hybrid-A*) |
| Path smoothing | Nav2 smoother server (for example the simple smoother) |
| DWA (educational implementation) | Conceptually related to the DWB controller (dwb_core): sample velocities, simulate, score with critics, pick the best. Not identical to DWB. |
| Pure Pursuit | Regulated Pure Pursuit controller concept (this one has no cost-aware regulation) |
| Robot velocity output | /cmd_vel (geometry_msgs/Twist) |
| Navigation goal | NavigateToPose action |
| Global path | /plan |
| Odometry | /odom |
| Estimated pose, frames | TF2 transform tree (map → odom → base_link), with AMCL or SLAM providing map → odom |
| LiDAR scan | /scan (sensor_msgs/LaserScan) |
| State machine and recovery behaviours | Nav2 behavior tree (BT Navigator) and recovery behaviours (clear costmap, spin, wait, back up) |
| Localization correction (scan to known map) | AMCL (particle filter) or a SLAM node; this page uses a much simpler Gauss-Newton scan match |
Differences from production Nav2
- Nav2 is a set of ROS 2 nodes and plugins with lifecycle management, behavior-tree XML you can edit, and many more planners, controllers and costmap layers. Here everything runs in one JavaScript session.
- The costmaps follow the ROS cost convention (0 free, 253 inscribed, 254 lethal, 255 unknown) but use a simpler exponential inflation, a circular footprint only, and no voxel or sonar layers.
- DWA here has a fixed set of five scoring criteria and a circular footprint check. Nav2's DWB has pluggable critics and trajectory generators. The Pure Pursuit here has no cost-aware speed regulation.
- Localization is a single scan-to-map Gauss-Newton match with a known starting pose; Nav2 normally uses AMCL (a particle filter with uncertainty) or SLAM.
- There are no real-time guarantees, transform delays, message latency or QoS: the simulation steps at a fixed 60 Hz with the controller at 20 Hz.
Keep learning
The Navigation track (costmaps, planners, local planning, recovery) and Bring up Nav2 in simulation. The sensor and the SLAM behind the pose come from LiDAR Explorer and SLAM Explorer.