-
Notifications
You must be signed in to change notification settings - Fork 5
/
GlobalInformation.h
63 lines (47 loc) · 1.41 KB
/
GlobalInformation.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
#pragma once
#include <string>
#include <vector>
#include <opencv2/opencv.hpp>
// GlobalEnumerationConstants.h <-- including the enumeration constants for some variables
// Struct for detected vehicles and persons
struct Object {
int x; // Top left corner
int y; // Top left corner
int width;
int height;
int objectType; // of type OBJECTS
int insideWarningZone; // of type WARNING_ZONE
int distance;
};
struct GlobalInformation {
int fps;
int frameNumber;
int maxTrackViewDistance;
int minTrackViewDistance;
int laneStatus; // of type LANE_STATUS
bool switchDetected;
int switchedLaneStatus; // of type SWITCH
int incomingSwitchStatus; // of type SWITCH
int currentMainSignalMessage; // of type MAIN_SIGNAL_MESSAGE
int nextMainSignalMessage; // of type MAIN_SIGNAL_MESSAGE
int currentRoadCrossingMessage; // of type ROAD_CROSSING_MESSAGE
int nextRoadCrossingMessage; // of type ROAD_CROSSING_MESSAGE
bool roadCrossingDetected;
bool roadCrossingBarriersDetected;
int distanceToRoadCrossing;
int maxSpeedLimit;
bool ATCSpeedUpSignDetected;
bool ATCSpeedDownSignDetected;
bool warningSignDetected;
bool distantSignalSignDetected;
bool signVDetected;
int distanceToMainSignal;
int distanceToRoadCrossingSignal;
int distanceToSpeedSign;
int leftPolesCounter;
int rightPolesCounter;
std::vector<Object> objectList;
std::string errors;
cv::Mat image;
};
inline GlobalInformation globalInformation;