12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- #ifndef MAPDRAWER_H
- #define MAPDRAWER_H
- #include"Atlas.h"
- #include"MapPoint.h"
- #include"KeyFrame.h"
- #include "Settings.h"
- #include<pangolin/pangolin.h>
- #include<mutex>
- namespace ORB_SLAM3
- {
- class Settings;
- class MapDrawer
- {
- public:
- EIGEN_MAKE_ALIGNED_OPERATOR_NEW
- MapDrawer(Atlas* pAtlas, const string &strSettingPath, Settings* settings);
- void newParameterLoader(Settings* settings);
- Atlas* mpAtlas;
- void DrawMapPoints();
- void DrawKeyFrames(const bool bDrawKF, const bool bDrawGraph, const bool bDrawInertialGraph, const bool bDrawOptLba);
- void DrawCurrentCamera(pangolin::OpenGlMatrix &Twc);
- void SetCurrentCameraPose(const Sophus::SE3f &Tcw);
- void SetReferenceKeyFrame(KeyFrame *pKF);
- void GetCurrentOpenGLCameraMatrix(pangolin::OpenGlMatrix &M, pangolin::OpenGlMatrix &MOw);
- private:
- bool ParseViewerParamFile(cv::FileStorage &fSettings);
- float mKeyFrameSize;
- float mKeyFrameLineWidth;
- float mGraphLineWidth;
- float mPointSize;
- float mCameraSize;
- float mCameraLineWidth;
- Sophus::SE3f mCameraPose;
- std::mutex mMutexCamera;
- float mfFrameColors[6][3] = {{0.0f, 0.0f, 1.0f},
- {0.8f, 0.4f, 1.0f},
- {1.0f, 0.2f, 0.4f},
- {0.6f, 0.0f, 1.0f},
- {1.0f, 1.0f, 0.0f},
- {0.0f, 1.0f, 1.0f}};
- };
- }
- #endif
|