Skip to content

nav scrub: the common world, Humvees at true size, runs that read apart, and a writeup - #1506

Merged
transfix merged 3 commits into
masterfrom
feat/nav-scrub-world
Nov 25, 2026
Merged

transfix merged 3 commits into
masterfrom
feat/nav-scrub-world

Conversation

@transfix

Copy link
Copy Markdown
Owner

The scrubber's view drew box ghosts on walls built from the grid, the Humvee collided with boxes rather than the world, and two cars of one run could start on top of each other. This puts it on the common world, draws the Humvee at its true size, makes the two runs read apart without moving any pose, and adds a writeup of the view and of how learning is (and is not) demonstrated with it: docs/NAV_SCRUB.md.

The scrubber on south Austin

The world

  • nav_scrub.ari has world nodes, run by SceneWorld (as the other Ariadne ports): south Austin from its bundle (data: city, region: cut for physics and the navigator, all of it drawn), a generated world, a flat square. --world picks one; blocks keeps the built-in scenario the host draws itself.
  • Sim units are world units: the grid and the geometry stay in metres; the agents run at 0.05 units a metre.
  • cvc::nav::grid_scenario puts a scenario on a world_grid (SceneWorld::grid): starts 12 m apart on free ground, 4 m clear of anything blocked; goals 12 m off every start and goal, at least 0.3 of the span away.
  • cvc::physics::scrub_plant(geometry): each deployed plant collides with the world's own terrain and buildings, and starts each vehicle on the terrain.
  • Without a bundle and without --net-allow, the city falls back to the generated world; the gallery build preloads the Austin bundle at /bundle.

The overlap

  • Within a run it was a scenario bug, not the plant. default_scenario drew each agent's start and goal lane on its own, so two cars of one run could start or aim on top of each other. Its lanes are now 8 m apart where they fit (NavScrub.NoTwoCarsStartOrEndOnTopOfEachOther).
  • Between the runs it is by design. Step 0 and k start from the same poses. No pose is offset. Instead:
    • k's Humvee is opaque and orange, step 0's translucent and blue;
    • each sits over a ring of its colour, step 0's outside k's, so a shared pose shows two rings;
    • each has its trail behind it.
both runs at one pose the runs parted
start close-up

overview

Also fixed

  • On raised terrain the geometry plant started every Humvee at ground_z, under the ground: every run's path was 0 m. The test raises its terrain 5 m and fails without the fix.
  • The Episode window's Camera combo stored its label, so no host ever saw follow. It now stores follow/orbit, and nav_scrub chases the Stats window's Follow arm.

The writeup

docs/NAV_SCRUB.md covers:

  • every window and control;
  • what is compared: k beside step 0 on the same scenario and seed, plus the untrained and constant arms;
  • what counts as proof: held-out scenarios, not the training ones; the deployed metric against the checkpoint step; a constant at the net's own mean to rule out a mean shift; paired seeds with intervals;
  • the current result from grl-snam train: the robot at its real size on Austin, and an objective that is the task CVC-Lab/GRL-SNAM#182's learning-validation §9:
    • the held-out reach rises on every seed;
    • criterion 1 passes;
    • on Austin's independent test pairs the gain over untrained is a null, and a constant matches it;
    • the one win is the ice-band city.

It also says plainly that the default 60-step demo run shows the view, not learning. On the Austin scenario the Humvee runs end farther from their goals at step 60 than at step 0.

Tests

  • NavScrub.NoTwoCarsStartOrEndOnTopOfEachOther
  • NavScrub.AScenarioOnAWorldGridAtItsRealSize
  • ScrubPlant.OnAWorldsGeometryTheHumveeDrivesItsGroundAndMissesItsBuildings
  • All pass locally, with ariadne_loader_test (the document now requires gl.scene) and nav_world_grid_test.
  • nav_scrub was run natively on each of city, generated, flat and blocks.

…rt, and a writeup

The scrubber's view drew box ghosts on walls built from the grid, and two cars of one run could
start on top of each other. Now:

- The world is the document's (nav_scrub.ari's world nodes, run by SceneWorld): south Austin from
  its bundle by default, at its real size in metres, or a generated world, a flat square, or the
  built-in blocks (--world). The scenario is cvc::nav::grid_scenario on the world runtime's grid;
  the Humvee collides with the world's own geometry (scrub_plant(geometry)).
- grid_scenario: agents 12 m apart on free ground, 4 m clear of anything blocked, goals 12 m off
  every start and goal and at least 0.3 of the span away, from the seed.
- default_scenario's lanes are 8 m apart where they fit: before, each lane was drawn on its own,
  so two cars of one run could start or aim on top of each other (a scenario bug, not the plant).
- scrub_plant(geometry) starts each vehicle on the terrain (ground_height): on raised terrain the
  geometry plant started them under it, and every run's path was 0 m.
- Each run's vehicles are Humvee.glb at the Humvee's 4.84 m, posed on the ground: checkpoint k
  opaque in orange, step 0 translucent in blue, each over a ring of its colour (step 0's outside,
  so a shared pose shows two) with its trail behind it. Poses are never offset.
- The Episode window's Camera combo stores follow/orbit (it stored its label), and nav_scrub
  follows the Stats window's Follow arm; --camera, --at, --look, --no-ui for captures.
- The gallery build preloads the Austin bundle into nav_scrub.
- docs/NAV_SCRUB.md: the world, the two runs, every window and control, what is compared, how
  learning is demonstrated (held out, the deployed metric against the step, a constant arm,
  paired seeds with intervals) and where it stands (GRL-SNAM learning-validation §9).
@transfix

Copy link
Copy Markdown
Owner Author

Checked in a browser. Built nav_scrub for wasm (single-threaded, the gallery's flags, CVC_WASM_BUNDLE = scene-austin-south-small) on a fresh cvcpkg wasm closure, and loaded the page in headless Chrome (software WebGL).

The page loads Austin from /bundle, trains 60 steps and deploys the 22 runs in the page (11 checkpoints × the Humvee and the bicycle), then draws them with /bundle/Humvee.glb. It comes up about 40 s after navigation.

Its numbers match the native run except at two cells, each by 0.1 m: step 0's path is 116.4 m against 116.5 m, and step 6's distance left is 33.7 m against 33.8 m. Jolt in wasm is not bit-identical to native.

This was not built in CI: the gallery builds on master after a merge (deploy-pages).

@transfix
transfix merged commit dc40bde into master Nov 25, 2026
30 checks passed
@transfix
transfix deleted the feat/nav-scrub-world branch November 25, 2026 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant