Go to the documentation of this file.
16 LocalMap(
size_t min_kf_number,
size_t max_kf_number,
size_t fixedFrameNumber);
24 void addFrame(std::shared_ptr<Frame> &frame)
override;
45 std::shared_ptr<Frame> &frame2,
46 Eigen::Affine3d &T_f1_f2,
47 Eigen::MatrixXd &cov);
bool getMarginalizationFlag()
Definition: localmap.h:49
size_t getFixedFrameNumber()
Definition: localmap.h:35
std::vector< Eigen::Affine3d > _removed_frame_poses
old frames poses, for debugging purposes
Definition: localmap.h:80
Class for a Local Map.
Definition: localmap.h:13
void addFrame(std::shared_ptr< Frame > &frame) override
Add a frame to the local map.
Definition: localmap.cpp:9
std::vector< Eigen::Affine3d > & getOldFramesPoses()
Definition: localmap.h:36
void reset()
Reset the local map.
Definition: localmap.cpp:78
size_t _fixed_frames_number
number of frame that remain static during windowed BA
Definition: localmap.h:78
void removeFrame(std::shared_ptr< Frame > &frame)
Remove a frame from the local map.
Definition: localmap.cpp:28
std::mutex _localmap_mtx
Definition: localmap.h:82
Definition: AFeature2D.h:8
size_t _max_kf_number
size of the sliding window
Definition: localmap.h:77
bool computeRelativePose(std::shared_ptr< Frame > &frame1, std::shared_ptr< Frame > &frame2, Eigen::Affine3d &T_f1_f2, Eigen::MatrixXd &cov)
Compute the relative pose between two frames.
Definition: localmap.cpp:91
size_t _min_kf_number
number of keyframes that are added by default when the map starts
Definition: localmap.h:76
size_t getWindowSize()
Definition: localmap.h:34
void discardLastFrame()
Discard the last frame from the local map.
Definition: localmap.cpp:43
void removeEmptyLandmarks()
Remove landmarks from the local map that do not have any features.
Definition: localmap.cpp:60
Abstract class for a Map.
Definition: amap.h:16
bool _margin_flag
flag raised if the the last frame needs to be marginalized
Definition: localmap.h:79