Skip to main content

Trajectory

Struct Trajectory 

Source
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: f64

The total duration of all controls.

Trait Implementations§

Source§

impl<S: Clone, U: Clone> Clone for Trajectory<S, U>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<S: Debug, U: Debug> Debug for Trajectory<S, U>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<S: PartialEq, U: PartialEq> PartialEq for Trajectory<S, U>

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

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>
where Vec<S>: Freeze, Vec<(U, f64)>: Freeze,

§

impl<S, U> Move for Trajectory<S, U>

§

impl<S, U> RefUnwindSafe for Trajectory<S, U>

§

impl<S, U> Send for Trajectory<S, U>
where Vec<S>: Send, Vec<(U, f64)>: Send,

§

impl<S, U> Sync for Trajectory<S, U>
where Vec<S>: Sync, Vec<(U, f64)>: Sync,

§

impl<S, U> Unpin for Trajectory<S, U>
where Vec<S>: Unpin, Vec<(U, f64)>: Unpin,

§

impl<S, U> UnsafeUnpin for Trajectory<S, U>
where Vec<S>: UnsafeUnpin, Vec<(U, f64)>: UnsafeUnpin,

§

impl<S, U> UnwindSafe for Trajectory<S, U>
where Vec<S>: UnwindSafe, Vec<(U, f64)>: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.