Struct rrtk::MotionProfile
source · pub struct MotionProfile { /* private fields */ }Implementations§
source§impl MotionProfile
impl MotionProfile
pub fn new( start_state: State, end_state: State, max_vel: f32, max_acc: f32 ) -> MotionProfile
pub fn get_mode(&self, t: f32) -> Result<MotorMode, &'static str>
pub fn get_acceleration(&self, t: f32) -> Result<f32, &'static str>
pub fn get_velocity(&self, t: f32) -> Result<f32, &'static str>
pub fn get_position(&self, t: f32) -> Result<f32, &'static str>
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