Skip to content

Test Intersecton Reference Alignment Events

Ivan Yourshaw edited this page Mar 26, 2024 · 5 revisions

Intersection Reference Alignment Event

2. 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

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.