Apollo 10.0
自动驾驶开放平台
chart.proto
浏览该文件的文档.
1syntax = "proto2";
2
3package apollo.dreamview;
4
6
7message Options {
8 message Axis {
9 optional double min = 1;
10 optional double max = 2;
11 optional string label_string = 3;
12
13 // size of the axis of your graph which is then divided into measuring
14 // grades
15 optional double window_size = 4;
16 // size of the smaller measuring grades in the axis found between two larger
17 // measuring grades
18 optional double step_size = 5;
19 // midpoint taken within the dataset. If it is not specified, we will
20 // calculate it for you.
21 optional double mid_value = 6;
22 }
23
24 optional bool legend_display = 1 [default = true];
25 optional Axis x = 2;
26 optional Axis y = 3;
27
28 // This is the aspect ratio (width/height) of the entire chart.
29 optional double aspect_ratio = 4;
30
31 // Same window size for x-Axis and y-Axis. It is
32 // effective only if x/y window_size is NOT set.
33 optional bool sync_xy_window_size = 5 [default = false];
34}
35
36message Line {
37 optional string label = 1;
38 optional bool hide_label_in_legend = 2 [default = false];
39 repeated apollo.common.Point2D point = 3;
40
41 // If the 'color' property is undefined, a random one will be assigned.
42 // See http://www.chartjs.org/docs/latest/charts/line.html
43 // for all supported properties from chart.js
44 map<string, string> properties = 4;
45}
46
47message Polygon {
48 optional string label = 1;
49 optional bool hide_label_in_legend = 2 [default = false];
50 repeated apollo.common.Point2D point = 3;
51
52 // If the 'color' property is undefined, a random one will be assigned.
53 // See http://www.chartjs.org/docs/latest/charts/line.html
54 // for all supported properties from chart.js
55 map<string, string> properties = 4;
56}
57
58message Car {
59 optional string label = 1;
60 optional bool hide_label_in_legend = 2 [default = false];
61
62 optional double x = 3;
63 optional double y = 4;
64 optional double heading = 5;
65 optional string color = 6;
66}
67
68message Chart {
69 optional string title = 1;
70 optional Options options = 2;
71
72 // data sets
73 repeated Line line = 3;
74 repeated Polygon polygon = 4;
75 repeated Car car = 5;
76}
syntax
Definition chart.proto:1
apollo::common
class register implement
Definition arena_queue.h:37