[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [sumo-user] Phase analysis
|
Hello,
read carefully the documentation.
Take care of absolute and relative times and seconds and milliseconds
Regards
Harald
--- Original-Nachricht ---
Von: Lina Siegerts
Betreff: [sumo-user] Phase analysis
Datum: 01.10.2018, 14:55 Uhr
An: sumo-user@xxxxxxxxxxx
Hi guys,
i would like to figure out how much time is left in one phase which started. So i wrote following code for this part:
traci.start(sumoCmd)
while i==0:
k+=1
traci.simulationStep()
if traci.trafficlight.getPhase("B") == 2:
timeleft = traci.trafficlight.getNextSwitch("B") - traci.simulation.getTime()
traci.close()
But something is wrong which i cannot find out. Could you help me?
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user