-
Notifications
You must be signed in to change notification settings - Fork 5
Test Intersection Reference Alignment Events
Intersection Reference Alignment Events can be configured to enable aggregation using the map.spat.message.assessment.aggregateIntersectionReferenceAlignmentEvents configuration setting, or the ENABLE_AGGREGATE_INTERSECTION_REFERENCE_ALIGNMENT_EVENTS environment variable. If aggregation is enabled, events will be delayed by up to the configured aggregation.interval, which is 60 seconds by default.
One MAP and several SPATs from the same RSU IP with different intersection ID and road regulator IDs.
MAP: intersection ID = 12109, road regulator ID = 1
SPAT: intersection ID = 99999, road regulator ID = 9
If aggregation is enabled, events are output to:
topic.CmIntersectionReferenceAlignmentEventAggregation
If aggregation is disabled, events are output to:
topic.CmIntersectionReferenceAlignmentEvents
Several alignment events.
Several events similar to:
Topic: topic.CmIntersectionReferenceAlignmentEvents
Key: {"rsuId":"10.11.81.12","intersectionId":99999,"region":9}
Offset: 8
Timestamp: 1711495517118
Value:
{
"eventGeneratedAt":1711495517132,
"eventType":"IntersectionReferenceAlignment",
"intersectionID":99999,
"roadRegulatorID":9,
"source":"{\"rsuId\":\"10.11.81.12\",\"intersectionId\":99999,\"region\":9}",
"timestamp":1711495517115,
"spatRegulatorIntersectionIds":[{"roadRegulatorId":9,"intersectionId":99999}],
"mapRegulatorIntersectionIds":[{}]
}
- MAP regulator ID and intersection ID are missing
One MAP and several SPATs with matching RSU IP, intersection IDs, and road regulator IDs. SPAT send interval 100 ms.
Intersection ID = 12109, road regulator ID = 1 for both
No events.
One event like:
Topic: topic.CmIntersectionReferenceAlignmentEvents
Key: {"rsuId":"10.11.81.12","intersectionId":12109,"region":1}
Offset: 0
Timestamp: 1711494895607
Value:
{
"eventGeneratedAt":1711494896927,
"eventType":"IntersectionReferenceAlignment",
"intersectionID":12109,
"roadRegulatorID":1,
"source":"{\"rsuId\":\"10.11.81.12\",\"intersectionId\":12109,\"region\":1}",
"timestamp":1711494895600,
"spatRegulatorIntersectionIds":[{"roadRegulatorId":1,"intersectionId":12109}],
"mapRegulatorIntersectionIds":[{}]
}
Unexpected event. MAP intersection ID and road regulator ID missing.