A topic in the Open Knowledge Graph — a free, open map of 15,495 topics and the order to learn them in.

RRT and PRM Sampling-Based Planners

Research Depth 117 in the knowledge graph ☐ I know this ☆ Set as goal
655prerequisites beneath it
See this on the map →
Motion Planning Algorithms and Path Finding→
rrt prm sampling-based-planning high-dimensional asymptotic-optimality

Core Idea

Rapidly-exploring Random Trees (RRT) and Probabilistic Roadmaps (PRM) are sampling-based motion planning algorithms that handle high-dimensional configuration spaces by randomly sampling in C-space and building a graph of collision-free configurations. RRT grows a tree from the start toward the goal, greedily expanding toward random samples; it is single-query (good for one specific start-goal pair) and naturally anytime (returns feasible solutions quickly). PRM pre-builds a roadmap by sampling random collision-free configurations and connecting nearby ones; it is multi-query (answers many start-goal pairs with one roadmap) and asymptotically optimal (path length approaches optimal as sample count grows). Both methods avoid explicit C-space discretization and scale better to high dimensions than grid-based planners, though they provide probabilistic rather than guaranteed completeness.

Explainer

As robot configuration spaces grow in dimensionality — a 7-DOF manipulator, a robot with redundant degrees of freedom for grasping — grid-based motion planning becomes intractable. A 7D grid with 100 cells per dimension requires 1014 cells. Sampling-based methods circumvent this dimensionality curse by abandoning exhaustive discretization: instead of dividing space into cells, they randomly sample in C-space and connect samples that are collision-free and sufficiently close.

Probabilistic Roadmaps (PRM) work in two phases. Phase 1 (Learning): Sample N random configurations uniformly from C-space. For each sample, check collision-free. Discard collisions. Among the free samples, compute pairwise distances and connect each sample to its k-nearest neighbors (usually k=10-20) with straight-line paths, checking each connection for collision. The result is a graph (roadmap) whose nodes are free configurations and edges are collision-free paths. Phase 2 (Query): For a new (start, goal) pair, connect the start and goal to the roadmap, then use A* or Dijkstra to find a path in the graph.

The key insight is amortization. Building the roadmap is expensive (thousands of samples, collision checks for each sample and each potential edge connection). But once built, answering queries is cheap — just graph search. If you have 100 goal requests in the same environment, PRM pays the roadmap cost once and then answers all queries quickly. This makes PRM ideal for static environments where multiple goals are queried sequentially.

RRT (Rapidly-Exploring Random Trees) takes a different approach, more suited to single-query problems. RRT grows a tree from the start configuration toward the goal. At each iteration: (1) sample a random configuration in C-space; (2) find the nearest node in the existing tree; (3) extend from that node toward the sample by a fixed distance (step size); (4) if the extension is collision-free, add the new node to the tree. Repeat until a node reaches the goal or time expires. RRT is called "rapidly exploring" because random sampling efficiently fills high-dimensional space — better than grid-based methods which have dead zones. The algorithm is anytime: it quickly returns a feasible (not optimal) path, then continues improving if time permits.

Why High Dimensions Matter: In high dimensions, the volume of C-space explodes exponentially. But most of it is obstacle-free (in typical robotic workspaces). Random sampling uniformly samples this vast free space, with collision checks quickly filtering out the few bad samples. Grid-based planning tries to partition the space exhaustively, hitting exponential blowup. Sampling avoids this by exploiting the fact that we don't need to partition — we just need a representative set of free configurations.

Asymptotic Optimality: Basic RRT and PRM find any feasible path. Variants like RRT* and PRM* improve paths over time, with theoretical guarantees that path length approaches optimal as sample count increases. RRT* does this by rewiring the tree — after adding a new node, checking if the new node can provide shortcuts to existing nodes and updating parent pointers. This is more expensive per iteration but converges to optimal paths given sufficient time.

Practical Trade-offs: RRT and PRM are probabilistically complete — they find paths with probability approaching 1 as sample count increases, but for any finite sample count, they may miss a feasible path. In contrast, grid-based planning is resolution-complete (guaranteed to find paths of sufficient resolution). RRT and PRM excel when the grid would be too fine (high dimension, narrow passages); grid-based planning excels when feasibility or optimality guarantees are mandatory and dimensions are low (2D-4D).

Hybrid Approaches: Modern systems often combine methods. A mobile base plans using grid-based A* on a 2D occupancy map (fast, deterministic). A manipulator planning in high-dimensional joint space uses RRT or PRM. As dimensionality increases, sampling-based methods dominate — this is why high-dimensional robotic systems almost universally use RRT, PRM, or similar variants.

Practice Questions 1 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Combining Small Groups Within 5 → Number Bonds Within 5 → Number Bonds to 10 → Tens and Ones Place Value → Reading and Writing Three-Digit Numbers → Comparing Three-Digit Numbers → Comparing and Ordering Three-Digit Quantities → Comparing and Ordering Whole Numbers → Comparing Numbers 1 to 20 → Ordering Numbers to 20 → Number Line 0 to 20 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Opposites and Additive Inverses → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → The Distributive Property → Variables and Expressions Review → Introduction to Polynomials → Adding and Subtracting Polynomials → Multiplying Polynomials → Factorial → Permutations → Combinations → Counting Principles: Addition and Multiplication Rules → Introduction to Graph Theory → Propositional Logic Foundations → Logical Equivalences → Boolean Algebra → Boolean Type and Truth Values → Comparison Operators and Boolean Tests → Logical Operators and Boolean Algebra → Boolean Algebra and Fundamental Laws → Logic Gates Fundamentals → Implementing Boolean Functions with Gates → Karnaugh Map Simplification → Combinational Circuit Design → Flip-Flops and Latches → Finite State Machines (FSMs) → Deterministic Finite Automata (DFA) → Nondeterministic Finite Automata (NFA) → Regular Language Recognition Algorithms → DFA Properties and Minimization Algorithms → Regular Languages: Definition and Characterization → Context-Free Grammars (CFGs) → Context-Free Grammar Properties and Ambiguity → Parse Trees, Derivations, and Ambiguity in CFGs → Context-Free Grammars in Compiler Design → Abstract Syntax Trees (ASTs) → Symbol Tables and Scope Resolution → Semantic Analysis Phase → Scope and Binding Resolution → Scope, Shadowing, and Variable Lifetime → Parameter Passing: Value vs. Reference → Two-Dimensional Arrays → Graph Representations: Adjacency List vs. Adjacency Matrix → Depth-First Search (DFS) → Depth-First Search: Implementation and Applications → Topological Sort → Dynamic Programming → Longest Common Subsequence (LCS) Problem → Edit Distance: Levenshtein Distance and DP → 0/1 Knapsack Problem: Bounded Capacity DP → Greedy Algorithms → Activity Selection Problem Using Greedy Algorithms → Dijkstra's Algorithm → A* Search Algorithm → Motion Planning Algorithms and Path Finding → RRT and PRM Sampling-Based Planners

Longest path: 118 steps · 655 total prerequisite topics

Prerequisites (1)

Leads To (0)

No topics depend on this one yet.