Files
NODEDC_MISSION_CORE/docs/audits/2026-10-02-simulation-editor-navigation.md
T
DCCONSTRUCTIONS d0e5f90952 Preserve installed operator workspace before consolidation
Local preservation snapshot, not a new deployment or simulation acceptance.
2026-10-08 09:59:51 +03:00

6.7 KiB
Raw Blame History

Simulation editor navigation and video lifecycle — 2026-10-02

Owner request: metric navigation at near/far zoom, orbit around the pressed surface point, editable navigation preferences, reversible waypoint editing, compact viewport controls and recovery from missing Worker video.

Implementation

  • EditorCamera uses Three camera/vector math only; PlayCanvas remains the sole local renderer. Pan scales by optical surface depth and viewport height, with a configurable smooth interpolation between near/far sensitivity and distance thresholds (defaults 3 m / 100 m, both sensitivity 1×). Wheel speed is configurable.
  • editorNavigation.ts rotates camera position AND orientation rigidly around the picked point. Off-centre picks stay at the same screen coordinate instead of snapping the camera toward a new look-at target. Empty sky falls back to a forward point at scene distance. A local sphere marks the pivot only during the orbit gesture; diameter, color and opacity are configurable.
  • waypointEditing.ts owns bounded undo snapshots, selection, drag transactions and draft revision. Delete/Backspace deletes the selected point; Ctrl/Cmd+Z restores coordinates, order and selection. Text fields/settings retain native keyboard behavior. A drag adds one history entry; selection/canceled drag adds none. Opening another task isolates history.
  • Empty scene click clears selection in Overview. Add mode selects existing markers or places a new surface point. Wheel and right-drag navigation remain available. Waypoint height accepts up to 50 m; old settings migrate normally.
  • Planner tool modes use the standard segmented size at the top right, with selected-point trash on their left. Clip scale is on the left. No Undo/Home buttons remain. The modeless settings window opens below the tool row within viewport bounds. Scene-control segmented backgrounds are corrected in the canonical Design Guideline, including its living catalog example.
  • Planning hides the inactive mode/rover selectors. A running simulation hides mode/rover/task selectors and the duplicate Preparation button. One simulation state badge stays at the left above the viewport; camera modes sit at the top right beside expand.
  • The NVIDIA SDK now lives in a dedicated same-origin simulation-stream.html iframe. Removing the document releases its peer connection and global handlers even if SDK 6.7 remains in STARTING. The former module-global promise queue waited for an unbounded settled callback and could block every later viewer. The former first-frame wait also had no watchdog until a first frame arrived. Recovery now bounds first-frame wait to 20 s, stall to 10 s and automatic replacements to two; exhausted recovery releases the frame and offers retry. Message origin/source are checked. Telemetry updates do not reconnect video. This changes browser video ownership only, not Worker execution or inference.

Validation

  • Architecture checks: 4 passed. Frontend full unit suite: 1038 passed.
  • Typecheck and production build passed; existing large-bundle advisory remains.
  • Design Guideline registry and catalog typecheck passed; 6 density/range checks passed. No deployment or Worker model/profile changes were required.
  • Browser verified waypoint selection, empty click deselection, Delete, Cmd+Z, Ctrl+Z, selecting an existing point in Add mode without duplication, adding a point and undoing it, orbit movement and zoom in Add mode. Height 50 m and committed navigation sensitivity round-trip through the settings UI passed; test changes were restored to their prior values.
  • The first reproduction using the previous client received 15 FPS while moving and 28 FPS paused. Run airun-60e99c16a7b64d36b68a17b4cc5656a5 was explicitly stopped after inspection. The user's earlier missing-video root cause cannot be assigned conclusively from its screenshot or server log alone.

Final browser acceptance

  • The run viewer now requires an explicitly selected run ID. A background tab displaying the location must not automatically attach when catalog polling sees a newly started run. viewedAiRun.ts and its focused test enforce this boundary; explicit Open still attaches to an existing active run.
  • Run airun-81212dcfe1f94e60bb57e5597084604d proved repeated leave/reopen and reload/reopen of the same Worker process with the isolated video client. Video returned without manual retry and showed 24–28 FPS paused. The existing wall-clock run limit eventually ended this paused run during extended UI QA; that termination is not evidence of a video reconnect failure.
  • Final run airun-1914081b601549519c837fe68c5eb5b9 proved a fresh launch from the unchanged saved 5-point route. Moving telemetry showed 0.14 m/s, sensor 4.3 FPS, AI 5.3 decisions/s and operator video 4 FPS at one sample. These are different clocks; this work does not qualify real-time throughput under inference load.
  • Planner normal 1280×720 and native fullscreen 2048×1280 checks passed: scale on the left, opaque standard toolbar on the right, trash only with selection, modeless navigation settings below the toolbar without obscuring the scale. Escape restores the normal view. Original waypoint coordinates and navigation preferences were preserved after testing.
  • Follow-up owner adjustment doubles the radius-centred clip-rail inset from 12.8 to 25.6 px, equally on the left, top and bottom. Endpoint labels remain inward; only the domain layout changes, not the RangeControl primitive.
  • Stream FPS is on the left. Camera modes, route visibility and fullscreen are aligned on the right at the canonical 46 px control height. Hiding the route removes the annotation layer; showing it restores the same overlay.
  • The fitted picture, route overlay and toolbar share one viewport. It uses the canonical 22 px panel radius and an 8 px inset mask to exclude the encoded stream edge; controls sit 16 px inside that visible edge. This only clips the operator display and preserves projection coordinates and sensor pixels.
  • Evidence: outputs/ai-polygon-2026-10-02/editor-navigation-evidence/ in the NODEDC workspace contains planner-navigation.jpg, planner-tools.jpg and video-fullscreen.jpg. Build/typecheck passed after final layout edits.

No complete route, collision envelope, actuator behavior or autonomous safety qualification is claimed by this UI/video acceptance. Worker profiles, model composition, Docker configuration and physical devices were not modified.

Final cleanup: the fresh run was stopped via the product; catalog reports active_run=null, available=true. Canonical Core PID 26337 remains on :8000; no listener on :8765. No temporary test/build processes were left running.