Skip to content

docs(NAV_TRAINING): call the Jolt rollout's trainer from Python - #980

Merged
transfix merged 1 commit into
masterfrom
docs/nav-training-jolt
Nov 2, 2026
Merged

transfix merged 1 commit into
masterfrom
docs/nav-training-jolt

Conversation

@transfix

@transfix transfix commented Nov 2, 2026

Copy link
Copy Markdown
Owner

What

The "Training on Jolt" section's Python entry (docs/NAV_TRAINING.md, "From Python") named pycvc.nav_train_coef_mlp_jolt with its arguments elided:

nav_train_coef_mlp_jolt(occ, ..., vehicle, veh_L, veh_a_max, veh_a_lat_max, calib_agents, calib_steps, out_path)

The binding is positional and has 27 arguments, so there was no way to call it from the doc. The section now gives:

  • the calibration dict's keys;
  • the argument order (the scene as occupancy_scene takes it, then train_config's fields, then the vehicle and the calibration);
  • a runnable example: a 96 m grid of four blocks, and the Humvee at 0.106 units per metre with its wheelbase and limits in normalized units;
  • what the per-agent scene copies cost;
  • GRL-SNAM's keyword wrappers.

Nothing else in the section was wrong; this fills the one gap.

Verified

The example ran against a pycvc built from master (Windows, MSVC 14.44 Release, Jolt), with a short run (3 steps, n 32). It took 4.5 s, wrote a 19 KB .cvcnav, and returned exactly the keys the doc lists.

Context: GRL-SNAM's plant work (grl-snam capture --plant, coef-train --rollout jolt) and #979, which binds dyn_bike_plant.

"Training on Jolt"'s pycvc entry named nav_train_coef_mlp_jolt with its
arguments elided, so the section had no way to call it from Python. It now
gives the calibration dict's keys, the argument order, and a runnable example
(a 96 m grid of four blocks, the Humvee at 0.106 units per metre with its
wheelbase and limits in normalized units), what the per-agent scene copies cost,
and GRL-SNAM's wrappers. The example was run (3 steps, n 32) against a pycvc
built from master.
@transfix
transfix enabled auto-merge (squash) November 2, 2026 23:21
@transfix
transfix merged commit 73213d7 into master Nov 2, 2026
24 of 27 checks passed
@transfix
transfix deleted the docs/nav-training-jolt branch November 2, 2026 23:24
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