Thank you for pointing this out. The behavior is working as intended and the documentation has been amended ( http://sumo.dlr.de/wiki/TraCI/Vehicle_Value_Retrieval#Extended_retrieval_messages ). Due to the way, vehicles using the default model always stay clear of the minGap, the distance reflects the value that may practically be driven. I concede that it is somewhat surprising when using other car following models and the semantics might be changed in the future.
regards, Jakob 2016-05-31 10:21 GMT+02:00 Hübner, Karl <[email protected]>: > Hi, > > I just noticed that the TraCI function which returns the ID of the leading > vehicle and its distance, provides a faulty distance. (command: 0xa4, > variable: 0x68) > > I have the following situation with two vehicles on the same lane: > > - Vehicle "0" with lane position 118m > - Vehicle "1" with lane position 146m > > Therefore, the distance between both vehicles should be: lane-pos("1") - > lane-pos("0") - vehicle_length("1") = 146m - 118m - 5m = 23m > > However, requesting the leading vehicle of "0" returns vehicle "1" with > distance 20,5m. > > I noticed that the missing distance has exactly the same value as the > min-gap of vehicle "0", which is configured with 2,5m in this specific test > case. > > Is this behavior a bug or intended? > > Kind Regards, > Karl. > ________________________________ > > Karl Hübner, M.Sc. > Research Fellow > > Phone: +49 30 9142636 415 > E-Mail: [email protected]<mailto: > [email protected]> > > Fraunhofer Institute for Open Communication Systems > Kaiserin-Augusta-Allee 31 > 10589 Berlin, Germany > http://www.fokus.fraunhofer.de<http://www.fokus.fraunhofer.de/> > > > ------------------------------------------------------------------------------ > What NetFlow Analyzer can do for you? Monitors network bandwidth and > traffic > patterns at an interface-level. Reveals which users, apps, and protocols > are > consuming the most bandwidth. Provides multi-vendor support for NetFlow, > J-Flow, sFlow and other flows. Make informed decisions using capacity > planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e > _______________________________________________ > sumo-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sumo-user > ------------------------------------------------------------------------------ What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
