Repository navigation
Make Ransac_4Dof real RANSAC and init GPS only on its inliers - #133
Open
woosik2510 wants to merge 1 commit into
Open
woosik2510 wants to merge 1 commit into
woosik2510 wants to merge 1 commit into
Conversation
Unit Test Results
10/10 test binaries passed, 148/148 cases |
Unit Test Code Coverage
Overall 37.0% (3733/10083) across Full HTML report is in the |
Simulation regression report - master vs PR8 seeds/config, sim full
stereo_gps
vicon
vicon_lidar
vio_stereo
wheel_2d_ang
wheel_2d_cen
wheel_2d_lin
wheel_3d_ang
wheel_3d_cen
wheel_3d_lin
|
Calibration Convergence Report10 seeds · sim
Per-parameter details✅ Camera Time Offset
✅ Camera Extrinsic (IMU↔Cam)
✅ Camera Intrinsics
✅ GPS Time Offset
✅ GPS Extrinsic (IMU↔GPS)
✅ GPS World-to-ENU Init (one-shot)
✅ LiDAR Time Offset
✅ LiDAR Extrinsic (IMU↔LiDAR)
✅ Vicon Time Offset
✅ Vicon Extrinsic (IMU↔Vicon)
✅ Wheel Time Offset
✅ Wheel Extrinsic (IMU↔Wheel)
✅ Wheel Intrinsics (Wheel2DAng)
✅ Wheel Intrinsics (Wheel3DAng)
|
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.












Bring
mins/src/update/gps/under unit test, and straighten out what the tests expose.solve_quartic,solve_QCQP,compute_RBtoA1Dof,compute_4DofAlign_4Dofout of the hypothesis loopw = (A^T b).normalized(), deletesolve_quarticclass MathGPS(statics only) to free functions in a namespaceRansac_4Dofactually RANSAC, tested against those outliersSummary
Ransac_4Dofwasn't RANSAC. Every hypothesis fit all the fixes, the rng was re-seeded on every call so every shuffle was the same, the call site asked for 1 hypothesis, and the best fit was never refit on its inliers. So one bad fix in the init window went straight into T_WtoE.Now:
try_initializationbuilds the init system from the inliers only. Rejected fixes still get dropped fromdata_stack, so they don't come back through the update eithercount_inliersandget_random_subsetare replaced byfind_inliers.Verification
gps_wtoesim scenario from calibration.yml (rotated true T_WtoE, GPS init from about 6 fixes), 20 seeds, with #116'sgps_outlierat rate 0.1, magnitude 50 m. Error of the T_WtoE init:On master, 7 of 20 seeds had an outlier in the init window, and each of those was off by 7 to 126 deg and 7 to 52 m. With this PR all 7 drop their outliers (1 of 6 fixes five times, 2 of 6 once, 5 of 11 once) and land with the clean runs. With outliers off nothing is rejected and the numbers only move in the last digit.
test_MathGPS21/21: newRansacRecoversTheTransformDespiteOutliers(two 50 m outliers,Align_4Dofends up over 1 m off, RANSAC is exact and flags exactly those two). The no-inlier test becameRansacReportsFailureWhenMostCorrespondencesAreOutliers(2 of 6 bad passes, 3 of 6 fails).test_UpdaterGPS24/24: newLeavesAnOutlierFixOutAndStillDropsItFromTheQueue. It fails ifconstruct_init_linsysis handed all the fixes instead of the inliers.KAIST not run locally. The tighter threshold could leave real KAIST fixes out of the init, so ICGLW may move. IC, ICW, IL and ILW have no GPS and should be bit-identical.
Chain
Chains off PR 6/7 (#116). Last in the chain.
Not in this PR: the GPS update chi2 gate (still 9999, since a plain gate locks out after a few rejections) and the x10 noise inflation at init.