Repository navigation
Ariadne: the ports drive in their document's world node, which libcvc's SceneWorld runs - #196
Merged
Merged
Conversation
…'s SceneWorld runs
The scrub, live, fleet and replay documents declare their worlds as scene nodes with `world:`
(data: the city its data: block names; generated: libcvc's generator, its settings on the node;
flat: the Cars template's walled square) and `scene: world: { source }` picks the one on. Their
init: no longer sets run.* or world.*.
grl_snam/ariadne/_world.py is the one place a port reads its world: --world is the document's
scene.world.source, --uri / --bundle a data-load into its data.city, a world.* key a new
generated world; the navigator's grid is SceneWorld's (pycvc.AriApp.grid), and a drawn host,
where AriApp.grid finds no world on libcvc 4.0, makes it as SceneWorld does and checks it against
scene.world.grid.*. The plants stay the Cars template's until libcvc's OW7, on a
pycvc_gl.cars.World over that grid and the world's geometry.
The hosts drop pycvc_gl.cars's make_world / show_world / load_data_world / draw_world;
_host.document_city, its installed-bundle fallback and _cars.city_of go; demos/_common's loaders
are thin (and pass the app libcvc 4.0's load_city_bundle takes). live's traces run on a world
clock of their own, since a document with a world has its scene drive the app's.
Grids are identical to cars.py's on the scrub world and Austin; retrain/seed0 re-deployed on both
plants gives identical run logs. New: tests/test_ariadne_world.py.
… the one asked for (a page runs no frame before the port's program returns)
This was referenced Nov 20, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GRL-SNAM's Ariadne ports built a second copy of their world in Python. This PR moves them onto one world description: the document's world node, which libcvc's SceneWorld runs. It is the GRL-SNAM side of libcvc's ARIADNE_WORLDS section 18 ("the holon is the world"), as agreed on dev.tx.wtf (ws:libcvc #86–#98).
What changes
world:, andscene: world: { source: data, cell: 2 }picks the one on:data: thecitynode,source: { data: city }withbody: {};generated: thegennode,type: generated_world, with the generator's settings on the node (seed 7, 500 m, ...) andbody: {};flat: the Cars template's flat world, a 193.6 m square and four walls withbody: static. Its grid is at half a Humvee (nav_grid.flat.cell, 2.42 m) and samples the same aspycvc_gl.cars.flat_world.run.world,run.uri,run.data_path,run.cropand theworld.*lines are gone from everyinit:. The grid's crop is the document'snav_grid.half(600).world_sourcewindow (Source, the generator's settings and Regenerate, Load another city) in place of the Cars template'scars_world_choice/cars_world.grl_snam/ariadne/_world.pyis the one place a port reads its world:--world NAMEsets the document'sscene.world.source;--uri/--bundleload a city into itsdata.city, as(data-load "city" ...)does;--set world.seed=4asks the generated_world node for a new world;world(host)waits for the world on and returns what the port drives on. The navigator's grid comes frompycvc.AriApp.grid(node, cell, half). The terrain's height and the geometry the plant collides with come with it.pycvc_gl.cars'smake_world,show_world,load_data_worldanddraw_world.scene.world.revmoves, after the World window changes the source, regenerates or loads a city.runandworld_keys, now filled from the document.replayandscrub --viewchoose it in their document again, and logs from before read the same way._host.document_city,_host.load_document's bundle swap and its installed-bundle fallback, and_cars.city_ofare gone._world.cityreplaces them.demos/_common.py's loaders are thin:load_city, then libcvc's rasterizer. The VTK rasterizer fallback is gone. They stay for the hosts with no document: VolRover3 and the recording tools (tools/austin.py).load_citypasses the app. On libcvc 4.0,pycvc.load_city_bundletakes it first (libcvc#1119), so the one-argument callopen_cityandtools/austin.occupancymade failed on the pinned release.pycvc.world_clockof their own. A document with a world has libcvc's scene clock drive the app's world clock every frame, and with both on it the replay departed at tick 523 (tests/test_lab_acceptance.py). They watchscene.world.sourceandnav_gridin place ofrun, and leave out the generated_world node's own status, stats and job keys.Measured (libcvc 4.0.0, pages.yml's closure, CPU)
pycvc_gl.cars's World, with equal heights. On Austin small, cropped to ±600 m, it is 601 × 601 with 106 168 blocked, 0 cells differing.retrain/seed0was re-deployed with this branch: 41 checkpoints × 2 plants, 1200 ticks each on the generated world. Each of the 82 run logs is identical, array for array, to scrub: the Humvee by default (no driving through buildings), a Plant combo, and a UI guide #192's cached deploy, with the same start, goal and world info. Every metric agrees at float32, the lean log's precision.world_keysnow hold every generator key the node seeds), so the Pages build deploys every run again. Its cache key moves withgrl_snam/**anyway.tests/test_ariadne_world.py, 18 tests:init:;AriApp.grid's, node for node, by a spy on it;scene.world.source, then a generator key;run.worlddoes nothing;tests/test_ariadne_*.pyandtests/test_lab_acceptance.pypass withGRL_SNAM_ARIADNE_GL=1, 163 tests.test_coph_golden'sg2s_exprounding, also fails on the base branch with this machine's mpmath.pages/smoke.mjs4/4 in headless Chrome 152: the page starts, shows a checkpoint of both plants' runs, draws the world they were deployed on, and has no CSP violation. The city the document names is not fetched while the generated world is on.Behaviour that changes
--bundle DIRpoints the document at it.Still beside SceneWorld, and whose it is
pycvc_gl.cars.Cars:sim_worldwithplant_host), so_world.worldhands them apycvc_gl.cars.Worldover SceneWorld's grid and the world's geometry. They move into the document's world in libcvc's OW7 (the OW2 owner's). The same goes fornav_native's obstacle boxes on flat ground andsquad.py's ownsim_world.AriApp.gridreturns None on libcvc 4.0 and on master: it readsAppRuntime::scene_world(), which is empty when a renderer runs the world._worldthen makes the grid as SceneWorld does (cvc::nav::make_grid), over the same world, and checks it againstscene.world.grid.*. Readingrunning_world()there would remove this. Raised on ws:libcvc.world_geometry/generated_worldhave no Python binding. Raised on ws:libcvc.nav_grid.half) cuts the grid only, while the bodies and the drawing are the whole city. It becomes the data node's region in libcvc's world bundles (GB2, docs(ARIADNE_WORLDS): a generated world is a bundle (section 18.8, Q17) transfix/libcvc#1380). The water collider's level arrives there too.pycvc_gl.cars.run,flat_world), none of the helpers this PR changes, so it stays as it is until OW7.The Pages build pins libcvc 4.0.0 and has every binding used here. Merge waits on Joe's OK.