Autonomy-Stack · Classical-Navigation · status {{AS_OF}}

Classical Navigation Lab

A simulator-free practice lab for the classical navigation stack of an unmanned surface vessel. State estimation, global and local planning, guidance, and control each sit behind a small interface, and one YAML file picks the algorithm for every layer.

{{CHIPS}}
{{HERO_CLIP}}
Watch it run

Same scenario, different stacks

Each clip is the lab's own replay viewer, captured from the self-contained HTML that make replay writes. The blue hull is the true vessel; the orange ring is the EKF estimate; the dashed grey line is the global route and the green line is the local plan at that step. Dashed circles mark the 2.2 m planning margin around each obstacle. Clips run at 3.6 times real time.

{{CLIPS}}
Try it

Interactive replays of all seven profiles

These are the same replay files, unchanged. Play, pause, scrub the timeline, toggle layers, and read the vessel state at every 0.1 s step. Space plays and pauses; the arrow keys step.

Open this replay in a new tab
Scenario studio

The browser dashboard

make dashboard serves a local editor on port 8000. Drag the start, goal, and obstacles, choose an algorithm for each layer, run the simulation in an isolated worker, and land in the replay. These screenshots come from a run made for this page.

{{SHOTS}}
How it fits together

One loop, two pipeline modes

Every 0.1 s step, the estimated state flows through the selected layers to an acceleration and yaw-rate command, the vessel model moves, and the sensors close the loop. Combined MPC mode replaces guidance, local planning, and control with one optimization.

State estimation EKF, now with water current estimated [east, north, heading, speed] LAYERED MODE Global planner A* · Dijkstra · D* Lite Geometric RRT* Guidance LOS lookahead final goal Local planner APF · direct · short-horizon RRT* · trajectory MPC Controller heading + speed PID tracking MPC Vessel model surge, yaw-rate lag, constant current route target plan accel, yaw rate COMBINED MPC MODE Combined MPC optimizes a 2 s trajectory, applies its first command route accel, yaw rate true motion → GPS 1 Hz (σ 0.65 m) · compass 5 Hz (σ 2°)
Teal edges carry state: measurements in, estimates out. Black edges carry plans and commands. In combined mode the route goes straight into one optimization that returns the command. The vessel is a point; headings count counter-clockwise from east.
Current results

Seven profiles, one scenario

Each bundled profile runs the same 60 × 50 m scenario with four circular obstacles and a 0.13 m/s current; the trajectory-MPC profile runs in still water at 1.2 m/s, as its prediction model assumes. The grey line is the route planned at the start; blue is the true track. Yellow dots mark steps where the EKF estimate sat inside a planning margin and the planner steered back out. Hover a map to read the vessel's state along the track.

Time to goal

Simulated seconds until the estimate is within 1.5 m of the goal

Closest approach to an obstacle

Minimum true distance from the vessel to any obstacle boundary; the red line is the 2.2 m planning margin

What the 18 October fix changed

Before and after commit 3d493e4

Unless a chart says otherwise, every “before” number here was re-measured for this page by running commit 6b19d03 in the same image, on the same machine, with the same scripts. The fix touched 33 files, adding 1,127 lines and removing 242. It also added 18 tests, 17 of which fail on the old code.

{{TILES}}

Time to goal, before → after

Simulated seconds; the MPC profiles gained the most

6b19d03, before the fix3d493e4, current

Closest approach, before → after

Metres to the nearest obstacle boundary; red line is the 2.2 m margin

6b19d03, before the fix3d493e4, current

Stress sweep: nine currents × four sensor seeds

Runs per profile that collided or emergency-braked; currents up to 0.42 m/s from every direction

6b19d03, before the fix3d493e4, current

D* Lite route repairs checked against Dijkstra

Random start moves, blocks, and unblocks; every repaired route compared with a fresh optimal search

OptimalLonger than optimalWrong success or failure

EKF position error vs water current

RMSE over four sensor seeds on the baseline profile. The still-water filter is today's EKF with both current terms set to 0, which reproduces the pre-fix model

Still-water filterCurrent-estimating filter

The EKF learns the current

{{CONV_NOTE}}

East componentNorth component

MPC time per solve

Milliseconds per call with obstacle constraints, averaged over ten warm calls

6b19d03: problem rebuilt every call3d493e4: built once, re-solved

How much faster

Wall-clock time before the fix divided by time now; same machine and image

Still open

Known limitations

The first three came out of the October review and are tracked in the project's CLAUDE.md. The rest are design limits stated in the README.

Combined MPC turns at full rate most of the time

Commanded and actual yaw rate in the shipped combined-MPC run; the red lines are the vessel's ±40°/s limit

Actual yaw rateCommanded yaw rate
Reproduce

Commands

Run these from Classical-Navigation/ on a host with Docker; no ROS, GPU, or host Python is needed. The source is bind-mounted into the classical-navigation-lab image.

{{COMMANDS}}