Home▸Transport & Urbanism▸GPS/IMU Sensor Fusion: Vehicle Localization Drift

GPS/IMU Sensor Fusion 2D: Vehicle Localization Drift

2D Kalman-filter simulator: watch a vehicle's raw IMU dead-reckoning drift off its true path and a held GPS-only fix lag behind, while a fused GPS+IMU estimate stays locked on — with a live position-error-vs-time chart.

Transport & Urbanism2DAdvanced60 FPS📱 Mobile-adapted⇄ 3D version
GPS/IMU Sensor Fusion: Vehicle Localization Drift ↗ Open standalone

This is the 2D top-down counterpart to the 3D GPS/IMU sensor-fusion simulator, running the exact same predict/update Kalman math on a flat canvas so the numbers are easy to read at a glance. A vehicle drives a closed loop while three independent position estimates race each other: a raw IMU dead-reckoning trail that integrates noisy acceleration and drifts steadily off course, a GPS-only trail that holds the last noisy fix until the next one arrives, and a Kalman-fused estimate that combines both to track the true path far more closely than either sensor alone. A live error-vs-time chart plots all three continuously, and a simulated tunnel cuts GPS entirely so you can watch the fused estimate's uncertainty inflate during the blackout and collapse the instant a fix returns.

⚙ Under the hood

Drive a vehicle and watch how GPS and IMU data are fused to correct drift, with options to adjust sensor noise.

kalman filtersensor fusionGPSIMUautonomous vehicleslocalization

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)