Skip to content

Test Intersection Reference Alignment Events

Ivan Yourshaw edited this page Jan 31, 2025 · 6 revisions

Intersection Reference Alignment Event

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.

1. Should produce Alignment Event

Inputs

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

Test Data Files

Script-SPAT-MAP-unaligned.csv

Output Topic

If aggregation is enabled, events are output to:

  • topic.CmIntersectionReferenceAlignmentEventAggregation

If aggregation is disabled, events are output to:

  • topic.CmIntersectionReferenceAlignmentEvents

Expected Output

Several alignment events.

Actual Output

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":[{}]
}

Comments

  • MAP regulator ID and intersection ID are missing

2. Should not produce Alignment Event

Inputs

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

Test Data Files

Script-SPAT-MAP.csv

Expected Output

No events.

Actual Output

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":[{}]
}

Comments

Unexpected event. MAP intersection ID and road regulator ID missing.

Clone this wiki locally