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
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
: "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
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
__
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
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
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