You're offline — cached pages and worlds still work
Drishti Innovations logo
Drishti Innovations

Kalman Filter & Sensor Fusion Localization

Comprehensive notes, formulas, and practice questions for Kalman Filter & Sensor Fusion Localization.

Kalman Filter & Sensor Fusion Localization

Kalman Filter Sensor Fusion for Robot Localization

Core Idea

A robot's wheels slip, encoders drift, and sensors return noisy readings. No single source gives the true position. The Kalman Filter is the optimal linear estimator: it combines a motion model and a sensor model, weighted by their respective uncertainties, to produce the best possible estimate of state at every time step.

Key Formula / Algorithm

Predict (state x^\hat{x}, covariance PP, motion model AA, control BB, input uu):

x^=Ax^+Bu,P=APA+Q\hat{x}^- = A\hat{x} + Bu, \qquad P^- = A P A^\top + Q

Update (measurement zz, model HH, Kalman gain KK):

K=PH(HPH+R)1K = P^- H^\top (H P^- H^\top + R)^{-1}

x^=x^+K(zHx^),P=(IKH)P\hat{x} = \hat{x}^- + K(z - H\hat{x}^-), \qquad P = (I - KH)\,P^-

The term (zHx^)(z - H\hat{x}^-) is the innovation — the gap between what the sensor saw and what the model predicted.

How It Works (Step by Step)

  1. Start with an initial estimate x^0\hat{x}_0 and uncertainty P0P_0.
  2. Predict: move the estimate forward using the motion command; PP grows (uncertainty increases).
  3. Observe: receive a landmark measurement zz.
  4. Compute Kalman gain KK: high KK means trust the sensor more; low KK means trust the model more.
  5. Update: correct the estimate toward the measurement; PP shrinks.
  6. Repeat every time step.

Real-World Application

The Kalman filter was originally designed for the Apollo program to navigate to the Moon. Today it runs inside every GPS receiver (fusing satellite range measurements), every drone (fusing accelerometer + barometer), and every phone (fusing gyroscope + magnetometer).

Quick Check

  1. What does it mean when the Kalman gain K0K \approx 0? And when KH1K \approx H^{-1}?
  2. The Kalman filter is "optimal" only under two assumptions. What are they?

Key Takeaways (TL;DR)

  • Core Idea
  • Key Formula / Algorithm
  • How It Works (Step by Step)
  • Real-World Application

Master this topic with Drishti OS

Get unlimited mock tests, AI-powered mentorship, and complete video courses when you join.

Start Free Practice