Skip to content

nav_stats: the rest of drive_telemetry in the drive ledger, and a pinned count - #784

Merged
transfix merged 1 commit into
masterfrom
feat/nav-drive-ledger
Oct 24, 2026
Merged

transfix merged 1 commit into
masterfrom
feat/nav-drive-ledger

Conversation

@transfix

Copy link
Copy Markdown
Owner

The nav ledger's drive feed (nav_samplers::drive, drive_sample) carried the CoefMLP coefficients, grip, material risk, the external force, steer and the barrier binding. This adds the rest of drive_telemetry that a training run needs:

  • drive_sample gains lam_soft, lam_hard and curvature. They come after binding, so positional initializers written for the earlier fields keep their meaning.
  • New per-vehicle fields:
    • lam_soft_mean, lam_hard_mean: the material weights the drive used.
    • curvature_abs_mean, curvature_abs_max (1/m).
    • binding_stopped_steps: ticks the barrier was active while the vehicle stood still (under speed_eps_mps). That is a vehicle pinned against what nav takes for a wall, sent on by its route and held back by the barrier.
  • New scorecard fields: mean_lam_soft, mean_lam_hard, mean_curvature_abs and mean_binding_stopped_share, over the runs that carried a drive feed.

Motivation: in cvcdbg's Humvee convoy on Austin, the lead sat pinned for the last 90 s of a 4-minute run. Its barrier clearance was negative and the barrier was binding at a standstill, against infeasible-slope cells the plant could physically drive. The ledger showed binding_steps but not that the vehicle was stopped while binding, so the stall didn't stand out. binding_stopped_steps makes it a number to train and select on.

Tests: DriveTelemetryWeightsCurvatureAndPinned (new); the snapshot round-trip compares the new fields. PlantLedgerUntrackedLeavesTheJsonUnchanged now anchors on the scorecard's new last key. nav_stats_test passes 14/14 locally (Windows, RelWithDebInfo). Docs: NAV_STATS.md.

Downstream: cvcdbg's demo and arrival harness map drive_telemetry to drive_sample. They'll fill the three new fields once this is in a libcvc release; until then the fields keep their 0 defaults. A Python twin that mirrors the drive ledger should add them in lockstep.

…ned count

The drive ledger (nav_samplers::drive) carried the CoefMLP coefficients, grip,
material risk, the external force, steer and the barrier binding. It now also
carries the material weights the drive used (lam_soft, lam_hard) and its
curvature: drive_sample gains the three fields after binding, so positional
initializers written for the earlier fields keep their meaning.

Per vehicle: lam_soft_mean, lam_hard_mean, curvature_abs_mean/_max, and
binding_stopped_steps, the ticks the barrier was active while the vehicle
stood still (under speed_eps_mps). That is the signature of a vehicle its
route sends on and the barrier holds back, pinned against what nav takes for a
wall. The scorecard gains mean_lam_soft, mean_lam_hard, mean_curvature_abs and
mean_binding_stopped_share over the runs that carried a drive feed.
@transfix
transfix enabled auto-merge (squash) October 24, 2026 03:49
@transfix
transfix merged commit 126f140 into master Oct 24, 2026
24 checks passed
transfix added a commit that referenced this pull request Oct 24, 2026
Carries the master merge (#776 squash, #774, #775, #777, #780, #782,
#784, #785) up the H1 stack.
@transfix
transfix deleted the feat/nav-drive-ledger branch October 29, 2026 20:52
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