Hi Jakob, Thanks. However, this does not work for me :(
I tried a TraCI call with command 0xc4 and variable 0x6a for each single vehicle in the simulation. They still stick on the left-most lane. I use a nightly build from last week. Kind regards, Karl ________________________________ Von: [email protected] <[email protected]> im Auftrag von Jakob Erdmann <[email protected]> Gesendet: Freitag, 31. August 2018 18:00 An: Sumo project User discussions Betreff: Re: [sumo-user] Close/open lanes with TraCI 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]<mailto:[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. [cid:[email protected]] 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). [cid:[email protected]] Kind regards, Karl _______________________________________________ sumo-user mailing list [email protected]<mailto:[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
