-
Notifications
You must be signed in to change notification settings - Fork 592
/
Copy pathMainController.h
66 lines (51 loc) · 1.65 KB
/
MainController.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 ElasticFusion.
*
* Copyright (C) 2015 Imperial College London
*
* The use of the code within this file and all code within files that
* make up the software that is ElasticFusion is permitted for
* non-commercial purposes only. The full terms and conditions that
* apply to the code within this file are detailed within the LICENSE.txt
* file and at
* <http://www.imperial.ac.uk/dyson-robotics-lab/downloads/elastic-fusion/elastic-fusion-license/>
* unless explicitly stated. By downloading this file you agree to
* comply with these terms.
*
* If you wish to use any of this code for commercial purposes then
* please email researchcontracts.engineering@imperial.ac.uk.
*
*/
#include "Core/ElasticFusion.h"
#include "Core/Utils/Parse.h"
#include "Tools/GUI.h"
#include "Tools/GroundTruthOdometry.h"
#include "Tools/LiveLogReader.h"
#include "Tools/RawLogReader.h"
#ifndef MAINCONTROLLER_H_
#define MAINCONTROLLER_H_
class MainController {
public:
MainController(int argc, char* argv[]);
virtual ~MainController();
void launch();
private:
void run();
void loadCalibration(const std::string& filename);
bool good;
ElasticFusion* eFusion;
GUI* gui;
GroundTruthOdometry* groundTruthOdometry;
LogReader* logReader;
bool iclnuim;
std::string logFile;
std::string poseFile;
float confidence, depth, icp, icpErrThresh, covThresh, photoThresh, fernThresh;
int timeDelta, icpCountThresh, start, end;
bool fillIn, openLoop, reloc, frameskip, quiet, fastOdom, so3, rewind, frameToFrameRGB;
int framesToSkip;
bool streaming;
bool resetButton;
Resize* resizeStream;
};
#endif /* MAINCONTROLLER_H_ */