lgsvl / simulator

A ROS/ROS2 Multi-robot Simulator for Autonomous Vehicles
Other
2.26k stars 778 forks source link

Pedestrian crosswalk trajectory does not fit the path in some directions #1988

Open xli149 opened 2 years ago

xli149 commented 2 years ago

I have followed the Map annotation guide to build the pedestrian lane in order for the pedestrians to obey the traffic rules. The pedestrians' trajectory fit the pedestrian lanes on the other two direction of the crosswalk. However, they fails to fit in the lane in this direction as following. By not fitting in lane, I mean, the direction is correct, but there is a huge deviation between the pedestrian lane and the actual pedestrian trajectories no matter how I adjust the lane. Have some one encountered with this problem before? Screenshot from 2022-02-17 23-55-02

EricBoiseLGSVL commented 2 years ago

Yes, random traffic has randomization in the path and will recalculate often during runtime. If you need precision in the path, use the api to specify the path.

xli149 commented 2 years ago

Thank you for your explanation Eric. However, this seems still a little bit weird. The pedestrians on the other two lanes are walking within the boundary, but tend to walk outside the boundary in this lane as following. Is there any reason for this? Screenshot from 2022-02-20 18-21-36 Screenshot from 2022-02-20 18-21-58 Screenshot from 2022-02-20 18-22-19 ?

EricBoiseLGSVL commented 2 years ago

Yes it is a pathing issue with the ai agent code. You can look to the pathing calls and see if you can change the behavior. You can also look at the nav mesh settings. There may be a setting that needs adjusted