pub struct CameraTracker { /* private fields */ }Expand description
Camera tracker
Implementations§
Source§impl CameraTracker
impl CameraTracker
Sourcepub fn new(config: CameraTrackerConfig) -> Result<Self>
pub fn new(config: CameraTrackerConfig) -> Result<Self>
Create new camera tracker
Sourcepub fn update(&mut self, timestamp_ns: u64) -> Result<CameraPose>
pub fn update(&mut self, timestamp_ns: u64) -> Result<CameraPose>
Update camera tracking
Sourcepub fn current_pose(&self) -> &CameraPose
pub fn current_pose(&self) -> &CameraPose
Get current camera pose
Sourcepub fn tracking_state(&self) -> TrackingState
pub fn tracking_state(&self) -> TrackingState
Get tracking state
Sourcepub fn config(&self) -> &CameraTrackerConfig
pub fn config(&self) -> &CameraTrackerConfig
Get configuration
Auto Trait Implementations§
impl Freeze for CameraTracker
impl RefUnwindSafe for CameraTracker
impl Send for CameraTracker
impl Sync for CameraTracker
impl Unpin for CameraTracker
impl UnsafeUnpin for CameraTracker
impl UnwindSafe for CameraTracker
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> 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