-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutput.proto
119 lines (109 loc) · 2.52 KB
/
output.proto
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
syntax = "proto3";
import "google/protobuf/timestamp.proto";
import "sensr_proto/global_type.proto";
import "sensr_proto/type.proto";
import "sensr_proto/custom.proto";
package sensr_proto;
message ZoneEvent {
enum Type {
NONE = 0;
ENTRY = 1;
EXIT = 2;
LOITERING = 3;
EXCEEDS_SPEED = 4;
}
message Object {
int32 id = 1;
Vector3 position = 2;
float heading = 3;
Vector3 velocity = 4;
}
google.protobuf.Timestamp timestamp = 1;
int32 id = 2;
Type type = 3;
Object object = 4;
}
message LosingEvent {
google.protobuf.Timestamp timestamp = 1;
int32 id = 2;
Vector3 position = 3;
float heading = 4;
}
message SystemHealth {
enum Status {
NONE = 0;
OK = 1;
STORAGE_SHORTAGE = 2;
SLOWDOWN = 3;
INTERNAL_ERROR = 4;
OUTPUT_BUFFER_OVERFLOW = 5;
}
message Node {
enum Status {
reserved 7;
NONE = 0;
OK = 1;
ROS_ERROR = 2;
LOST_CONNECTION = 3;
INVALID_GPU_CONFIGURATION = 4;
NETWORK_LATENCY = 5;
INVALID_CONFIG = 6;
INITIALIZATION_ERROR = 8;
VERSION_MISMATCH = 9;
EMPTY_ROSBAG_PLAY = 10;
STORAGE_SHORTAGE = 11;
}
enum SensorStatus {
SENSOR_DEAD = 0;
SENSOR_ALIVE = 1;
SENSOR_ERRONEOUS = 2;
SENSOR_TILTED = 3;
SENSOR_SUSPENDED = 4;
}
message EdgeNodeInfo {
Status status = 1;
map<string, SensorStatus> sensors = 2;
}
Status status = 1;
map<string, SensorStatus> sensors = 3;
reserved 4;
map<string, EdgeNodeInfo> edges = 5;
}
Status master = 1;
map<string, Node> nodes = 2;
}
message OnlineRecalibrationEvent {
google.protobuf.Timestamp timestamp = 1;
string topic = 2;
Vector3 translation = 3;
Quaternion rotation = 4;
}
message ZoneConfig {
int32 id = 1;
string name = 2;
PolygonBox pbox = 3;
ZoneType type = 4;
}
message StreamMessage {
repeated Object objects = 1;
bool has_objects = 3;
google.protobuf.Timestamp first_cloud_arrival_timestamp = 2;
repeated ZoneConfig zones = 101;
bool has_zones = 104;
SystemHealth health = 102;
repeated Object static_objects = 103;
}
message EventMessage {
repeated ZoneEvent zone = 1;
repeated LosingEvent losing = 2;
SystemHealth health = 3;
repeated OnlineRecalibrationEvent online_recalibration = 4;
}
// Actual message using in SENSR SDK
message OutputMessage {
google.protobuf.Timestamp timestamp = 1;
reserved 2, 101, 102, 103; // framework 1.0 used these.
StreamMessage stream = 3;
EventMessage event = 201;
CustomMessage custom = 301;
}