← Classical NavigationEngineering tools · 2026

Scenario editing · Simulation jobs · Interactive replay

Navigation Lab.

Shape the scenario.
Inspect the decision.

A browser workspace for the Classical Navigation project. Configure a marine navigation experiment, run it in a separate process, and trace each recorded decision through the vessel’s motion.

01 / The implemented scenario editorLocal application · October 2026

01 / A tool within the navigation project

Make experiments
easier to inspect.

A trajectory plot shows where a vessel went. Understanding why requires the configuration, the active plan, and the command issued at that moment.

I built this editor and recording pipeline within my Classical Navigation project. The editor changes scenarios and algorithm settings; a Python worker runs the navigation stack; the replay exposes its recorded state and decisions. Both interfaces share the same configuration model.

My role
Solo developer · interface, execution & replay
Interface
JavaScript · HTML Canvas · Python HTTP server
Run environment
Local Docker service · one simulation at a time
Portable outputs
Complete YAML configuration · standalone HTML replay

02 / Configuration roundtrip

One experiment.
One configuration.

Start from a bundled profile or import YAML. Move the start and goal, drag or resize circular obstacles, and choose algorithms by layer. Numeric fields provide precise coordinates and a keyboard alternative to the map.

The algorithm catalog comes from the navigation stack’s registry. Switching algorithms loads their defaults and retains earlier parameter choices for the session. Combined MPC disables the three stages it replaces.

The October update keeps this interface aligned with the algorithms: the catalog now exposes the EKF’s current-estimation parameters and shares the local RRT* planner’s defaults. A regression test compares these values with the actual constructors, so a browser experiment starts with the same settings as a Python experiment.

Import, validation, export, and execution use the shared configuration model. Downloaded YAML can be imported again or used by the command-line demo. Each run saves its exact resolved configuration beside its outputs.

A useful boundary

Validation checks input types, bounds, clearance, and budgets. Whether a planner can find a route is established during execution.

03 / Asynchronous execution

A run has
a lifecycle.

The server starts a subprocess and returns a run identifier. The browser polls its status while computation continues; editing stays disabled until the run finishes or is cancelled. Reloading reconnects to an active run through its saved session identifier. If the server has restarted, the editor clears the expired identifier and explains where the run files remain on disk.

Configure → compute → inspectExplicit run states
01 / ValidateEditable scenario → resolved YAML

Check inputs and save the run configuration

02 / RunningOne separate Python worker

Simulation + telemetry recording

03 / FinishCompleted · failed · cancelled

Open the replay or return to the editor with a diagnostic

Worker completion and reaching the navigation goal are separate outcomes.
Bound the work

Keep runs manageable.

The dashboard defaults to a 180-second wall-clock timeout and limits runs to 5,000 simulation steps and 250,000 grid cells. Algorithm-specific limits bound planner and solver budgets.

Own the worker

Make cancellation effective.

Cancel terminates the process, escalating to a kill if it does not exit within two seconds. Solver errors and timeouts return a diagnostic so the scenario can be revised.

A simulation that reaches its time limit still produces an inspectable replay. The run status describes whether computation and export completed. The navigation result uses the estimated position to test arrival; the replay shows actual and estimated distance to the goal separately.

04 / Recorded decisions

Pause where
the plan changes.

Each frame records the state, estimate, active route, local trajectory, and command before advancing the vessel. The final frame contains the resulting state without an outgoing command. Global routes are stored once per revision and referenced by subsequent frames.

02 / D* Lite at 12.0 s · state and decision share the same simulation step

Pause, step, scrub, change playback speed, or toggle layers to compare the route with actual motion. D* Lite map changes and route revisions remain visible alongside planner failures and emergency-braking status. Speed and yaw-rate plots follow the selected frame.

The updated viewer also highlights “Escaping margin” when the estimate lies inside a planning buffer. The local plan and resulting motion can then be inspected together, keeping the planning margin distinct from the obstacle boundary.

The HTML embeds the recording and viewer without external assets. Playback reads saved data; changing its speed leaves the simulation timestep unchanged.

Explore the D* Lite recording 322 frames · portable HTML · recorded 22 October 2026

05 / A changing map

See the route
repair itself.

The bundled D* Lite scenario closes five grid cells at 8 seconds and reopens them at 20 seconds. The replay preserves both route revisions, the active cells, and the vessel’s response. The terminal frame is at 32.1 simulated seconds, with two route repairs and the estimated-position goal test satisfied.

03 / The project’s replay viewerRecorded playback · 3.6× · silent
Read a description of the recording

A blue vessel follows the dashed global route between four circular obstacles. Pink cells close a short barrier across the route, and D* Lite repairs the path around it. When the cells reopen, the route changes again. The orange estimate, green local plan, and purple turn command show the decisions behind the motion. The capture advances three 0.1-second simulation steps per video frame at 12 fps, producing 3.6× playback. The controls visible inside the footage are part of the recording; use the portable HTML above to step through it yourself.

06 / Evidence & scope

Preserve the inputs.
Explain the output.

Tests cover YAML roundtrips, catalog defaults, cancellation, timeouts, unreachable routes, HTTP integration, and replay frame alignment. The updated project passed 64 Python tests in this review. The current screenshots and clip were captured from the real application and replay viewer on 22 October 2026.

Application engineering: Jerry Chang. The Python service uses NumPy and PyYAML; the browser interface uses native HTML Canvas.

A local experiment workspace

The dashboard runs one job at a time. Run files persist on disk, while status URLs last for the server process. Unsaved editor changes are lost on reload. The underlying vessel model is an educational planar simulation; the tooling supports investigating that model’s behavior.

Navigation Lab / Part of Classical Navigation

Make the decision
visible.

Explore the navigation stack Back to all projects