Skip to content

Test Intersecton Reference Alignment Events

Ivan Yourshaw edited this page Jan 31, 2023 · 5 revisions

Intersection Reference Alignment Event

1. Should produce Alignment Event

Inputs

One MAP and several SPATs from the same RSU IP with different intersection ID and road regulator IDs.

Test Data Files

Script-SPAT-MAP-unaligned.csv

Output Topic

topic.CmIntersectionReferenceAlignmentEvents

Expected Output

Several alignment events.

Actual Output

Several events like

Topic: topic.CmIntersectionReferenceAlignmentEvents
Key: {"rsuId":"10.11.81.12","intersectionId":99999}
Offset: 145
Timestamp: 1675208628902
Value: 
{
	"eventGeneratedAt":1675208629095,
	"eventType":"IntersectionReferenceAlignment",
	"sourceID":"{\"rsuId\":\"10.11.81.12\",\"intersectionId\":99999}",
	"timestamp":1675208628893,
	"spatRoadRegulatorIds":[9],
	"spatIntersectionIds":[99999]
}

Comments

  • Event should list the MAP IDs
  • Source ID should be RSU ID

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.

Test Data Files

Script-SPAT-MAP.csv

Expected Output

No events.

Actual Output

Several events like:

Topic: topic.CmIntersectionReferenceAlignmentEvents
Key: {"rsuId":"10.11.81.12","intersectionId":12109}
Offset: 128
Timestamp: 1675207572886
Value: 
{
	"eventGeneratedAt": 1675207572900,
	"eventType": "IntersectionReferenceAlignment",
	"sourceID": "{\"rsuId\":\"10.11.81.12\",\"intersectionId\":12109}",
	"timestamp": 1675207572880,
	"spatRoadRegulatorIds": [1],
	"spatIntersectionIds": [12109]
}

Comments

Unexpected events.