Course for beginners · 31 lessons · 5 labs · start here
Robot Foundations
Understand how robots sense, move, localize, plan, and control.
- Sense
- Localize
- Plan
- Control
- Act
- Sense again
All 31 lessons and all 5 labs are open.
Start with lesson 1: What Is a Robot?Go straight to the labs
How this course works
Who it is for. Anyone who has never studied robotics. You need school arithmetic and nothing else: no programming for the lessons, and the labs that use Python give you starter code. Each new idea (a coordinate, an angle in radians, a time step) is explained where it first appears.
What a lesson looks like. About ten minutes. One idea in plain words, the words to know, an example worked with small numbers, something to try with a pencil, the mistakes beginners make, and three questions to check yourself.
One robot. The course follows Pip, a small two-wheeled robot that fetches parts across a workshop floor. Each module gives Pip one more ability, and each ends by naming the thing it took for granted, which the next module then removes.
Lessons, then a lab. Five modules end in a lab where you drive and program a simulated robot in your browser. If you prefer to learn by doing, start with the labs and come back to a lesson when something is unclear.
The five labs
In order. Each takes 15 to 45 minutes and saves your progress in this browser.
The course, module by module
Stage 1: Meet the robot What a robot is, what it is made of, and the few numbers used to describe it. No code.
Module 1 · Open
What Is a Robot?
What makes a machine a robot, and what is inside one?
A robot is a machine that senses, decides and acts, again and again. This module names its parts, the loop they run, and the kinds of robot you will meet.
Before this module: Nothing. Curiosity is enough.
Theory (4)
- 1.1What Is a Robot?Lesson
- 1.2The Parts of a RobotLesson
- 1.3The Robot Loop: Sense, Think, ActLesson
- 1.4Kinds of Robots and the Problems They ShareLesson
Labs (0)
This module has no lab.
What this module takes for granted: Everything is in words. Module 2 adds the numbers.
Where this goes on the site
- What Is Physical AI, and Why Is It Hard?: The same loop, for robots that follow spoken instructions.
- Robotics Systems Engineering: How engineers choose and connect the parts of a real robot.
Module 2 · Open
Describing a Robot with Numbers
How do you write down where a robot is and how it is moving?
Position, heading, speed and time step: four ideas, written with a handful of numbers, that every later module uses.
Before this module: Module 1. Arithmetic with decimals. Angles in degrees; radians are introduced here.
Theory (4)
- 2.1Units, Position and CoordinatesLesson
- 2.2Angles, Heading and PoseLesson
- 2.3Speed, Time and Small StepsLesson
- 2.4Two Points of View: the Robot and the WorldLesson
Labs (0)
This module has no lab.
What this module takes for granted: The robot goes exactly where the numbers say. Module 3 shows why a real one does not.
Where this goes on the site
- Vectors and Coordinates: Positions as vectors, with the algebra.
- Coordinate Frames: Frames done properly, in two and three dimensions.
Stage 2: Move and sense How commands become motion, and how measurements come back.
Module 3 · Open
Making a Robot Move
How does a number in a program become motion on the floor?
Motors turn wheels, wheels move the body. You will see how two wheel speeds steer a robot, why sending a command is not the same as arriving, and how feedback fixes that.
Before this module: Module 2.
Theory (4)
- 3.1Motors, Wheels and Other ActuatorsLesson
- 3.2How a Two-Wheeled Robot DrivesLesson
- 3.3Commands Are Not MotionLesson
- 3.4Feedback: Measure, Compare, CorrectLesson
Labs (1)
- Lab 1Make Your First Robot MoveBrowser lab · about 25–35 minutes · after lesson 3.4
What this module takes for granted: The robot is told its own position exactly. Module 4 asks where that knowledge comes from.
Where this goes on the site
- Tune a PID Controller: The feedback of this module with two more terms.
- Fix the Oscillating Robot: What happens when the correction is too strong.
- Robot Motion Models for Navigation: Other ways robots drive: car-like, omnidirectional.
Module 4 · Open
Sensing the World
How does a robot find out anything about the world, or about itself?
A sensor turns something physical into a number, never perfectly. This module sorts sensors into those that look outward and those that look inward, and shows why robots carry several.
Before this module: Modules 2 and 3.
Theory (4)
Labs (1)
- Lab 2Teach the Robot to SenseBrowser lab · about 15–20 minutes · after lesson 4.3
What this module takes for granted: Sensor readings are used one at a time. Modules 6 and 7 build something lasting from them.
Where this goes on the site
- Understand & Visualize a Point Cloud: A real LiDAR scan, point by point, in Python.
- Perception: Turning camera images and LiDAR scans into objects.
- Why Robots Need Probability: Noise treated with the right mathematics.
Stage 3: Get somewhere Reach a goal, then remove the two things that were given for free: the map and the position.
Module 5 · Open
Reaching a Goal
How does a robot get from here to there without hitting anything?
A goal, a path to it, and a way of following the path. The module joins sensing, planning and control into one working robot for the first time.
Before this module: Modules 3 and 4.
Theory (4)
- 5.1Goals, Paths and PlansLesson
- 5.2Finding a Path on a GridLesson
- 5.3Following a PathLesson
- 5.4When the World Changes: Obstacles and ReplanningLesson
Labs (1)
- Lab 3Make the Robot Reach the GoalBrowser lab · about 20–30 minutes · after lesson 5.3
What this module takes for granted: The robot is handed a finished map and its true position. Module 6 removes the first gift, module 7 the second.
Where this goes on the site
- Navigation: Sixty lessons on planning and driving, from costmaps to fleets.
- A* Search with a Heuristic: The grid search of this module, made fast.
Module 6 · Open
Building a Map
Where does the map come from?
A map is the robot's memory of what it has sensed. You will build the simplest useful kind, a grid of free, occupied and unknown cells, and find out what it depends on.
Before this module: Modules 4 and 5.
Theory (3)
- 6.1What Is a Map?Lesson
- 6.2Occupancy Grids: Free, Occupied, UnknownLesson
- 6.3A Map Needs a PoseLesson
Labs (1)
- Lab 4Build the Robot's WorldBrowser lab · about 25–35 minutes · after lesson 6.3
What this module takes for granted: The map is drawn from a position that is assumed correct. Module 7 asks how the robot knows it.
Where this goes on the site
- Localization & SLAM: Mapping and localization together, the full problem.
- Occupancy Grids for Planning: How a planner reads the grid you built.
Module 7 · Open
Knowing Where You Are
How does a robot know where it is?
Counting wheel turns gives a position that slowly goes wrong. Seeing something whose place is known pulls it back. Predict, then correct: the idea behind every estimator in robotics.
Before this module: Modules 3, 4 and 6.
Theory (4)
- 7.1Dead Reckoning: Position from Counting Wheel TurnsLesson
- 7.2Why Drift GrowsLesson
- 7.3Landmarks: Correcting with Something You RecogniseLesson
- 7.4Predict, Then CorrectLesson
Labs (1)
- Lab 5Where Am I?Browser lab · about 35–45 minutes · after lesson 7.4
What this module takes for granted: Each part has been studied alone. Module 8 runs them together.
Where this goes on the site
- Localization & SLAM: Localization with real sensors and real maps.
- Probability for Robotics: Predict and correct, derived: Bayes, Kalman and particle filters.
Stage 4: The whole robot How the parts run together as one system, and which track to take next.
Module 8 · Open
The Robot as a System, and Your Next Step
How do the parts run together, and what should I learn next?
Many small programs passing messages, tested in simulation before they touch hardware, built to fail safely. Then a map of this site, so you can choose your track.
Before this module: Modules 1 to 7.
Theory (4)
- 8.1Robot Software: Small Programs That TalkLesson
- 8.2Simulation and Real RobotsLesson
- 8.3When Things Go Wrong: Failing SafelyLesson
- 8.4Where to Go NextLesson
Labs (0)
This module has no lab.
Where this goes on the site
- The Navigation Stack at a Glance: The programs of a real mobile robot and the messages between them.
- Build a CBF Safety Filter: A safety layer that edits unsafe commands.
- Linear Algebra for Robotics: The mathematics the specialised tracks use.
After the foundations, go deeper in the specialised tracks, starting with the Control labs.