Repository navigation
nav_stats: the rest of drive_telemetry in the drive ledger, and a pinned count - #784
Merged
Merged
Conversation
…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.
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.
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 ofdrive_telemetrythat a training run needs:drive_samplegainslam_soft,lam_hardandcurvature. They come afterbinding, so positional initializers written for the earlier fields keep their meaning.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 (underspeed_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.mean_lam_soft,mean_lam_hard,mean_curvature_absandmean_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_stepsbut not that the vehicle was stopped while binding, so the stall didn't stand out.binding_stopped_stepsmakes it a number to train and select on.Tests:
DriveTelemetryWeightsCurvatureAndPinned(new); the snapshot round-trip compares the new fields.PlantLedgerUntrackedLeavesTheJsonUnchangednow 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_telemetrytodrive_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.