The documentation updates sometimes during the morning. Check again, it now reads:
*getWaitingTime*(self, vehID)getWaitingTime <http://www.sumo.dlr.de/daily/pydoc/traci._vehicle.html#VehicleDomain-getWaitingTime> () -> double The waiting time of a vehicle is defined as the time (in seconds) spent with a speed below 0.1m/s since the last time it was faster than 0.1m/s. (basically, the waiting time of a vehicle is reset to 0 every time it moves). A vehicle that is stopping intentionally with a <stop> does not accumulate waiting time. 2017-05-18 7:23 GMT+02:00 Matthias Wirtz <[email protected]>: > Hi Jakob, > > ok, that makes sense. > > In my case I have a vehicle which stops intentionally at a bus stop. As > you pointed out since it stops by intent no waiting time is accumulated. > > I thought I was previously using 0.28 when this behavior was different. > But it looks like it was pre 0.27. Thanks for the quick help! > > By the way which TraCI documentation did you update? > > When looking at: > <http://www.sumo.dlr.de/daily/pydoc/traci._vehicle.html> > > I don't see any changes. > > -- > Matthias > > > On 17.05.2017 21:33, Jakob Erdmann wrote: > >> Hello, >> no change was intended for the behavior of this variable between version >> 0.28.0 and 0.30.0. >> In 0.27.0 there was a change insofar as vehicles do not accumulate >> waitingTime when stopping intentionally (i.e. at a busStop) anymore. >> I've updated the TraCI documentation which was incomplete in that regard >> since 0.27.0. >> >> My tests show that waitingTime is tracked correctly in the GUI and traci >> also returns non-zero values. >> Please provide an example scenario where waiting time is not properly >> incremented so I can determine whether there is a bug. >> regards, >> Jakob >> >> 2017-05-17 19:23 GMT+02:00 Matthias Wirtz <[email protected] >> <mailto:[email protected]>>: >> >> Hello, >> >> in SUMO version 0.28 the variable waiting time of each vehicle >> represented the time since the vehicle was last moving: >> >> In the traCI Vehicle docu it says: >> "The waiting time of a vehicle is defined as the time (in seconds) >> spent >> with a speed below 0.1m/s since the last time it was faster than >> 0.1m/s." >> >> Now in Version 0.30 somehow the waiting time is always 0 both when >> accessing via traCI via getWaitingTime or when looking in the GUI. So >> it >> looks like this was done by intent. >> >> Can I reactivate this variable? >> >> Thx. >> -- >> Matthias Wirtz >> >> ------------------------------------------------------------ >> ------------------ >> 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] <mailto:[email protected] >> forge.net> >> https://lists.sourceforge.net/lists/listinfo/sumo-user >> <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
