Hi,

here you can find information about traffic light control via TraCi:
https://sumo.dlr.de/docs/Simulation/Traffic_Lights.html#controlling_traffic_lights_via_traci

“Using the function setPhaseDuration, the remaining duration for the current 
phase can be modified. Note, that this does not take effect when encountering 
the same phase again in the next phase cycle.”
If you want to change the phase duration for all cycles you could maybe define 
another traffic light program and then change them with the command setProgram.

Best Regards,
Giuliana

From: [email protected] [mailto:[email protected]] On 
Behalf Of Aristide BAMAZI
Sent: Mittwoch, 15. Juli 2020 20:26
To: Sumo project User discussions
Subject: [sumo-user] Phase time extension with TraCI.

# Question :
Want to know if it is possible to set a new duration to phase when running the 
simulation with TraCI.
# What I have tried
I have  tried the method traci.trafficlight.setPhaseDuration(tls, duration). 
but it seems not to perform what I want.

Best Regards.
_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to