Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

KPIECE

Also known as Kinodynamic Planning by Interior-Exterior Cell Exploration

sampling sampling-planning

KPIECE (Kinodynamic Planning by Interior-Exterior Cell Exploration) grows a tree of motions for a robot that must obey its dynamics (a kinodynamic problem). It applies random controls and simulates them forward, so it needs no steering function and no state sampler. A grid over a low-dimensional projection of the state, for example the position, records where the tree has been: a cell with all its grid neighbours occupied is interior, any other cell is exterior, the frontier. KPIECE prefers exterior cells that are little covered and that gave good expansions, so the tree spreads quickly into new space. It is probabilistically complete (it finds a path with probability one, given enough time, if one exists) but not optimal, and it stops at the first motion that reaches the goal.

Pseudocode

algorithm KPIECE(x₀, X-goal, n)input: start state x₀, goal region X-goal, number of iterations noutput: a trajectory to the goal region, or failureT ← tree of motions with root x₀add-motion(cell(project(x₀)), x₀)for i in 1, …, n doif close motions exist and random() < goal-bias thenm ← one of the motions closest to X-goalelseexterior ← random() < max(exterior-bias, exterior share of the cells)C ← cell of that kind with the highest importancem ← a motion of C, drawn half-normal around the newest oneu ← sample-control()k ← random number of stepsSTATES ← propagate m's end state with u for up to k steps, stopping at the first invalid stepgood ← |STATES| ≥ min-stepsif good and (is-interesting(STATES) or random() < 0.05) thenfor each run of STATES in one cell C′ doadd-motion(C′, last state of the run, parent: previous piece)if the state is in X-goal thenreturn trajectory-to(that motion)score[C] ← score[C] · (0.9 if good, else 0.45)return failure▷ importance(C) = score[C] / ((neighbours(C) + 1) · coverage(C) · selections(C))▷ a cell with all 2K grid neighbours occupied is interior, any other cell exterior

In the crates

  • sampling-planning

    Single-level KPIECE that explores a grid over a user projection of the state space using a forward-simulation Propagator.

    Kpiece

Papers

  1. Kinodynamic Motion Planning by Interior-Exterior Cell Exploration Ioan A. Şucan, Lydia E. Kavraki · 2009· Algorithmic Foundation of Robotics VIII (WAFR 2008), Springer Tracts in Advanced Robotics introduces doi 10.1007/978-3-642-00312-7_28
  2. A Sampling-Based Tree Planner for Systems With Complex Dynamics Ioan A. Sucan, Lydia E. Kavraki · 2012· IEEE Transactions on Robotics extends doi 10.1109/TRO.2011.2160466