eclipse-sumo / sumo

Eclipse SUMO is an open source, highly portable, microscopic and continuous traffic simulation package designed to handle large networks. It allows for intermodal simulation including pedestrians and comes with a large set of tools for scenario creation.
https://eclipse.dev/sumo
Eclipse Public License 2.0
2.51k stars 1.42k forks source link

Enhance Connection Specification: Include Vehicle Type Restrictions #14604

Open henrigrossmann opened 6 months ago

henrigrossmann commented 6 months ago

Currently, the connection specification lacks the ability to specify which types of vehicles can utilize a particular connection. This limitation becomes particularly significant when considering scenarios where different vehicle types, such as cars and buses, might not share the same turn lanes. This issue is closely related to #14248 but now that #14476 has been implemented, introducing vehicle type restrictions to connections seems like an extremely valuable enhancement.

m-kro commented 6 months ago

The permissions are stored in the lanes anyway. I think you can modify the permission settings of internal lanes in netedit and the doc mentions you can patch it with PlainXML connection definitions (allow/disallow). Haven't tried the latter right now.

henrigrossmann commented 6 months ago

Thank you for your fast reply. Unfortunately, the allow/disallow specification does not work for connections.

henrigrossmann commented 6 months ago

example.zip here's an example where the connection from="182422861#1" to="1264142811#0" should only allow buses and bicycles but cars are using the connection too.

m-kro commented 6 months ago

Well because there are no internal lanes (<no-internal-links value="true" />), this information is discarded effectively. We'll have to think about it. Thanks for notifying us.

namdre commented 6 months ago

Task: when network has no internal links, the allow/disallow values of the <connection> elements must be stored in MSLink and used in MSEdge::rebuildAllowedTargets