Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Traffic Light Upcoming Phase Information

You can use traci.trafficlight.getAllProgramLogics to retrieve the list of phases and their durations and thereby deduce the upcoming phases.
Note, that actuated traffic lights cannot be predicted with certainty (the actual duration of each phase is somewhere between the minDur and maxDur values).

regards,
Jakob

Am Mi., 13. Mai 2020 um 22:27 Uhr schrieb Sai Krishna <saikrishna.4zeracing@xxxxxxxxx>:
Hello All,

I am using traci4matlab to access the SUMO variables. I would like to get
the current and upcoming phase information of the immediate traffic light. I
have used 'traci.vehicle.getNextTLS(vehID)' to get the immediate traffic
light ID and 'traci.trafficlights.getPhase(tlsID)' to get that respective
traffic light current phase.

However, I was not able to find the correct function to obtain the future
phase information of the same traffic light. Could someone please help me
out with this?

Regards,
Sai Krishna








--
Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top