sumo icon indicating copy to clipboard operation
sumo copied to clipboard

Connectivity is lost when adding green verges

Open behrisch opened this issue 1 year ago • 3 comments

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 avatar Jul 06 '24 12:07 behrisch

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.

behrisch avatar Jul 11 '24 03:07 behrisch

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 avatar Jul 11 '24 06:07 namdre

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

namdre avatar Jul 29 '24 11:07 namdre