forked from sourishg/rrt-simulator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow.h
43 lines (37 loc) · 774 Bytes
/
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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <pthread.h>
#include <QDebug>
#include "renderarea.h"
#include "ctimer.h"
#include "rrt.h"
#define MAX_THREADS 1
#define THRESHOLD 30
typedef struct {
float start_x, start_y;
float goal_x, goal_y;
int max_iterations, step_size;
bool path_found;
Obstacles *obstacles;
vector<Node *> nodes;
} ThreadArgs;
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private:
Ui::MainWindow *ui;
RenderArea *renderArea;
RRT *rrt;
bool simulated;
private slots:
void on_startButton_clicked();
void on_resetButton_clicked();
};
#endif // MAINWINDOW_H