Whether the speed-acc-brake/throttle calibration table only applicable to the control of small turning angle?
I have uesd the apollo's lon_control to control vehicle. According to the logic of longitudinal control, I need to update the speed-acc-brake/throttle calibration table, but after updating the calibration table according to the documented document, I found it doesn't work.
Because I want ues the controller to achive the Automatic Parking, which with a low speed and a big turning angle, so I modified the method of calibration: change the vehicle along a straight line to travel at a fixed angle. After do this, the calibration table can worked.
So, I have a geuss that Apollo's code is not very suitable for Automatic Parking scenes, is it? Or the calibration moudle only applicable to the control of small turning angle?
@follow123 Thanks for playing with it and let us know. -- The short answer for your questions is No. It is not specifically tailing for "Automatic Parking" when it is really really small speed. (~0.2 m/s when chassis resolution itself it not good). Secondly, I am glad that you modified the code and made it work. But the longitudinal table was purposely designed to be decoupled from steering control so they wont mix and interfere with each other. -- I would personally make changes in lateral controller to handle this situation.
Like change corning stiffness and slip ratio. Since these two physical properties affect most in the scenario you describe and easily collect/do repeated work. -- So they would not become "magic" calibration table.
@Capri2014 I know the longitudinal table was purposely designed to be decoupled from steering control, but when I ues the calibration table ( calibrated by straight line, and I just use the lon_controller without the lat_controller, steering control was achieved by directly setting the steering wheel angle by time in my simulation environment(Carsim + Simulink). ) , the vehicle just can run straight line.
When I want to use this table to control car to drive a curve, it does not running, just stand at the starting point, maybe the brake_cmd too big. Because with a front wheel drift angle or not(Vehicle is a front-drive car), the power required by the vehicle, or the acceleration of the vehicle, and the maximum speed achieved are different.
So I changed the methon, when update the table,
- I set the front wheel drift angle to 30° (my max Ackerman's corner) to produce a new table,
- after do this, the vehicle can run curve and straight line depend on this table with different PID params.
But do this, lon_controller and lat_controller have produced coupling, contrary to the original intention of your design.
@Capri2014 your means is let me to change corning stiffness and slip ratio, to make the car can run in the table calibrated by straight line, is it? I will try and give you feedback whether this method is effective.
Thanks for your reply.