Sampling and graph-search motion planning
iRobot Create
Compares four ways to plan a collision-free route for an iRobot Create.
- Company
University of Utah- Role
- Researcher
- Domains
- Research
- AI/ML

- Algorithms implemented:
- 4
- iRobot execution:
- RRT + Hardware
On this page
Tools & methods
- MATLAB
- RRT
- PRM
- A*
- Dijkstra
- Configuration space
- Collision detection
The problem
A robot needs to find a safe path through a space filled with obstacles, without bumping into anything.
But the straightforward approaches (search every possible position) get impossibly slow in larger spaces. The question was: which planning method is actually fast enough to work, and would it hold up on real hardware in a real room?
The challenge
Planning collision-free paths for a differential-drive robot requires reasoning in configuration space (C-space), not just Euclidean space: the robot's orientation is a third degree of freedom, and circular robot geometry must be inflated into C-space obstacles. Grid-based methods (Dijkstra, A*) are complete but scale poorly; sampling-based methods (PRM, RRT) scale better but are probabilistically complete. The final assignment required deploying the best planner onto a physical iRobot Create navigating a real room mapped from camera images.
System design
Dijkstra and A* operate on a weighted graph derived from a bitmap occupancy map: pixels become nodes, edges connect 8-connected neighbors, and A* uses Euclidean distance as the heuristic. PRM samples random free-space configurations, connects nearby nodes via a straight-line collision check, and queries the resulting roadmap with Dijkstra.
The RRT implementation builds a tree by sampling random configs, finding the nearest tree vertex, propagating differential-drive kinematics (xDot, yDot, dirDot from left/right wheel velocities), and checking for map collision at each step. The final path is extracted via Dijkstra on the RRT adjacency matrix and executed on the iRobot Create via a MATLAB serial-port toolbox, with hardware playback scripts.
Results
All four planners successfully found collision-free paths in simulated bitmap environments. Dijkstra and A* produced optimal paths but were slow on large maps (>10s). RRT found paths in 2–5 seconds with up to 2000 tree vertices. The final assignment deployed RRT on the physical iRobot Create: the robot navigated a real room, executing the planned path via wheel velocity commands over Bluetooth serial. Path execution videos were recorded (LongPath.mp4, ShortPath.mp4).
Gallery
Select an image to open the viewer. Choose Actual size for images that offer it.
More from University of Utah

Perch landing
Estimates a perch's distance and orientation from a single camera.
Next case study

RC glider
Shows how a hand-built RC glider steers with two servos and one brushless motor.

Quadrotor
Uses camera input to guide a quadrotor onto a perch when GPS is unavailable.

Quanser
Coordinates two robot arms so they can move a shared load.

Micro-quadrotor
Shows how adaptive control helps a simulated quadrotor recover from disturbances with a swinging load.
7 other case studies from University of Utah, 5 shown here.
All University of Utah projectsTalk through the research
I can walk you through the research covered here: Sampling and graph-search motion planning. We can discuss the method and what the results mean in practice.