pub trait Goal<const N: usize> {
// Required methods
fn center(&self) -> [f64; N];
fn containment(&self, set: &SparsePolyZonotope) -> Containment;
// Provided method
fn radius(&self) -> Option<f64> { ... }
}Expand description
A goal region that whole reachable sets are tested against.
The set counterpart of sampling-planning’s
GoalRegion: a Goal::center for goal-biased
samples, and a containment test that takes a set instead of a state.
§Contract
Goal::containment may answer Containment::Inside only if every point of the set
is proven to lie in the goal. Planners accept nothing else as reaching the goal, so a
wrong Inside makes their goal proofs void. When in doubt, answer
Containment::Unknown.
Required Methods§
Sourcefn containment(&self, set: &SparsePolyZonotope) -> Containment
fn containment(&self, set: &SparsePolyZonotope) -> Containment
Whether every point of set lies in the goal.
Only Containment::Inside is a proof; planners treat
Containment::NotInside and Containment::Unknown alike.
Provided Methods§
Sourcefn radius(&self) -> Option<f64>
fn radius(&self) -> Option<f64>
An upper bound on the distance from Goal::center to any point of the goal, if
the goal knows one.
ReachSearch derives its heuristic radius from it with
GoalRadius::FromGoal. It affects only the
search order, never safety. The default is None.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".