25 #include<opencv2/core/core.hpp> 26 #include<opencv2/features2d/features2d.hpp> 29 #include"FrameDrawer.h" 31 #include"LocalMapping.h" 32 #include"LoopClosing.h" 34 #include "ORBVocabulary.h" 35 #include"KeyFrameDatabase.h" 36 #include"ORBextractor.h" 37 #include "Initializer.h" 38 #include "MapDrawer.h" 61 cv::Mat GrabImageStereo(
const cv::Mat &imRectLeft,
const cv::Mat &imRectRight,
const double ×tamp);
62 cv::Mat GrabImageRGBD(
const cv::Mat &imRGB,
const cv::Mat &imD,
const double ×tamp);
63 cv::Mat GrabImageMonocular(
const cv::Mat &im,
const double ×tamp);
67 void SetViewer(
Viewer* pViewer);
72 void ChangeCalibration(
const string &strSettingPath);
75 void InformOnlyTracking(
const bool &flag);
89 eTrackingState mState;
90 eTrackingState mLastProcessedState;
100 std::vector<int> mvIniLastMatches;
101 std::vector<int> mvIniMatches;
102 std::vector<cv::Point2f> mvbPrevMatched;
103 std::vector<cv::Point3f> mvIniP3D;
108 list<cv::Mat> mlRelativeFramePoses;
109 list<KeyFrame*> mlpReferences;
110 list<double> mlFrameTimes;
124 void StereoInitialization();
127 void MonocularInitialization();
128 void CreateInitialMapMonocular();
130 void CheckReplacedInLastFrame();
131 bool TrackReferenceKeyFrame();
132 void UpdateLastFrame();
133 bool TrackWithMotionModel();
135 bool Relocalization();
137 void UpdateLocalMap();
138 void UpdateLocalPoints();
139 void UpdateLocalKeyFrames();
141 bool TrackLocalMap();
142 void SearchLocalPoints();
144 bool NeedNewKeyFrame();
145 void CreateNewKeyFrame();
162 ORBVocabulary* mpORBVocabulary;
170 std::vector<KeyFrame*> mvpLocalKeyFrames;
171 std::vector<MapPoint*> mvpLocalMapPoints;
199 float mDepthMapFactor;
202 int mnMatchesInliers;
207 unsigned int mnLastKeyFrameId;
208 unsigned int mnLastRelocFrameId;
216 list<MapPoint*> mlpTemporalPoints;
Definition: Tracking.h:53
Definition: KeyFrame.h:43
Definition: LoopClosing.h:44
Definition: KeyFrameDatabase.h:42
Definition: Converter.cpp:24
Definition: MapDrawer.h:34
Definition: Initializer.h:31
Definition: FrameDrawer.h:40
Definition: LocalMapping.h:40