RRT (Rapidly-exploring Random Tree)
317 words · 2 min read · 1 source
RRT is a sampling-based motion-planning algorithm that finds paths in complex high-DOF spaces. Standard for robotic arms and self-driving cars.
RRT (Rapidly-exploring Random Tree) is a sampling-based path-planning algorithm that builds a tree of feasible states by randomly sampling the configuration space and growing the tree toward each sample. RRT excels in high-dimensional spaces where grid-based methods like A* fail.
What is RRT (Rapidly-exploring Random Tree)?
RRT (Rapidly-exploring Random Tree) is a sampling-based path-planning algorithm that builds a tree of feasible states by randomly sampling the configuration space and growing the tree toward each sample. RRT excels in high-dimensional spaces where grid-based methods like A* fail.
How It Works
Start with a tree containing only the start state. Randomly sample a point in the configuration space. Find the nearest node already in the tree. Extend a short distance from that node toward the sample. If the extension is collision-free, add it as a new node. Repeat until a node is close enough to the goal. RRT is probabilistically complete and easy to implement, but the resulting path is not optimal. RRT* and informed-RRT* variants converge to optimal paths in the limit.
Real-World Example
MoveIt2 ships RRT-Connect as its default arm planner. NASA's Mars rovers use RRT-derived planners. Tesla's autonomous lane-change planner is RRT-based. Indian robotics groups use RRT for 6+ DOF arm planning.
Why It Matters for Robotics
RRT is the workhorse algorithm for motion planning in spaces too big for grid search. Knowing RRT, RRT*, and their variants is mandatory for manipulation and autonomous-driving engineers. Indian PhD interviews routinely test RRT theory.
Try It Yourself
Open /visualizer and load the RRT demo. Draw obstacles in a 2D maze, place start and goal, and step through RRT one sample at a time. Watch the tree grow and the first feasible path emerge.
Quick Quiz
Quick Quiz
3 questions
1.RRT samples:
2.Compared with A*, RRT is better at:
3.RRT* differs from RRT by:
Further Reading
Ask R2 About This
Open the R2 Co-pilot (press ⌘K anywhere on R2BOT) and ask: "Explain RRT (Rapidly-exploring Random Tree) for a Class 9 student in India, with one real-world Indian example." You'll get a tailored, sourced answer in seconds.
🐍 Python Playground · runs in your browser
Editor · 15 lines
Output
Press ▶ Run to execute. First run downloads Python (~6MB) — only happens once per page.
Powered by Pyodide · Python in WebAssembly · no server required.
Next: the course path
Five free courses, from zero to your own robot design
Short videos with a quiz after each one, a final activity and a certificate per course.
See the course path →Plain English. Free. Unsubscribe in one click.
Keep going
Path planning
Path planning is the process of finding a route through space from a starting point to a goal, avoiding obstac…
ConceptMotion planning
Motion planning determines the precise sequence of joint angles, wheel velocities, or body configurations a ro…
ConceptA* (A-Star) Pathfinding
A* finds the shortest path between two points on a grid or graph. It is the most-used pathfinding algorithm in…
Last updated · 2026-05-21
Spotted something off? Report an error →