-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetparameters.h
67 lines (50 loc) · 1.42 KB
/
setparameters.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
#ifndef SETPARAMETERS_H
#define SETPARAMETERS_H
#include <QMainWindow>
#include <QMessageBox>
#include <vision.h>
#include <configrobots.h>
#include "settingsdialog.h"
#include "video4linuxconfig.h"
namespace Ui {
class SetParameters;
}
class SetParameters : public QMainWindow
{
Q_OBJECT
private:
void set_points(string fname, string area, int n_points);
public slots:
void updateVisionUI(QImage img);
void updateFPS(double val);
void updateSerialSettings(SettingsDialog::Settings settings);
signals:
void serialSettings(SettingsDialog::Settings);
public:
explicit SetParameters(QWidget *parent = 0);
~SetParameters();
private slots:
void closeEvent(QCloseEvent *event);
void on_initCapture_clicked();
void on_configRobots_clicked();
void on_readParameters_clicked();
void on_T1_color_clicked();
void on_T2_color_clicked();
void on_mapPoints_clicked();
void on_attackArrea_btn_clicked();
void on_defenseArrea_btn_clicked();
void on_ball_color_clicked();
void on_config_serial_clicked();
void on_calibrate_camera_clicked();
void on_spinBox_valueChanged(int camID);
private:
int cam_id;
Ui::SetParameters *ui;
ConfigRobots *conf;
Vision *eye;
SettingsDialog *serial_settings_dialog;
SettingsDialog::Settings serial_settings;
SetColorRange *set_team_color;
video4linuxConfig *calib_camera;
};
#endif // SETPARAMETERS_H