Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

PRM

Also known as Probabilistic Roadmap

sampling sampling-planning

A probabilistic roadmap (PRM) is a graph of the free space that you build once and then query many times. PRM draws random states, keeps the valid ones as nodes, and joins each new node by direct, collision-free motions to the older nodes within a fixed radius (or to its k nearest nodes). A query connects the start and the goal to the graph and runs Dijkstra's algorithm on it. Use PRM when many start and goal pairs share one static environment. For path costs that converge to the optimum, use PRM*.

Pseudocode

algorithm PRM(n, r)input: number of samples n, connection radius r (or a fixed k nearest)output: a roadmap G that answers many queriesG ← empty graphfor i in 1, …, n dox ← sample()if state-valid(x) thenX-NEAR ← nodes of G within r of x       ▷ or the k nearest nodesadd-node(G, x)for each y in X-NEAR doif motion-valid(y, x) thenadd-edge(G, y, x, d(y, x))return Gfunction Query(G, x-start, goal)input: roadmap G, start state x-start, goal region goaloutput: a cheapest path in G from x-start to goal, or failureE ← connect-endpoints(G, x-start, center(goal))   ▷ valid motions to the neighboursreturn dijkstra(G ∪ E, x-start, goal)    ▷ ends at a node in goal or at its center; G does not change

In the crates

  • sampling-planning

    Multi-query probabilistic roadmap with fixed-radius or fixed-k connections, queried with Dijkstra on a reusable roadmap.

    Prm

Lineage

Comes from

Nothing on this site.

Led to

Lazy PRM builds on it

PRM* builds on it

Papers

  1. Probabilistic roadmaps for path planning in high-dimensional configuration spaces L. E. Kavraki, P. Švestka, J.-C. Latombe, M. H. Overmars · 1996· IEEE Transactions on Robotics and Automation introduces doi 10.1109/70.508439