← Labs

Odometry and delayed vision lab

Compare a drifting estimate with timestamped observations.

Predict, then investigate

  1. Predict how constant odometry bias changes position error over ten seconds.
  2. Compare the uncorrected and corrected estimates. Change the vision delay and inspect capture and delivery timestamps.
  3. Challenge: compare correction strengths of zero and one. Why does a stronger correction not guarantee a better result when observations contain error?

The path, bias and observation errors are deterministic and synthetic. This is a teaching model, not a physical simulator, a Kalman filter, or WPILib's pose estimator. It does not model heading error, wheel slip, cameras, tag visibility, changing uncertainty, or field boundaries.

Inputs

Paths and final errors

Blue: truth; orange: odometry; green: corrected estimate. The chart rescales to fit all paths.

How this toy correction works

Every 0.1 s, truth moves along a curved path and odometry adds a fixed x/y bias. Each second an observation is generated from truth with a small deterministic error. It arrives after the selected delay with its capture timestamp. At delivery, the model compares that observation to the stored estimate at capture time, applies a fraction of the difference there, and shifts stored estimates from capture through delivery by the same amount. It then continues integrating. The displayed corrected history is revised when an observation arrives.

This deliberately simple correction shows why capture and arrival times differ; real pose estimators use more sophisticated models and uncertainty. Synthetic error changes can make correction better or worse. Pending observations beyond the ten-second run are not applied.

WPILib: Pose estimators