Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

RRT-Connect

Also known as bidirectional RRT

sampling sampling-planning

RRT-Connect grows two rapidly-exploring random trees, one from the start and one from the goal, and tries to join them. Each step extends one tree a single step towards a random sample. Then it greedily steers the other tree towards the new node, step after step, until it reaches the node or hits an obstacle. The trees swap roles after every step. RRT-Connect is probabilistically complete and often finds a path much faster than RRT, but it does not improve the path; shorten the result afterwards, for example with path shortcutting.

Pseudocode

algorithm RRT-Connect(x-start, goal, n)input: start state x-start, goal region goal, number of iterations noutput: a path from x-start into goal, or failureA ← tree with root x-startB ← tree with root center(goal)              ▷ its edges are traveled toward the rootfor i in 1, …, n dox-rand ← sample()x-new ← Extend(A, nearest(A, x-rand), x-rand)if x-new ≠ nil thenif A is the start tree and goal(x-new) thenreturn path-to(x-new)x-meet ← Connect(B, x-new)if x-meet ≠ nil thenreturn join(path-to(x-new), path-to(x-meet))A, B ← B, A                                ▷ swap the trees every stepreturn failurefunction Extend(T, x-from, x)x-new ← steer(x-from, x)                     ▷ at most one step longif motion-valid(x-from, x-new) then          ▷ in travel directionadd(T, x-new, parent: x-from)return x-newreturn nilfunction Connect(T, x)x-cur ← nearest(T, x)repeatx-cur ← Extend(T, x-cur, x)                ▷ greedily, from the newest nodeuntil x-cur = nil or d(x-cur, x) = 0return x-cur                                  ▷ nil if an obstacle blocked the way

In the crates

Lineage

Comes from

builds on RRT

Led to

Nothing on this site.

Papers

  1. RRT-connect: An efficient approach to single-query path planning J. J. Kuffner, S. M. LaValle · 2000· IEEE International Conference on Robotics and Automation (ICRA 2000) introduces doi 10.1109/ROBOT.2000.844730