robust-planning
Motion planning that proves its edges safe: planners whose nodes carry reachable sets (sparse polynomial zonotopes from polyzonotope) instead of single states, so a path is accepted only when every state the system can reach under bounded disturbances and initial uncertainty stays clear of the obstacles.
The crate has Robust-RRT, Robust RRT* and a reachability-guided A* over motion primitives,
plus an adapter that lets the planners of
sampling-planning check their edges the same
way. Every check is conservative: a check that cannot prove safety returns Indeterminate,
never Safe, and planners reject it. With the sound feature, polyzonotope rounds outward and
a Safe verdict becomes a proof rather than "safe up to floating-point rounding".
Who this is for
- Engineers working on autonomous vehicles, drones or spacecraft who have a dynamics model with bounded noise and need a path that is safe for the whole tube around it, not only for the nominal trajectory.
- Researchers in set-based verification who want to put their reachability analysis behind RRT, RRT* or a lattice search without writing the planner first.
- Anyone who already plans with sampling-planning and wants its RRT, PRM or BIT* to accept
only proven-safe edges in Euclidean spaces (
ReachChecker). - You bring the
Reachmodel, i.e. the propagation of a set along one edge; the crate ships the planners, obstacles, goals and containment tests around it. - When the dynamics are deterministic and a collision check on single states is enough, sampling-planning alone is simpler and much faster; for uncertainty in the action outcomes of a discrete model (MDPs, POMDPs), stochastic-search is the better fit.
Installation
[]
= "0.2"
Enable the sound feature for rigorous verdicts. It needs x86-64 Haswell or newer (see
.cargo/config.toml) or AArch64.
Enable reach for the ready-made dynamics models on polyzonotope-reach (models).
Features
- Robust-RRT: an RRT whose nodes carry reachable sets (
RobustRrt). - Robust RRT*: choose-parent and rewiring over proven-safe edges only; a rewire
re-propagates and re-proves the whole moved subtree and commits only if all of it stays
proven safe and no goal node loses the goal, within a per-iteration budget (
RobustRrtStar). - Reachability-guided search: A* over reachable-set nodes along motion primitives,
with lattice deduplication, optional workspace bounds on nominal states or whole sets,
a goal radius derived from the goal, opt-in pruning of superseded subtrees, and opt-in
proven set-in-set deduplication for zonotopes in up to four dimensions (
ReachSearch,decide_within). - A robustness-weighted cost (
Cost::WidthWeighted) forRobustRrtStarandReachSearch. - Edge checks for
sampling-planningplanners in Euclidean spaces (ReachChecker). - Pluggable steering (
Steer,WithSteering), goals (Goal,PolytopeGoal) and certified collision witnesses (Reach::certify_collision). - Polytope obstacles checked against reachable sets, with optional refinement by splitting
(
Obstacles). - Dynamics models on polyzonotope-reach, behind the
reachfeature: validated continuous-time reachable sets of linear (models::Linear) and nonlinear (models::Nonlinear) systems. Their cover sets enclose the motion between time steps.
Not yet implemented: safety-constrained trajectory planning (optimizing nominal controls under proven set constraints).
Usage
See the crate documentation and docs/design.md for the safety semantics. The example plans through a 2D world with an affine model, and the benchmarks time the search and Robust RRT*:
Minimum supported Rust version
Rust 1.89 (edition 2024). The MSRV applies to the library; tests and benchmarks may need a newer toolchain. It may be raised in a minor release when a dependency or a language feature calls for it.
Contributing
See CONTRIBUTING.md.
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE)
- MIT license (LICENSE-MIT)
at your option.
The example in examples/ is public domain
(CC0-1.0), so you can copy it into anything.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.