I'm using Veins 4.5, OMNeT++ 5.0 and Sumo 0.29.
I want to implement a scenario of overtaking in VEINS Simulator.
In SUMO, I have a road connected by 3 nodes.
The edge 1i is connected to the edge 2i and the edge 2o is connected to the edge 1o, as shown in the figure road in SUMO .
I use traciVehicle->newRoute("1o");
in VEINS to overtake but the vehicle doesn't overtake and return back to the lane 1o.
I use traciVehicle->newRoute("2o");
in VEINS to overtake but SUMO doesn't allow me to add a connection between the edge 1i and 2o.
How a vehicle can ovetake ?
Indeed, I have three cars as shown in the below figure
The car VB will overtake the vehicle VA, but it should verify if there is any car coming from the opposite direction. In this case, VB cannot overtake because VC is coming from the opposite direction. Otherwise, VB can overtake VA , so it moves from the edge 1i to 1o and then return to 1i.
There is any other solution for this scenario ?