Repository navigation
GRL-SNAM on libcvc 4.0.2: the Cars template's 0.06 s tick, and the generator's edge by name - #199
Merged
Merged
Conversation
…nerator's edge by name
libcvc 4.0.2's pycvc_gl.cars ticks at pycvc.SIM_TICK, 0.06 s (#1170; 0.05 s before), the tick the
GRL-SNAM networks were trained at. Two tests counted ticks at 20 a second: the scrub's checkpoint 0
against live --arms ran 450 frames for 300 ticks (250 at 0.06 s), and the lab's exact replay wanted
more than 250. They now count ticks from pycvc_gl.cars.DT, so they hold on 4.0.0 and 4.0.2 alike.
4.0.2's generated_world node also seeds world.edge, as the index of cvc::world::world_edge ("0"),
while pycvc.generate_world takes its name; _world.generated passed 0.0, which 4.0.2 refuses ("edge
is a string"), so every generated world made in Python failed. It now passes the name.
transfix
added a commit
that referenced
this pull request
Nov 20, 2026
…4.0.2 seeds world.edge as its index)
transfix
added a commit
that referenced
this pull request
Nov 20, 2026
…cvc#1391), and a page takes its world in a frame (#198) 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). The generator's edge is passed by name, as #199 has it: libcvc 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.
GRL-SNAM's tests go red once its CI installs libcvc 4.0.2. CI installs the newest pycvc from cvcpkg; libcvc 4.0.2 is published there and pycvc-gl-cp312 is still at 4.0.1. Against a 4.0.2 build (libcvc master e81ce8e), GRL-SNAM main has 9 failures: 2 from a new tick, 6 from a new generator setting, and 1 that also fails on 4.0.0. This PR fixes the first 8.
The cause is not
nav@1 comes to rest at its goal(transfix/libcvc#1297), as first suspected. That change is in 4.0.2, but nothing here depends on it.The tick: 0.06 s
libcvc 4.0.2's
pycvc_gl.cars.DTispycvc.SIM_TICK, 0.06 s (transfix/libcvc#1170). It was 0.05 s before, and 0.06 s is the tick the GRL-SNAM networks were trained at. GRL-SNAM's code already ticks atC.DT, so only two tests counted ticks at 20 a second:test_ariadne_scrub.py::test_checkpoint_0_is_the_untrained_armranlive --armsfor 450 frames to get 300 ticks. That is 250 ticks at 0.06 s (assert 250 >= 299). It now runsceil(TICKS * DT * 30)frames.test_lab_acceptance.py::test_6_exact_replaywanted the recorded session to hold more than 250 ticks. Its 450 frames hold 15 s / DT ticks, so 250 at 0.06 s. It now wants every frame's ticks,FRAMES / 30 / DT, less one, which is stricter on 4.0.0 (299 rather than 251).Two comments and
scrub --ticks's help said 0.05 s and now name the tick. The README's Cars-template section does too.The generator's edge
4.0.2's generated_world node seeds a new key,
world.edge, as the index ofcvc::world::world_edge("0", that is wall).pycvc.generate_worldtakes the edge by name,wall,shoreornone._world.generatedturned every setting but terrain, city and terrain_file into a float, so it passed 0.0. 4.0.2 refused that withgenerate_world: edge is a string, and every generated world made in Python failed: 6 tests intest_ariadne_world.py, and the ports' generated world wherever the Python fallback runs. It now passes the edge's name. On 4.0.0 the node has no edge key and nothing changes.libcvc 4.0.2's own
pycvc_gl.cars.make_worldcasts the same way, so its--world generatedfails on a document whose generated_world node seedsworld.edge. That file is the OW2 owner's, so this is reported on ws:libcvc rather than fixed here.Checked
AriApp.grid/world_geometryand is not used by this branch):test_ariadne_world.py,test_lab_acceptance.pyandtest_ariadne_scrub.pypass, 51 tests withGRL_SNAM_ARIADNE_GL=1.tests/test_ariadne_*.pyandtests/test_lab_acceptance.pypass, 163 tests with GL.test_coph_golden.py::test_torch_rounds_g2s_exp_and_expm1_correctly, which depends on the installed mpmath. It fails on main on 4.0.0 too.Notes
LIBCVC_REFmoves to 4.0.2, each deployed run of 1200 ticks becomes 72 s rather than 60 s, at the networks' own tick._world.generated. I'll make its version match this one so that either merges cleanly after the other.Merge waits on Joe's OK.