Newer
Older
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
module ItsRSUsSimulator_Pics {
// LibCommon
import from LibCommon_BasicTypesAndValues all;
// LibIts
import from ITS_Container language "ASN.1:1997" all;
import from CAM_PDU_Descriptions language "ASN.1:1997" all;
import from DENM_PDU_Descriptions language "ASN.1:1997" all;
import from MAPEM_PDU_Descriptions language "ASN.1:1997" all;
import from SPATEM_PDU_Descriptions language "ASN.1:1997" all;
import from IVIM_PDU_Descriptions language "ASN.1:1997" all;
import from SREM_PDU_Descriptions language "ASN.1:1997" all;
import from SSEM_PDU_Descriptions language "ASN.1:1997" all;
// LibItsBtp
import from LibItsBtp_TypesAndValues all;
import from LibItsBtp_Templates all;
// LibItsGeoNetworking
import from LibItsGeoNetworking_TypesAndValues all;
// ItsRSUsSimulator
import from ItsRSUsSimulator_TypesAndValues all;
group rsuParameters {
group rsu1 {
/**
* @desc RSU GN address
*/
modulepar GN_Address PICS_RSU_GN_ADDRESS_RSU1 := {
typeOfAddress := e_manual,
stationType := e_roadSideUnit,
stationCountryCode := 33,
mid := 'AABBCCDDEEFF'O
} // End of PICS_RSU_GN_ADDRESS_RSU1
modulepar RsuParm PICS_RSU_1 := {
gnAddress := PICS_RSU_GN_ADDRESS_RSU1,
longPosVector := {
gnAddr := PICS_RSU_GN_ADDRESS_RSU1,
timestamp_ := 0,
latitude := 435517392,
longitude := 103018217,
pai := '0'B,
speed := 0,
heading := 0
},
stationID := 1111111,
geoShape := e_geoCircle,
geoParms := {
radius := 500
},
pathHistory := PICS_RSU_PATH_HISTORY_RSU1
} // End of PICS_RSU_1
/**
* @desc Path history to approch the RSU
*/
modulepar PathHistory PICS_RSU_PATH_HISTORY_RSU1 := {};
} // End of group rsu1
group rsu2 {
// TODO To be done
} // End of group rsu1
modulepar RsuParmList PICS_RSU_PARAMS := {
PICS_RSU_1
// TODO To be done
} // End of PICS_RSU_PARAMS
} // End of group rsuParameters
group camParams {
group camCommonParams {
modulepar BtpPortId PICS_CAM_BTP_DESTINATION_PORT := 2001;
} // End of group camCommonParams
} // End of group rsuParameters
group denmEvents {
group denmCommonParams {
modulepar BtpPortId PICS_DENM_BTP_DESTINATION_PORT := 2002;
modulepar PosConfidenceEllipse PICS_DENM_POSITION_CONFIDENCE_ELLIPSE := {
semiMajorConfidence := SemiAxisLength_oneCentimeter_,
semiMinorConfidence := SemiAxisLength_oneCentimeter_,
semiMajorOrientation := HeadingValue_wgs84North_
} // End of PICS_DENM_POSITION_CONFIDENCE_ELLIPSE
modulepar Altitude PICS_DENM_ALTITUDE := {
altitudeValue := AltitudeValue_referenceEllipsoidSurface_,
altitudeConfidence := unavailable
} // End of PICS_DENM_ALTITUDE
/**
* @desc DENM repetition interval, in ms
*/
modulepar TransmissionInterval PICS_DENM_REPETITION_INTERVAL := 1000;
} // End of group denmCommonParams
group denmZone1 {
modulepar DenmParm PICS_Z1_D1_EP := {
eventPosition := {
latitude := 435517392,
longitude := 103018217,
positionConfidenceEllipse := PICS_DENM_POSITION_CONFIDENCE_ELLIPSE,
altitude := PICS_DENM_ALTITUDE
},
causeCodeType := CauseCodeType_roadworks_,
eventHistory := {
{
eventPosition := {
deltaLatitude := -3295,
deltaLongitude := -2347,
deltaAltitude := 0
},
eventDeltaTime := omit,
informationQuality := 0
},
{
eventPosition := {
deltaLatitude := -719,
deltaLongitude := -7055,
deltaAltitude := 0
},
eventDeltaTime := omit,
informationQuality := 0
}
},
roadWorksContainerExtended := {
lightBarSirenInUse := omit,
closedLanes := {
hardShoulderStatus := availableForDriving,
drivingLaneStatus := '0001'B
},
restriction := omit,
speedLimit := 30,
incidentIndication := omit,
recommendedPath := omit,
startingPointSpeedLimit := {
deltaLatitude := 0,
deltaLongitude := 0,
deltaAltitude := 0
},
trafficFlowRule := passToRight,
referenceDenms := omit
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
}
} // End of PICS_Z1_D1_EP
modulepar DenmParm PICS_Z1_D2_EP := {
eventPosition := {
latitude := 435517392,
longitude := 103018217,
positionConfidenceEllipse := PICS_DENM_POSITION_CONFIDENCE_ELLIPSE,
altitude := PICS_DENM_ALTITUDE
},
causeCodeType := CauseCodeType_roadworks_,
eventHistory := {
{
eventPosition := {
deltaLatitude := -3295,
deltaLongitude := -2347,
deltaAltitude := 0
},
eventDeltaTime := omit,
informationQuality := 0
},
{
eventPosition := {
deltaLatitude := -719,
deltaLongitude := -7055,
deltaAltitude := 0
},
eventDeltaTime := omit,
informationQuality := 0
}
},
roadWorksContainerExtended := {
lightBarSirenInUse := omit,
closedLanes := {
hardShoulderStatus := availableForDriving,
drivingLaneStatus := '0011'B
},
restriction := omit,
speedLimit := 30,
incidentIndication := omit,
recommendedPath := omit,
startingPointSpeedLimit := {
deltaLatitude := 0,
deltaLongitude := 0,
deltaAltitude := 0
},
trafficFlowRule := passToRight,
referenceDenms := omit
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
} // End of PICS_Z1_D2_EP
modulepar DenmParm PICS_Z1_D3_EP := {
eventPosition := {
latitude := 435517392,
longitude := 103018217,
positionConfidenceEllipse := PICS_DENM_POSITION_CONFIDENCE_ELLIPSE,
altitude := PICS_DENM_ALTITUDE
},
causeCodeType := CauseCodeType_roadworks_,
eventHistory := {
{
eventPosition := {
deltaLatitude := -3295,
deltaLongitude := -2347,
deltaAltitude := 0
},
eventDeltaTime := omit,
informationQuality := 0
},
{
eventPosition := {
deltaLatitude := -719,
deltaLongitude := -7055,
deltaAltitude := 0
},
eventDeltaTime := omit,
informationQuality := 0
}
},
roadWorksContainerExtended := {
lightBarSirenInUse := omit,
closedLanes := {
hardShoulderStatus := closed,
drivingLaneStatus := '01'B
},
restriction := omit,
speedLimit := 30,
incidentIndication := omit,
recommendedPath := omit,
startingPointSpeedLimit := {
deltaLatitude := 0,
deltaLongitude := 0,
deltaAltitude := 0
},
trafficFlowRule := passToRight,
referenceDenms := omit
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
} // End of PICS_Z1_D3_EP
} // End of group denmZone1
group denmZone2 {
// TODO To be done
} // End of group denmZone2
group denmUseCase1 {
modulepar DenmEventsParmsUseCase PICS_DENM_PARMS_UC1_RWW := {
PICS_Z1_D1_EP,
PICS_Z1_D2_EP,
PICS_Z1_D3_EP
} // End of PICS_DENM_PARMS_UC1_RWW
} // End of group denmUseCase1
group denmUseCase2 {
// TODO To be done
} // End of group denmUseCase2
modulepar DenmEventsParmsUseCaseRsu PICS_DENM_EVENTS_RSU := {
PICS_DENM_PARMS_UC1_RWW
} // End of PICS_DENM_EVENTS_RSU
} // End of group denmEvents
group mapemEvents {
group mapemCommonParams {
modulepar BtpPortId PICS_MAPEM_BTP_DESTINATION_PORT := 2003;
} // End of group mapemCommonParams
group mapemZone1 {
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
modulepar MapemParm PICS_MAPEM_PARMS_RSU_1 := {
intersections := {
{ // Start of intersection #0
name := "PICS_MAPEM_PARMS_RSU_1",
id := {
region := 0,
id := 0
},
revision := 0,
refPoint := {
lat := 435517392,
long := 103018217,
elevation := omit,
regional := omit
},
laneWidth := omit,
speedLimits := omit,
laneSet := {
{ // Start of Lane #1
laneID := 1,
name := omit,
ingressApproach := 1,
egressApproach := 1,
laneAttributes := {
directionalUse := '10'B,
sharedWith := '0000000000'B,
laneType := {
vehicle := '00000000'B
},
regional := omit
},
maneuvers := omit,
nodeList := {
nodes := {
{
delta := {
node_XY1 := {
x := -10,
y := 10
}
},
attributes := omit
},
{
delta := {
node_XY1 := {
x := -10,
y := 10
}
},
attributes := omit
}
}
},
connectsTo := {
{
connectingLane := {
lane := 1,
maneuver := omit
},
remoteIntersection := omit,
signalGroup := 1,
userClass := omit,
connectionID := omit
}
},
overlays := omit,
regional := omit
}, // End of Lane #1
{ // Start of Lane #2
laneID := 1,
name := omit,
ingressApproach := 1,
egressApproach := 2,
laneAttributes := {
directionalUse := '01'B,
sharedWith := '0000000000'B,
laneType := {
vehicle := '00000000'B
},
regional := omit
},
maneuvers := omit,
nodeList := {
nodes := {
{
delta := {
node_XY1 := {
x := -10,
y := 10
}
},
attributes := omit
},
{
delta := {
node_XY1 := {
x := -10,
y := 10
}
},
attributes := omit
}
}
},
connectsTo := omit,
overlays := omit,
regional := omit
} // End of Lane #1
}, // End of LaneSet
preemptPriorityData := omit,
regional := omit
} // End of intersection #0
}, // End of field intersections
roadSegments := omit
} // End of group mapemZone1
group mapemZone2 {
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
intersections := {
{ // Start of intersection #0
name := "PICS_MAPEM_PARMS_RSU_1",
id := {
region := 0,
id := 0
},
revision := 0,
refPoint := {
lat := 435517392,
long := 103018217,
elevation := omit,
regional := omit
},
laneWidth := omit,
speedLimits := omit,
laneSet := {
{ // Start of Lane #1
laneID := 1,
name := omit,
ingressApproach := 1,
egressApproach := 1,
laneAttributes := {
directionalUse := '10'B,
sharedWith := '0000000000'B,
laneType := {
vehicle := '00000000'B
},
regional := omit
},
maneuvers := omit,
nodeList := {
nodes := {
{
delta := {
node_XY1 := {
x := -10,
y := 10
}
},
attributes := omit
},
{
delta := {
node_XY1 := {
x := -10,
y := 10
}
},
attributes := omit
}
}
},
connectsTo := {
{
connectingLane := {
lane := 1,
maneuver := omit
},
remoteIntersection := omit,
signalGroup := 1,
userClass := omit,
connectionID := omit
}
},
overlays := omit,
regional := omit
}, // End of Lane #1
{ // Start of Lane #2
laneID := 1,
name := omit,
ingressApproach := 1,
egressApproach := 2,
laneAttributes := {
directionalUse := '01'B,
sharedWith := '0000000000'B,
laneType := {
vehicle := '00000000'B
},
regional := omit
},
maneuvers := omit,
nodeList := {
nodes := {
{
delta := {
node_XY1 := {
x := -10,
y := 10
}
},
attributes := omit
},
{
delta := {
node_XY1 := {
x := -10,
y := 10
}
},
attributes := omit
}
}
},
connectsTo := omit,
overlays := omit,
regional := omit
} // End of Lane #1
}, // End of LaneSet
preemptPriorityData := omit,
regional := omit
} // End of intersection #0
}, // End of field intersections
roadSegments := omit
} // End of PICS_MAPEM_PARMS_RSU_2
modulepar MapemParmListRsu PICS_MAPEM_PARMS_RSUs := {
PICS_MAPEM_PARMS_RSU_1,
PICS_MAPEM_PARMS_RSU_2
} // End of PICS_MAPEM_PARMS_RSU
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
group spatemEvents {
group spatemCommonParams {
modulepar BtpPortId PICS_SPATEM_BTP_DESTINATION_PORT := 2004;
modulepar BtpPortId PICS_SPATEM_BTP_SOURCE_PORT := 0;
} // End of group spatemCommonParams
group spatemZone1 {
modulepar SignalGroupParm PICS_SPATEM_PARMS_SG_1_RS_1 := {
signalGroupID := 1,
intersections := {
{
name := "PICS_SPATEM_PARMS_SG_1_RS_1",
id := {
region := 0,
id := 0
},
revision := 0,
status := int2bit(0, 16),
moy := omit,
timeStamp := omit,
enabledLanes := omit,
states := {
{
movementName := "protected-Movement-Allowed",
signalGroup := 1,
state_time_speed:= {
{
eventState := protected_Movement_Allowed,
timing := omit,
speeds := omit,
regional := omit
}
},
maneuverAssistList := omit,
regional := omit
},
{
movementName := "protected-clearance",
signalGroup := 1,
state_time_speed:= {
{
eventState := protected_clearance,
timing := omit,
speeds := omit,
regional := omit
}
},
maneuverAssistList := omit,
regional := omit
},
{
movementName := "stop_Then_Proceed",
signalGroup := 1,
state_time_speed:= {
{
eventState := stop_Then_Proceed,
timing := omit,
speeds := omit,
regional := omit
}
},
maneuverAssistList := omit,
regional := omit
}
},
maneuverAssistList := omit,
regional := omit
}
} // End of field states
} // End of type PICS_SPATEM_PARMS_SG_1_RS_1
modulepar SignalGroupParmList PICS_SPATEM_PARMS_RSU_1 := {
PICS_SPATEM_PARMS_SG_1_RS_1
} // End of type PICS_SPATEM_PARMS_RSU_1
}
group spatemZone2 {
modulepar SignalGroupParm PICS_SPATEM_PARMS_SG_1_RS_2 := {
signalGroupID := 1,
intersections := {
{
name := "PICS_SPATEM_PARMS_SG_1_RS_2",
id := {
region := 0,
id := 0
},
revision := 0,
status := int2bit(0, 16),
moy := omit,
timeStamp := omit,
enabledLanes := omit,
states := {
{
movementName := "stop_Then_Proceed",
signalGroup := 1,
state_time_speed:= {
{
eventState := stop_Then_Proceed,
timing := omit,
speeds := omit,
regional := omit
}
},
maneuverAssistList := omit,
regional := omit
}
},
maneuverAssistList := omit,
regional := omit
}
} // End of field states
} // End of type PICS_SPATEM_PARMS_SG_1_RS_2
modulepar SignalGroupParmList PICS_SPATEM_PARMS_RSU_2 := {
PICS_SPATEM_PARMS_SG_1_RS_2
} // End of type PICS_SPATEM_PARMS_RSU_1_RS_2
}
modulepar SpatemParmRsu PICS_SPATEM_PARMS_RSUs := {
PICS_SPATEM_PARMS_RSU_1,
PICS_SPATEM_PARMS_RSU_2
} // End of PICS_SPATEM_PARMS_RSUs
} // End of group spatemEvents
group ivimEvents {
group ivimCommonParams {
modulepar BtpPortId PICS_IVIM_BTP_DESTINATION_PORT := 2006;
} // End of group ivimCommonParams
group ivimZone1 {
modulepar IvimParm PICS_IVIM_PARMS_RSU_1 := {
provider := {
countryCode := '0000000001'B,
providerIdentifier := 13
},
iviIdentificationNumber := 12
} // End of PICS_IVIM_PARMS_RSU_1
} // End of group ivimZone1
group ivimZone2 {
// TODO To be done
} // End of group ivimZone2
modulepar IvimParmListRsu PICS_IVIM_PARMS_RSUs := {
PICS_IVIM_PARMS_RSU_1
} // End of PICS_IVIM_PARMS_RSUs
group ssemEvents {
group ssemCommonParams {
modulepar BtpPortId PICS_SSEM_BTP_DESTINATION_PORT := 2008;
modulepar BtpPortId PICS_SSEM_BTP_SOURCE_PORT := 0;
} // End of group ssemCommonParams
} // End of group ssemEvents
group sremEvents {
group sremCommonParams {
modulepar BtpPortId PICS_SREM_BTP_DESTINATION_PORT := 2007;
modulepar BtpPortId PICS_SREM_BTP_SOURCE_PORT := 0;
} // End of group sremCommonParams
} // End of group sremEvents
modulepar boolean PICS_GENERATE_CAM := true;
modulepar boolean PICS_GENERATE_DENM := true;
modulepar boolean PICS_GENERATE_IVIM := true;
modulepar boolean PICS_GENERATE_MAPEM := true;
modulepar boolean PICS_GENERATE_SPATEM := true;
modulepar boolean PICS_GENERATE_SSEM := true;
/**
* @desc CAM frequency timer
*/
modulepar float PICS_CAM_FREQUENY := 0.1;
/**
* @desc DENM frequency timer
*/
modulepar float PICS_DENM_FREQUENY := int2float(PICS_DENM_REPETITION_INTERVAL) / 1000.0;
modulepar float PICS_MAPEM_FREQUENY := 5.0;
/**
* @desc SPATEMM frequency timer
*/
modulepar float PICS_SPATEM_FREQUENY := 5.0;
modulepar float PICS_IVIM_FREQUENY := 5.0;