123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- #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 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
-
|