sumo icon indicating copy to clipboard operation
sumo copied to clipboard

pedestrian jaywalking

Open way-thu opened this issue 1 year ago • 2 comments

I have a pedestrian who needs to go through the intersection, and the OD is shown below. 19d5ddef07b074dbd19364b0bfca22b I am now simulating his jaywalking behavior using the movetoXY function, and successfully made him walk into the crosswalk when the light was red image

However, surprisingly, after the control of movetoXY ended, the pedestrian turned around and chose a longer route to reach the destination. image

I've tried changing the parameters in the movetoXY method, just like "keeproute", but it doesn't seem to work.

I would like to know how to solve this issue, thank you very much **SUMO-version:1.18.0

operating system:

way-thu avatar Oct 19 '24 10:10 way-thu

Theoretically, he should continue to go forward, but he turned around. I don't know what caused this problem image

way-thu avatar Oct 19 '24 11:10 way-thu

https://github.com/user-attachments/assets/29391c00-c2a1-4794-96bd-53e37f5f073a

way-thu avatar Oct 19 '24 11:10 way-thu

Yes, that's something we may look into in the future. In the meantime you can still move the pedestrian across the whole crossing using moveToXY commands. When the person reaches the other side, it should continue normally to its destination.

m-kro avatar Oct 21 '24 08:10 m-kro

Yes, thanks for your advice. I tried to move the person to the other side, it can work well.

way-thu avatar Oct 21 '24 08:10 way-thu