The traci getLeader() function supports leader retrieval across multiple
edges up to a distance of ~3000m
However, you need to set the optional dist parameter to the desired
look-ahead range. By default it only checks withing the braking distance of
the ego vehicle.

2016-11-10 10:31 GMT+01:00 Alberto Díaz <[email protected]>:

> Hi there,
>
> I'd like to know if there is a way to obtain the lead vehicle across edges.
> My problem is the next. I'm implementing a library for letting people to
> implement their own behavior models in python using traci. I've a network
> wit four edges forming a square and a bunch of vehicles running. I'm
> implementing a Nagel-Schreckenberg model for testing it and one of the
> problems that I have is that the getLeader method only works when the
> vehicles are in the same edge.
>
> I understand that after an edge can be more than one edges connected, but
> I'd like to know if there is someone that had the same issue and could help
> me. Thank you and have a nice day!
>
> Alberto
> ------------------------------------------------------------
> ------------------
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today. http://sdm.link/xeonphi
> _______________________________________________
> sumo-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sumo-user
>
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to