Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] how to get the incoming edge with green/red light?

you can use traci.trafficlight.getState together with
traci.trafficlight.getControlledLinks
The first call gives you the list of states and the second call shows which connections are controlled by each of these states.

Am Sa., 16. Nov. 2019 um 07:01 Uhr schrieb Hao Zhou <zhouhaoseu@xxxxxxxxxx>:
Hi all,

we can use traci or net tools to get the incoming edges of a junction, but how can we get those two edges with green/red light when running simulation? I want to reroute vehicles. My idea is to retrieve the two incoming edges with green light, and then reroute the first vehicle on those two edges. Does anyone have good ideas?

Best,
Hao
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top