Path Tracking Methods Employed in Lane Centering Systems
Path Tracking Methods Employed in Lane Centering Systems
Musa Nurullah Yazar, Zülfikar Ali Erbudak, Alperhan Bay, İlkay Dost, Abdurrahim Semiz
AVL Research and Engineering Center, Türkiye
{musa.yazar, ali.erbudak, alperhan.bay, ilkay.dost, abdurrahim.semiz}@avl.com
Abstract—In this paper, a simulation environment with lane Geometric methods can provide efficient performance in a sim-
detection system emulator has been developed in order to com- ple structure employing the geometric models of the vehicle
pare the performance of path tracking methods. Path tracking and road. The Stanley, mostly used geometric method, was
problem is handled in local coordinate frame employing the
lane detection system emulator outputs. By performing this developed by the winning team in the DARPA competition in
environment, a detailed and proper comparison of geometric and 2005 [1]. Pure Pursuit method [2] is also one of the most used
model based path tracking methods, mostly used in the literature, geometric based tracking approaches. Both of these methods
are executed with respect to different speeds and road curvatures. have advantages and disadvantages, it should be taken into
The performance results show that the compared path tracking account when selecting the proper method with respect to
methods do not work well enough for all the determined perfor-
mance criteria and the methods have complementary features. driving scenario. Pure Pursuit performs reasonably well and is
These complementary features show that path tracking methods quite robust to large cross-track errors and discontinuous paths.
can be employed in a hybrid structure to achieve a generally Stanley method outperforms Pure Pursuit method in the case of
better performance results for the speed range (0-130 [km/h]) aggressive turn and high velocities. However, Stanley method
where autonomous driving is enabled. In addition, the obtained is less robust to large cross-track errors and non-smooth
simulation results reveal the necessity of adaptive adjustment of
the gain parameters of the path tracking methods with respect paths. Even though geometric methods generally overcome
to the road curvature and vehicle speed. disturbance inputs, their performance is insufficient in some
Index Terms—autonomous vehicles, lane centering, path track- driving scenarios. Researchers have recently developed hybrid
ing, stanley, purepursuit, lqr methods in which two algorithms are used together to improve
the weaknesses of the individual methods [3]–[5]. Another
I. I NTRODUCTION approach is utilizing machine learning algorithms to choose
In recent years, an intensive research effort has focused the parameters of the methods with respect to path curvature,
on developing advanced driving assistant systems (ADAS) cross-track error and longitudinal velocity [6]–[8].
and autonomous driving, Cruise control (CC) and adaptive In model-based methods, path tracking problem is handled
cruise control (ACC) have been become widely used features in the classical feedback control loop by using the vehicle’s
in today’s vehicles. Beyond such control functions, with the kinematic or dynamic models. A comprehensive analysis and
development of longitudinal and lateral control systems, lane comparison of different feedback structures were performed
keeping (LKA) and lane changing assistant (LCA) systems utilizing the vehicle kinematic and dynamic model [9]. Mod-
have also been made commercially available by many automo- eling errors cause sub-optimal control performance and may
tive manufacturers. LKA and LCA systems require en efficient cause the unstability. The cross-track error and hence tracking
path tracking algorithm and hence lateral and longitudinal performance both suffer from modeling errors, especially at
controller design. There exist many methods in the literature high vehicle speeds. Dynamic model based optimal control
with different complexity and whose performances may vary method may overcome geometric methods in some speed
depending on the driving scenario and conditions. regions. It should be noted that the linearized dynamic model
The purpose of the path tracking methods is to minimize is only valid within a certain speed range. In the model
angular and cross-track error between the path and the vehicle, predictive control, linearized models for different speed ranges
and maintain lateral acceleration below a certain value in order are employed in a certain prediction period and a better
to provide driving comfort. The mathematical model of the tracking performance can be achieved [10].
vehicle to be controlled can be obtained kinematically and In this paper, the geometric and model-based optimal control
dynamically. However, the kinematic model is not appropriate methods employing in the lane centering system are analyzed
for control applications due to the increase in dynamic effects and the detailed comparison of the algorithms are carried
at high speeds. The vehicle dynamic model, on the other hand, out in the simulation environment. The developed algorithms
can be handled separately as lateral and longitudinal dynamics, can be evaluated directly in the real environment thanks
and the controller design can be performed separately. The to the creation of realistic simulation environment. In the
connection between the two dynamics cannot be neglected, second section, the installation of the lane detection system
especially in sudden maneuvering movements at high speeds and the geometric model of the road are presented. Third
and on curvature roads. section introduces mathematical models of the path tracking
ycenter = c0 + c1 x + c2 x2 + c3 x3 (1)
The path tracking method takes the lane polynomial coef-
ficients as an input and computes the required steering angle
which minimizes the tracking errors by using the geometric
models of the vehicle and road. Additionally, cross-track error,
yaw error and steering wheel angular velocity are computed Fig. 3. Stanley method.
as the performance outputs. Steering angle and reference
velocity which is given in a certain range to measure the ker (t)
tracking performance are provided as an input for vehicle δ = ψe (t) + tan−1 ( ) (2)
vx (t)
14
Authorized licensed use limited to: ULAKBIM UASL - YILDIZ TEKNIK UNIVERSITESI. Downloaded on January 31,2025 at 16:58:28 UTC from IEEE Xplore. Restrictions apply.
B. Pure Pursuit Method
Another widely used geometric-based control method is
the Pure Pursuit method. The parameters used in the Pure
Pursuit method are shown in Figure 4. The target point on the
imaginary lane in the middle of the road lanes (left and right) is
found according to the specified lookahead distance parameter.
Lookahead distance is determined with respect to the vehicle
speed. Using the geometric relationships shown in Figure 4,
the Pure Pursuit method determines the steering angle that
drives the vehicle to approach the target point. Equation 3 to
7 specify the steps for calculating the steering angle based on
the cross-track error with geometric relations.
Fig. 5. Dynamic bicycle model.
15
Authorized licensed use limited to: ULAKBIM UASL - YILDIZ TEKNIK UNIVERSITESI. Downloaded on January 31,2025 at 16:58:28 UTC from IEEE Xplore. Restrictions apply.
Since the lane tracking system uses the vehicle local coor- The eigenvalues of the closed loop system (Ac = A − B1 K)
dinate frame, it is essential to represent the system model with must be adjusted by using gain parameter K to obtain desired
the relationships between the road and the vehicle. The local performance outputs. It is very important in terms of solution
coordinate frame in Figure 6 is used to define the dynamic flexibility to use the optimal control method approach instead
bicycle model. The lane centering algorithm is aimed to reduce of manually adjusting the eigenvalues of the system. In the
the error between ψp , which represents the slope angle of optimal control approach, cost function determines the per-
the road at the location of the vehicle mass center closest formance outputs. Since the cost function includes quadratic
to the middle of the lane, and ψ, which represents the vehicle functions, it is called as Linear Quadratic Regulator (LQR) in
orientation.The orientation error is given as the literature. Cost function is given in Equation 26.
1 ∞ T
Z
ψe = ψ − ψp (21) J= x (t)Qx(t) + δ(t)T Rδ(t) dt (26)
2 0
In Equation 26, Q and R are weight matrices related with
states and inputs respectively. If Equation 26 is rearranged
with δ = −Kx;
1 ∞ T
Z
J= x (t)(Q + K T RK)x(t) dt (27)
2 0
If we define P matrix equals to (Q + K T RK), P matrix
becomes a constant matrix consisting of Q and R weight
matrices as well as the K state feedback gain matrix.
d T
(x P x) = −xT (Q + K T RK)x (28)
dt
Fig. 6. Dynamic bicycle model in local coordinate frame. If K matrix is chosen to satisfy Equation 28 and it is
The acceleration and change of the cross-track error are assumed that the states go to zero as time goes to infinity,
given as the cost function is in Equation 29 depends only on the P
matrix and the initial conditions. Thus the cost function can
ër = v̇y + vx ψ̇e (22) reach its minimum value.
ėr = vy + vx ψe (23)
1 ∞ d T
Z
1
The equations given above is used in the linearized model of J =− (x P x)dt = xT (0)P x(0) (29)
2 0 dt 2
the system and rearranged with repsect to the relations between
The main issue here is to determine the gain matrix (K) that
the vehicle and road to obtain state space model of the system
satisfies Equation 28. If we apply the derivative in Equation 28
given in Equation 24.
and replace it in Equation 25 by applying K = R−1 B T P , the
0 Riccati equation is obtained. The P matrix can be computed
ėr 1 0 0 er
by solving Riccati equation utilizing numerical methods or
−(cf +cr ) cf +cr ℓr cr −ℓf cf
ër 0 mvx m mvx
ė
r the Schur matrix decomposition method. Finally, the optimal
=
0 0 0 1
ψ̇e ψ
e state feedback gain is found by using the P matrix in the
−(ℓ2f cf +ℓ2r cr )
ψ̈e 0
ℓr cr −ℓf cf ℓf cf −ℓr cr ψ̇e K = R−1 B T P equation.
Iz vx Iz Iz vx
0
0 IV. S IMULATIONS
cmf ℓr cr −ℓf cf − vx
mvx The system model shown in Figure 2 is built in Matlab
+
0 δ + ψ̇p
0 Simulink environment. Path tracking methods are evaluated
ℓf cf −(ℓ2f cf +ℓ2r cr )
Iz using the same global map and vehicle parameters and their
Iz vx
(24) performance results are compared.
Figure 7 shows the performance outputs of the path tracking
Equation 24 is in the state space model form defined as
methods. Curvature data (κ = R1 ) of the road belongs to the
ẋ = Ax + B1 δ + B2 ψ̇p . In the state space representation, state
global map is given in the bottom of Figure 7. Regarding
vector x = [er ėr ψe ψ̇e ]. The input matrix and residual
the simulation results, the cross-track and yaw error remain
matrix are represented by B1 and B2 respectively. δ and ψ̇ are
acceptable in the regions (between 150 and 250 meters)
provided to the system as inputs. If the controllability matrix is
where the curvature of the road increases whereas the vehicle
full rank, the system can be controlled using full state feedback
speed decreases. However, it is observed that the performance
where δ = −Kx. In this case, the state space model of the
outputs are significantly distorted in the regions where both
closed loop system given as
curvature and vehicle speed increases (between 850 and 950
ẋ = (A − B1 K)x + B2 ψ̇p (25) meters). It can be seen that cross-track error has exceeded
16
Authorized licensed use limited to: ULAKBIM UASL - YILDIZ TEKNIK UNIVERSITESI. Downloaded on January 31,2025 at 16:58:28 UTC from IEEE Xplore. Restrictions apply.
and yaw errors and steering-wheel velocity which are the
performance outputs of the system. Test scenarios include
various speed combinations and road curvatures. In the
results, it has been determined that the Pure Pursuit method
performs better in low speeds and steering angle changes
are more smooth. Whereas it makes high cross-track error
in curvature regions of the test road especially in high
speeds. The Stanley algorithm performs the best in terms
of minimizing the cross-track error. However, the high peak
values in steering angle changes significantly threaten safety
and driving comfort. Considering the dynamics around the
rolling axis are neglected in the simulations, it is clear to see
that improvements have to be made for the sudden steering
angle changes during implementation in real environment.
Future research will focus on machine learning based
methods that provide adaptive change of the tracking method
parameters with respect to road curvature and vehicle speed.
Additionally, techniques that will allow these methods to
be used in a hybrid structure can be employed to improve
tracking performance.
R EFERENCES
Fig. 7. Simulation results.
[1] S. Thrun, M. Montemerlo, H. Dahlkamp, D. Stavens, A. Aron, J. Diebel,
P. Fong, J. Gale, M. Halpenny, G. Hoffmann et al., “Stanley: The robot
that won the darpa grand challenge,” Journal of field Robotics, vol. 23,
above the acceptable limits at high speeds especially for no. 9, pp. 661–692, 2006.
the Pure Pursuit method. Stanley and LQR method performs [2] O. Amidi and C. E. Thorpe, “Integrated mobile robot control,” in Mobile
more acceptable cross-track error throughout the simulation. Robots V, vol. 1388. SPIE, 1991, pp. 504–523.
[3] M. Cibooglu, U. Karapinar, and M. T. Söylemez, “Hybrid controller
However, instantaneous steering angle changes threaten safety approach for an autonomous ground vehicle path tracking problem,”
and driving comfort. In Figure 8, the steering angle changes in 2017 25th Mediterranean Conference on Control and Automation
are given for each path tracking algorithm. (MED). IEEE, 2017, pp. 583–588.
[4] E. Seo, S. Lee, G. Shin, H. Yeo, Y. Lim, and G. Choi, “Hybrid tracker
based optimal path tracking system of autonomous driving for complex
Steering wheel angular velocity (rad/s)
road environments,” IEEE Access, vol. 9, pp. 71 763–71 777, 2021.
6 [5] Y. Huang, Z. Tian, Q. Jiang, and J. Xu, “Path tracking based on improved
PurePursuit
Stanley
pure pursuit model and pid,” in 2020 IEEE 2nd International Conference
4 Lqr on Civil Aviation Safety and Information Technology (ICCASIT. IEEE,
2020, pp. 359–364.
[6] B. Ağın and M. N. Yazar, “Improving path tracking performance for
2
autonomous driving with reinforcement learning,” Otomatik Kontrol
Ulusal Kongresi, 2022.
rad/s
17
Authorized licensed use limited to: ULAKBIM UASL - YILDIZ TEKNIK UNIVERSITESI. Downloaded on January 31,2025 at 16:58:28 UTC from IEEE Xplore. Restrictions apply.