Repository navigation
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
Merged
Conversation
… 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).
…4.0.2 seeds world.edge as its index)
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.
#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
_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.AriApp.gridthroughari_app_attachreads the world a renderer runs. A window or offscreen host makes nothing beside it and needs nocheck. On 4.0.x the grid is made as SceneWorld makes it and checked, as before._world.when_ready).world.info, a scrub scenario'sworld) is its settings and the stats its node publishes: props, buildings, occupied, terrain, water. It used to be the Python generator'sinfo(), 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.world.edgeas an index, whilepycvc.generate_worldtakes 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 withgit merge-tree).Checked
tests/test_ariadne_*.pyandtests/test_lab_acceptance.pypass withGRL_SNAM_ARIADNE_GL=1, 164 passed. The one skip needs #1391.tests/test_ariadne_world.pypasses, 21 tests. With the new binding:generatedrefuses, and the world's grid, height and geometry are SceneWorld's;made_gridandgeneratedrefuse.test_checkpoint_0_is_the_untrained_armandtest_6_exact_replaystop 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.retrain/seed0was 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.pages/smoke.mjs4/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.Still elsewhere
LIBCVC_REFmoves to it.Merge waits on Joe's OK.