1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- #ifndef VIEWER_H
- #define VIEWER_H
- #include "FrameDrawer.h"
- #include "MapDrawer.h"
- #include "Tracking.h"
- #include "System.h"
- #include <mutex>
- namespace ORB_SLAM3
- {
- class Tracking;
- class FrameDrawer;
- class MapDrawer;
- class System;
- class Viewer
- {
- public:
- Viewer(System* pSystem, FrameDrawer* pFrameDrawer, MapDrawer* pMapDrawer, Tracking *pTracking, const string &strSettingPath);
-
-
- void Run();
- void RequestFinish();
- void RequestStop();
- bool isFinished();
- bool isStopped();
- bool isStepByStep();
- void Release();
- void SetTrackingPause();
- bool both;
- private:
- bool ParseViewerParamFile(cv::FileStorage &fSettings);
- bool Stop();
- System* mpSystem;
- FrameDrawer* mpFrameDrawer;
- MapDrawer* mpMapDrawer;
- Tracking* mpTracker;
-
- double mT;
- float mImageWidth, mImageHeight;
- 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
-
|