Humanoid State Estimation ← back to dashboard

▍ Stage 2 — Front-End Sharpening

essential-matrix refitIRLS on all inliershonest 2 mradgyro-gated, IMU-independent

The VIO's vision measurement is a camera relative-rotation. It sat at ~8 mrad (7.69 median) — the recurring limiter of the whole project (the fusion only won when it over-trusted vision). A diagnosis found the estimator, not the feature tracks, was the bottleneck; a refit sharpened it to ~2 mrad and made the VIO win honest.

The diagnosis — the tracks were fine, the solver wasn't

findEssentialMat + recoverPose returns the 5-point minimal model: RANSAC picks the best 5-point sample, and the many inliers vote for it but never enter the fit. So the rotation error is set by 5 noisy pixels no matter how many features agree. Proof: on clean geometry with 0.4 px synthetic noise the shipped pipeline still produced 6.0 mrad — ~27× the √N correspondence floor of 0.22 mrad; an IRLS refit on the same points gave 1.3 mrad.

The fix — refit on all inliers, gyro-gated
Left: the minimal-model error (7.69 mrad median, 4.03 bias) vs the IRLS refit (2.06, 0.36) — the refit recovers the √N averaging. Right: at the honest σ_vis = 2 mrad, VIO beats the ESKF on every seed.
Left: the minimal-model error (7.69 mrad median, 4.03 bias) vs the IRLS refit (2.06, 0.36) — the refit recovers the √N averaging. Right: at the honest σ_vis = 2 mrad, VIO beats the ESKF on every seed.
The result — honest, and robust
2.06 mrad
money-gate median
was 7.69 · bias 4.03 → 0.36
0.15%
VIO drift (5-seed median)
vs 0.49% ESKF
every seed
VIO beats ESKF
drift + b_g,z
1.4e-10
fusion FD-check
untouched, re-verified
TakeawayThe recurring limiter is gone. Because the front-end is now genuinely ~2 mrad, the fusion’s σ_vis = 2 mrad is honest — it bounds the real measurement rather than under-stating it — so VIO wins outright with a calibrated covariance. The fusion filter and its finite-difference-verified Jacobians were never touched: a front-end-only change feeding the same measurement interface.