As such, the Aerror metric described as the surface error is used. The Aerror metric expresses the surface error between the set point and the trajectory of the robot. It is an approximation of the exact integral, using a trapezoidal Riemann sum, where v is the speed, iu is the angular deviation, y is the lateral error, tn is the time at the time step n, dt is the time between