pub struct MotionExecutor { /* private fields */ }Expand description
Runtime state during motion execution.
Implementations§
Source§impl MotionExecutor
impl MotionExecutor
Sourcepub fn new(profile: MotionProfile) -> Self
pub fn new(profile: MotionProfile) -> Self
Create a new executor for a motion profile.
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Check if motion is complete.
Sourcepub fn current_step(&self) -> u32
pub fn current_step(&self) -> u32
Get the current step number.
Sourcepub fn total_steps(&self) -> u32
pub fn total_steps(&self) -> u32
Get the total number of steps.
Sourcepub fn steps_remaining(&self) -> u32
pub fn steps_remaining(&self) -> u32
Get steps remaining.
Sourcepub fn phase(&self) -> MotionPhase
pub fn phase(&self) -> MotionPhase
Get the current phase.
Sourcepub fn current_interval_ns(&self) -> u32
pub fn current_interval_ns(&self) -> u32
Get the current step interval in nanoseconds.
Sourcepub fn profile(&self) -> &MotionProfile
pub fn profile(&self) -> &MotionProfile
Get the motion profile.
Trait Implementations§
Source§impl Clone for MotionExecutor
impl Clone for MotionExecutor
Source§fn clone(&self) -> MotionExecutor
fn clone(&self) -> MotionExecutor
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 moreAuto Trait Implementations§
impl Freeze for MotionExecutor
impl RefUnwindSafe for MotionExecutor
impl Send for MotionExecutor
impl Sync for MotionExecutor
impl Unpin for MotionExecutor
impl UnwindSafe for MotionExecutor
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