forked from UBC-Thunderbots/Software
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvisualization.proto
More file actions
99 lines (83 loc) · 1.63 KB
/
Copy pathvisualization.proto
File metadata and controls
99 lines (83 loc) · 1.63 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
syntax = 'proto3';
import "proto/geometry.proto";
import "proto/world.proto";
package TbotsProto;
message PathVisualization
{
repeated Path paths = 1;
}
message NamedValue
{
string name = 1;
float value = 2;
}
message PlotJugglerValue
{
double timestamp = 1;
map<string, double> data = 2;
}
message PassWithRating
{
double rating = 1;
Pass pass_ = 2; // needs the _ because pass is a keyword in python
}
message PassVisualization
{
repeated PassWithRating best_passes = 1;
}
message AttackerVisualization
{
optional Pass pass_ = 1; // needs the _ because pass is a keyword in python
bool pass_committed = 2;
optional Shot shot = 3;
optional Point chip_target = 4;
}
message BallPlacementVisualization
{
Point ball_placement_point = 1;
}
message CostVisualization
{
uint32 num_rows = 1;
uint32 num_cols = 2;
repeated double cost = 3;
}
message Obstacle
{
oneof obstacle
{
Polygon polygon = 1;
Circle circle = 2;
Stadium stadium = 3;
}
}
message ObstacleList
{
repeated Obstacle obstacles = 1;
}
message VirtualObstacles
{
repeated Obstacle obstacles = 1;
}
message Shape
{
oneof shape
{
Polygon polygon = 1;
Circle circle = 2;
Stadium stadium = 3;
}
}
message DebugShapes
{
message DebugShape
{
Shape shape = 1;
// Unique ID to identify the shape
string unique_id = 2;
// Text to display next to the shape
string debug_text = 3;
}
// Unique ID to a named shape
repeated DebugShape debug_shapes = 1;
}