[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [sumo-user] change the lane function during the simulation
|
Hi Tianli,
you cannot add/remove connections during the simulation. Every connection you want to use has to be defined in advance. What you can do dynamically: define who can access a connection (traci.lane.setAllowed). Now I am unsure whether this will work well because SUMO intersection logics uses the defined connections to derive right-of-way rules.
Best regards
Mirko
-----Original-Nachricht-----
Betreff: [sumo-user] change the lane function during the simulation
Datum: 2023-12-18T12:56:32+0100
Von: "薛田莉 via sumo-user" <sumo-user@xxxxxxxxxxx>
An: "sumo-user@xxxxxxxxxxx" <sumo-user@xxxxxxxxxxx>
Hello,
To adapt to the changing traffic flow, I intend to switch the function of a lane during the simulation, such as switching the left-turn lane to the straight lane. So I obtained the real-time simulation results by traci and modified the net-file when the simulation results reached the set value. But the running simulated network was not updated in real time and the modification couldn't be implemented. I wonder if there's a better way to achieve this goal. Or I could achieve it by adjusting the path of the vehicle in real time.
Any help is greatly appreciated.
Thanks and Regards,
Tianli