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.44k stars 1.38k forks source link

How can I prevent pedestrians from walking in the road? #14761

Closed govin08 closed 2 months ago

govin08 commented 2 months ago

Here are my captures from SUMO-GUI.. Some pedestrians walk on the road, even when cars are passing by.

pedestrian_safety_0_1 pedestrian_safety_0_2 pedestrian_safety_0_3 pedestrian_safety_1_1 pedestrian_safety_1_2 pedestrian_safety_2_1

Pedestrians are supposed to walk within the 'sidewalk', the lane where only pedestrians are allowed, but they don't. Can I solve this problem by making side walk with green verge ?

govin08 commented 2 months ago

I made a green verge, but it looks awkward. pedestrian_safety_3_1

The color of green verge looks the same as the entire base color, so it doesn't look like a verge that separate car-road and pedestrian-road.

And, between the green verge and crosswalk, it looks black, meaning it is a car-road, which is weird too.

govin08 commented 2 months ago

Modified version.

pedestrian_safety_6

namdre commented 2 months ago
govin08 commented 2 months ago

@namdre

  1. You can check from the below captures. image image

  2. Here are my examples

    • before_green_verge.zip
    • after_green_verge.zip In each file, there's sumocfg file. If you double click these file, you should see the result. (If your environment is similar to mine : windows 10, sumo 1.18.0.)
namdre commented 2 months ago

The problem is purely visual: In terms of simulation interaction, the pedestrians remain on their walkingarea and do not interact with the road vehicles. The problem arises, because the default pedestrian model ("striping") treats each piece of infrastructure as having constant width. This causes visual artifacts when a wide walkingarea narrows down to meet a narrow sidewalk. Before entering the sidewalk, the pedestrians still have the full width for walking even though visually, the area has already narrowed down. Here are some workarounds:

govin08 commented 2 months ago

@namdre So I can make the part of network where pedestrians move more smooth, namely soothing(?) the bottleneck and increasing the width of the sidewalks.

So there's the jupedsim model. Thank you for recommending.