Skip to content

Ariadne: SceneWorld's own colliders and a drawn host's grid (with libcvc#1391), and a page takes its world in a frame - #198

Merged
transfix merged 2 commits into
mainfrom
feat/one-world-gaps
Nov 20, 2026
Merged

transfix merged 2 commits into
mainfrom
feat/one-world-gaps

Conversation

@transfix

@transfix transfix commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

#196 left two places where GRL-SNAM's ports still made their world beside libcvc's SceneWorld. transfix/libcvc#1391 closes both in pycvc, and this PR uses it when the installed pycvc has it. On libcvc 4.0.x the fallbacks stay, and nothing deployed changes.

What changes

  • A generated world's colliders and height are SceneWorld's (_world.scene_geometry: AriApp.world_geometry). The plant collides with the world the document's node made, so nothing is generated again in Python. On 4.0.x, the world is generated from the node's keys as before.
  • A drawn host's grid is SceneWorld's. With #1391, AriApp.grid through ari_app_attach reads the world a renderer runs. A window or offscreen host makes nothing beside it and needs no check. On 4.0.x the grid is made as SceneWorld makes it and checked, as before.
  • A page takes its world in a frame (_world.when_ready).
    • In ariglx-web the world is made in the page's frames, after the port's program returns.
    • The scrub view now opens with its windows and takes the world in the first frame SceneWorld has it: SceneWorld's grid with #1391, the fallback without. Then it draws the start and compares the world with the deployed one.
  • A generated world's record (world.info, a scrub scenario's world) is its settings and the stats its node publishes: props, buildings, occupied, terrain, water. It used to be the Python generator's info(), which a host using SceneWorld's colliders doesn't have. The record is now the same on every libcvc and in every host, and a world made by another generator still shows as another world.
  • The generator's edge by name (bbe0485). libcvc 4.0.2's generated_world node seeds world.edge as an index, while pycvc.generate_world takes its name. This is the same code as GRL-SNAM on libcvc 4.0.2: the Cars template's 0.06 s tick, and the generator's edge by name #199, so the two merge cleanly in either order (checked with git merge-tree).

Checked

  • libcvc 4.0.0 (pages.yml's closure): tests/test_ariadne_*.py and tests/test_lab_acceptance.py pass with GRL_SNAM_ARIADNE_GL=1, 164 passed. The one skip needs #1391.
  • #1391's build (master e81ce8e plus the binding, local): tests/test_ariadne_world.py passes, 21 tests. With the new binding:
    • "a generated world is not generated again": generated refuses, and the world's grid, height and geometry are SceneWorld's;
    • "an offscreen host drives on SceneWorld's grid": made_grid and generated refuse.
  • Two other tests on that build fail without this PR too, on main f29a2ed: test_checkpoint_0_is_the_untrained_arm and test_6_exact_replay stop at 250 ticks where they expect 300. That is libcvc master's navigator, coming to rest at its goal (nav: nav@1 comes to rest at its goal (the drive's stop points) and a parked bicycle holds transfix/libcvc#1297, in 4.0.2), and needs its own GRL-SNAM change before CI installs 4.0.2.
  • The scrub runs do not move. retrain/seed0 was re-deployed on both plants with this branch on 4.0.0: all 82 run logs are identical to Ariadne: the ports drive in their document's world node, which libcvc's SceneWorld runs #196's deploy, array for array.
  • The scrub page. Assembled from this branch with those runs on ariglx-web 4.0.0, it passes pages/smoke.mjs 4/4 in headless Chrome 152, twice: the page starts, shows a checkpoint, draws the world its runs were deployed on (the records match), and has no CSP violation.
  • black 26.5.1 and ruff 0.16 are clean.

Still elsewhere

  • The plants move into the document's world in libcvc's OW7, the OW2 owner's (after #1378 and #1379). So do nav materials and the flat walls as colliders.
  • The crop and the water collider become the data node's region and water level in GB2 (#1380 and #1385 first), the terrain-lab session's.
  • Pages still pins libcvc 4.0.0. The page uses SceneWorld's grid once a release carries #1391 and pages.yml's LIBCVC_REF moves to it.

Merge waits on Joe's OK.

… a page takes its world in a frame

On a pycvc whose AriApp has world_geometry (transfix/libcvc#1391), AriApp reads the scene's world
wherever it runs: a generated world's colliders and terrain height come from SceneWorld
(scene_geometry), so nothing is generated again in Python, and a drawn host's grid is SceneWorld's
(AriApp.grid through ari_app_attach). On 4.0.x the fallbacks stay.

A generated world's record is its settings and the stats its node publishes (world.stats.*), the
same on every libcvc and in every host. In a page, whose frames run after the port's program
returns, the scrub view takes its world in the first frame SceneWorld has it (when_ready).
@transfix
transfix merged commit 1b51710 into main Nov 20, 2026
6 checks passed
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