Hello,
The vehicles have a stale internal state.
Vehicles only update their strategic lane preferences when changing from
one edge to the next.
You should be able to fix this by calling traci.vehicle.updateBestLanes()
for all upstream vehicles on the preceding edge immediately after
re-opening (and further upstream if the preceding edge is short).

regards,
Jakob


2018-08-31 16:57 GMT+02:00 Hübner, Karl <[email protected]>:

> Dear Sumo-Users,
>
>
>
> I currently try to setup a scenario where a lane is initially closed and
> later opened for all vehicle classes. I close the lanes on scenario start
> with the TraCI command 0xc3 (Change lane State) by setting disallowed
> vehicles to all vehicle classes, which works fine. Vehicles do not enter
> the lane anymore but try to change lanes beforehand accordingly.
>
> However, when I open the lanes after a certain amount of time by allowing
> all vehicles classes, the vehicles do not drive on the re-opened lanes
> anymore. Instead, they stick to their previous made choice and still try to
> change lanes before entering the edge, resulting in traffic jams. Any
> suggestions? Is this an error?
>
>
>
> Before opening the lanes:
> - Vehicles try to change lanes to the most-left beforehand.
>
>
>
> After opening lanes:
>
> - Vehicles still try to change to the left-most lanes before entering the
> next edge.
>
> - Also, after driving onto the next edge on the left-most lane, they
> switch lanes to the right again (e.g. vehicles on the left side of the
> picture).
>
>
>
>
>
>
>
>
>
> Kind regards,
>
> Karl
>
>
>
>
>
> _______________________________________________
> sumo-user mailing list
> [email protected]
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/sumo-user
>
>
_______________________________________________
sumo-user mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user

Reply via email to