Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Sensor Fusion for Robotics: IMU, Kalman Filters & EKF
Rating: 3.1 out of 5(4 ratings)
25 students

Sensor Fusion for Robotics: IMU, Kalman Filters & EKF

Build a Kalman filter and an EKF from scratch in Python, fuse IMU, GPS and encoders, and tune a real estimator.
Last updated 11/2026
English
English [Auto],

What you'll learn

  • Build a Kalman filter from scratch in Python, deriving every line rather than importing a library
  • Extend it to an EKF for nonlinear motion and range bearing measurements, with the Jacobian derived by hand
  • Fuse IMU, GPS, wheel encoders and landmark fixes arriving at different rates and different latencies
  • Tell the three sensor faults apart: noise averages away, bias does not, drift grows with time
  • Read a covariance matrix as a shape, and know what its ellipse says about where the robot is blind
  • Tune Q and R deliberately, and recognise the distinct failure signature each one produces when wrong
  • Survive a GPS dropout and keep an honest uncertainty instead of a confident wrong answer
  • Reject multipath outliers with innovation gating, and measure the good fixes it costs you
  • Diagnose a diverging filter: unwrapped angles, starved process noise, and a mismatched sensor model
  • Judge an estimator by consistency, not just error, using NIS and covariance coverage

Course content

10 sections • 89 lectures • 8h 16m total length
  • 1.1 Welcome to Sensor Fusion for Robotics5:07
  • 1.2 What Sensor Fusion Actually Solves5:32
  • 1.3 Why Every Sensor Lies Differently5:15
  • 1.4 The Sensor Fusion Idea5:11
  • 1.5 Our Course Development Environment5:26
  • 1.6 Set Up Python and VS Code5:20
  • 1.7 Course Handoff, Download Everything You Need5:16

Requirements

  • Python you can read and write: functions, loops, numpy arrays, and the ability to read a traceback
  • School level algebra and comfort with the idea of a matrix; the statistics is taught from scratch
  • A laptop of any age. No GPU, no CUDA, no ROS, no simulator and no cloud account
  • numpy and matplotlib, which the first section installs with you
  • No prior Kalman filter knowledge at all. That is the point of the course

Description

This course contains the use of artificial intelligence.

Every robot has the same problem. The IMU updates a hundred times a second and drifts away within a minute. The GPS knows roughly where you are and jumps around while it tells you. The wheel encoders are smooth and beautifully precise right up until a wheel slips. Not one of them is trustworthy on its own, and yet the robot has to commit to a single answer about where it is, several times a second, forever.

Sensor fusion is how that answer gets made. This course builds it from the ground up: no library that hides the maths, no import KalmanFilter that leaves you unable to debug it at three in the morning when the robot is drifting into a wall.

What you actually do

You start by measuring how each sensor lies, because bias, noise and drift are three different faults that need three different answers. You watch a tiny accelerometer error become a ninety metre position error through double integration, which is the single clearest reason an IMU cannot navigate alone.

Then you build the filter. One dimension first, on paper and in code, until the Kalman gain stops being a formula and becomes something you can predict the value of before you run it. Then two dimensions, then a full robot state, then the Extended Kalman Filter for the nonlinear case, derived rather than quoted.

Along the way you handle the things that actually break real estimators: a GPS dropout in a tunnel, a multipath reflection eighty metres off, sensors arriving at four different rates with four different latencies, and the slow divergence that happens when Q and R are wrong in a way no single reading reveals.

What makes this different

Twenty six interactive browser labs, one per idea. Drag two Gaussians together and watch the posterior come out narrower than both. Throw a breaker and kill a sensor mid mission. Type a covariance matrix and watch its ellipse appear, with every step of the derivation shown. They run offline in any browser, with no install.

The code is genuine code along work in VS Code, built up line by line, with one real mistake introduced and debugged in the coding lectures because that is how you learn to read a filter that is misbehaving.

The capstone

Ninety seconds of recorded mission from a yard robot: 5 Hz GPS with a fifteen second dropout, encoders reading two percent long, a gyro with a constant bias, and multipath fixes scattered through it. You build an estimator that survives all of it and meets a written acceptance spec: under 3 m RMSE, under 15 m worst case, and at least 90 percent of its innovations inside the gate its own covariance claims. That last check is the one that matters, and it is the one most courses never mention.

What you need

Python, numpy and matplotlib. That is the entire stack. It runs on a laptop from 2017 with no GPU, no CUDA, no ROS and no simulator, because the ideas here do not need any of that and hiding them behind an install is how people end up copying equations they cannot debug.

You finish able to write an estimator for a robot you have not met yet, and to look at one that is misbehaving and say why.

Who this course is for:

  • Robotics engineers who can call a filter library but could not debug one that is drifting
  • Students and self taught developers who have read the Kalman equations and want to understand them
  • Drone, rover and AMR builders whose robot knows where it is until it suddenly does not
  • Computer vision and SLAM people who need the state estimation layer underneath their front end
  • Anyone who has been told to just tune Q and R and wants to know what they are actually tuning