Skip to content

GRL-SNAM on libcvc 4.0.2: the Cars template's 0.06 s tick, and the generator's edge by name - #199

Merged
transfix merged 1 commit into
mainfrom
fix/nav-rest-at-goal
Nov 20, 2026
Merged

transfix merged 1 commit into
mainfrom
fix/nav-rest-at-goal

Conversation

@transfix

Copy link
Copy Markdown
Contributor

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.DT is pycvc.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 at C.DT, so only two tests counted ticks at 20 a second:

  • test_ariadne_scrub.py::test_checkpoint_0_is_the_untrained_arm ran live --arms for 450 frames to get 300 ticks. That is 250 ticks at 0.06 s (assert 250 >= 299). It now runs ceil(TICKS * DT * 30) frames.
  • test_lab_acceptance.py::test_6_exact_replay wanted 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 of cvc::world::world_edge ("0", that is wall). pycvc.generate_world takes the edge by name, wall, shore or none. _world.generated turned every setting but terrain, city and terrain_file into a float, so it passed 0.0. 4.0.2 refused that with generate_world: edge is a string, and every generated world made in Python failed: 6 tests in test_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_world casts the same way, so its --world generated fails on a document whose generated_world node seeds world.edge. That file is the OW2 owner's, so this is reported on ws:libcvc rather than fixed here.

Checked

  • On a libcvc 4.0.2 build (master e81ce8e, built locally with pycvc_gl and Jolt; the build also carries pycvc AriApp: grid and world_geometry read the scene's world wherever it runs transfix/libcvc#1391, which only touches AriApp.grid / world_geometry and is not used by this branch):
    • test_ariadne_world.py, test_lab_acceptance.py and test_ariadne_scrub.py pass, 51 tests with GRL_SNAM_ARIADNE_GL=1.
    • The whole suite on main showed the 9 failures above, and no others.
  • On libcvc 4.0.0 (pages.yml's closure): tests/test_ariadne_*.py and tests/test_lab_acceptance.py pass, 163 tests with GL.
  • The one failure left on both versions is 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.
  • black 26.5.1 and ruff 0.16 are clean.

Notes

Merge waits on Joe's OK.

…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
@transfix
transfix merged commit 1a5282f into main Nov 20, 2026
5 checks passed
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.
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