pub struct MotionScalarExecution { /* private fields */ }Expand description
A single scalar track plus its policy-resolved execution metadata.
Implementations§
Source§impl MotionScalarExecution
impl MotionScalarExecution
Sourcepub fn start(
plan: MotionExecutionPlan,
from: f32,
target: f32,
initial_velocity: f32,
started_at: Duration,
) -> Self
pub fn start( plan: MotionExecutionPlan, from: f32, target: f32, initial_velocity: f32, started_at: Duration, ) -> Self
Starts a scalar execution from an already resolved motion plan.
Sourcepub fn start_resolved(
input: MotionPolicyInput,
from: f32,
target: f32,
initial_velocity: f32,
started_at: Duration,
) -> Self
pub fn start_resolved( input: MotionPolicyInput, from: f32, target: f32, initial_velocity: f32, started_at: Duration, ) -> Self
Resolves policy input and starts a scalar execution.
Sourcepub const fn plan(&self) -> &MotionExecutionPlan
pub const fn plan(&self) -> &MotionExecutionPlan
Returns the resolved execution plan.
Sourcepub const fn track(&self) -> &MotionScalarTrack
pub const fn track(&self) -> &MotionScalarTrack
Returns the underlying scalar track.
Sourcepub const fn model(&self) -> MotionModel
pub const fn model(&self) -> MotionModel
Returns the model that should execute after policy resolution.
Sourcepub const fn policy_report(&self) -> &MotionPolicyReport
pub const fn policy_report(&self) -> &MotionPolicyReport
Returns the policy report produced for the requested model.
Sourcepub const fn state(&self) -> MotionExecutionState
pub const fn state(&self) -> MotionExecutionState
Returns the policy-resolved execution state.
Sourcepub fn sample_at(&self, now: Duration) -> MotionScalarExecutionSample
pub fn sample_at(&self, now: Duration) -> MotionScalarExecutionSample
Samples the execution at deterministic elapsed time.
Sourcepub fn sample_clock(
&self,
clock: MotionClockSample,
) -> MotionScalarExecutionSample
pub fn sample_clock( &self, clock: MotionClockSample, ) -> MotionScalarExecutionSample
Samples the execution at a deterministic adapter clock sample.
Sourcepub fn sample_since(
&self,
started_at: Instant,
now: Instant,
) -> MotionScalarExecutionSample
pub fn sample_since( &self, started_at: Instant, now: Instant, ) -> MotionScalarExecutionSample
Samples the execution from adapter instants while keeping deterministic elapsed-time semantics in the controller layer.
Trait Implementations§
Source§impl Clone for MotionScalarExecution
impl Clone for MotionScalarExecution
Source§impl Debug for MotionScalarExecution
impl Debug for MotionScalarExecution
Source§impl PartialEq for MotionScalarExecution
impl PartialEq for MotionScalarExecution
impl StructuralPartialEq for MotionScalarExecution
Auto Trait Implementations§
impl Freeze for MotionScalarExecution
impl RefUnwindSafe for MotionScalarExecution
impl Send for MotionScalarExecution
impl Sync for MotionScalarExecution
impl Unpin for MotionScalarExecution
impl UnsafeUnpin for MotionScalarExecution
impl UnwindSafe for MotionScalarExecution
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