pub struct VisualMap {
pub cameras: HashMap<u64, Camera>,
pub landmarks: HashMap<u64, Landmark>,
pub landmark_position_covariances: HashMap<u64, Matrix<f64, Const<3>, Const<3>, ArrayStorage<f64, 3, 3>>>,
pub stereo_observations: Vec<StereoObservation>,
pub keyframes: HashMap<u64, Keyframe>,
/* private fields */
}Fields§
§cameras: HashMap<u64, Camera>§landmarks: HashMap<u64, Landmark>§landmark_position_covariances: HashMap<u64, Matrix<f64, Const<3>, Const<3>, ArrayStorage<f64, 3, 3>>>Optional world-frame position covariance for landmarks whose source geometry provides one (for example a calibrated stereo seed).
stereo_observations: Vec<StereoObservation>Right-image measurements paired by (frame_id, landmark_id) with the
ordinary left observations in keyframes / landmarks.
keyframes: HashMap<u64, Keyframe>Implementations§
Source§impl VisualMap
impl VisualMap
pub fn new() -> VisualMap
Sourcepub fn set_observation_confidence(
&mut self,
observation: &Observation,
confidence: f32,
) -> bool
pub fn set_observation_confidence( &mut self, observation: &Observation, confidence: f32, ) -> bool
Attach a normalized confidence to an observation. Returns false and
leaves the map unchanged for NaN, infinity, or values outside [0, 1].
pub fn observation_confidence(&self, observation: &Observation) -> Option<f32>
pub fn remove_observation_confidence( &mut self, observation: &Observation, ) -> Option<f32>
pub fn observation_confidence_count(&self) -> usize
Sourcepub fn observation_confidence_stats(&self) -> Option<(f32, f32, f32)>
pub fn observation_confidence_stats(&self) -> Option<(f32, f32, f32)>
(min, mean, max) over stored finite confidence values.
pub fn validate(&self) -> VisualMapValidationReport
pub fn validate_with_descriptors( &self, descriptor_store: Option<&LandmarkDescriptorStore>, ) -> VisualMapValidationReport
Trait Implementations§
impl StructuralPartialEq for VisualMap
Auto Trait Implementations§
impl Forget for VisualMap
impl Freeze for VisualMap
impl Move for VisualMap
impl RefUnwindSafe for VisualMap
impl Send for VisualMap
impl Sync for VisualMap
impl Unpin for VisualMap
impl UnsafeUnpin for VisualMap
impl UnwindSafe for VisualMap
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.