Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-dev] Fwd: Vehicle stuck in roundabout

Possibly, your a using a laneChangeMode that does not ensure safe follower gaps before changing and thereby create unsafe situations.

Am Fr., 4. März 2022 um 05:57 Uhr schrieb Ankit Jatiya <akj0147@xxxxxxxxx>:
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?

On Mon, Feb 28, 2022 at 5:26 PM Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
- 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)


Am Mo., 28. Feb. 2022 um 11:38 Uhr schrieb Ankit Jatiya <akj0147@xxxxxxxxx>:
Yes, it works without it but I want them to stay in same lane until they leave roundabout.

On Mon, Feb 28, 2022, 3:56 PM Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
Did you try running without setFixedLane?

Am Mo., 28. Feb. 2022 um 08:45 Uhr schrieb Ankit Jatiya <akj0147@xxxxxxxxx>:
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?

On Mon, Feb 28, 2022, 12:13 PM Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
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.

Am Mo., 28. Feb. 2022 um 05:43 Uhr schrieb Ankit Jatiya <akj0147@xxxxxxxxx>:
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

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
_______________________________________________
sumo-dev mailing list
sumo-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-dev

Back to the top