[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [sumo-dev] Fwd: Vehicle stuck in roundabout
|
Thank You for the help, this worked. But now after lane changing the vehicles are colliding i.e vehicles from the same route are hitting from behind. I tried changing speed modes but they don't seem to work. Is there some way which will avoid collisions?
- traci.vehicle.getRoute, vehicle.getRoadID can be used to check whether the vehicle is about to leave the roundabout
- traci.vehicle.getBestLanes can be used to check whether the vehicle is on an unsuitable lane
- traci.vehicle.setLaneChangeMode can be used to prevent and later permit lanechanging by the vehicle (as an alternative to setFixedLane)
Yes, it works without it but I want them to stay in same lane until they leave roundabout.
Did you try running without setFixedLane?
But when vehicle enters the roundabout, then also it has to change the lane and it is entering the roundabout without any problem.
Also, can you suggest how do I change lane just before leaving the roundabout?
The vehicles that want to drive 1/2 or 3/4 of the roundabout must change to the outermost lane at some point. Most likely the call to plexe.setFixedLane prevents this.
Hello,
I am trying to do a traffic light simulation for a roundabout. The model is such that vehicles that want to turn right are on right lane, vehicles those want to go straight are on middle lane and those who want to turn left are on left lane. All the vehicles who want to turn right are working properly. But vehicles which want to go straight or turn left are stuck in the roundabout even when the traffic light is green. I am using plexe.setFixedLane to keep vehicles in a fixed lane.
Here is the simulation screenshot.
![Screenshot (4).png](pngmG5w3AlGvS.png)
I have also attached the python script that I am using.
Thank You
Regards,
Ankit Jatiya
_______________________________________________
sumo-dev mailing list
sumo-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-dev
_______________________________________________
sumo-dev mailing list
sumo-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-dev
_______________________________________________
sumo-dev mailing list
sumo-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-dev
_______________________________________________
sumo-dev mailing list
sumo-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-dev
_______________________________________________
sumo-dev mailing list
sumo-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-dev
_______________________________________________
sumo-dev mailing list
sumo-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-dev