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.58k stars 1.44k forks source link

bike makes emergency braking when meeting pedestrian within a intersection #7684

Open yunpangfloetteroed opened 4 years ago

yunpangfloetteroed commented 4 years ago

It seems that bike cannot corretly detect pedestrian in best time within a intersection and, therefore, makes emergency braking. Moreover, the corresponding pedestrian did not change his/her "lane" under a sublane model to avoid the possible conflict with the bike. At the same time, bike keeps stoping after emergency braking until the pedestrian passed. (see the attached files with the prefix "test2")

When the same network is cutted and only a small area (only the problem intersection) is left, the above mentioned problem cannot be found. It looks like that the pedestrian used different internal links to pass the intersection. (see the attached files with the prefix "test")

related issues: #7730, #7744, #5782

namdre commented 4 years ago

no attachment is visible. Can you attach the relevant files again?

yunpangfloetteroed commented 4 years ago

Thanks for the notice! It is wierd that the uploaded zip file is disappeared... You find attached the zip file. test.zip

namdre commented 4 years ago

I think the main issue here is that pedestrians don't care which side of the road they walk on when all lanes in both directions are usable (no car-lane in between). So far most simulations only had a single lane that was used in both directions and they walk on the right within that lane. At least in this case they should prefere the right side.

In your two versions of the scenario the pedestian uses different sides of the road when approaching the junction.

namdre commented 4 years ago

@behrisch: how about an edge penalty for the pedestrian routing on all edges that allow vehicles when using them against the driving direction. Something along the lines of --persontrip.walk-opposite-factor (default < 1)

yunpangfloetteroed commented 4 years ago

Does the choice which side to walk happen randomly in the current version? --> therefore, the ped. uses different sides of the road in these two tests. In the test2, it looks like that the pedestrian ignore the cyclist and the cyclist stops until the pedestrian passes. Could the ped and the cyclist detect each other eailer before they enter the intersection? Then they could try to choose other connections to aviod the confilct?

namdre commented 4 years ago

The connection is chosing earlier when computing the routes. If both sides of the road lead to similar walking distances the route choice is arbitrary (probably based on sorting of ids).

yunpangfloetteroed commented 4 years ago

Are there more connections within an intresection when the sublane model is activated? If it is the case, (1) the activation of rerouting device or (2) re-updating connections at intersections (this does not exist in sumo yet) could help to choose a new connection. Right?

namdre commented 4 years ago

No. There is only one connection for each lane-to-lane relation.

behrisch commented 4 years ago

@behrisch: how about an edge penalty for the pedestrian routing on all edges that allow vehicles when using them against the driving direction. Something along the lines of --persontrip.walk-opposite-factor (default < 1)

I am still not sure how this would solve the original issue. The person may still choose to use the edge.

yunpangfloetteroed commented 4 years ago

I just increased the number of peds in the test scenario. It looks like more than one lane-to-lane connection exists within the intersection for pedestrains (see the attached figure). or it is only visualization? peds_at_intersection

namdre commented 4 years ago

@behrisch You are right. I just think that the original situation would be a lot rarer and improving the edge choice is more relevant than the improving the interaction when switching sides. I moved my suggestion to #7730

Regarding the original issue: Vehicles on a walkingarea are treated like static obstacles by the pedestrians. Instead some space ahead of the vehicle (according to it's speed) should also be blocked. The same concept is already used on normal lanes and crossings.

namdre commented 4 years ago

@yunpangfloetteroed There is only one connection but the pedestrians may use different lateral offsets when walking (somewhat similar to the sublane model).

yunpangfloetteroed commented 4 years ago

Regarding the original issue: 1. I think it is fine that vehicles on a walkingarea are treated like static obstacles by the pedestrians at/within intersections (they expect that vehicles should "yield" them). Vehicle should be able to detect pedestrians in good time so that they do not need to make emergency braking, especially bikes.

  1. When pedestrians always use the rightmost lane in the striping model, we expect then to see pedestrians walk on the right-hand lane/road (in the same direction) after corssing the intesection in the picture shown above. right? But they walk in the opposition direction currently.
namdre commented 4 years ago

1) I disagree because there are several paths across a walkingarea and some of them do not conflict with vehicular traffic. With your approach vehicles would slow down in unnecessary situations. While on a shared space the right-of-way rules are more fluid and vehicles as well as pedestrians have to slow down some of the time.

2) That is a misunderstanding. Right now pedestrians walk on the right within a lane but the routing algorithm that selects the edge does not care about right or left (which my suggested option would hopefully fix).

yunpangfloetteroed commented 4 years ago

After the discussion with Jakob, seperate tickets will be generated for:

namdre commented 4 years ago

I'm not sure about the meaning of the last point but I've added links to releated tickets at the top.

yunpangfloetteroed commented 4 years ago

the last one is with regard to that bikes/peds would consider to adjust their speeds regarding the approaching objects, also in opposite direction in a walking area. Do I understand it correctly?

namdre commented 2 years ago

some new thoughts on the situation:

yunpangfloetteroed commented 2 years ago

Regarding the second point, bikes should still be able to earlier detect possilbe conflicts (something like enlarging the safety gap?) and start earlier to brake for avoiding emergency braking.