Main Page
Modules
Namespaces
Classes
Files
File List
File Members
include
Viewer.h
Go to the documentation of this file.
1
22
#ifndef VIEWER_H
23
#define VIEWER_H
24
25
#include "
FrameDrawer.h
"
26
#include "
MapDrawer.h
"
27
#include "
Tracking.h
"
28
#include "
System.h
"
29
30
#include <mutex>
31
32
namespace
ORB_SLAM2
33
{
34
35
class
Tracking
;
36
class
FrameDrawer
;
37
class
MapDrawer
;
38
class
System
;
39
40
class
Viewer
41
{
42
public
:
43
Viewer
(
System
* pSystem,
FrameDrawer
* pFrameDrawer,
MapDrawer
* pMapDrawer,
Tracking
*pTracking,
const
string
&strSettingPath);
44
45
// Main thread function. Draw points, keyframes, the current camera pose and the last processed
46
// frame. Drawing is refreshed according to the camera fps. We use Pangolin.
47
void
Run
();
48
49
void
RequestFinish
();
50
51
void
RequestStop
();
52
53
bool
isFinished
();
54
55
bool
isStopped
();
56
57
void
Release
();
58
59
private
:
60
61
bool
Stop
();
62
63
System
*
mpSystem
;
64
FrameDrawer
*
mpFrameDrawer
;
65
MapDrawer
*
mpMapDrawer
;
66
Tracking
*
mpTracker
;
67
68
// 1/fps in ms
69
double
mT
;
70
float
mImageWidth
,
mImageHeight
;
71
72
float
mViewpointX
,
mViewpointY
,
mViewpointZ
,
mViewpointF
;
73
74
bool
CheckFinish
();
75
void
SetFinish
();
76
bool
mbFinishRequested
;
77
bool
mbFinished
;
78
std::mutex
mMutexFinish
;
79
80
bool
mbStopped
;
81
bool
mbStopRequested
;
82
std::mutex
mMutexStop
;
83
84
};
85
86
}
87
88
89
#endif // VIEWER_H
90
91
MapDrawer.h
ORB_SLAM2::Tracking
Definition:
Tracking.h:59
ORB_SLAM2::Viewer
Definition:
Viewer.h:40
ORB_SLAM2::Viewer::Release
void Release()
ORB_SLAM2::Viewer::mMutexStop
std::mutex mMutexStop
Definition:
Viewer.h:82
ORB_SLAM2::Viewer::mImageWidth
float mImageWidth
Definition:
Viewer.h:70
ORB_SLAM2::Viewer::mpMapDrawer
MapDrawer * mpMapDrawer
Definition:
Viewer.h:65
ORB_SLAM2::Viewer::mT
double mT
Definition:
Viewer.h:69
FrameDrawer.h
ORB_SLAM2::Viewer::mbFinished
bool mbFinished
Definition:
Viewer.h:77
ORB_SLAM2
Definition:
Converter.h:30
ORB_SLAM2::Viewer::mbFinishRequested
bool mbFinishRequested
Definition:
Viewer.h:76
ORB_SLAM2::Viewer::mpSystem
System * mpSystem
Definition:
Viewer.h:63
ORB_SLAM2::Viewer::mViewpointZ
float mViewpointZ
Definition:
Viewer.h:72
ORB_SLAM2::Viewer::isFinished
bool isFinished()
ORB_SLAM2::Viewer::mbStopRequested
bool mbStopRequested
Definition:
Viewer.h:81
ORB_SLAM2::Viewer::SetFinish
void SetFinish()
ORB_SLAM2::MapDrawer
Definition:
MapDrawer.h:34
Tracking.h
System.h
ORB_SLAM2::Viewer::RequestFinish
void RequestFinish()
ORB_SLAM2::Viewer::mMutexFinish
std::mutex mMutexFinish
Definition:
Viewer.h:78
ORB_SLAM2::Viewer::Viewer
Viewer(System *pSystem, FrameDrawer *pFrameDrawer, MapDrawer *pMapDrawer, Tracking *pTracking, const string &strSettingPath)
ORB_SLAM2::Viewer::mImageHeight
float mImageHeight
Definition:
Viewer.h:70
ORB_SLAM2::Viewer::mViewpointX
float mViewpointX
Definition:
Viewer.h:72
ORB_SLAM2::Viewer::Stop
bool Stop()
ORB_SLAM2::FrameDrawer
Definition:
FrameDrawer.h:40
ORB_SLAM2::Viewer::CheckFinish
bool CheckFinish()
ORB_SLAM2::Viewer::Run
void Run()
ORB_SLAM2::System
Definition:
System.h:62
ORB_SLAM2::Viewer::mViewpointY
float mViewpointY
Definition:
Viewer.h:72
ORB_SLAM2::Viewer::mpTracker
Tracking * mpTracker
Definition:
Viewer.h:66
ORB_SLAM2::Viewer::mViewpointF
float mViewpointF
Definition:
Viewer.h:72
ORB_SLAM2::Viewer::mpFrameDrawer
FrameDrawer * mpFrameDrawer
Definition:
Viewer.h:64
ORB_SLAM2::Viewer::isStopped
bool isStopped()
ORB_SLAM2::Viewer::mbStopped
bool mbStopped
Definition:
Viewer.h:80
ORB_SLAM2::Viewer::RequestStop
void RequestStop()
orb_slam2_with_maps_odom
Author(s): teng zhang
autogenerated on Fri Sep 25 2020 03:24:47