Open BoluoMonster opened 3 months ago
Could you provide more information about the exact experiment you are running? Are you going in a straight line or turning? which vehicle is it?
The only thing that I can say right now is that constant throttle doesn't mean constant acceleration. Current speed, aerodynamics, gears, motors... all these factors affect the vehicle differently, hence why I need more information about the experiment
@glopezdiest Thanks for replying! Here is the experimental setting: Vehicle: vehicle.audi.a2 Controller: PID controller from "PythonAPI" Testing scenario: a bend in Town02
The vehicle is tracking a lookahead point that is 2.0m ahead.
Following is what will be observed when the vehicle is turning.
We can find that the acceleration changes sharply. And it also happens when the car is moving straight forward.
I am working on getting the ego-agent's acceleration by agent.get_acceleration(). However, I find the resulting values are unrealistic. Here is the data log:
All values in the image are with the unit $m/s^2$. The throttle is constantly 0.75, but the acceleration changes sharply, which is weird.
By the way, the simulation is in synchronous mode.