-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathcam_schema_1-1-3.json
More file actions
434 lines (434 loc) · 17.9 KB
/
cam_schema_1-1-3.json
File metadata and controls
434 lines (434 loc) · 17.9 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://Orange-OpenSource.github.io/its-client/schema/cam",
"description": "CAM JSon schema",
"type": "object",
"additionalProperties": false,
"required": [
"type",
"origin",
"version",
"source_uuid",
"timestamp",
"message"
],
"properties": {
"type": {
"type": "string",
"description": "message type",
"const": "cam"
},
"origin": {
"type": "string",
"enum": [
"self",
"global_application",
"mec_application",
"on_board_application"
],
"description": "the entity responsible for this message"
},
"version": {
"type": "string",
"description": "json message format version",
"const": "1.1.3"
},
"source_uuid": {
"type": "string",
"description": "identifier",
"examples": [
"UNKNOWN",
"42"
]
},
"timestamp": {
"type": "integer",
"description": "Unit: millisecond. The timestamp when the message was generated since Unix Epoch (1970/01/01)",
"examples": [
1574778515424
],
"minimum": 1514764800000,
"maximum": 1830297600000
},
"message": {
"type": "object",
"required": [
"protocol_version",
"station_id",
"generation_delta_time",
"basic_container",
"high_frequency_container"
],
"properties": {
"protocol_version": {
"type": "integer",
"description": "version of the ITS message and/or communication protocol",
"minimum": 0,
"maximum": 255,
"examples": [
1
]
},
"station_id": {
"type": "integer",
"description": "identifier for an ITS-S",
"minimum": 0,
"maximum": 4294967295,
"examples": [
1,
42
]
},
"generation_delta_time": {
"type": "integer",
"description": "time of the reference position in the CAM, considered as time of the CAM generation. TimestampIts mod 65 536. TimestampIts represents an integer value in milliseconds since 2004-01-01T00:00:00:000Z. oneMilliSec(1)",
"minimum": 0,
"maximum": 65535,
"examples": [
1,
1245
]
},
"basic_container": {
"type": "object",
"required": [
"reference_position"
],
"properties": {
"station_type": {
"$comment": "if not provided, 'station_type' = 0 (unknown)",
"description": "unknown(0), pedestrian(1), cyclist(2), moped(3), motorcycle(4), passengerCar(5), bus(6), lightTruck(7), heavyTruck(8), trailer(9), specialVehicles(10), tram(11), roadSideUnit(15)",
"type": "integer",
"default": 0,
"minimum": 0,
"maximum": 255
},
"reference_position": {
"type": "object",
"required": [
"latitude",
"longitude",
"altitude"
],
"properties": {
"latitude": {
"type": "integer",
"description": "Unit: 0.1 microdegree. oneMicrodegreeNorth (10), oneMicrodegreeSouth (-10), unavailable(900000001)",
"default": 900000001,
"minimum": -900000000,
"maximum": 900000001
},
"longitude": {
"type": "integer",
"description": "Unit: 0.1 microdegree. oneMicrodegreeEast (10), oneMicrodegreeWest (-10), unavailable(1800000001)",
"default": 1800000001,
"minimum": -1800000000,
"maximum": 1800000001
},
"altitude": {
"type": "integer",
"description": "Unit: 0.01 meter. referenceEllipsoidSurface(0), oneCentimeter(1), unavailable(800001)",
"default": 800001,
"minimum": -100000,
"maximum": 800001
}
}
},
"confidence": {
"$comment": "mandatory on ETSI specification, FIXME?",
"type": "object",
"properties": {
"position_confidence_ellipse": {
"$comment": "mandatory on ETSI specification, FIXME?",
"type": "object",
"properties": {
"semi_major_confidence": {
"$comment": "if not provided, 'semi_major_confidence' = 4095 (unavailable)",
"type": "integer",
"description": "oneCentimeter(1), outOfRange(4094), unavailable(4095)",
"default": 4095,
"minimum": 0,
"maximum": 4095
},
"semi_minor_confidence": {
"$comment": "if not provided, 'semi_minor_confidence' = 4095 (unavailable)",
"type": "integer",
"description": "oneCentimeter(1), outOfRange(4094), unavailable(4095)",
"default": 4095,
"minimum": 0,
"maximum": 4095
},
"semi_major_orientation": {
"$comment": "if not provided, 'semi_major_orientation' = 3601 (unavailable)",
"type": "integer",
"description": "wgs84North(0), wgs84East(900), wgs84South(1800), wgs84West(2700), unavailable(3601)",
"default": 3601,
"minimum": 0,
"maximum": 3601
}
}
},
"altitude": {
"$comment": "if not provided, 'altitude' = 15 (unavailable)",
"type": "integer",
"description": "alt-000-01 (0), alt-000-02 (1), alt-000-05 (2), alt-000-10 (3), alt-000-20 (4), alt-000-50 (5), alt-001-00 (6), alt-002-00 (7), alt-005-00 (8), alt-010-00 (9), alt-020-00 (10), alt-050-00 (11), alt-100-00 (12), alt-200-00 (13), outOfRange (14), unavailable (15)",
"default": 15,
"minimum": 0,
"maximum": 15
}
}
}
}
},
"high_frequency_container": {
"type": "object",
"description": "The basic vehicle container high frequency",
"properties": {
"heading": {
"$comment": "if not provided, 'heading' = 3601 (unavailable)",
"type": "integer",
"description": "Unit: 0.1 degree. wgs84North(0), wgs84East(900), wgs84South(1800), wgs84West(2700), unavailable(3601)",
"default": 3601,
"minimum": 0,
"maximum": 3601
},
"speed": {
"$comment": "if not provided, 'speed' = 16383 (unavailable)",
"type": "integer",
"description": "Unit 0.01 m/s. standstill(0), oneCentimeterPerSec(1), unavailable(16383)",
"default": 16383,
"minimum": 0,
"maximum": 16383
},
"drive_direction": {
"$comment": "if not provided, 'drive_direction' = 2 (unavailable)",
"type": "integer",
"description": "forward (0), backward (1), unavailable (2)",
"default": 2,
"minimum": 0,
"maximum": 2
},
"vehicle_length": {
"$comment": "if not provided, 'vehicle_length' = 1023 (unavailable)",
"type": "integer",
"description": "tenCentimeters(1), outOfRange(1022), unavailable(1023)",
"default": 1023,
"minimum": 1,
"maximum": 1023
},
"vehicle_width": {
"$comment": "if not provided, 'vehicle_width' = 62(unavailable)",
"type": "integer",
"description": "tenCentimeters(1), outOfRange(61), unavailable(62)",
"default": 62,
"minimum": 1,
"maximum": 62
},
"curvature": {
"$comment": "if not provided, 'curvature' = 30001 (unavailable)",
"type": "integer",
"description": "straight(0), unavailable(1023)",
"default": 1023,
"minimum": -1023,
"maximum": 1023
},
"curvature_calculation_mode": {
"$comment": "if not provided, 'curvature_calculation_mode' = 2 (unavailable)",
"type": "integer",
"description": "It describes whether the yaw rate is used to calculate the curvature: yawRateUsed(0), yawRateNotUsed(1), unavailable(2)",
"default": 2,
"minimum": 0,
"maximum": 2
},
"longitudinal_acceleration": {
"$comment": "if not provided, 'longitudinal_acceleration' = 161 (unavailable)",
"description": "unit: 0.1 m/s2. pointOneMeterPerSecSquaredForward(1), pointOneMeterPerSecSquaredBackward(-1), unavailable(161)",
"type": "integer",
"default": 161,
"minimum": -160,
"maximum": 161
},
"yaw_rate": {
"$comment": "if not provided, 'yaw_rate' = 32767 (unavailable)",
"type": "integer",
"description": "Unit: 0.01 degree/s: straight(0), degSec-000-01ToRight(-1), degSec-000-01ToLeft(1), unavailable(32767)",
"default": 32767,
"minimum": -32766,
"maximum": 32767
},
"acceleration_control": {
"type": "string",
"description": "Current controlling mechanism for longitudinal movement of the vehicle. Represented as a bit string: brakePedalEngaged (0), gasPedalEngaged (1), emergencyBrakeEngaged (2), collisionWarningEngaged(3), accEngaged(4), cruiseControlEngaged(5), speedLimiterEngaged(6)",
"minLength": 7,
"maxLength": 7,
"example": [
"0000000",
"1000000",
"0000011"
]
},
"lane_position": {
"type": "integer",
"description": "offTheRoad(-1), innerHardShoulder(0), innermostDrivingLane(1), secondLaneFromInside(2), outterHardShoulder(14)",
"minimum": -1,
"maximum": 14
},
"lateral_acceleration": {
"type": "integer",
"description": "Unit: 0.1 m/s2. pointOneMeterPerSecSquaredToRight(-1), pointOneMeterPerSecSquaredToLeft(1), unavailable(161)",
"minimum": -160,
"maximum": 161
},
"vertical_acceleration": {
"type": "integer",
"description": "Unit: 0.1 m/s2. pointOneMeterPerSecSquaredUp(1), pointOneMeterPerSecSquaredDown(-1), unavailable(161)",
"minimum": -160,
"maximum": 161
},
"confidence": {
"$comment": "mandatory on ETSI specification, FIXME?",
"type": "object",
"description": "the high frequency container confidence fields. Note that no vehicle_width is defined",
"properties": {
"heading": {
"$comment": "if not provided, 'heading' = 127 (unavailable)",
"type": "integer",
"description": "equalOrWithinZeroPointOneDegree (1), equalOrWithinOneDegree (10), outOfRange(126), unavailable(127)",
"default": 127,
"minimum": 1,
"maximum": 127
},
"speed": {
"$comment": "if not provided, 'speed' = 127 (unavailable)",
"type": "integer",
"description": "equalOrWithinOneCentimeterPerSec(1), equalOrWithinOneMeterPerSec(100), outOfRange(126), unavailable(127)",
"default": 127,
"minimum": 1,
"maximum": 127
},
"vehicle_length": {
"$comment": "if not provided, 'vehicle_length' = 4 (unavailable)",
"type": "integer",
"description": "noTrailerPresent(0), trailerPresentWithKnownLength(1), trailerPresentWithUnknownLength(2), trailerPresenceIsUnknown(3), unavailable(4)",
"default": 4,
"minimum": 0,
"maximum": 4
},
"yaw_rate": {
"$comment": "if not provided, 'yaw_rate' = 8 (unavailable)",
"type": "integer",
"description": "degSec-000-01 (0), degSec-000-05 (1), degSec-000-10 (2), degSec-001-00 (3), degSec-005-00 (4), degSec-010-00 (5), degSec-100-00 (6), outOfRange (7), unavailable (8)",
"default": 8,
"minimum": 0,
"maximum": 8
},
"longitudinal_acceleration": {
"type": "integer",
"description": "pointOneMeterPerSecSquared(1), outOfRange(101), unavailable(102)",
"minimum": 0,
"maximum": 102
},
"curvature": {
"type": "integer",
"description": "onePerMeter-0-00002 (0), onePerMeter-0-0001 (1), onePerMeter-0-0005 (2), onePerMeter-0-002 (3), onePerMeter-0-01 (4), onePerMeter-0-1 (5), outOfRange (6), unavailable (7)",
"minimum": 0,
"maximum": 7
},
"lateral_acceleration": {
"type": "integer",
"description": "Unit: 0.1 m/s2. pointOneMeterPerSecSquared(1), outOfRange(101), unavailable(102)",
"minimum": 0,
"maximum": 102
},
"vertical_acceleration": {
"type": "integer",
"description": "Unit: 0.1 m/s2. pointOneMeterPerSecSquared(1), outOfRange(101), unavailable(102)",
"minimum": 0,
"maximum": 102
}
}
}
}
},
"low_frequency_container": {
"type": "object",
"description": "The basic vehicle container low frequency",
"required": [
"exterior_lights",
"path_history"
],
"properties": {
"vehicle_role": {
"$comment": "if not provided, 'vehicle_role' = 0 (default)",
"type": "integer",
"description": "default(0), publicTransport(1), specialTransport(2), dangerousGoods(3), roadWork(4), rescue(5), emergency(6), safetyCar(7), agriculture(8),commercial(9),military(10),roadOperator(11),taxi(12), reserved1(13), reserved2(14), reserved3(15)",
"default": 0,
"minimum": 0,
"maximum": 15
},
"exterior_lights": {
"type": "string",
"description": "Status of the exterior light switches represented as a bit string: lowBeamHeadlightsOn (0), highBeamHeadlightsOn (1), leftTurnSignalOn (2), rightTurnSignalOn (3), daytimeRunningLightsOn (4), reverseLightOn (5), fogLightOn (6), parkingLightsOn (7)",
"minLength": 8,
"maxLength": 8,
"example": [
"00000000",
"10011010",
"00000110"
]
},
"path_history": {
"type": "array",
"description": "the path history, a path with a set of path points",
"maxItems": 40,
"items": {
"type": "object",
"required": [
"path_position"
],
"properties": {
"path_position": {
"type": "object",
"description": "offset position of a detected event point with regards to the previous detected event point (reference_position).",
"properties": {
"delta_latitude": {
"$comment": "if not provided, 'delta_latitude' = 131072 (unavailable)",
"type": "integer",
"description": "oneMicrodegreeNorth (10), oneMicrodegreeSouth (-10) , unavailable(131072)",
"default": 131072,
"minimum": -131071,
"maximum": 131072
},
"delta_longitude": {
"$comment": "if not provided, 'delta_longitude' = 131072 (unavailable)",
"type": "integer",
"description": "oneMicrodegreeEast (10), oneMicrodegreeWest (-10), unavailable(131072)",
"default": 131072,
"minimum": -131071,
"maximum": 131072
},
"delta_altitude": {
"$comment": "if not provided, 'delta_altitude' = 12800 (unavailable)",
"type": "integer",
"description": "oneCentimeterUp (1), oneCentimeterDown (-1), unavailable(12800)",
"default": 12800,
"minimum": -12700,
"maximum": 12800
}
}
},
"path_delta_time": {
"type": "integer",
"description": "time travelled by the detecting ITS-S since the previous detected event point (generation_delta_time). tenMilliSecondsInPast(1)",
"minimum": 1,
"maximum": 65535
}
}
}
}
}
}
}
}
}
}