forked from xiaoxifuhongse/ORB-SLAM-RGBD-with-Octomap
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Viewer.h
67 lines (41 loc) · 957 Bytes
/
Viewer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/**
* This file is part of ORB-SLAM2.
* 原来的 viewr 拆开,留下的作为基类,具体的 可视化 平台 作为子类 胖果林显示子类
*/
#ifndef VIEWER_H
#define VIEWER_H
#include "Tracking.h"
#include "System.h"
#include <mutex>
namespace ORB_SLAM2
{
class Tracking;
class System;
class Viewer {
public:
Viewer();
virtual void Run();
void RequestFinish();
void RequestStop();
bool isFinished();
bool isStopped();
void Release();
virtual void UpdateFrame(Tracking *pTracker);
virtual void SetCurrentCameraPose(const cv::Mat &Tcw);
virtual void Register(System* pSystem);
virtual void Finalize(void);
protected:
System* mpSystem;
bool mbFinished;
bool Stop();
bool CheckFinish();
void SetFinish();
private:
bool mbFinishRequested;
std::mutex mMutexFinish;
bool mbStopped;
bool mbStopRequested;
std::mutex mMutexStop;
};
}
#endif // VIEWER_H