pub struct Config {
pub resolution: f64,
pub goal_radius: GoalRadius,
pub max_expansions: usize,
pub cost: Cost,
pub prune_superseded_subtrees: bool,
pub dedup: Dedup,
pub bounds_contain_sets: bool,
}Expand description
Settings for ReachSearch.
Fields§
§resolution: f64Width of the lattice cells nominal states are binned into for deduplication. Positive and finite.
goal_radius: GoalRadiusDistance from Goal::center within which every goal node’s nominal state lies.
The heuristic is h(x) = max(0, |x - center| - goal_radius), which is consistent
for Euclidean edge costs. It is admissible, and the returned path optimal over the
nodes deduplication keeps, only if every node whose set is proven inside the goal
has its nominal state within goal_radius of the center. An infinite radius gives
h = 0, a uniform-cost search that is always admissible but expands more nodes.
The heuristic never affects safety.
max_expansions: usizeThe most nodes ReachSearch::solve expands before giving up.
cost: CostHow an edge is priced; g sums it. Cost::Length by default. Every option is at
least the nominal length, so the heuristic stays admissible.
prune_superseded_subtrees: boolWhen a new node supersedes an older one, also skip every descendant the older node has generated so far. Off by default.
The superseded node’s subtree was grown from a set that a cheaper node with a set at most as wide (by the hull test) now covers, so the new node regrows it. Pruning only removes nodes from the open list; every kept edge stays proven, so it never affects safety. Like deduplication it can cost completeness, since dominance is a hull test.
With the shipped heuristic, which is consistent, f never decreases along an edge.
A node that is already expanded is then superseded only by a node of exactly equal
cost, so this rarely prunes anything; it saves work only on such ties.
dedup: DedupHow one node’s set is shown to lie inside another’s for deduplication.
Dedup::Hull by default.
bounds_contain_sets: boolRequire whole sets, not only nominal states, to stay in Problem::bounds. Off by
default; without bounds it has no effect.
When on, the start set and every cover set and end set of an edge must be proven
inside the bounds box (Containment::Inside within the obstacles’ split budget).
An edge that is not proven inside is dropped like an unsafe one. The proof is
rigorous with the sound feature.
Trait Implementations§
impl Copy for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Forget for Config
impl Freeze for Config
impl Move for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.