carla icon indicating copy to clipboard operation
carla copied to clipboard

Car crashes to wall with autopilot

Open Hanss8 opened this issue 2 years ago • 4 comments

CARLA version: 0.9.11 Platform/OS: Windows

Hello, i created map in Roadrunner. When i run manual_control.py script and i set autopilot on, my car drives in line for a while, then stops and then drive to side of the road and crashes to wall. Someone to help me with this issue please? Thanks.

Hanss8 avatar Apr 02 '22 10:04 Hanss8

Hi, Are you using synchronous mode ?

makaveli10 avatar Apr 04 '22 10:04 makaveli10

Hi @makaveli10, i run the manual_control.py script, as it is after download. So i guess, no synchronous mode is enabled there. Thank you.

Hanss8 avatar Apr 04 '22 10:04 Hanss8

I think you need to turn on synchronous_mode:

settings = world.get_settings()
settings.synchronous_mode = True # Enables synchronous mode
settings.fixed_delta_seconds = 0.05
world.apply_settings(settings)

makaveli10 avatar Apr 04 '22 13:04 makaveli10

I am having a similar problem that I posted here. The vehicle is decelerating after it attains a certain speed, and it also sometimes crashes onto the walking path. Setting synchronous mode does not solve the problem.

shh1v avatar Jul 12 '22 18:07 shh1v

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] avatar Jun 02 '23 04:06 stale[bot]