-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlocation.h
60 lines (43 loc) · 1.26 KB
/
location.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
#define TRAJECTORY_SIZE 33
#ifndef LOCATION_H
#define LOCATION_H
#include <QObject>
#include <QThread>
#include <QReadWriteLock>
#include <QDebug>
#include "../repos/commaai/cereal/messaging/messaging.hpp"
QT_USE_NAMESPACE
class Location : public QObject {
Q_OBJECT
public:
Location();
~Location();
// // sockets
SubMaster *m_sm;
cereal::ControlsState::Reader controls_state;
cereal::GpsLocationData::Reader gps_state;
cereal::ModelDataV2::Reader model;
float lat;
float lon;
float bea;
float vel;
cereal::ModelDataV2::XYZTData::Reader lane_lines;
cereal::ModelDataV2::XYZTData::Reader road_edges;
float lane_line_prob[4];
float road_edge_std[2];
//should L/R lines/edges + trajectory xyz
float laneX[4][TRAJECTORY_SIZE];
float laneY[4][TRAJECTORY_SIZE];
float laneZ[4][TRAJECTORY_SIZE];
float edgeX[2][TRAJECTORY_SIZE];
float edgeY[2][TRAJECTORY_SIZE];
float edgeZ[2][TRAJECTORY_SIZE];
bool modelConnected = false;
public slots:
void handle_message();
signals:
void newMsg();
// private:
// void getLocation();
};
#endif