MapDrawer.h
Go to the documentation of this file.
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 
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 
53  float mPointSize;
54  float mCameraSize;
56 
57  cv::Mat mCameraPose;
58 
59  std::mutex mMutexCamera;
60 };
61 
62 } //namespace ORB_SLAM
63 
64 #endif // MAPDRAWER_H
void SetReferenceKeyFrame(KeyFrame *pKF)
MapDrawer(Map *pMap, const string &strSettingPath)
void SetCurrentCameraPose(const cv::Mat &Tcw)
float mKeyFrameLineWidth
Definition: MapDrawer.h:51
void DrawKeyFrames(const bool bDrawKF, const bool bDrawGraph)
std::mutex mMutexCamera
Definition: MapDrawer.h:59
void DrawCurrentCamera(pangolin::OpenGlMatrix &Twc)
void GetCurrentOpenGLCameraMatrix(pangolin::OpenGlMatrix &M)


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