Hi Alessandro

I too faced the issue of the distance returned by traci.vehicle.getLeader being 
less than minGap. What I think is, the value returned by the function = Headway 
- minGap. So in order to get the actual headway, you need to add minGap of the 
vehicle to the value returned by getLeader.

Can someone else also please confirm if this is how getLeader works? If so, I 
think it will be a helpful addition to the documentation.

Hope this helps.

Thanks
Gopindra

> On Jul 27, 2017, at 6:53 AM, [email protected] wrote:
> 
> Questions about Gap between two vehicles and getLeader method
>      (Alessandro Virgilio)

------------------------------------------------------------------------------
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

Reply via email to