Skip to content

Test Connection of Travel Event

Ivan Yourshaw edited this page Mar 25, 2024 · 10 revisions

Test for Connection of Travel Events

1. Connected Path

Inputs

At the same intersection:

  • MAPs - every 1000 ms
  • SPATs - every 100 ms
  • BSMs - every 100 ms travelling straight through intersection on a connected path

Test Script

Script: ConnectionOfTravel-connected.csv

BSM Data: Connected

Output Topic

topic.CmConnectionOfTravelEvent

Expected Output

One Connection of Travel Event on the topic.

In Conflict Visualizer Data Selector Query, one ConnectionOfTravelEvent under intersection ID 12109.

Actual Output

Kafka:

Topic: topic.CmConnectionOfTravelEvent
Key: {"rsuId":"10.11.81.12","intersectionId":12109,"region":0}
Offset: 0
Timestamp: 1711342287129
Value: 
{
    "eventGeneratedAt":1711342287196,
    "eventType":"ConnectionOfTravel",
    "intersectionID":12109,
    "roadRegulatorID":-1,
    "timestamp":1711342267214,
    "ingressLaneID":2,
    "egressLaneID":14,
    "source":"{ rsuId='10.11.81.12', intersectionId='12109', region='0'}",
    "connectionID":1
}

Visualizer:

Comments

  • Connection ID does not match signal group ID (should be 2).
  • Region in key and 'source' property should be -1

2. Unconnected Path

Inputs

  • MAPs every 1000 ms
  • SPATs every 100 ms
  • BSMs, 100 ms, entering the intersection on a ingress lane then making a u-turn and exiting onto an unconnected egress lane.

Test Script

Script: ConnectionOfTravel-u-turn.csv

BSM Data: U-Turn

Expected Output

One Connection of Travel Event

Actual Output

Kafka:

Topic: topic.CmConnectionOfTravelEvent
Key: {"rsuId":"10.11.81.12","intersectionId":12109,"region":0}
Offset: 4
Timestamp: 1711392744165
Value: 
{
    "eventGeneratedAt":1711392744227,
    "eventType":"ConnectionOfTravel",
    "intersectionID":12109,
    "roadRegulatorID":-1,
    "timestamp":1711392723689,
    "ingressLaneID":3,
    "egressLaneID":5,
    "source":"{ rsuId='10.11.81.12', intersectionId='12109', region='0'}",
    "connectionID":-1
}

Visualizer:

Comment

  • Region in key and 'source' property should be -1