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

pedestrians zig-zag in network without walkingareas #5302

Open namdre opened 5 years ago

namdre commented 5 years ago

when there are no walkingareas, a single connector is built which connects all adjacent edges at a node (IntermodalNetwork.h:155). This obscures the differences between staying on the same sidewalk and changing the side of the road which causes zig-zag on a straight sequence of edges with sidewalks on both sides

namdre commented 5 years ago

I recall we discussed this and decided on the current code for sake of simplicity...

behrisch commented 5 years ago

Yes, and I don't see a good way to fix this unless we decide a little bias in walking "forward" (meaning in the direction of the edge) would be acceptable. Then we could add just an epsilon to the cost of the backward edges.

namdre commented 5 years ago

I suppose a bias wouldn't hurt since this type of simulation has reduced accuracy in pedestrian movement anyway.

An alternative would be to create an NxN connection matrix at each junction with air-distance length for each of the connections.