forked from local-projects/rtls-protocol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTrackable.proto
69 lines (54 loc) · 1.46 KB
/
Trackable.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
syntax = "proto3";
package RTLSProtocol;
message Trackable {
int32 id = 1; // ID unique to device; could be unknown (-1)
bytes cuid = 2; // unique 128-bit ID used only for tracking
string name = 3; // e.g. Serial Number
uint64 frame_ID = 10;
uint64 timestamp = 11; // Unix timestamp in milliseconds
bytes context = 12; // variable length field for any extra information
repeated Trackable children = 13; // recursive array of Trackables, e.g. if you want to group controllers under a headset
message Position {
double x = 1;
double y = 2;
double z = 3;
}
Position position = 4;
message Orientation {
double x = 1;
double y = 2;
double z = 3;
double w = 4;
}
Orientation orientation = 5;
message Velocity {
float x = 1;
float y = 2;
float z = 3;
}
Velocity velocity = 6;
message Acceleration {
float x = 1;
float y = 2;
float z = 3;
}
Acceleration acceleration = 7;
message AngularVelocity {
float x = 1;
float y = 2;
float z = 3;
}
AngularVelocity angular_velocity = 8;
message AngularAcceleration {
float x = 1;
float y = 2;
float z = 3;
}
AngularAcceleration angular_acceleration = 9;
}
message TrackableFrame {
uint64 frame_ID = 1;
uint64 timestamp = 2;
repeated Trackable trackables = 3;
bytes context = 4;
}