Go to the documentation of this file.
26 virtual void addFrame(std::shared_ptr<isae::Frame> &frame) = 0;
43 for (uint i = 0; i < std::min(N,
_frames.size()); ++i) {
58 for (
auto &typed_ldmks : all_ldmks) {
59 for (
auto &ldmk : typed_ldmks.second) {
60 if (!(!ldmk->isInitialized() || ldmk->isInMap() || ldmk->getFeatures().empty())) {
71 std::deque<std::shared_ptr<Frame>>
_frames;
std::shared_ptr< isae::Frame > getLastFrame()
Get the last frame added to the map.
Definition: amap.h:33
std::deque< std::shared_ptr< Frame > > & getFrames()
Definition: amap.h:28
void getLastNFramesIn(size_t N, std::vector< std::shared_ptr< isae::Frame >> &dest)
Provides the last N frames added to the map.
Definition: amap.h:42
std::deque< std::shared_ptr< Frame > > _frames
A deque of frames in the map, ordered by time.
Definition: amap.h:71
size_t getMapSize()
Definition: amap.h:49
typed_vec_landmarks & getLandmarks()
Definition: amap.h:48
typed_vec_landmarks _landmarks
All types of landmark in the map stored as std vectors.
Definition: amap.h:72
void pushLandmarks(std::shared_ptr< isae::Frame > &frame)
Add all the landmarks of a frame to the map.
Definition: amap.h:54
virtual void addFrame(std::shared_ptr< isae::Frame > &frame)=0
Add a frame to the map.
Definition: AFeature2D.h:8
std::unordered_map< std::string, std::vector< std::shared_ptr< isae::ALandmark > > > typed_vec_landmarks
A typed vector of landmarks to handle hetereogeneous landmark sets.
Definition: typedefs.h:30
Abstract class for a Map.
Definition: amap.h:16