pub struct Problem<R, const N: usize, G = PolytopeGoal<N>> {
pub reach: R,
pub obstacles: Obstacles,
pub start: [f64; N],
pub start_set: SparsePolyZonotope,
pub goal: G,
pub primitives: Vec<[f64; N]>,
pub bounds: Option<([f64; N], [f64; N])>,
}Expand description
Everything ReachSearch needs to know about the world.
The goal defaults to a PolytopeGoal; any Goal works.
Fields§
§reach: RThe dynamics model that steers and propagates.
obstacles: ObstaclesThe obstacles and their split budget.
start: [f64; N]The nominal start state, which steering starts from.
start_set: SparsePolyZonotopeEvery state the system may start in. Must be proven safe.
goal: GThe goal region. A node reaches it when its set is proven inside.
primitives: Vec<[f64; N]>The motion primitives: offsets from a node’s nominal state that steering aims at.
Grid vectors that the model reaches exactly (for example the 4- or 8-neighborhood at one step length) keep nominal states on a lattice, so deduplication can merge them.
bounds: Option<([f64; N], [f64; N])>The workspace: lower and upper corners of the box that every nominal state must lie
in, or None for no bound.
Successors outside it are dropped before their edge is checked, which keeps the lattice finite in open worlds without framing walls. It bounds nominal states only; to keep whole sets inside, add the outside as obstacles.
Trait Implementations§
Auto Trait Implementations§
impl<R, const N: usize, G> Forget for Problem<R, N, G>
impl<R, const N: usize, G> Freeze for Problem<R, N, G>
impl<R, const N: usize, G> Move for Problem<R, N, G>
impl<R, const N: usize, G> RefUnwindSafe for Problem<R, N, G>where
R: RefUnwindSafe,
[f64; N]: RefUnwindSafe,
G: RefUnwindSafe,
Vec<[f64; N]>: RefUnwindSafe,
Option<([f64; N], [f64; N])>: RefUnwindSafe,
impl<R, const N: usize, G> Send for Problem<R, N, G>
impl<R, const N: usize, G> Sync for Problem<R, N, G>
impl<R, const N: usize, G> Unpin for Problem<R, N, G>
impl<R, const N: usize, G> UnsafeUnpin for Problem<R, N, G>where
R: UnsafeUnpin,
[f64; N]: UnsafeUnpin,
G: UnsafeUnpin,
Vec<[f64; N]>: UnsafeUnpin,
Option<([f64; N], [f64; N])>: UnsafeUnpin,
impl<R, const N: usize, G> UnwindSafe for Problem<R, N, G>where
R: UnwindSafe,
[f64; N]: UnwindSafe,
G: UnwindSafe,
Vec<[f64; N]>: UnwindSafe,
Option<([f64; N], [f64; N])>: UnwindSafe,
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,
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.