Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

Reeds-Shepp paths

Also known as Reeds-Shepp curves

other sampling-planning

A Reeds-Shepp path is a shortest path for a car that drives forward and backward at unit speed and cannot turn tighter than a minimum radius. The car's state is a pose: a position and a heading. Reeds and Shepp showed that a shortest path always has at most five parts, each a circular arc at the minimum radius or a straight line, with optional changes of gear (cusps) between them. The crate moves the goal into the start's frame, scales it by the radius, evaluates the closed-form formula of each path family under its symmetries, and keeps the shortest result. Its length is a true distance (symmetric, with the triangle inequality), so you can use it as the metric of a sampling-based planner for car-like vehicles that may reverse.

Pseudocode

algorithm Reeds-Shepp-Path(p, q, ρ)input: start pose p, goal pose q, minimum turning radius ρoutput: the shortest Reeds-Shepp path from p to q(x, y, φ) ← q in the frame of p, scaled by 1/ρ   ▷ local-goalbest ← nilfor each family F in CSC, CCC, CCCC, CCSC, CCSCC dofor each variant (x′, y′, φ′, sign) in symmetric-variants(x, y, φ) do▷ the identity, time flip, reflection, and both togetherif F has a solution (t, u, v) at (x′, y′, φ′) thenlengths ← sign · layout(F, t, u, v)      ▷ a negative length drives in reverseif best = nil or ∑ |lengths| < ∑ |best| thenbest ← lengthsreturn path of best, scaled by ρ              ▷ a CSC word always has a solution

In the crates

Lineage

Comes from

generalizes Dubins paths

Led to

Nothing on this site.

Papers

  1. Optimal paths for a car that goes both forwards and backwards James Reeds, Lawrence Shepp · 1990· Pacific Journal of Mathematics introduces doi 10.2140/pjm.1990.145.367