pub struct MotionProfile { /* private fields */ }Expand description
A motion profile for getting from one state to another.
Implementations§
Source§impl MotionProfile
impl MotionProfile
Sourcepub fn new(
start_state: State,
end_state: State,
max_vel: Quantity,
max_acc: Quantity,
) -> MotionProfile
pub fn new( start_state: State, end_state: State, max_vel: Quantity, max_acc: Quantity, ) -> MotionProfile
Constructor for MotionProfile using start and end states.
Sourcepub fn get_mode(&self, t: Time) -> Option<PositionDerivative>
pub fn get_mode(&self, t: Time) -> Option<PositionDerivative>
Get the intended PositionDerivative at a given time.
Sourcepub fn get_piece(&self, t: Time) -> MotionProfilePiece
pub fn get_piece(&self, t: Time) -> MotionProfilePiece
Get the MotionProfilePiece at a given time.
Sourcepub fn get_acceleration(&self, t: Time) -> Option<Quantity>
pub fn get_acceleration(&self, t: Time) -> Option<Quantity>
Get the intended acceleration at a given time.
Sourcepub fn get_velocity(&self, t: Time) -> Option<Quantity>
pub fn get_velocity(&self, t: Time) -> Option<Quantity>
Get the intended velocity at a given time.
Sourcepub fn get_position(&self, t: Time) -> Option<Quantity>
pub fn get_position(&self, t: Time) -> Option<Quantity>
Get the intended position at a given time.
Trait Implementations§
Source§impl Clone for MotionProfile
impl Clone for MotionProfile
Source§fn clone(&self) -> MotionProfile
fn clone(&self) -> MotionProfile
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MotionProfile
impl Debug for MotionProfile
Source§impl PartialEq for MotionProfile
impl PartialEq for MotionProfile
Source§impl<E: Copy + Debug> Updatable<E> for MotionProfile
impl<E: Copy + Debug> Updatable<E> for MotionProfile
Source§fn update(&mut self) -> NothingOrError<E>
fn update(&mut self) -> NothingOrError<E>
As this trait is very generic, exactly what this does will be very dependent on the
implementor.
impl StructuralPartialEq for MotionProfile
Auto Trait Implementations§
impl Freeze for MotionProfile
impl RefUnwindSafe for MotionProfile
impl Send for MotionProfile
impl Sync for MotionProfile
impl Unpin for MotionProfile
impl UnwindSafe for MotionProfile
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