pub struct AdvancedPredictiveTracker { /* private fields */ }Expand description
Advanced predictive head movement compensation system
Implementations§
Source§impl AdvancedPredictiveTracker
impl AdvancedPredictiveTracker
Sourcepub fn new(config: PredictiveTrackingConfig) -> Result<Self>
pub fn new(config: PredictiveTrackingConfig) -> Result<Self>
Create new advanced predictive tracker
Sourcepub fn update_position(
&mut self,
position: Position3D,
timestamp: Instant,
) -> Result<()>
pub fn update_position( &mut self, position: Position3D, timestamp: Instant, ) -> Result<()>
Update head position with advanced prediction
Sourcepub fn predict_position(
&self,
lookahead_time: Duration,
) -> Result<PredictedPosition>
pub fn predict_position( &self, lookahead_time: Duration, ) -> Result<PredictedPosition>
Get advanced prediction using best available model
Sourcepub fn update_accuracy(
&mut self,
predicted: &PredictedPosition,
actual: Position3D,
)
pub fn update_accuracy( &mut self, predicted: &PredictedPosition, actual: Position3D, )
Update prediction accuracy based on actual observed position
Sourcepub fn metrics(&self) -> &PredictionMetrics
pub fn metrics(&self) -> &PredictionMetrics
Get prediction performance metrics
Sourcepub fn current_pattern(&self) -> Option<&MotionPattern>
pub fn current_pattern(&self) -> Option<&MotionPattern>
Get currently detected motion pattern
Sourcepub fn configure(&mut self, config: PredictiveTrackingConfig)
pub fn configure(&mut self, config: PredictiveTrackingConfig)
Configure prediction parameters
Auto Trait Implementations§
impl Freeze for AdvancedPredictiveTracker
impl !RefUnwindSafe for AdvancedPredictiveTracker
impl Send for AdvancedPredictiveTracker
impl Sync for AdvancedPredictiveTracker
impl Unpin for AdvancedPredictiveTracker
impl UnsafeUnpin for AdvancedPredictiveTracker
impl !UnwindSafe for AdvancedPredictiveTracker
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more