Struct cartesian_trajectories::VelocityProfileMapping [−][src]
pub struct VelocityProfileMapping { /* fields omitted */ }
Custom Velocity Profile
Implementations
impl VelocityProfileMapping
[src]
impl VelocityProfileMapping
[src]pub fn get(&mut self, time: Duration) -> VelocityProfileOutput
[src]
pub fn get(&mut self, time: Duration) -> VelocityProfileOutput
[src]evaluates the velocity profile function
pub fn new(
function: Box<dyn Fn(Duration) -> VelocityProfileOutput>,
total_duration: Duration
) -> VelocityProfileMapping
[src]
pub fn new(
function: Box<dyn Fn(Duration) -> VelocityProfileOutput>,
total_duration: Duration
) -> VelocityProfileMapping
[src]creates a new VelocityProfileMapping by defining a velocity profile function. This function should map a duration monotonically to progress between 0 and 1. Further the total duration of the trajectory should be specified as it helps the user.
pub fn get_total_duration(&self) -> Duration
[src]
pub fn get_total_duration(&self) -> Duration
[src]Returns the total duration of the trajectory.
Auto Trait Implementations
impl !RefUnwindSafe for VelocityProfileMapping
impl !Send for VelocityProfileMapping
impl !Sync for VelocityProfileMapping
impl Unpin for VelocityProfileMapping
impl !UnwindSafe for VelocityProfileMapping
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,