Hello,

getLeader would only return the vehicle inside the roundabout if it was
already on the entering intersection.
There is currently not direct method to retrieve the approaching vehicles
(a longstanding issue: https://github.com/eclipse/sumo/issues/3597)
As a workaround you could analyze the network graph (with traci functions
or sumolib) and retrieve all vehicles on the relevant roundabout lanes.

regards,
Jakob

Am Mi., 25. Nov. 2020 um 16:22 Uhr schrieb Yasmina Jaafra <
[email protected]>:

> Hello, I am running a scenario where an RL vehicle is trained to enter a
> busy roundabout. I would like to know how to identify the closest vehicles
> in the roundabout and their distances from the entry point before the RL
> vehicle insertion? Could getfollower/leader be useful in this case?
> _______________________________________________
> sumo-user mailing list
> [email protected]
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to