ORB SLA2
MapDrawer.h
1 
21 #ifndef MAPDRAWER_H
22 #define MAPDRAWER_H
23 
24 #include"Map.h"
25 #include"MapPoint.h"
26 #include"KeyFrame.h"
27 #include<pangolin/pangolin.h>
28 
29 #include<mutex>
30 
31 namespace ORB_SLAM2
32 {
33 
34 class MapDrawer
35 {
36 public:
37  MapDrawer(Map* pMap, const string &strSettingPath);
38 
39  Map* mpMap;
40 
41  void DrawMapPoints();
42  void DrawKeyFrames(const bool bDrawKF, const bool bDrawGraph);
43  void DrawCurrentCamera(pangolin::OpenGlMatrix &Twc);
44  void SetCurrentCameraPose(const cv::Mat &Tcw);
45  void SetReferenceKeyFrame(KeyFrame *pKF);
46  void GetCurrentOpenGLCameraMatrix(pangolin::OpenGlMatrix &M);
47 
48 private:
49 
50  float mKeyFrameSize;
51  float mKeyFrameLineWidth;
52  float mGraphLineWidth;
53  float mPointSize;
54  float mCameraSize;
55  float mCameraLineWidth;
56 
57  cv::Mat mCameraPose;
58 
59  std::mutex mMutexCamera;
60 };
61 
62 } //namespace ORB_SLAM
63 
64 #endif // MAPDRAWER_H
Definition: KeyFrame.h:43
Definition: Converter.cpp:24
Definition: MapDrawer.h:34
Definition: Map.h:38