Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Questions about Gap between two vehicles and getLeader method

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, sumo-user-request@xxxxxxxxxxxxxxxxxxxxx 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
sumo-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/sumo-user


Back to the top