carla-simulator / carla

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

Custom Controller: Pedestrian unable to climb to sidewalks from road #5107

Closed adhocmaster closed 1 year ago

adhocmaster commented 2 years ago

CARLA version: 0.9.13 I made a custom map in Road Runner. WalkerAIController can crossroads, walk on sidewalks, everything is smooth. Now I am writing my own controller in python. Everything is good, except for one problem. When the pedestrian is on-road it cannot climb up a sidewalk. For the time being, I am jumping onto the sidewalk when the pedestrian is close to a sidewalk. Ideally, I would like it to climb up smoothly. Can anyone guide me to do it, please?

LucasFKobernic commented 2 years ago

I had the same problem in the past. What solved my problem was:

  1. In the Unreal Engine editor select the curb;
  2. Under Collision-> Collision Presets -> Choose "NoCollision"
  3. save it

After that my pedestrian was able to climb up the sidewalk. curb_problem_carla

stale[bot] commented 2 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.

adhocmaster commented 1 year ago

Need another solution which does not required rebuilding existing Carla maps

zhz03 commented 5 months ago

HI, @adhocmaster Did you solve this issue?

adhocmaster commented 5 months ago

I wrote my custom algorithm to avoid the collision as rebuilding the maps were not an option. Basically, I calculated whether there would be a collision soon. If true, I made the pedestrian jump onto the sidewalk.