Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

RRT

Also known as Rapidly-exploring Random Tree

sampling sampling-planning

A rapidly-exploring random tree (RRT) grows a tree from the start through a continuous space. Each step draws a random sample, finds the nearest node of the tree, and adds a new node one short, collision-free step towards the sample. Large empty regions draw the most samples, so the tree spreads quickly into unexplored space. RRT finds a path, not the cheapest one.

See it run

1/38

The tree is just the start.

RRT on a small example.Each new node joins the nearest node of the tree, one step towards a random sample. treesamplerewired edgebest pathobstacle

Pseudocode

algorithm RRT(x₀, n)input: start state x₀, number of iterations noutput: a path to the goal region, or failureT ← tree with root x₀for i in 1, …, n dox-rand ← sample()                          ▷ with a small goal biasx-near ← nearest(T, x-rand)x-new ← steer(x-near, x-rand)              ▷ at most one step longif motion-valid(x-near, x-new) thenadd(T, x-new, parent: x-near)if T reaches the goal region thenreturn path-to(best goal node of T)return failure

In the crates

  • sampling-planning

    Grows a rapidly-exploring random tree from the start by steering toward goal-biased random samples until it reaches the goal region.

    Rrt

Lineage

Comes from

Nothing on this site.

Led to

Robust-RRT builds on it

RRT-Connect builds on it

RRT* builds on it

SST builds on it

References

  • LaValle 1998