If a lane has vehicles on it, traci.vehicle.lane.getLastStepIDs(laneID)[-1] gives you the one at the head of the queue. traci.vehicle.getWaitingTime(traci.vehicle.lane.getLastStepIDs(laneID)[-1]) give you it's waiting time.
sumolib allow you to determine all edges (and thus all lanes) that are entering an intersection. (see http://sumo.dlr.de/wiki/Tools/Sumolib) regards, Jakob 2017-04-09 14:07 GMT+02:00 Sneha Konnur <[email protected]>: > Thank you for your response, Kakob. > Is there any way of doing it using the sumolib/ traci modules? > > On 9 April 2017 at 02:35, Jakob Erdmann <[email protected]> > wrote: > >> E2 detectors return the maximum halting duration. Unless custom stops are >> specified this should be the halting duration of the first vehicle in the >> queue. You can get this output for every traffic light cycle as explained >> here: >> http://sumo.dlr.de/wiki/Simulation/Output/Traffic_Lights# >> Coupled_Lane_Area_Detectors >> regards, >> Jakob >> >> 2017-04-08 11:07 GMT+02:00 Sneha Konnur <[email protected]>: >> >>> I want to calculate the waiting time of the first vehicle in the queue >>> for >>> all the incoming queues to a junction. Is there a way to find that out? >>> >>> Thanks, >>> Sneha >>> ------------------------------------------------------------ >>> ------------------ >>> Check out the vibrant tech community on one of the world's most >>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >>> _______________________________________________ >>> sumo-user mailing list >>> [email protected] >>> https://lists.sourceforge.net/lists/listinfo/sumo-user >>> >> >> > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
