CityFlow icon indicating copy to clipboard operation
CityFlow copied to clipboard

traffic lightphases and time value in roadnet

Open happy956 opened this issue 3 years ago • 1 comments

"trafficLight": { "roadLinkIndices": [ 0, 1, 2, 3, 4, 5, 6, 7 ], "lightphases": [ { "time": 5, "availableRoadLinks": [] }, { "time": 30, "availableRoadLinks": [ 0, 4 ] }, { "time": 30, "availableRoadLinks": [ 2, 7 ] }, { "time": 30, "availableRoadLinks": [ 1, 5 ] }, { "time": 30, "availableRoadLinks": [ 3, 6 ] }, { "time": 30, "availableRoadLinks": [ 0, 1 ] }, { "time": 30, "availableRoadLinks": [ 4, 5 ] }, { "time": 30, "availableRoadLinks": [ 2, 3 ] }, { "time": 30, "availableRoadLinks": [ 6, 7 ] } ] }

first, here is base settings in A like above dictionary format. But i'm not understand order about road index in availableRoadLinks. second, when Python API use, time value is not working

thanks.

happy956 avatar Feb 12 '22 03:02 happy956

"roadLinkIndices" correspond to indices of "intersections"/"roadLinks"

Sheagu avatar Mar 20 '22 13:03 Sheagu