123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- #ifndef VIEWER_H
- #define VIEWER_H
- #include "FrameDrawer.h"
- #include "MapDrawer.h"
- #include "Tracking.h"
- #include "System.h"
- #include "Settings.h"
- #include <mutex>
- namespace ORB_SLAM3
- {
- class Tracking;
- class FrameDrawer;
- class MapDrawer;
- class System;
- class Settings;
- class Viewer
- {
- public:
- EIGEN_MAKE_ALIGNED_OPERATOR_NEW
- Viewer(System* pSystem, FrameDrawer* pFrameDrawer, MapDrawer* pMapDrawer, Tracking *pTracking, const string &strSettingPath, Settings* settings);
- void newParameterLoader(Settings* settings);
-
-
- void Run();
- void RequestFinish();
- void RequestStop();
- bool isFinished();
- bool isStopped();
- bool isStepByStep();
- void Release();
-
- bool both;
- private:
- bool ParseViewerParamFile(cv::FileStorage &fSettings);
- bool Stop();
- System* mpSystem;
- FrameDrawer* mpFrameDrawer;
- MapDrawer* mpMapDrawer;
- Tracking* mpTracker;
-
- double mT;
- float mImageWidth, mImageHeight;
- float mImageViewerScale;
- float mViewpointX, mViewpointY, mViewpointZ, mViewpointF;
- bool CheckFinish();
- void SetFinish();
- bool mbFinishRequested;
- bool mbFinished;
- std::mutex mMutexFinish;
- bool mbStopped;
- bool mbStopRequested;
- std::mutex mMutexStop;
- bool mbStopTrack;
- };
- }
- #endif
-
|