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.54k stars 1.43k forks source link

connectivity on increased lane count #15160

Open behrisch opened 3 months ago

behrisch commented 3 months ago

Currently netconvert connects all additional lanes to the leftmost lane of the incoming edge. This looks strange if you add more than one lane: lanecount

There are at least four (non-exclusive) ways to fix that:

  1. use alternatingly left and rightmost lane to connect (starting on the left)
  2. let it depend on the geometry (every lane uses the "straightest" connection and everything else is added at the boundaries
  3. use spreadType to decide where new lanes should be added (use 1. for spreadType center and keep the current behavior for the others)
  4. invent another attribute or param which defines the number of lanes to connect on the left and connect the remaining on the right (still needs a sensible default).

@namdre Input is welcome

I currently favor 1. because 2. will probably break a lot of existing networks and 3. maybe unexpected if you think spreadType influences geometry only

behrisch commented 3 months ago

see also #14945 for reasons we might want to add connections not only to the outermost lanes

namdre commented 3 months ago

I prefer (1) as well.

namdre commented 3 months ago

The existing code in NBNode::addedLanesRight uses the following contextual clues:

So the solution (1) is probably just a sub-solution to one of the existing decision paths.