Probabilistic Roadmap

Simulation
Introduced by
Lydia Kavraki
Year
1996
Type
algorithm
Family
Motion Planning

What does it do?

The Probabilistic Roadmap (PRM) is a motion planning method that builds a graph of collision-free configurations of a robot, connected by collision-free local paths.

Its widely cited form was introduced by Kavraki et al. in 1996. Once the graph (roadmap) is built, it can be searched to answer new start-and-goal queries in the same static workspace. PRM is therefore aimed at multi-query planning, where the construction cost is shared across many queries.

The intuition behind the method

PRM works in two phases. In the learning phase, the algorithm samples random configurations, keeps only those that are collision-free, and connects nearby ones with straight-line local paths that are also collision-free. The result is a graph in which nodes are valid configurations and edges are feasible paths. In the query phase, the start and goal configurations are each connected to the existing graph, and a graph search finds a route between them. Unlike RRT, which is typically a single-query method that grows a tree from the start for each query, PRM builds one reusable structure that is then searched.

History

Kavraki, Svestka, Latombe, and Overmars presented the widely cited form of PRM in 1996. It describes a two-phase method of learning a roadmap and then querying it, with experiments on planar articulated robots. Extensions include visibility roadmaps, lazy PRM, and deformation-based methods for narrow passages.

When to use it

Choose PRM when many path queries must be answered in the same static environment, so that one roadmap can be reused across them. It suits holonomic robots, the class the 1996 paper describes, and cases where the cost of building the roadmap can be spread over many queries. Do not use PRM when only a single query is needed, since the preprocessing cost may not be recovered. Avoid it when obstacles change often, because the roadmap must then be revalidated or rebuilt. The 1996 paper describes the method for holonomic robots only; applying it to non-holonomic robots requires a local planner that respects the robot's motion constraints, and the cited paper does not cover that case.

Limitations and considerations

  • Roadmap construction is an up-front cost paid before the first query, so the benefit appears only when enough queries are answered.
  • The roadmap is tied to a static workspace; a change in obstacles generally requires revalidating or rebuilding the affected nodes and edges.
  • Parameters such as the learning-phase duration depend on the robot and workspace, so they must be set for each scene, although the paper reports these values as relatively easy to choose.
  • Plain random sampling rarely places nodes inside narrow passages, so the roadmap can miss feasible routes through them.
  • As more samples and neighbor connections are added, the graph grows, and both memory use and nearest-neighbor search cost increase.
  • Returned paths are collision-free but are not guaranteed to be shortest or optimal, so they often benefit from post-processing such as shortcutting.
  • PRM is probabilistically complete: if a feasible path exists, the probability of finding one approaches 1 as sampling increases. A failed query does not prove that no path exists.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • The query phase only connects the start and goal to an existing graph and searches it, so many queries in the same static workspace can reuse one roadmap.
  • The 1996 paper describes the method as general and easy to implement, applicable to virtually any holonomic robot, with the local planner as the component that can be tailored to a specific robot.
  • The reported experiments on planar articulated robots with many degrees of freedom found that paths could be planned in a fraction of a second on a workstation of about 150 MIPS, after learning periods of a few dozen seconds.
  • The core operations are simple: random sampling, nearest-neighbor lookup, local collision checking, and graph search.

Applications

  • Repeated motion queries for a robot in a fixed workcell, where a single roadmap answers many start-and-goal requests.
  • Planar articulated robots with many degrees of freedom, the class used in the 1996 experiments.
  • Offline precomputation of a roadmap for a static environment, followed by online answering of queries against that roadmap.

How it works

How it works

1

Configurations are sampled at random from the configuration space, and each sample is checked for collisions. Only collision-free samples are kept as roadmap nodes, and the learning phase runs for a duration set for the robot and workspace.

2

Each retained configuration is connected to its k nearest neighbors by straight-line local paths, and an edge is added only if the path is collision-free. The resulting graph G has collision-free configurations as nodes and feasible local paths as edges.

3

For a given start and goal, each is connected to nearby roadmap nodes by collision-free local paths. If neither can be connected to the graph, the current roadmap cannot answer that query.

4

A graph search such as Dijkstra's algorithm or A* finds a sequence of nodes and edges from the connected start to the connected goal. The configurations along that sequence form the planned path.

Common pitfalls

  • If the neighborhood size k is too small, the roadmap can split into components that cannot reach one another, so valid queries fail.
  • Too few learning samples leave gaps in coverage of the free space, while extra samples add construction cost without guaranteed gains in connectivity.
  • Start or goal configurations lying in a narrow region may fail to connect to the roadmap even when a path exists.
  • Joints with very different ranges can make some dimensions dominate nearest-neighbor distances, which distorts which connections are tried.
  • Applying PRM to non-holonomic robots goes beyond the scope of the cited 1996 paper, which covers holonomic robots.
  • The number of samples needed for good coverage, and the cost of nearest-neighbor search and collision checking, grow quickly as the dimension of the configuration space increases.
  • The reported timings come from planar articulated robots with many degrees of freedom and should not be read as general performance figures for other robots or scenes.

Frequently asked questions

What parameters control PRM: number of samples N and neighborhood size k?

N sets how many configurations are sampled in the learning phase, so more samples improve coverage of the free space at higher cost. k sets how many nearest neighbors each configuration tries to connect to; a larger k gives more edges and better connectivity but more collision checks. The 1996 paper notes that parameters such as the learning-phase duration depend on the robot and workspace. Adaptive sampling, which adds samples in under-explored regions, is one way to refine coverage.

How do I detect if my PRM roadmap is disconnected?

After building the roadmap, check connectivity by labeling each node with a connected-component ID using breadth-first or depth-first search. If the start and goal fall in different components, the roadmap is disconnected. Adding samples near component boundaries or increasing k can help bridge the gap.

How does PRM handle narrow passages?

Standard PRM can fail in narrow passages, because random sampling rarely finds configurations inside narrow spaces. Remedies proposed in the literature include Gaussian sampling, deformation-based methods, and mixed-mode sampling, which aim to place or connect roadmap nodes in these difficult regions.

Can I incrementally add queries to an existing roadmap?

Yes, this is a key advantage of PRM. Once the roadmap is built, a new query only connects the start and goal to the existing graph and searches it, so no rebuild is needed. If a query cannot connect, more samples can be added to the roadmap, or the graph can be adjusted.

Related methods

Sources

  1. Kavraki, L. E., Svestka, P., Latombe, J. C., & Overmars, M. H. (1996). Probabilistic roadmaps for path planning in high-dimensional configuration spaces. IEEE Transactions on Robotics and Automation, 12(4), 566-580.

    Open DOI reference
  2. Overmars, M. H., & Svestka, P. (1992). A probabilistic learning approach to motion planning. Proceedings of the Fourth Workshop on Algorithmic Foundations of Robotics, 19-37.

    Open publication reference
  3. LaValle, S. M. (2006). Planning Algorithms. Cambridge University Press.

    Open publication reference