-
Notifications
You must be signed in to change notification settings - Fork 8
/
mainwindow.h
97 lines (67 loc) · 1.67 KB
/
mainwindow.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <ios>
#ifndef USE_OPENCV3
// OpenCV includes
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/video/video.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/videostab/videostab.hpp>
#include <opencv2/features2d/features2d.hpp>
#include <opencv2/stitching/stitcher.hpp>
#else
// OpenCV 3:
#include <opencv2/core.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/video.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/videostab.hpp>
#include <opencv2/features2d.hpp>
#include <opencv2/stitching.hpp>
#endif
using namespace cv;
#include <QMainWindow>
// Project includes
#include "kilobottracker.h"
#include "kilobotoverheadcontroller.h"
//#include "kilobotexperiment.h"
class UserThread;
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
public slots:
/*!
* \brief setVideoSource
* Method to generate a dialog used for setting the video source
*/
void setVideoSource();
void getExperiment();
void assignIDs();
void calibrate();
void identify();
void toggleRunButton(int expTypeInt);
void activateExpButtons(int swarmSize);
void rotate_pos();
void rotate_neg();
void runExpt();
void setGUILayout(QWidget *);
void left();
void right();
void straight();
void test_id();
private:
Ui::MainWindow *ui;
KilobotTracker kbtracker;
KilobotOverheadController ohc;
UserThread * thread = NULL;
int robcomm[3] = {3,3,3};
QString userExpt;
};
#endif // MAINWINDOW_H