ORB SLA2
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
ORB_SLAM2::Tracking Class Reference
Collaboration diagram for ORB_SLAM2::Tracking:
Collaboration graph
[legend]

Public Types

enum  eTrackingState {
  SYSTEM_NOT_READY =-1, NO_IMAGES_YET =0, NOT_INITIALIZED =1, OK =2,
  LOST =3
}
 

Public Member Functions

 Tracking (System *pSys, ORBVocabulary *pVoc, FrameDrawer *pFrameDrawer, MapDrawer *pMapDrawer, Map *pMap, KeyFrameDatabase *pKFDB, const string &strSettingPath, const int sensor)
 
cv::Mat GrabImageStereo (const cv::Mat &imRectLeft, const cv::Mat &imRectRight, const double &timestamp)
 
cv::Mat GrabImageRGBD (const cv::Mat &imRGB, const cv::Mat &imD, const double &timestamp)
 
cv::Mat GrabImageMonocular (const cv::Mat &im, const double &timestamp)
 
void SetLocalMapper (LocalMapping *pLocalMapper)
 
void SetLoopClosing (LoopClosing *pLoopClosing)
 
void SetViewer (Viewer *pViewer)
 
void ChangeCalibration (const string &strSettingPath)
 
void InformOnlyTracking (const bool &flag)
 
void Reset ()
 

Public Attributes

eTrackingState mState
 
eTrackingState mLastProcessedState
 
int mSensor
 
Frame mCurrentFrame
 
cv::Mat mImGray
 
std::vector< int > mvIniLastMatches
 
std::vector< int > mvIniMatches
 
std::vector< cv::Point2f > mvbPrevMatched
 
std::vector< cv::Point3f > mvIniP3D
 
Frame mInitialFrame
 
list< cv::Mat > mlRelativeFramePoses
 
list< KeyFrame * > mlpReferences
 
list< double > mlFrameTimes
 
list< bool > mlbLost
 
bool mbOnlyTracking
 

Protected Member Functions

void Track ()
 
void StereoInitialization ()
 
void MonocularInitialization ()
 
void CreateInitialMapMonocular ()
 
void CheckReplacedInLastFrame ()
 
bool TrackReferenceKeyFrame ()
 
void UpdateLastFrame ()
 
bool TrackWithMotionModel ()
 
bool Relocalization ()
 
void UpdateLocalMap ()
 
void UpdateLocalPoints ()
 
void UpdateLocalKeyFrames ()
 
bool TrackLocalMap ()
 
void SearchLocalPoints ()
 
bool NeedNewKeyFrame ()
 
void CreateNewKeyFrame ()
 

Protected Attributes

bool mbVO
 
LocalMappingmpLocalMapper
 
LoopClosingmpLoopClosing
 
ORBextractormpORBextractorLeft
 
ORBextractormpORBextractorRight
 
ORBextractormpIniORBextractor
 
ORBVocabulary * mpORBVocabulary
 
KeyFrameDatabasempKeyFrameDB
 
InitializermpInitializer
 
KeyFramempReferenceKF
 
std::vector< KeyFrame * > mvpLocalKeyFrames
 
std::vector< MapPoint * > mvpLocalMapPoints
 
SystemmpSystem
 
ViewermpViewer
 
FrameDrawermpFrameDrawer
 
MapDrawermpMapDrawer
 
MapmpMap
 
cv::Mat mK
 
cv::Mat mDistCoef
 
float mbf
 
int mMinFrames
 
int mMaxFrames
 
float mThDepth
 
float mDepthMapFactor
 
int mnMatchesInliers
 
KeyFramempLastKeyFrame
 
Frame mLastFrame
 
unsigned int mnLastKeyFrameId
 
unsigned int mnLastRelocFrameId
 
cv::Mat mVelocity
 
bool mbRGB
 
list< MapPoint * > mlpTemporalPoints
 

The documentation for this class was generated from the following files: