[sumo-user] Tutorial Traci_tls

2018-12-08 Thread Lina Siegerts
Hi guys,   i´ve got a question to the tutorial of "Traci_tls". The vertical stream from north to south is prioritisized, if they pass the loop. But i would like to change the green time for a few seconds to increase or decrease the green time, if many or less vehicles pass the induction loop. Wit

Re: [sumo-user] Time gap calculation

2018-11-22 Thread Lina Siegerts
t vehicleData, gaps     gaps = [entry - exit for exit, entry in gaps if exit is not None]     if len(gaps) > 0:     #assert(min(gaps) > 0)     return max(gaps + [0])     else:     return traci.inductionloop.getTimeSinceDetection(id)   Am Do., 15. Nov. 2018 um 09:26 Uhr schri

Re: [sumo-user] Time gap calculation

2018-11-15 Thread Lina Siegerts
: "Jakob Erdmann" An: "Sumo project User discussions" Betreff: Re: [sumo-user] Time gap calculation You can get additional info from traci.inductionLoop.getVehicleData. This allows determining sub-second time gaps.   regards, Jakob   Am Mi., 14. Nov. 2018 um 14:23 Uhr s

[sumo-user] Time gap calculation

2018-11-14 Thread Lina Siegerts
Dear all,   i would like to calculate the time gaps between vehicles which pass an induction loop. The comand "getTimeSinceDetection" don´t extract the real time gap. So would you have an idea how to extract the time gaps in seconds? Thanks all,   Lina __

[sumo-user] priority of vehicles

2018-10-16 Thread Lina Siegerts
Hello,   i created a signalised intersection for vehicles. One lane should prioritize vehicles which will be detected. With the command "getLastStepVehicleNumber" i would like to give the vehicles with the number 1 a green light.  For this, i switched the current tls program off and set a new pro

[sumo-user] Phase analysis

2018-10-01 Thread Lina Siegerts
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.getNext

[sumo-user] Problems by running simulation

2018-09-26 Thread Lina Siegerts
Hi guys,   i would like to run my simulation but unfortuantely i get the error : Error: tcpip::Storage::readIsSafe: want to read 8 bytes from Storage, but only 4 remaining. Would you know the problem? Thanks a lot ___ sumo-user mailing list sumo-user@ec