pub struct EssentialMatrixVisualOdometryFrontend { /* private fields */ }Expand description
Two-view VO frontend backed by the classical essential-matrix RANSAC
pipeline in visloc-vision. Compared to TwoViewMatchVisualOdometryFrontend
— which estimates a translation-only flow — this frontend recovers a full
SE3 relative pose (rotation + scaled translation) and reports inliers
against the Sampson distance.
The translation is fundamentally up-to-scale. Callers can either:
- Use
default_translation_scale(a fixed metric scale, e.g., the typical inter-frame displacement); - Provide a per-pair scale through
Self::insert_matches_with_scalesourced from GNSS displacement, the previous frame’s translation, or another prior.
VisualOdometryEstimate.mean_reprojection_error stores the mean inlier
Sampson distance in normalized image-plane units (i.e., divided by focal
length). To convert to pixels, multiply by the camera’s focal length.
Implementations§
Source§impl EssentialMatrixVisualOdometryFrontend
impl EssentialMatrixVisualOdometryFrontend
pub fn new(camera: Camera, config: EssentialMatrixVisualOdometryConfig) -> Self
pub const fn camera(&self) -> &Camera
pub const fn min_inliers(&self) -> usize
pub const fn default_translation_scale(&self) -> f64
pub fn insert_matches( &mut self, previous_frame_id: FrameId, current_frame_id: FrameId, matches: TwoViewMatchSet, )
pub fn insert_matches_with_scale( &mut self, previous_frame_id: FrameId, current_frame_id: FrameId, matches: TwoViewMatchSet, translation_scale: f64, )
pub fn with_matches( self, previous_frame_id: FrameId, current_frame_id: FrameId, matches: TwoViewMatchSet, ) -> Self
pub fn with_matches_and_scale( self, previous_frame_id: FrameId, current_frame_id: FrameId, matches: TwoViewMatchSet, translation_scale: f64, ) -> Self
pub fn matches_for( &self, previous_frame_id: FrameId, current_frame_id: FrameId, ) -> Option<&TwoViewMatchSet>
Trait Implementations§
impl StructuralPartialEq for EssentialMatrixVisualOdometryFrontend
Auto Trait Implementations§
impl Forget for EssentialMatrixVisualOdometryFrontend
impl Freeze for EssentialMatrixVisualOdometryFrontend
impl Move for EssentialMatrixVisualOdometryFrontend
impl RefUnwindSafe for EssentialMatrixVisualOdometryFrontend
impl Send for EssentialMatrixVisualOdometryFrontend
impl Sync for EssentialMatrixVisualOdometryFrontend
impl Unpin for EssentialMatrixVisualOdometryFrontend
impl UnsafeUnpin for EssentialMatrixVisualOdometryFrontend
impl UnwindSafe for EssentialMatrixVisualOdometryFrontend
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.