sumo
sumo copied to clipboard
pedestrians cross the street somewhere
This is not a mistake in the classical sense, but rather an idea for realistic senarios. At the moment pedestrians only cross the streets at crossing, but in realife pedestrians also cross the streets anywhere. Maybe it will be possible in the future that pedestrians can cross the streets all over.
Jaywalking can currently be modeled by creating multiple (non-priority) crossings. Alternatively, moveToXY() could be used.
Some points from internal discussion:
-
issues with work-around by creating multiple crossings:
- manual process so far which would need tooling to automate
- if crossings result in lots of short edges, we might run into problems concerning lookahead distance (or number of lookahead edges)
- routes of pedestrians have to be pre-determined (no dynamic re-routing without traci)
-
additional pedestrian model might be needed allowing event-based jaywalking, e.g., based on strategic decision, and requiring a minimum gap to oncoming vehicle for safe jaywalking.
@behrisch @namdre Anything I have missed? Further opinions?
- netconvert allows splitting edges with additional junctions via --geometry.max-segment-length 10 --geometry.split
- lookahead distance should keep working regardless of extra junctions (and most code should already use distance rather than edges for this reason)
- rerouting of persons should be almost finished (#2408). Since pedestrian routing can already interact with traffic lights, this might eventually be extended to allow dynamic jaywalking decisions (non-priority-crossings are already evaluated with regard to feasible gaps). To get some variability, --weights.random-factor can be used right now
see #9099
Jaywalking can be forced by remote-controlling the person with traci.person.moveToXY (vehicles will react while it is on the road)