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

Connectivity is lost when adding green verges #15161

Open behrisch opened 4 months ago

behrisch commented 4 months ago

Disallowing everything on the leftmost lane, removes all connections from that lane without replacing them with connections from others: Bildschirmfoto vom 2024-07-06 11-31-35

Unfortunately, recalculating the junction (pressing F5) for a second time makes only things worse: Bildschirmfoto vom 2024-07-06 14-10-49

behrisch commented 3 months ago

Thanks for the quick fix! The problem is still not solved entirely at least concerning netedit. If I start with a configuration of 3 normal lanes + 1 green verge on the left connected to 5 lanes, press F5 and then make the third lane a green verge as well (so change to 2+2) and press F5 again I still get the situation above. This may be expected because netedit should keep as many connections as possible if no explicit reset is requested, but pressing F5 a second time still leeds to the intermingled situation in the second image above.

namdre commented 3 months ago

The problem is currently triggered when the connections have the status "guessed" (LANES2LANES_RECHECK). Then NBEdge::recheckLanes removes all the useless connections from green verges and afterwards tries to fill the gaps again. To trigger this in a loaded network, "reset connections" can be used before transforming a lane into a green verge.

The improvement from bdb959b is that another "reset connections" fixes the mess.

namdre commented 3 months ago

Still creates a problem if green verge is created by setting lane allow/disallow in inspect mode.