pub struct Trajectory<S, U> {
pub states: Vec<S>,
pub controls: Vec<(U, f64)>,
pub cost: f64,
}Expand description
A solution trajectory: states and the controls that connect them.
Fields§
§states: Vec<S>The states from the start to a state in the goal region. Never empty.
controls: Vec<(U, f64)>controls[i] is the control and its duration that take states[i] to states[i + 1].
One shorter than states.
cost: f64The total duration of all controls.
Trait Implementations§
impl<S: PartialEq, U: PartialEq> StructuralPartialEq for Trajectory<S, U>
Auto Trait Implementations§
impl<S, U> Forget for Trajectory<S, U>
impl<S, U> Freeze for Trajectory<S, U>
impl<S, U> Move for Trajectory<S, U>
impl<S, U> RefUnwindSafe for Trajectory<S, U>
impl<S, U> Send for Trajectory<S, U>
impl<S, U> Sync for Trajectory<S, U>
impl<S, U> Unpin for Trajectory<S, U>
impl<S, U> UnsafeUnpin for Trajectory<S, U>
impl<S, U> UnwindSafe for Trajectory<S, U>
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
Mutably borrows from an owned value. Read more