pub struct AppearanceLoopCandidateBuildResult {
pub candidates: Vec<LoopClosureCandidate>,
pub connected_region_rejected_count: usize,
pub pnp_verified_count: usize,
pub projection_rejected_count: usize,
pub covisibility_rejected_count: usize,
pub diagnostics: Vec<AppearanceLoopCandidateDiagnostic>,
}Expand description
Build and PnP-verify appearance-based long-range loop-closure candidates
for frame against the per-keyframe mean descriptors cached in
descriptor_cache (see
OnlineSlamLoopClosureRefinementState::appearance_descriptor_cache).
Ranks past keyframes at least config.min_keyframe_id_gap keyframe-ids
older than frame.id by cosine similarity of their cached mean
descriptor against frame’s mean descriptor (reusing the same
relocalization_mean_descriptor / relocalization_descriptor_cosine
machinery OnlineSlamRelocalizationAppearanceConfig’s retrieval store
uses), keeps the top config.max_candidates_per_frame, and for each one:
- builds a
visloc_core::types::LandmarkDescriptorStorescoped to that keyframe’s own observed landmarks (appearance_loop_candidate_descriptor_store); - builds 2D-3D correspondences by matching
frame’s descriptors against that store viavisloc_localization::CorrespondenceBuilder— descriptor appearance alone, since appearance candidates share no landmark ids withframeby construction; - runs
PnPLoopClosureVerifier(configured byconfig.pnp_verifier) on the resulting correspondences against the candidate keyframe’s stored pose.
Returns one LoopClosureCandidate per candidate keyframe that passed
the PnP verifier’s acceptance gates, with verification populated —
ready for LoopClosureConstraint::from_verified_candidate, the same
as the shared-landmark detector’s output. Candidates without a stored
pose, without a viable descriptor store (fewer than
config.min_candidate_landmark_count descriptors), or without a
correspondence match are silently skipped.
Fields§
§candidates: Vec<LoopClosureCandidate>§connected_region_rejected_count: usize§pnp_verified_count: usize§projection_rejected_count: usize§covisibility_rejected_count: usize§diagnostics: Vec<AppearanceLoopCandidateDiagnostic>Trait Implementations§
Source§impl Clone for AppearanceLoopCandidateBuildResult
impl Clone for AppearanceLoopCandidateBuildResult
Source§fn clone(&self) -> AppearanceLoopCandidateBuildResult
fn clone(&self) -> AppearanceLoopCandidateBuildResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for AppearanceLoopCandidateBuildResult
impl Default for AppearanceLoopCandidateBuildResult
Source§fn default() -> AppearanceLoopCandidateBuildResult
fn default() -> AppearanceLoopCandidateBuildResult
impl StructuralPartialEq for AppearanceLoopCandidateBuildResult
Auto Trait Implementations§
impl Forget for AppearanceLoopCandidateBuildResult
impl Freeze for AppearanceLoopCandidateBuildResult
impl Move for AppearanceLoopCandidateBuildResult
impl RefUnwindSafe for AppearanceLoopCandidateBuildResult
impl Send for AppearanceLoopCandidateBuildResult
impl Sync for AppearanceLoopCandidateBuildResult
impl Unpin for AppearanceLoopCandidateBuildResult
impl UnsafeUnpin for AppearanceLoopCandidateBuildResult
impl UnwindSafe for AppearanceLoopCandidateBuildResult
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
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> ⓘ
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> ⓘ
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>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.