Analysis of Sampling-Based Planners

Thomas Cohn

RLG Short Talk - November 22, 2024
Probabilistic Roadmaps
Michigan Robotics 320, Lecture 15



Rapidly-Exploring Random Trees
Pathfinding with Rapidly-Exploring Random Tree, Knox




Things We Care About
- As the number of samples goes to infinity...
- Probabilistic Completeness (PC): If a path exists, the probability it hasn't been found goes to zero.
- Asymptotic Optimality (AO): The difference in cost of the current path and the optimal path goes to zero.
- Sample complexity bounds
- What is the probability we have found a path after a certain number of iterations?
- What is the expected number of iterations we need to find a path?
Properties of Space
- Configuration space C and collision-free space Cfree⊆C
- Reachable set R(x), for x∈Cfree
- Set of all configurations that can be reached from x
- ℓ-reachable set Rℓ(x), for x∈Cfree
- Set of all configurations that can be reached in ℓ steps by a local planner
- Visible set V(x), for x∈Cfree
- Equivalent to 1-reachable set for a straight-line local planner.
- The volume of a set X is denoted μ(X)
Setup for the RRT Algorithm
- Start configuration xinit∈Cfree
- Goal region Xgoal⊆Cfree
- In practice, we can choose a small ball around a goal configuration xgoal∈Cfree
- η step size
- k iteration limit
The RRT Algorithm

Probabilistic completeness of RRT for geometric and kinodynamic planning with forward propagation, Kleinbort et. al.
Clearance
A path γ:[0,1]→C is δ-clear if you can push a ball of radius δ along the path without hitting an obstacle.
Note: defined for a specific path!
Klampt Documentation

RRT is PC

RRT Sample Complexity
- Let p be the probability a sample is drawn from a ball
- Let m be the number of balls needed to cover the path
- Let k be the number of iterations
Then the probability RRT fails to reach the goal in k iterations is at most (m−1)!1kmme−pk
What happens as clearance increases?
- p increases
- m decreases
The PRM Algorithm
Measure Theoretic Analysis of Probabilistic Path Planning, Ladd and Kavraki

PRM Sample Complexity
- Let L be the length of the path
- Let ϵ be the clearance of the path
- Let H(n) be the nth Harmonic number
Then the expected number of samples needed for the PRM to find a path is at most μ(Bϵ/2(⋅))H(ϵ2L)μ(Cfree)
What happens as clearance increases?
- H(ϵ2L) decreases
- μ(Bϵ/2(⋅)) increases
A Stronger Bound: Expansiveness
- Fix α,β∈(0,1]
- Fix S⊆Cfree
- The β-lookout of S is {p∈S:μ(Rℓ(p)∖S)≥βμ(R(S)∖S)}
- A set S is (α,β)-expansive if for any connected S′⊆S, μ(β−lookout(S′))≥αμ(S′)
- Cfree is (α,β)-expansive if ∀p∈Cfree, R(p) is (α,β)-expansive
- If α′≤α and β′≤β, then Cfree is also α′,β′-expansive.
Expansiveness vs Clearance
The space on the right has low clearance by high expansiveness
Even though there are narrow passageways, it's still easy to cross the middle region
Randomized Single-Query Motion Planning in Expansive Spaces, Hsu

Further Definitions
- Cfree is ϵ-good, for ϵ∈(0,1], if ∀p∈Cfree, μ(V(p))≥ϵμ(Cfree)
- Intuition: the visibility set of each point is at least an ϵ fraction of the free space
- A set of points pi in Cfree provides adequate coverage if μ(Cfree∖i⋃V(pi))≤2ϵμ(Cfree)
- Intuition: the points not visible from any pi are at most an ϵ/2 fraction of the free space
Sample Complexity of PRM
Theorem (Hsu): Suppose Cfree is connected. Fix γ∈(0,1]. If we randomly sample 2n+2 points, with n≥8ln(8/ϵαγ)/ϵα+3/β, then with probability at least 1−γ, the resulting visibility graph is connected.
A note: the result is actually stated for possibly-disconnected spaces -- in that case, the subgraph corresponding to each connected component of Cfree is connected.
Analysis of Sampling-Based Planners
By tcohn
Analysis of Sampling-Based Planners
- 29