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
<https://sumo.dlr.de/pydoc/traci._lane.html#LaneDomain-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" <[email protected]>
An: "[email protected]" <[email protected]>
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
------------------------------------------------------------------------
发自我的企业微信
<https://work.weixin.qq.com/wework_admin/user/h5/qqmail_user_card/vc7b3a039c87cfcb85?from=myprofile>
_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user