-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Applying VehicleControl(throttle=1.0) for the first time has a delay #1640
Comments
This delay is caused by Unreal car's system, where they somehow simulate the time that the driver will spend starting the car engine or changing a new gear. I think one solution is to spawn a car, change the gear system to manual, put the first gear, and then set the gear system to automatic again. |
Marc is this documented somewhere in UE4 ? I am getting zero Google hits ... |
I created the simple vehicle project directly in UE4. I sense no delay in vehicle movement using the UE4 player directly with the sample project |
Hello, @oldtopos and @marcgpuig and thank you both for your input! |
@DanielsJusts, can you explain how to avoid the delay in details? |
Hello @Derekabc!
Basically, after spawning a car you need to switch from automatic transmission to manual transmission and put the car in the first gear ( |
hi, if i use throttle to control vehicle's velocity, what's the function relationship between throttle and velocity? Where is the code? And what's the difference between throttle and acceleration? Acctually, i want to use acceleration to control the velocity in carla. Thanks. |
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. |
In Windows, the method of switching between automatic and manual gear worked. However, the delay about 2 seconds (and depending on the amount of applied throttle) still existed in Ubuntu 18.04 and Carla 0.9.10 or 0.9.11. If manual gear (e.g., 1) is used, there's no delay. But the delay always appeared if using automatic gear (for the first time of any run). Does anyone have a solution for this? |
Guys anyone knows how to relate throttle to acceleration in Carla? I just know it varies between [0 1]. |
Hello!
What I noticed is that using
vehicle.apply_control(VehicleControl(throttle=1.0))
for the first time has quite a delay. Afterwards, the delay is not noticeable and the commands are immediate. This is causing me issues as I'm processing the sensor data and then sending back the necessary vehicle control signals. The delay could even be observed when runningmanual_control.py
and trying to accelerate for the first time. As you can see, the vehicle is not reacting for a few seconds and then it runs as it should. The interesting part is that when I'm applying steering command alongside the throttle command (vehicle.apply_control(VehicleControl(throttle=1.0, steer=1.0))
), it can be observed that the wheels turn immediately, but the throttle is applied with a delay.What could be causing this delay?
Also, if there is no workaround for this delay, maybe there is some way that I can get feedback as to when the throttle is going to be applied as the commands are received and
vehicle.get_control()
returns that the throttle is applied, but in the server physically the vehicle is not yet moving. I know that an alternative could be to use synchronous mode, but I'm just wondering if there are other options.If it is of any concern, I am using Carla 0.9.5 on Ubuntu 16.10.
The text was updated successfully, but these errors were encountered: