Repository navigation
fix(metrics): scoring alignment, origin offset timing and GT cropping (ODL-118, ODL-119), scoring_version 2 - #56
Merged
Conversation
…nterpolation (ODL-118, ODL-119) align_trajectories (scoring version 1) took the origin offset from the first GT and first estimate samples, which are at different instants, and cropped GT to the overlap window before interpolating, so edge estimate samples got clamped GT. Now GT is interpolated from the full series onto the estimate times (estimate masked to the GT range) and the offset is taken from that interpolated GT at the first estimate time. SCORING_VERSION = 2 goes into every metrics JSON and summary.json (scoring_version; missing = 1) and is shown in the regression report. It is deliberately not part of the scenario fingerprint. Gates unchanged. Re-scored 46 recorded runs: no verdict changed.
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.
Fixes ODL-118 and ODL-119 (scoring alignment in
localization_metrics.align_trajectories). Approved by Pallab knowing recorded numbers could shift. No gate changed.Bugs
gt[0] - est[0]: the first GT sample and the first estimate sample of the overlap window. These are up to one GT period apart (about 17 ms at 57 Hz). If the vehicle is moving then, every sample carries a speed x gap error. Synthetic results for a perfect estimate:Fix
Scoring version
SCORING_VERSION = 2is written in every metrics JSON.summary.jsonrecordsscoring_version, taken from the metrics files that were written (scripts/scoring_version.py). A missing field means v1, and mixed versions report the older one.scoring_version=per run, andreport.jsonhasscoring_versions. This is wired intorun-vio-stress.shandrun-vio-baseline.sh.scoring_versionmatch.Re-score of recorded flights (no new flights for this)
46 runs were re-scored from their bags with both versions, using the same airborne mask and evo
-a:The v1 re-score reproduces every recorded number exactly. On real flights the effect is almost nil:
The gated metric is VIO Umeyama xy (EKF2 Umeyama xy for mc_gps). "(ng)" marks a non-gating scenario.
Verification
test_scoring_alignment.py): 366 passed.scoring_versionlands insummary.jsonand not in the fingerprint.regression_20261124_153609(mc_gps + baseline on this branch, old world): both PASS.summary.jsonfiles and all metrics JSONs carryscoring_version: 2.scoring_version=2andreport.jsonhasscoring_versions.4bb3131b…,704df735…).Notes
docs/localization.md(the Timestamp Alignment section here vs the fingerprint section there) and CHANGELOG (Fixed vs Changed).