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

Buggy rendering of pedestrians when using traci.person.movetoxy() with keepRoute bit1=1 #8031

Open patmalcolm91 opened 3 years ago

patmalcolm91 commented 3 years ago

When using traci.person.movetoxy() with the keepRoute bit1 equal to 1 (i.e. a keepRoute value of 4 or 6), pedestrians who are not near an edge and whose starting edge is not within the bounds of the current window view are not rendered. In addition, these same pedestrians can not be right-clicked. See the attached video and code. I also observed vehicles which were on or near edges disappearing in a more complicated scenario, but was unable to recreate this behavior in a simple network.

https://user-images.githubusercontent.com/13092577/102790250-79610b80-43a5-11eb-94fd-6f03fd994bf7.mp4

movetoxy.zip

namdre commented 3 years ago

The recommended work-around is either to keep pedestrians in the road network (if necessary by creating a path in the desired spot) or the make explicit that they can leave the road network by setting keepRoute bit1