pub struct SparseFactorGraph { /* private fields */ }Implementations§
Source§impl SparseFactorGraph
impl SparseFactorGraph
pub fn new(config: SparseFactorGraphConfig) -> SparseFactorGraph
pub const fn config(&self) -> &SparseFactorGraphConfig
pub fn factors(&self) -> impl Iterator<Item = &SparseKeyframeFactor>
pub fn active_factors(&self) -> impl Iterator<Item = &SparseKeyframeFactor>
pub fn inactive_factors(&self) -> impl Iterator<Item = &SparseKeyframeFactor>
pub fn factor(&self, key: SparseFactorKey) -> Option<&SparseKeyframeFactor>
Sourcepub fn update_measurement(
&mut self,
key: SparseFactorKey,
measurement: SparseFactorMeasurement,
) -> bool
pub fn update_measurement( &mut self, key: SparseFactorKey, measurement: SparseFactorMeasurement, ) -> bool
Replace an edge target/information estimate, e.g. from a learned recurrent update operator. Invalid numerical values are rejected.
Sourcepub fn reactivate_factor(&mut self, key: SparseFactorKey) -> bool
pub fn reactivate_factor(&mut self, key: SparseFactorKey) -> bool
Explicitly reactivate an inactive factor selected by a broader geometric/learned recovery pass. Ordinary rescoring does not revive budget- or age-retired edges, avoiding active-set churn.
Sourcepub fn update_from_map(
&mut self,
map: &VisualMap,
new_keyframe_id: u64,
) -> SparseFactorGraphUpdateStats
pub fn update_from_map( &mut self, map: &VisualMap, new_keyframe_id: u64, ) -> SparseFactorGraphUpdateStats
Update proposals and lifecycle after a keyframe has been committed to the map. Existing inactive factors are rescored so a broader recovery pass can reactivate geometry that becomes supported again.
Sourcepub fn broader_recovery_candidates(
&self,
query_keyframe_id: u64,
maximum: usize,
) -> Vec<&SparseKeyframeFactor>
pub fn broader_recovery_candidates( &self, query_keyframe_id: u64, maximum: usize, ) -> Vec<&SparseKeyframeFactor>
Highest-confidence inactive edges incident to query_keyframe_id.
These are the first edges a periodic broader/global recovery pass
should ask its geometric or learned updater to reconsider.
Sourcepub fn active_neighbor_keyframe_ids(&self, keyframe_id: u64) -> BTreeSet<u64>
pub fn active_neighbor_keyframe_ids(&self, keyframe_id: u64) -> BTreeSet<u64>
Active non-self neighbors connected to one keyframe. Both directed orientations collapse to one deterministic id set.
Trait Implementations§
Source§impl Clone for SparseFactorGraph
impl Clone for SparseFactorGraph
Source§fn clone(&self) -> SparseFactorGraph
fn clone(&self) -> SparseFactorGraph
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SparseFactorGraph
impl Debug for SparseFactorGraph
Source§impl PartialEq for SparseFactorGraph
impl PartialEq for SparseFactorGraph
impl StructuralPartialEq for SparseFactorGraph
Auto Trait Implementations§
impl Forget for SparseFactorGraph
impl Freeze for SparseFactorGraph
impl Move for SparseFactorGraph
impl RefUnwindSafe for SparseFactorGraph
impl Send for SparseFactorGraph
impl Sync for SparseFactorGraph
impl Unpin for SparseFactorGraph
impl UnsafeUnpin for SparseFactorGraph
impl UnwindSafe for SparseFactorGraph
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.