Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Discover turning lane/edge at intersection

Hi all,

is there any way to know which lane/edge a vehicle will turn to at an intersection (with traffic light) using TraCI? For example, when the vehicle enters the intersection's north lane/edge, know that it will turn to the right.

I thought of using vehicle.getRoute(), vehicle.getRoadID() and vehicle.getRouteIndex(), but I am not sure if it is the best approach.

Thank you and best regards,
Taylor

Back to the top