Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] static traffic light phases

Dear all,

I want to calculate start time of green  and its duration for every state. I didn't understand how can I deduce green, red or yellow duration according to the duration of phase in SUMO logic.  I am using python with a static traffic lights configured in XML file to extract these data

Can you help me  to map durations ? I took the example in the image below to understand, but I need a general algorithm that allow me to map phase duration and get start green time. 

image.png

Attachment: phases.png
Description: PNG image


Back to the top