Repository navigation
Belief-material controller, its .cvcnm contract and Austin evaluation tooling - #141
Merged
Merged
Conversation
…he .cvcnm The controller feeds robot-relative tokens divided by 20 m, unlike train_coef_energy's absolute metres, and nothing in the file said so. A BeliefMaterialContract (frame, scale, barrier and gate constants, geometry d_hat) now goes into the .cvcnm meta; from_cvcnm refuses a file without one, and decide/rollout/live_material_kwargs refuse a runtime built with other constants. load_cvcnm/save_cvcnm carry meta through, and CoefEnergyNetMaterial stores its patch_size.
…t was trained Each sample started at the velocity that reaches its target, so a force-free coast hit it and the trajectory loss penalized every force. Start from the teacher's arrival velocity instead. Turn the shared lambda regularizer off by default (it pulls toward lambda_max/2), take the barrier and gate constants from the contract in both training and evaluation, and report the trained lambdas' spread. Adds an end-to-end routes -> train -> evaluate test.
The archive hash can't be checked after install, so check the sha256 of every mask the material experiments read and refuse a mismatch; record the hashes in route manifests, training and evaluation reports.
…rpus Endpoint separation let test routes cross training corridors. Routes in different splits now keep their whole direct segments at least the sensor range (60 m) apart, enforced by the generator and the validator. Route ids start at 500 so they don't reuse #106's 400s. routes.json is regenerated from the pinned bundle and reproduces byte for byte.
…the goal ray_profile reuses the witness gate's ray walk (one cell per step, the same rounding and bounds rule, anisotropic rasters handled) with an explicit clearance, default 0. The scorer returns the goal when it is closer than a usable ray instead of stepping past it, and its fallback reports when material closed every ray.
Merged
transfix
added a commit
that referenced
this pull request
Nov 8, 2026
Two PRs since v0.3.0: - The material trainers default to semi-implicit Euler, as libcvc #981 (#160). MaterialTrainer, MaterialTrainerTorch and the torch geom_rollout_min_clear take semi_implicit=True by default; semi_implicit=False keeps explicit Euler. A pycvc older than libcvc #596 refuses the new default and says to pass semi_implicit=False. - The belief-material controller, its .cvcnm contract and the Austin evaluation tooling (#141): BeliefMaterialSensor and BeliefMaterialController, training batches for both MaterialTrainer front ends, the material waypoint scorer, route manifests and four-arm evaluation, and `grl-snam austin-material-routes`, `austin-material-train` and `austin-material-evaluate`. It also fixes material_nav's warm start from a legacy CoefEnergyNet checkpoint, which left the obstacle encoder random. No packaging changes: the three cvcpkg columns move to upstream_version 0.3.1 and its dist-info path, and cvc_revision stays 1 for the new upstream version.
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.
Summary
A public, range-limited belief-material controller for GRL-SNAM. Samyak wrote it as the follow-up to the CVC-DBG/grl-snam-dbg#106 review, and Joe finished it for merge.
It is built on the existing material stack rather than parallel copies:
BeliefGridmaterial trackingMaterialRuntimematerial_patch_beliefCoefEnergyNetMaterial(risk_channels=3)and.cvcnmv2integrate_surrogate_materialWhat it adds
BeliefMaterialSensor: ray-cast sensing into aBeliefGrid, keeping a beliefMaterialRuntimecurrent.BeliefMaterialController: builds the model's inputs from observed geometry and the belief patch, gateslam_soft, and runs rollouts and live kwargs through the shared integrator.belief_material_training.build_belief_material_training_batchbuilds batches for bothMaterialTrainerfront ends.material_waypoint), whose rays useMaterialRuntime.ray_profile.material_routes).fixed_lambda,force_only,waypoint,learned) with paired route statistics and route-cluster bootstrap CIs (material_evaluation).grl-snam austin-material-routes,austin-material-trainandaustin-material-evaluate.experiments/austin_material/routes.json.material_nav.load_geometry_weightsnow maps a legacyCoefEnergyNetobs_enc.mlp.*checkpoint onto the material net. Before, warm starts left the obstacle encoder random without warning.Changes made while finishing the review
train_coef_energyandeval_coef_energyfeed absolute metres instead.BeliefMaterialContractnow goes into the.cvcnmmeta. It records the frame, the scale, the hazard barrier'sk_sharp/d_hat_sdf_m, the gate trigger and the geometryd_hat.from_cvcnmrefuses a file without a contract, anddecide,rolloutandlive_material_kwargsrefuse a runtime built with other constants.metaas an opaque string.λ_max / 2.training.jsonreports the trained λ heads' spread next to the fixed values.cy-pca/scene-austin-south1.0.0+cvc.3 file hashes. The hashes are recorded in the manifest and in the training and evaluation reports.ray_profileuses the witness gate's own ray walk, which also handles anisotropic rasters..cvcnm→ four-arm evaluation smoke test (about 8 s).docs/MATERIAL_NAV.md.Validation status: no performance claim
The results table in the first version of this description has been removed. It could not be reproduced:
A smoke run on the pinned Austin bundle shows why the λ heads have nothing to learn yet. It used a random geometry backbone, so it checks plumbing only. With the current defaults on Austin's 15 m grid:
gate_active_fraction0.0, since the 0.30 trigger equals foliage risk);Reporting a result needs three things:
The training stage runs on the torch path only for now, because the native
MaterialTrainerhas no way to freeze the geometry backbone. Those are follow-ups. This PR lands the controller, the contract and the evaluation machinery.