pub struct StagedMapUpdate {
pub keyframes: Vec<Keyframe>,
pub landmarks: Vec<Landmark>,
pub landmark_position_covariances: Vec<(LandmarkId, Matrix3<f64>)>,
pub observations: Vec<Observation>,
pub stereo_observations: Vec<StereoObservation>,
}Fields§
§keyframes: Vec<Keyframe>§landmarks: Vec<Landmark>§landmark_position_covariances: Vec<(LandmarkId, Matrix3<f64>)>§observations: Vec<Observation>§stereo_observations: Vec<StereoObservation>Implementations§
Source§impl StagedMapUpdate
impl StagedMapUpdate
pub fn new() -> Self
pub fn stage_keyframe(&mut self, keyframe: Keyframe)
pub fn stage_landmark(&mut self, landmark: Landmark)
pub fn stage_landmark_position_covariance( &mut self, landmark_id: LandmarkId, covariance_world: Matrix3<f64>, )
pub fn stage_observation(&mut self, observation: Observation)
pub fn stage_stereo_observation(&mut self, observation: StereoObservation)
pub fn with_keyframe(self, keyframe: Keyframe) -> Self
pub fn with_landmark(self, landmark: Landmark) -> Self
pub fn with_landmark_position_covariance( self, landmark_id: LandmarkId, covariance_world: Matrix3<f64>, ) -> Self
pub fn with_observation(self, observation: Observation) -> Self
pub fn stage_triangulated_landmark( &mut self, triangulated: TriangulatedLandmark, )
pub fn is_empty(&self) -> bool
pub fn validate_against(&self, map: &VisualMap) -> MapUpdateValidationReport
pub fn apply_to( self, map: &mut VisualMap, ) -> Result<AppliedMapUpdate, MapUpdateValidationReport>
Trait Implementations§
Source§impl Clone for StagedMapUpdate
impl Clone for StagedMapUpdate
Source§impl Debug for StagedMapUpdate
impl Debug for StagedMapUpdate
Source§impl Default for StagedMapUpdate
impl Default for StagedMapUpdate
Source§impl PartialEq for StagedMapUpdate
impl PartialEq for StagedMapUpdate
impl StructuralPartialEq for StagedMapUpdate
Auto Trait Implementations§
impl Forget for StagedMapUpdate
impl Freeze for StagedMapUpdate
impl Move for StagedMapUpdate
impl RefUnwindSafe for StagedMapUpdate
impl Send for StagedMapUpdate
impl Sync for StagedMapUpdate
impl Unpin for StagedMapUpdate
impl UnsafeUnpin for StagedMapUpdate
impl UnwindSafe for StagedMapUpdate
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,
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.