-
Notifications
You must be signed in to change notification settings - Fork 0
/
franca_proto.fidl
94 lines (74 loc) · 1.7 KB
/
franca_proto.fidl
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
package my_package //affiliated package
import traffic.* from "MapModel.fidl"
/**
* Doxygen-Style Docstring
*
* @ingroup traffic
*/
interface MyExtendedInterface extends MyBaseInterface {
version {
major 1
minor 0
}
public typedef Instance is CommonTypes.InstanceId
enumeration Urgency
{
NORMAL = 0,
URGENT,
EXTREMELY_URGENT
}
struct Quantifier
{
/** @description:
* Docstring
*/
UInt16 event_code
<**
@description: Another kind of comment
**>
typedef TimestampMs is Int64
UInt8 uint8value
MeasurementUnit measurement_unit
Float quantifier_value
}
method get_value {
in {
Instance instance
String key
}
out {
Double value
}
}
method init {
in {
Instance instance
MapModel.Instance map_model
TrafficOptions.Instance options
Connection.Instance connection
TrafficTypes.TrafficEncryption encryption
TimeProvider.Instance time_provider
KeyValueStorage.Instance storage
}
error CommonTypes.ErrorCode
}
}
typeCollection PositioningTypes {
version {
major 1
minor 0
}
<**
@description: timestamp in milliseconds
**>
typedef TimestampMs is Int64
struct Position {
CommonTypes.GeoCoordinate position
Float heading_degrees
}
enumeration LinkTravelDirection {
FORWARD = 0
BACKWARD = 1
}
array MapMatchedPositionCollection of MapMatchedPosition
}