pub struct VioWorldRoot {
pub init_anchor: SpatialAnchor,
pub pose_history: Vec<HeadPose>,
pub is_stable: bool,
}Expand description
VIO/SLAM metric world root (OCS §5.1, L_6.1).
Fields§
§init_anchor: SpatialAnchorThe geodetic anchor where VIO was initialized
pose_history: Vec<HeadPose>Head pose history (most recent first)
is_stable: boolWhether the world root is stable (has converged)
Implementations§
Source§impl VioWorldRoot
impl VioWorldRoot
Sourcepub fn new(anchor: SpatialAnchor) -> Self
pub fn new(anchor: SpatialAnchor) -> Self
Creates a new VioWorldRoot.
Sourcepub fn update_pose(&mut self, pose: HeadPose)
pub fn update_pose(&mut self, pose: HeadPose)
Push a new head pose into the history.
Sourcepub fn current_pose(&self) -> Option<&HeadPose>
pub fn current_pose(&self) -> Option<&HeadPose>
Get the current (most recent) head pose.
Sourcepub fn check_stability(&self) -> bool
pub fn check_stability(&self) -> bool
Check anchor stability under camera translation (OCS-T05). Returns true if the anchor maintains sub-millimeter stability.
Trait Implementations§
Source§impl Clone for VioWorldRoot
impl Clone for VioWorldRoot
Auto Trait Implementations§
impl Freeze for VioWorldRoot
impl RefUnwindSafe for VioWorldRoot
impl Send for VioWorldRoot
impl Sync for VioWorldRoot
impl Unpin for VioWorldRoot
impl UnsafeUnpin for VioWorldRoot
impl UnwindSafe for VioWorldRoot
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