Skip to content

Test Lane Direction of Travel Event

Ivan Yourshaw edited this page Mar 27, 2024 · 6 revisions

Test for Lane Direction of Travel Event

Inputs

At the same intersection:

  • MAPs - every 1000 ms
  • SPATs - every 100 ms
    • ProtectedClearance [2,6]
    • StopAndRemain [4]
  • BSMs - every 100 ms travelling straight through intersection on a connected path

Output Topic

topic.CmLaneDirectionOfTravelEvent

Test Script

Script: ConnectionOfTravel-connected.csv

BSM Data: BSM_Connected.jsonl

Expected Output

2 Direction of Travel Events: one each for ingress and egress lanes 2 & 14

Actual Output

Topic: topic.CmLaneDirectionOfTravelEvent
Key: {"rsuId":"10.11.81.12","intersectionId":12109,"region":0}
Offset: 0
Timestamp: 1711508317023
Value: 
{
        "eventGeneratedAt":1711508317078,
        "eventType":"LaneDirectionOfTravel",
        "intersectionID":12109,
        "roadRegulatorID":-1,
        "timestamp":1711508295316,
        "laneID":2,
        "laneSegmentNumber":1,
        "laneSegmentInitialLatitude":39.58789547917025,
        "laneSegmentInitialLongitude":-105.09074664203877,
        "laneSegmentFinalLatitude":39.58755925365208,
        "laneSegmentFinalLongitude":-105.09065270216114,
        "expectedHeading":347.80151276965853,
        "medianVehicleHeading":347.05,
        "medianDistanceFromCenterline":11.798094258289522,
        "aggregateBSMCount":14,
        "source":"{ rsuId='10.11.81.12', intersectionId='12109', region='0'}"
}


Comments

  • No event is produced for the egress lane.
  • Region should be -1