This repository was archived by the owner on Jan 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathtypes.h
More file actions
80 lines (69 loc) · 1.38 KB
/
types.h
File metadata and controls
80 lines (69 loc) · 1.38 KB
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
///
/// @file
/// @copyright Copyright (C) 2017, Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
///
/// @brief
///
#pragma once
#include "osi_common.pb.h"
#include <QVector>
#include <QVector3D>
#include <QColor>
#include <memory>
enum class DataType: int
{
SensorView = 0,
SensorData
};
enum class LaneType: int
{
BoundaryLanes = 0,
CenterLanes
};
enum class ObjectType: int
{
UnknownObject = 0,
OtherObject,
Car,
Truck,
MotorBike,
Bicycle,
Trailer,
Pedestrian,
Animal,
Bridge,
Building,
Pylon,
ReflectorPost,
Delineator,
TrafficSign,
TrafficLight,
None
};
struct MessageStruct
{
QString id;
QString name;
ObjectType type;
float orientation;
QVector3D position;
QVector3D realPosition;
QVector3D velocitie;
QVector3D acceleration;
osi3::Dimension3d dimension;
QVector<QVector3D> basePoly;
};
using Message = QVector<MessageStruct>;
struct LaneStruct
{
int id;
QVector<QVector<QVector3D> > centerLanes;
QVector<QVector<QVector3D> > boundaryLanes;
};
using LaneMessage = QVector<LaneStruct>;
struct PointStruct
{
QVector3D position; // Carthesian global coordinates of the point
float color; // The color is a real number in [0,1]
};
using PointMessage = QVector<PointStruct>;