-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtrajectoryfollowingform.h
62 lines (48 loc) · 1.52 KB
/
trajectoryfollowingform.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
#ifndef TRAJECTORYFOLLOWINGFORM_H
#define TRAJECTORYFOLLOWINGFORM_H
#include <QWidget>
#include <QGraphicsScene>
#include <QGraphicsLineItem>
#include <QGraphicsEllipseItem>
#include <QGraphicsItemGroup>
#include "mapviewmetainfo.h"
namespace Ui {
class TrajectoryFollowingForm;
}
enum LocalFrameMode {
LocalFrameAckermann,
LocalFramePointTurn
};
class TrajectoryFollowingForm : public QWidget
{
Q_OBJECT
signals:
void closing();
void sendPID();
public slots:
void updateLocalFrame(QPointF feedbackPoint, QPointF feedbackPathPoint, QVector<QPointF> feedforwardPoints, QPointF feedforwardCenter);
void updateLocalFrame(QPointF deviationPathPoint);
void clearLocalFrame();
public:
explicit TrajectoryFollowingForm(QWidget *parent = 0);
~TrajectoryFollowingForm();
void closeEvent(QCloseEvent *event);
private slots:
void on_resetButton_clicked();
void on_sendToRobotButton_clicked();
private:
Ui::TrajectoryFollowingForm *ui;
QGraphicsLineItem *feedbackLookAheadLineItem;
QGraphicsLineItem *feedbackErrorLineItem;
QGraphicsEllipseItem *feedbackPathPointEllipseItem;
QGraphicsEllipseItem *feedbackPointEllipseItem;
QGraphicsLineItem *deviationLineItem;
QGraphicsEllipseItem *deviationPathPointEllipseItem;
QGraphicsItemGroup *feedforwardItems;
QGraphicsEllipseItem *feedforwardCenterItem;
LocalFrameMode mode;
QGraphicsScene *localFrameScene;
MapViewMetaInfo *localFrameInfo;
void saveSettings();
};
#endif // TRAJECTORYFOLLOWINGFORM_H