Find a way through a room
Knowing where to go is no use until the robot can get there without hitting a wall.
Explore footprints, routes, and LiDAR in the browser, then map a simulated room and navigate with ROS 2 and Nav2.
You need: Browser. The last lesson needs Ubuntu with ROS 2
What you will build
A route that fits the robot, a map built from scans, and a navigation goal completed with Nav2.
Beginner·6 lessons·29 min of reading
About lesson formats and timing
Reading time excludes setup and exercises. Guided walkthroughs include steps and expected results; exercise briefs assume their prerequisites are already in place.
Your learning path
Each activity builds on the last. Start at the beginning, or jump back into an experiment.
- Lesson 01
Give the robot enough room to fit
A route must leave room for the whole robot, not only its center. Making the robot wider rules out the narrow doorway and forces a detour.
Browser walkthrough · Beginner
Try activity 1 - Lesson 02
Find a shortest route through free cells
The planner searches free cells for a route with the fewest moves. Blocking a doorway changes which routes exist and how far the robot must travel.
Browser walkthrough · Beginner
Try activity 2 - Lesson 03
Keep more than one possible robot position
Two places in a corridor can produce the same distance reading. Compare the possible positions to see what a sensor tells the robot, and what remains unknown.
Browser walkthrough · Beginner
Try activity 3 - Lesson 04
Replan from where the robot is now
An obstacle can invalidate a route after the robot starts moving. Replanning finds a detour from its current position, or stops it when the goal becomes unreachable.
Browser walkthrough · Beginner
Try activity 4 - Lesson 05
How LiDAR sees a room
Each laser ray measures the first surface it meets. Move the scanner to reveal hidden faces, then compare a floor map with 3D voxels.
Browser walkthrough · Beginner
Try activity 5 - Lesson 06
Map a room and navigate to a goal
Run Gazebo, build a map with SLAM Toolbox, and send a real Nav2 navigation goal.
Guided walkthrough · Intermediate
Try activity 6