Repository navigation
pycvc: sim_world's drive telemetry, with the tick's books against U_nav - #857
Merged
Merged
Conversation
nav_sim_world_set_capture_drive_telemetry and nav_sim_world_drive_telemetry read sim_world::drive_telemetry_data from Python. The second returns the last captured tick as a dict of (N,) arrays named as drive_telemetry's fields, with the books only a world fills (#832): potential_end, projection_work and context_work. It returns None while capture is off. The dict is built by one helper (pycvc_telemetry::to_dict), which nav_drive_step_material_cuda's telemetry now uses too. That dict gains the three keys, which the bare drive step leaves zero; test_pycvc_nav_cuda checks both. test_pycvc_nav_telemetry.py (ctest pycvc_nav_telemetry) is NavPotential.SimWorldBooksTheContextWorkOfAGoalChange through Python. It checks: - capture changes no pose; - context_work is zero on the first captured tick, and projection_work is zero without an override or min_gap; - context_work equals potential minus last tick's potential_end, bit for bit; - the two retargeted agents book -3.353 of context work, against +0.007 without the goal change. Locally (MSVC, Python 3.11) it passes 23 checks, and the nav routes and belief scripts pass unchanged. sim_world.h: drive_telemetry_data() returns the defaults, not null, from turning capture on until the first captured step; its comment now says so.
transfix
enabled auto-merge (squash)
October 28, 2026 03:18
transfix
added a commit
that referenced
this pull request
Oct 28, 2026
The project version and the cvcpkg recipe family move to 3.7.2. Every recipe is at cvc_revision 1 already, so none restarts. 3.7.2 carries the dynamic plants on the terrain and in a Jolt world, and the four-wheel plant (#869): --plant dynamic and dynamic4w drive the ground, collide with the buildings and each other, and book the collisions. It also carries dyn_4w's port-Hamiltonian form (#850), dyn_bike's wheel-frame front slip (#852), the books goldens for GRL-SNAM's twins (#848, #849), pycvc's drive telemetry (#857) and keep-alives (#864), the macOS SDK's openssl (#846), and the state_exec scheduler and evaluator work (#842, #843, #844, #861, #863).
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.
This lets Python read the navigator's tick books from a live
sim_world:potential_end,projection_workandcontext_work(#832). Before this, pycvc could not capture a world's drive telemetry at all. Its only telemetry dict wasnav_drive_step_material_cuda's, and the bare drive step never fills these three.Changes
nav_sim_world_set_capture_drive_telemetry(handle, on)turns capture on or off. It is off by default, and the world steps bit for bit the same either way.nav_sim_world_drive_telemetry(handle)returns the last captured tick as a dict of(N,)arrays named asdrive_telemetry's fields. The arrays are f32, exceptbinding, which is uint8. U_nav's terms areu_goal…u_terrain. The three books are included.Nonewhile capture is off.drive_telemetry's defaults.pycvc_telemetry::to_dict, builds the dict for both readers.nav_drive_step_material_cuda's telemetry therefore gains the three keys, and they are zero there.test_pycvc_nav_cuda.py's key set now includes them, and it checks they are zero.sim_world.h:drive_telemetry_data()returns those defaults, not null, before the first captured step. The comment now says so; the code is unchanged.Test
test_pycvc_nav_telemetry.py(ctestpycvc_nav_telemetry, run bypycvc-linux / cp312) isNavPotential.SimWorldBooksTheContextWorkOfAGoalChangethrough Python. Four agents tick three times, two of them are retargeted one unit ahead, and the world ticks once more. It checks:context_workis zero on the first captured tick;projection_workis zero without an override ormin_gap;context_workequalspotentialminus last tick'spotential_end, bit for bit;Run locally on Windows (MSVC 14.44, Python 3.11, SWIG 4.4.1): 23 checks pass.
test_pycvc_nav_routes.py(26 checks) andtest_pycvc_nav_belief.pypass unchanged.With this, GRL-SNAM can read live context work once a pycvc release carries it.