carla-simulator / carla

Open-source simulator for autonomous driving research.
http://carla.org
MIT License
11.37k stars 3.69k forks source link

Pedestrian crossing in CARLA 0.9.7 #2384

Closed ndeshp2s closed 4 years ago

ndeshp2s commented 4 years ago

Hello all,

I have been exploring this new functionality of CARLA 0.9.7, however, I am still not sure how the "world.set_pedestrians_cross_factor()" works. In some towns, increasing this number results in more pedestrians crossing the crosswalks and also there are some pedestrians doing jaw-walking.

However, in some towns I see pedestrians crossing only over crosswalks and no jaw-walking.

Is it because of the nav file (used by recast and detour) and how regions are defined as navigable in these files?

Then does this mean, the "world.set_pedestrians_cross_factor()" will influence pedestrian crossing randomly (as mentioned in documentation). It could be over crosswalks/roads depending on the nav file for that particular town?

Also, making this factor 0.0 still causes pedestrians to cross. I am wondering why.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

rowanmcallister commented 3 years ago

I see the same error: world.set_pedestrians_cross_factor(0.0) still allows pedestrians crossing the road