Skip to main content

Crate robust_planning

Crate robust_planning 

Source
Expand description

§Robust planning

Planning over reachable sets under uncertainty: Robust-RRT and reachability-guided search.

Every check in this crate is conservative. A check that cannot prove safety answers SafetyVerdict::Indeterminate, never SafetyVerdict::Safe, and planners reject anything that is not proven safe.

§Building blocks

  • Reach: propagates a reachable set along one edge under one control. Implement it for your dynamics, or enable the reach feature for the models in models, built on polyzonotope-reach. Its optional Reach::certify_collision hook lets a model whose sets are exact turn an unproven edge into SafetyVerdict::Unsafe with a Witness; check_edge runs one edge check.
  • Steer: picks the control of one edge. Implement it on the model, or pair a model with a steering function through WithSteering; sampling-planning’s StraightLine steers models whose control is a setpoint.
  • Cost: how planners price an edge: the nominal length, or the length plus a weight times the width of the edge’s end set (a robustness-weighted cost).
  • Obstacles: polytope obstacles, checked against reachable sets with optional refinement by splitting.
  • Goal: a goal region tested against whole reachable sets. PolytopeGoal is a convex polytope in H-representation; it answers Containment::Inside only when the set is proven inside.
  • proven_within and decide_within: prove one set inside a zonotope in up to four dimensions, through polyzonotope’s set-in-polytope test on an inner H-representation with rigorously rounded facets.
  • ReachChecker: a sampling_planning::ValidityChecker that runs a Reach model along each motion, so sampling-planning’s planners only accept proven-safe edges.
  • RobustRrt: an RRT whose nodes carry the reachable set they are reached with.
  • RobustRrtStar: the RRT* variant of RobustRrt. Choose-parent and rewiring accept only proven-safe edges, and a rewire re-propagates and re-proves the whole moved subtree before it commits.
  • ReachSearch: A* over reachable-set nodes along a fixed set of motion primitives, expanding only proven-safe edges, with deduplication on a lattice of nominal states.

§The sound feature

Without sound, polyzonotope computes in plain f64, so SafetyVerdict::Safe means “safe up to floating-point rounding”. Only with sound (outward rounding) is it a proof. See docs/design.md.

Repository: https://github.com/sunsided/robust-planning

Re-exports§

pub use containment::decide_within;
pub use containment::proven_within;
pub use robust_rrt::RobustRrt;
pub use robust_rrt_star::RobustRrtStar;
pub use search::ReachSearch;
pub use polyzonotope;
pub use polyzonotope_reach;
pub use sampling_planning;

Modules§

containment
Proven set-in-set containment: a set inside a zonotope, built on polyzonotope’s set-in-polytope test.
models
Reach models on polyzonotope-reach: validated reachable sets of continuous-time dynamics. Needs the reach feature.
robust_rrt
Robust-RRT: an RRT whose nodes carry the reachable set they are reached with.
robust_rrt_star
Robust RRT*: an RRT* whose nodes carry the reachable set they are reached with.
search
Reachability-guided search: A* over reachable-set nodes on a lattice of nominal states.

Structs§

Node
A node of a planner tree: a nominal state, the reachable set there and the edge from its parent.
Obstacles
A set of convex polytope obstacles, checked against reachable sets.
PolytopeGoal
A convex polytope goal in H-representation, { x | aᵢᵀ x <= dᵢ for every facet i }.
ReachChecker
Checks states and motions of sampling-planning’s planners with reachable sets.
WithSteering
A reachability model paired with a separate steering function.
Witness
A certified collision: a state the real system reaches that lies in an obstacle.

Enums§

Cost
How a planner prices one edge.
SafetyVerdict
The result of a conservative safety check.

Traits§

Goal
A goal region that whole reachable sets are tested against.
Reach
Over-approximates the reachable set of a system along one edge.
Steer
Picks the control of type C that moves a nominal state toward a target.

Functions§

check_edge
Propagates initial under control and checks the cover against obstacles.