PRM*
Also known as optimal PRM
sampling sampling-planning
PRM* builds a probabilistic roadmap like PRM does, but each new node connects to the older nodes within a radius that shrinks as the graph grows: r(n) = γ (ln n / n)^(1/d), where n counts the nodes and d is the dimension. The k-nearest form connects to the ⌈k ln n⌉ nearest nodes instead. If γ is above a bound that depends on the dimension and the free volume (or k above e (1 + 1/d)), the cost of the best path in the graph converges to the optimal cost (asymptotic optimality). Each node still has only about ln n neighbours, so the graph grows at nearly the cost of plain PRM. Use it when you query one environment many times and want paths that get better with more samples.
Pseudocode
algorithm PRM*(n, γ)input: number of samples n, radius constant γoutput: a roadmap G whose shortest paths converge to optimal onesG ← empty graphfor i in 1, …, n dox ← sample()if state-valid(x) thenm ← |G| + 1 ▷ counts the new noder ← γ · (ln m / m)^(1/d) ▷ d: dimension of the spaceX-NEAR ← nodes of G within r of x ▷ or the ⌈k ln m⌉ nearestadd-node(G, x)for each y in X-NEAR doif motion-valid(y, x) thenadd-edge(G, y, x, d(y, x))return G ▷ queried with Dijkstra, as in PRMIn the crates
sampling-planningAsymptotically optimal PRM connecting each node within a shrinking radius or to its k ln n nearest neighbors.
Lineage
Papers
- Sampling-based algorithms for optimal motion planning Sertac Karaman, Emilio Frazzoli · 2011· The International Journal of Robotics Research