Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] missing pydoc entry

Thanks for pointing out the documentation gaps. They have been filled.
Regarding your problem, It would help if you could clarify the symptoms of "something is wrong".

regards,
Jakob

Am Fr., 5. Okt. 2018 um 12:44 Uhr schrieb Harald Schaefer <HaraldSchaefer@xxxxxxxxxxx>:
Some functions in traci.trafficlight (e.g. getNextPhase) have no documentation text.

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

Back to the top