KeyFrameDatabase.h
Go to the documentation of this file.
1 
21 #ifndef KEYFRAMEDATABASE_H
22 #define KEYFRAMEDATABASE_H
23 
24 #include <vector>
25 #include <list>
26 #include <set>
27 
28 #include "KeyFrame.h"
29 #include "Frame.h"
30 #include "ORBVocabulary.h"
31 
32 #include<mutex>
33 
34 
35 namespace ORB_SLAM2
36 {
37 
38 class KeyFrame;
39 class Frame;
40 
41 
43 {
44 public:
45 
46  KeyFrameDatabase(const ORBVocabulary &voc);
47 
48  void add(KeyFrame* pKF);
49 
50  void erase(KeyFrame* pKF);
51 
52  void clear();
53 
54  // Loop Detection
55  std::vector<KeyFrame *> DetectLoopCandidates(KeyFrame* pKF, float minScore);
56 
57  // Relocalization
58  std::vector<KeyFrame*> DetectRelocalizationCandidates(Frame* F);
59 
60 protected:
61 
62  // Associated vocabulary
64 
65  // Inverted file
66  std::vector<list<KeyFrame*> > mvInvertedFile;
67 
68  // Mutex
69  std::mutex mMutex;
70 };
71 
72 } //namespace ORB_SLAM
73 
74 #endif
std::vector< list< KeyFrame * > > mvInvertedFile
void erase(KeyFrame *pKF)
std::vector< KeyFrame * > DetectRelocalizationCandidates(Frame *F)
void add(KeyFrame *pKF)
std::vector< KeyFrame * > DetectLoopCandidates(KeyFrame *pKF, float minScore)
const ORBVocabulary * mpVoc
KeyFrameDatabase(const ORBVocabulary &voc)


orb_slam2_with_maps_odom
Author(s): teng zhang
autogenerated on Fri Sep 25 2020 03:24:47