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 <[email protected]>: > 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 > [email protected] > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user >
_______________________________________________ sumo-user mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
