Introduction

Autonomous electric vehicles equipped with four-wheel independent drive (4WID) are regarded as effective tools for enhancing traffic safety and transportation efficiency1,2 due to their independently controllable four wheels, which can generate a flexible and precise torque response rapidly3. The incorporation of lateral and longitudinal trajectory tracking control is essential to guarantee compliance with safety and efficiency standards4. It is essential to converge the control objectives—namely, lateral error, orientation error, and speed error—to zero through the regulation of both the steering and driving systems, thereby ensuring that the intelligent vehicle smoothly and accurately follows the predetermined trajectory. Designing a suitable controller for trajectory tracking in intelligent vehicles, however, poses considerable challenges. This complexity arises from the intricate interactions of vehicle dynamics that are strongly coupled, highly nonlinear, and uncertain, along with external disturbances that vary over time and are hard to measure or estimate when the vehicle is in motion. When investigating trajectory tracking control for 4WID electric vehicles, it is crucial to consider the robustness of the control system to model uncertainties and disturbances, as well as practical limitations imposed by actuators and road conditions. Stanford University5 developed a controller that utilizes both lateral displacement error and orientation error. An adjustable parameter optimization scheme based on fuzzy uncertainty and the use of fuzzy6 sets to define uncertainty limits is introduced. The Takagi–Sugeno (T-S) approach7,8, when paired with dynamic output feedback control for steering vehicles using the principles of fuzzy observation, has proven to be effective. A PID controller utilizing double integrals and focusing on lateral offsets was created to mitigate curvature disturbances over time9. In the linear quadratic regulator (LQR) path tracking controller, an adaptive backlash compensator was implemented to address the backlash nonlinearity of the steering actuation system10. The orientation error was redefined in the presence of vehicle side-slip, leading to the creation of a path-following controller that incorporates backstepping methods along with LQR11 techniques. Techniques of Model Predictive Control (MPC)12 were utilized to tackle the challenge of constrained path tracking. An MPC13 method based on differential evolution was proposed, incorporating a measurable pendulum yaw rate angle as a perturbation; another investigation14 focused on creating an efficient lateral path tracking controller using MPC that accounts for path preview and incorporates an adaptive tire parameter module to update the MPC prediction model in real-time. Rosenfelder et al.15 proposed a control method that integrates MPC theory with sub-Riemannian geometry to achieve precise control in scenarios such as parking. Tran et al.16 proposed an MPC scheme for trajectory tracking of 4WID vehicles without the need for a terminal region or controller.

Nonlinear dynamic systems are frequently subjected to uncertainties and external disturbances. Several studies17,18 have utilized the Fourier series approximation to estimate uncertainty in complex control systems and to resolve unmodeled disturbances. Researchers have designed extended state observers to improve the robustness of control systems, especially in the control of complex dynamic systems, showing significant advantages19,20. Sliding mode control presents a range of beneficial characteristics, such as outstanding transient response, resilience to changes in parameters, and a lack of sensitivity to disturbances. The basic idea revolves around the consistent ability to control and maintain the trajectory of a system in the state space of a given sliding surface. In the linear sliding mode control (LSMC)3,21,22,23,24, the surface for sliding mode is structured linearly, guaranteeing that the system’s state asymptotically approaches the equilibrium point within a finite time25. To ensure that the system state reaches convergence in finite time, fast terminal sliding mode control (FTSMC)26 and nonlinear sliding surface-based terminal sliding mode control (TSMC)27,28,29 were presented, which are widely used in vehicle dynamics control30,31,32,33,34. However, these regulatory approaches frequently face challenges related to singularities arising from the presence of negative exponential powers, potentially resulting in uncontrolled inputs. To address this challenge, alternative TSMC approaches that have gained popularity include the non-singular terminal sliding mode (NTSMC)35,36,37,38 and the non-singular fast terminal sliding mode (NFTSMC)39,40.

Although the previously mentioned control techniques have shown efficacy in trajectory tracking control systems, some limitations continue to exist. The main contributions of this paper are as follows:

  1. (1)

    In contrast to the existing LSMC and TSMC methods, which are unable to circumvent the singularity problem3,21,22,23,24,30,31,32,33,34, the new adaptive control law effectively eliminates this issue. It enhances the responsiveness of the system by adjusting its state to reach the preferred equilibrium position more quickly.

  2. (2)

    Existing trajectory tracking control strategies are often limited in their ability to cope with uncertainty and disturbances because they usually require prior knowledge of an upper bound on the uncertainty3,8,21,23,29,31,32,33,34,35,36,37,40,41. This study introduces a control algorithm for adaptive parameter updates designed to address the difficulties arising from unspecified upper limits in practical vehicle trajectory tracking scenarios, while also preventing oscillations and singularities during the control process.

  3. (3)

    Unlike methods that focus only on lateral path tracking2,3,4,6,7,8,10,11,13,14,22,31,37,41,42. In this study, the interactions between lateral and longitudinal motions are considered, and both lateral path tracking controllers and longitudinal speed tracking controllers are designed.

The structure of the paper is summarized as follows: Sect.  2 introduces the vehicle related model. Section 3 presents the upper path tracking controller and the longitudinal speed tracking controller, as well as the lower torque distribution optimization. Section 4 presents the numerical simulation results and discussion and Sect.  5 concludes.

Model and problem formulation

7DOF vehicle dynamics model

Figure 1 depicts a model of a 4WID vehicle that illustrates the vehicle dynamics. The model is characterized as a 7-degree-of-freedom (7DOF) system with lateral motion, longitudinal motion and wheel rotation. The primary assumptions underlying this model are as follows: (a) the effects of roll motion, pitch motion, and suspension on the vehicle are neglected41; (b) aerodynamic forces are disregarded; and (c) treat the front steering angle as a direct input. Establish the following equations for vehicle dynamics:

$$\left\{ {\begin{array}{*{20}c} {ma_{y} = m\left( {\dot{v}_{y} + v_{x} \omega_{r} } \right) = \left( {F_{Xfl} + F_{Xfr} } \right)\sin \delta_{f} + \left( {F_{Yfl} + F_{Yfr} } \right)\cos \delta_{f} + F_{Yrl} + F_{Yrr} } \\ {ma_{x} = m\left( {\dot{v}_{x} - v_{y} \omega_{r} } \right) = \left( {F_{Xfl} + F_{Xfr} } \right)\cos \delta_{f} - \left( {F_{Yfl} + F_{Yfr} } \right)\sin \delta_{f} + F_{Xrl} + F_{Xrr} } \\ {I_{z} \ddot{\psi } = \left( {F_{Xfr} - F_{Xfl} } \right)\frac{B}{2}\cos \delta_{f} + \left( {F_{Yfl} - F_{Yfr} } \right)\frac{B}{2}\sin \delta_{f} + \left( {F_{Xrr} - F_{Xrl} } \right)\frac{B}{2} + } \\ {a\left( {F_{Xfl} + F_{Xfr} } \right)\sin \delta_{f} + a\left( {F_{Yfl} + F_{Yfr} } \right)\cos \delta_{f} - b\left( {F_{Yrl} + F_{Yrr} } \right)} \\ \end{array} } \right.$$
(1)

Where m represents the vehicle mass, \(a_{x}\) and \(a_{y}\) denote the vehicle’s longitudinal and lateral accelerations, respectively. \(\psi\) signifies the yaw angel, and \(I_{z}\) indicates the vehicle’s yaw moment of inertia. The variables \(F_{Xfl}\), \(F_{Xfr}\), \(F_{Xrl}\) and \(F_{Xrr}\) correspond to the front and rear longitudinal tire forces, whereas \(F_{Yfl}\), \(F_{Yfr}\), \(F_{Yrl}\) and \(F_{Yrr}\) represent the front and rear lateral tire forces. \(B\) refers to the vehicle’s track width and both \(a\) and \(b\) indicate the longitudinal distances from the vehicle’s center of mass to the front and rear axles. \(\delta_{f}\) represents the front wheel steering angle.

Fig. 1
Fig. 1The alternative text for this image may have been generated using AI.
Full size image

7DOF vehicle dynamics model.

The wheel rotational dynamics is expressed as

$$J_{\omega ij} \dot{\omega }_{ij} = T_{dij} - T_{bij} - F_{Xij} R_{e} - T_{fij} \;\;\left( {ij = fl,fr,rl,rr} \right)$$
(2)

where \(J_{\omega ij}\) represents the moment of inertia of the wheels, \(T_{dij}\) and \(T_{bij}\) signify the driving torque and braking torque, \(R_{e}\) indicates the rolling radius of the tire, \(\omega_{ij}\) denotes the angular speed of the wheels. Each wheel of the 4WIDEV system is independently driven by its own motor. In practice, by collecting the signals from the motor controllers, one can obtain information regarding speed and torque. This data can then be utilized in conjunction with formula (2) to calculate the tire longitudinal force, denoted as \(F_{Xij}\).

Tire model and motor model

Tire model

The complex nonlinear characteristics of tires significantly influence vehicle dynamics control. This paper employs the ‘Magic Formula’43 to characterize the mechanical properties of tires.

$$y = D\sin \left( {C\tan^{ - 1} \left( {Bx - E\left( {Bx - \tan^{ - 1} Bx} \right)} \right)} \right)$$
(3)

where \(x\) denotes the side slip angle or longitudinal slip ratio, \(y\) represents the longitudinal or lateral tire force. The tire lateral force \(F_{Yij}\) is obtained when \(x\) denotes the tire lateral deflection angle \(\alpha\). \(B\), \(C\), \(D\), and \(E\) are tire intrinsic factors that can be obtained by Carsim and Matlab fitting.

Motor model

The torque response features of in-wheel motors can be described using a second-order transfer function:

$$G\left( s \right) = \frac{{T_{m} }}{{T_{e} }} = \frac{1}{{2\xi s^{2} + 2\xi s + 1}}$$
(4)

where \(T_{m}\) and \(T_{e}\) denotes the actual and theoretical output torque of the motor, respectively. The parameter \(\xi\) signifies the performance of the motor, while \(s\) represents the Laplace operator.

Trajectory tracking error model

The trajectory tracking error model is depicted in Fig. 2, with \(x_{o} o_{o} y_{o}\) being the geodetic coordinate system. Trajectory tracking encompasses heading angle tracking, lateral position tracking, and longitudinal vehicle speed tracking. \(e_{\psi }\) represents the orientation error, which is the difference between the actual heading angle \(\psi\) and the tangent direction \(\psi_{d}\) of the reference path. Notably, \(\omega_{r}\) is the yaw rate and can be expressed as \(\omega_{r} = \dot{\psi }\). \(e_{d}\) is the lateral displacement deviation between the center of mass of the vehicle and the nearest point of the reference path. The longitudinal speed error \(e_{{v_{x} }}\) is the difference between the actual longitudinal speed \(v_{x}\) and the desired speed \(v_{{x_{d} }}\).

Fig. 2
Fig. 2The alternative text for this image may have been generated using AI.
Full size image

Trajectory tracking error model.

Assumption 1

The existence of first and second order derivatives for longitudinal speed error \(e_{{v_{x} }}\), orientation error \(e_{\psi }\) and lateral offset error \(e_{d}\).

Therefore, the first order derivatives of the trajectory tracking error are as follows:

$$\left\{ {\begin{array}{*{20}l} {\dot{e}_{\psi } = \dot{\psi } - \dot{\psi }_{d} = \omega_{r} - \rho v_{x} } \hfill \\ {\dot{e}_{d} = \dot{y}_{o} - \dot{y}_{od} = v_{x} e_{\psi } + v_{y} } \hfill \\ {\dot{e}_{{v_{x} }} = \dot{v}_{x} - \dot{v}_{xd} } \hfill \\ \end{array} } \right.$$
(5)

where \(\rho\) signifies the pavement curvature. \(y_{o}\) and \(y_{od}\) represent the lateral displacements of the actual path and the reference path, respectively. \(v_{y}\) denote the lateral speed. \(e_{d}\) and \(e_{\psi }\) cannot be zeroed at the same time by adjusting only the input of the front wheel angle. In this paper, two positive numbers \(\lambda_{1}\) and \(\lambda_{2}\) are used to obtain the mapping error \(e = \lambda_{1} e_{\psi } + \lambda_{2} e_{d}\) to synthesize the path tracking error, which the second-order derivative can be expressed as:

$$\ddot{e} = \lambda_{1} \left( {\ddot{\psi } - \dot{\rho }v_{x} - \rho \dot{v}_{x} } \right) + \lambda_{2} \left( {\dot{v}_{x} e_{\psi } + v_{x} \dot{e}_{\psi } + \dot{v}_{y} } \right)$$
(6)

Controller design

This section presents a novel ARNFTSMC strategy aimed at tackling the issues of parameter uncertainty, external disturbances, singularity, and chattering in the trajectory tracking control system for the 4WID vehicle. The relevant control framework is depicted in (Fig. 3).

Fig. 3
Fig. 3The alternative text for this image may have been generated using AI.
Full size image

Flowchart of proposed strategy.

Path tracking controller

The purpose of the study is to design the controller that ensures that the system responses \(e_{\psi }\) and \(e_{d}\) converge to zero under conditions of uncertainty and external disturbances so as to achieve accurate tracking of a predetermined trajectory. Before designing a path tracking controller that takes into account uncertainty and external disturbances, the third equation of Eq. (1) is reformulated as:

$$\ddot{\psi } = f_{1} + \Delta f_{1} + d_{1} \left( t \right) + b_{1} \delta_{f}$$
(7)

where \(f_{1}\) represents the nominal parameter of the model, denotes as \(\frac{B}{{2I_{z} }}\left( {F_{Xfr} + F_{Xrr} - F_{Xfl} - F_{Xrl} } \right) + \frac{{{\text{a}}\left( {F_{Yfl} + F_{Yfr} } \right) - b\left( {F_{Yrl} + F_{Yrr} } \right)}}{{I_{z} }}\). The term \(\Delta f_{1}\) refers to the uncertain aspects of the model parameters, while \(d_{1} \left( t \right)\) indicates the external disturbances. Furthermore, \(b_{1}\) serves as the coefficient of the system input, represented as \(\left( {F_{Xfl} + F_{Xfr} } \right)\frac{{\text{a}}}{{I_{z} }} + \left( {F_{Yfl} - F_{Yfr} } \right)\frac{B}{{2I_{z} }}\).

Inserting (7) into (6), one can have

$$\ddot{e} = F_{1} + D_{1} \left( t \right) + B_{1} \delta_{f}$$
(8)

where \(F_{1} = \lambda_{1} \left( {f_{1} - \dot{\rho }v_{x} - \rho \dot{v}_{x} } \right) + \lambda_{2} \left( {\dot{v}_{x} e_{\psi } + v_{x} \dot{e}_{\psi } + \dot{v}_{y} } \right)\), \(B_{1} = \lambda_{1} b_{1}\) and \(D_{1} \left( t \right) = \lambda_{1} \left( { \, \Delta f_{1} + d_{1} \left( t \right)} \right)\) are characterized as the lumped uncertainty. The following assumption is made about the external disturbances and uncertain parameters of the system:

Remark 1

Uncertainty \(\Delta f_{1}\) and external disturbance \(d_{1} \left( t \right)\) are unknown as shown in the following equation:

$$\left| {D_{1} \left( t \right)} \right| = \left| {\lambda_{1} \left( { \, \Delta f_{1} + d_{1} \left( t \right)} \right)} \right| \le \, \Delta_{1}$$
(9)

where \(\Delta_{1}\) denotes the upper bound of the lumped uncertainty44, it can showed as

$$\Delta_{1} = \theta_{0} + \theta_{1} \left| e \right| + \theta_{2} \left| {\dot{e}} \right|$$
(10)

where \(\theta_{0}\), \(\theta_{1}\) and \(\theta_{2}\) are all positive numbers.

Assumption 2

The uncertainty parameters \(\theta_{i} \left( {i = 0,1,2} \right)\) are continuous and differentiable, and its derivative is \(\dot{\theta }_{i} \left( {i = 0,1,2} \right) = 0\).

Initially, in order to attain finite-time convergence, enhance the speed of convergence, and alleviate the singularity issue, the sliding surface \(s_{1}\) is structured as outlined below:

$$s_{1} = e + \tau_{1} \left| e \right|^{{r_{1} }} sign\left( e \right) + \tau_{2} \left| {\dot{e}} \right|^{{r_{2} }} sign\left( {\dot{e}} \right)$$
(11)

where \(\tau_{1}\) and \(\tau_{2}\) are positive constants, \(1 < r_{2} < 2\) and \(r_{1} > r_{2}\). \(sign\left( \cdot \right)\) is the signum function.

The next step involves designing the equivalent control law \(\delta_{feq}\), which is derived from \(\dot{s}_{1} = 0\). The design plays a crucial role in guaranteeing that the state trajectory aligns with the sliding surface \(s_{1} = 0\). The result is obtained by temporarily ignoring the uncertainties and external disturbances in Eq. (8):

$$\dot{s}_{1} = \dot{e} + \tau_{1} r_{1} \left| e \right|^{{r_{1} - 1}} \dot{e} + \tau_{2} r_{2} \left| {\dot{e}} \right|^{{r_{2} - 1}} \left( {F_{1} + B_{1} \delta_{feq} } \right)$$
(12)

Derived for \(\dot{s}_{1} = 0\), the equivalent control law for the front wheel angle is:

$$\delta_{feq} = \frac{1}{{B_{1} }}\left( { - F_{1} - \frac{1}{{\tau_{2} r_{2} }}\left| {\dot{e}} \right|^{{2 - r_{2} }} \left( {1 + \tau_{1} r_{1} \left| e \right|^{{r_{1} - 1}} } \right)sign\left( {\dot{e}} \right)} \right)$$
(13)

To address with the problems caused by model uncertainty and external disturbances, the subsequent switching control law is proposed as follows:

$$\delta_{fsw} = \frac{1}{{B_{1} }}\left( { - k_{1} s_{1} - \left( {\hat{\theta }_{0} + \hat{\theta }_{1} \left| e \right| + \hat{\theta }_{2} \left| {\dot{e}} \right| + \varepsilon_{1} } \right)sign\left( {s_{1} } \right)} \right)$$
(14)

where \(\varepsilon_{1} > 0\) and \(k_{1} > 0\). Let \(\hat{\theta }_{0}\), \(\hat{\theta }_{1}\), and \(\hat{\theta }_{2}\) be the estimates corresponding to \(\theta_{0}\), \(\theta_{1}\), and \(\theta_{2}\), respectively. Therefore, the total control law for the front wheel angle is:

$$\begin{gathered} \delta_{f} = \delta_{feq} + \delta_{fsw} \\ = \frac{1}{{B_{1} }}\left( { - F_{1} - \frac{{\left| {\dot{e}} \right|^{{2 - r_{2} }} }}{{\tau_{2} r_{2} }}\left( {1 + \tau_{1} r_{1} \left| e \right|^{{r_{1} - 1}} } \right)sign\left( {\dot{e}} \right) - k_{1} s_{1} - \left( {\hat{\theta }_{0} + \hat{\theta }_{1} \left| e \right| + \hat{\theta }_{2} \left| {\dot{e}} \right| + \varepsilon_{1} } \right)sign\left( {s_{1} } \right)} \right) \\ \end{gathered}$$
(15)

where \(\hat{\theta }_{0}\), \(\hat{\theta }_{1}\) and \(\hat{\theta }_{2}\) are estimated gains, and their update laws can be expressed as:

$$\dot{\hat{\theta }}_{0} = \Upsilon_{0} \left| {s_{1} } \right|\left| {\dot{e}} \right|^{{r_{2} - 1}}$$
(16)
$$\dot{\hat{\theta }}_{1} = \Upsilon_{1} \left| {s_{1} } \right|\left| e \right|\left| {\dot{e}} \right|^{{r_{2} - 1}}$$
(17)
$$\dot{\hat{\theta }}_{2} = \Upsilon_{2} \left| {s_{1} } \right|\left| {\dot{e}} \right|^{r2}$$
(18)

where \(\Upsilon_{0}\), \(\Upsilon_{1}\) and \(\Upsilon_{2}\) are positives numbers. Define the adaptive errors as \(\tilde{\theta }_{0} = \hat{\theta }_{0} - \theta_{0}\), \(\tilde{\theta }_{1} = \hat{\theta }_{1} - \theta_{1}\) and \(\tilde{\theta }_{2} = \hat{\theta }_{2} - \theta_{2}\), while \(\tilde{\theta }_{i}\) denotes the difference between the estimated value and the actual value. Based on Assumption 2, it is possible to derive \(\dot{\tilde{\theta }}_{i} = \dot{\hat{\theta }}_{i}\).

Remark 2

In order to solve the problem of system chattering due to the presence of the discontinuous function \(sign\left( x \right)\), it is replaced by the hyperbolic function \({\text{tan h}}\left( {x/\epsilon } \right)\) refs.45,46,47, which reduces the chattering in the sliding mode control.

Remark 3

The actual front wheel angle should meet the limitations of the steering actuator: \(\left| {\delta_{f} } \right| \le \delta_{f\max }\). The maximum steering angle value \(\delta_{f\max }\) is set in the subsequent work of this paper.

Theorem 1

Take into account the system outlined by Eq. (1), where it is assumed that the upper boundary of the uncertainty, as indicated in Eq. (10), is entirely unknown. To establish a sliding surface as described in Eq. (11), the adaptive updating laws given by Eqs. (16)–(18) are employed, along with the control law specified in Eq. (15). Then, the path tracking error converges in finite time.

Proof 1

Defining the positive definite Lyapunov function \(V_{1} = \frac{1}{2}s_{1}^{2} + \tau_{2} r_{2} \sum\limits_{i = 0}^{2} {\frac{1}{{2\Upsilon_{i} }}\left( {\hat{\theta }_{i} - \theta_{i} } \right)^{2} }\), operating on its first-order derivatives and dividing \(\dot{\tilde{\theta }}_{i} = \dot{\hat{\theta }}_{i}\) and Eq. (12), leads to the following perform a first order derivative of it, and bring in to obtain the following.

$$\begin{gathered} \dot{V}_{1} = s_{1} \dot{s}_{1} + \tau_{2} r_{2} \sum\limits_{i = 0}^{2} {\frac{1}{{\Upsilon_{i} }}\left( {\hat{\theta }_{i} - \theta_{i} } \right)} \dot{\hat{\theta }}_{i} \\ = s_{1} \left( {\dot{e} + \tau_{1} r_{1} \left| e \right|^{{r_{1} - 1}} \dot{e} + \tau_{2} r_{2} \left| {\dot{e}} \right|^{{r_{2} - 1}} \ddot{e}} \right) + \tau_{2} r_{2} \sum\limits_{i = 0}^{2} {\frac{1}{{\Upsilon_{i} }}\left( {\hat{\theta }_{i} - \theta_{i} } \right)} \dot{\hat{\theta }}_{i} \\ \end{gathered}$$
(19)

By bringing the path tracking error (6), the total control law (15) and the adaptive updating laws (16)-(18) into the above equation:

$$\dot{V}_{1} = \tau_{2} r_{2} \left| {\dot{e}} \right|^{{r_{2} - 1}} \left[ {s_{1} D_{1} \left( t \right) - k_{1} s_{1}^{2} - \varepsilon_{1} \left| {s_{1} } \right| - \left( {\theta_{0} + \theta_{1} \left| e \right| + \theta_{2} \left| {\dot{e}} \right|} \right)\left| {s_{1} } \right|} \right]$$
(20)

According to Assumption 2, leads to

$$\begin{gathered} \dot{V}_{1} \le \tau_{2} r_{2} \left| {\dot{e}} \right|^{{r_{2} - 1}} \left[ {\left| {s_{1} } \right|\left| {D_{1} \left( t \right)} \right| - k_{1} s_{1}^{2} - \varepsilon_{1} \left| {s_{1} } \right| - \left( {\theta_{0} + \theta_{1} \left| e \right| + \theta_{2} \left| {\dot{e}} \right|} \right)\left| {s_{1} } \right|} \right] \\ \le \tau_{2} r_{2} \left| {\dot{e}} \right|^{{r_{2} - 1}} \left[ { - k_{1} s_{1}^{2} - \varepsilon_{1} \left| {s_{1} } \right|} \right] \le 0 \\ \end{gathered}$$
(21)

Lemma 148: If there exists a continuous Lyapunov function \(V\) satisfies the following conditions as

$$\dot{V}\left( t \right) \le - \eta_{1} V\left( t \right) - \eta_{2} V^{\varsigma } \left( t \right),\forall V\left( {t_{0} } \right) \ge 0, \ge t_{0}$$
(22)

\(V\left( t \right)\) would converge to zero in a finite time and the convergence time is

$$t = t_{0} + \frac{1}{{\eta_{1} \left( {1 - \varsigma } \right)}}\ln \frac{{\eta_{1} V^{1 - \varsigma } \left( {t_{0} } \right) + \eta_{2} }}{{\eta_{2} }}$$
(23)
$$\dot{V} \le - \eta_{1} V - \eta_{2} V^{1/2}$$
(24)

To demonstrate stability in finite time, consider the following Lyapunov function

$$V_{11} = \frac{1}{2}s_{1}^{2}$$
(25)
$$\dot{V}_{11} \le - \tau_{2} r_{2} \left| {\dot{e}} \right|^{{r_{2} - 1}} k_{1} s_{1}^{2} - \tau_{2} r_{2} \left| {\dot{e}} \right|^{{r_{2} - 1}} \varepsilon_{1} \left| {s_{1} } \right| = - \eta_{1} V_{11} - \eta_{2} V_{11}^{1/2}$$
(26)

where \(\eta_{1} = 2\tau_{2} r_{2} \left| {\dot{e}} \right|^{{r_{2} - 1}} k_{1}\), \(\eta_{2} = \sqrt 2 \tau_{2} r_{2} \left| {\dot{e}} \right|^{{r_{2} - 1}} \varepsilon_{1}\). Based on Lemma 1, the tracking error \(e\) for the trajectory can reach the equilibrium point in a finite duration. By defining the time required for this convergence process as \(T_{r}\), the following equation must be satisfied:

$$T_{r} \le \frac{2}{{\eta_{1} }}\ln \frac{{\eta_{1} V_{11}^{1/2} + \eta_{2} }}{{\eta_{2} }}$$
(27)

Longitudinal speed tracking controller

Considering the model parameters uncertainty and external disturbances, Eq. (2) in system (1) is reformulated as the follows:

$$\dot{v}_{x} = f_{2} + \Delta f_{2} + d_{2} \left( t \right) + b_{2} F_{xd}$$
(28)

where \(f_{2} = v_{y} \omega_{r} - \frac{{\left( {F_{Yfl} + F_{Yfr} } \right)\sin \delta_{f} }}{m}\) is the nominal parameter, \(b_{2} = \frac{1}{m}\) denotes the coefficient of the system input \(F_{xd}\), \(\Delta f_{2}\) indicates the uncertainty associated with the vehicle’s longitudinal speed tracking system and \(d_{2} \left( t \right)\) signifies the external disturbances affecting the system.

Taking Eq. (28) into the third term of Eq. (5)

$$\dot{e}_{{v_{x} }} = F_{2} + D_{2} \left( t \right) + B_{2} F_{xd}$$
(29)

In the above equation, \(F_{2} = f_{2} - \dot{v}_{{x_{d} }}\), \(D_{2} \left( t \right) = \Delta f_{2} + d_{2} \left( t \right)\), and \(B_{2} = b_{2}\) represent the lumped uncertainty. Similar to the previous path tracking controller, Assumption 2 is also assumed to achieves the tracking objective and ensure finite convergence time for the longitudinal speed tracking controller. Since the longitudinal speed tracking error model contains only first-order derivatives, the following sliding mode surface is designed:

$$s_{2} = \sigma + \eta_{1} \left| \sigma \right|^{{p_{1} }} sign\left( \sigma \right) + \eta_{2} \left| {\dot{\sigma }} \right|^{{p_{2} }} sign\left( {\dot{\sigma }} \right)$$
(30)

where \(\sigma = \int_{0}^{t} {e_{{v_{x} }} } dt\), \(1 < p_{1} < 2\) and \(p_{1} > p_{2}\). \(\eta_{1}\) and \(\eta_{2}\) are positive constants. Derivation of Eq. ((30) and bringing Eq. (29) without considering the set lumped disturbances can be obtained:

$$\dot{s}_{2} = \dot{\sigma } + \eta_{1} p_{1} \left| \sigma \right|^{{p_{1} - 1}} \dot{\sigma } + \eta_{2} p_{2} \left| {\dot{\sigma }} \right|^{{p_{2} - 1}} \left( {F_{2} + B_{2} F_{xd\_eq} } \right)$$
(31)

The equivalent control law for the total longitudinal demand force is expressed as:

$$F_{xd\_eq} = \frac{1}{{B_{2} }}\left( { - F_{2} - \frac{{\dot{\sigma } + \eta_{1} p_{1} \left| \sigma \right|^{{p_{1} - 1}} \dot{\sigma }}}{{\eta_{2} p_{2} \left| {\dot{\sigma }} \right|^{{p_{2} - 1}} }}} \right)$$
(32)

The switching control law is designed to

$$F_{xd\_sw} = \frac{1}{{B_{2} }}\left( { - k_{2} s_{2} - \left( {\hat{\vartheta }_{0} + \hat{\vartheta }_{1} \left| e \right| + \hat{\vartheta }_{2} \left| {\dot{e}} \right| + \varepsilon_{2} } \right)sign\left( {s_{2} } \right)} \right)$$
(33)

Therefore, the control law to the longitudinal demand force can be formulated as follows

$$F_{xd} = \frac{1}{{B_{2} }}\left( { - F_{2} - \frac{{\dot{\sigma } + \eta_{1} p_{1} \left| \sigma \right|^{{p_{1} - 1}} \dot{\sigma }}}{{\eta_{2} p_{2} \left| {\dot{\sigma }} \right|^{{p_{2} - 1}} }} - k_{2} s_{2} - \left( {\hat{\vartheta }_{0} + \hat{\vartheta }_{1} \left| \sigma \right| + \hat{\vartheta }_{2} \left| {\dot{\sigma }} \right| + \varepsilon_{2} } \right)sign\left( {s_{2} } \right)} \right)$$
(34)

where \(\hat{\vartheta }_{0}\), \(\hat{\vartheta }_{1}\) and \(\hat{\vartheta }_{2}\) are estimates of the adaptive law gain, defined as \(\tilde{\vartheta }_{i} = \hat{\vartheta }_{i} - \vartheta_{i} \left( {i = 0,1,2} \right)\). Similarly the following formulas can be obtained according to the aforementioned Assumption 2

$$\dot{\hat{\vartheta }}_{0} = R_{0} \left| {s_{2} } \right|\left| {\dot{\sigma }} \right|^{{r_{2} - 1}}$$
(35)
$$\dot{\hat{\vartheta }}_{1} = R_{1} \left| {s_{2} } \right|\left| {e_{{v_{x} }} } \right|\left| {\dot{\sigma }} \right|^{{p_{2} - 1}}$$
(36)
$$\dot{\hat{\vartheta }}_{2} = R_{2} \left| {s_{2} } \right|\left| {\dot{\sigma }} \right|^{{p_{2} }}$$
(37)

where \(R_{0}\), \(R_{1}\) and \(R_{2}\) are positives numbers. Define the adaptive errors as \(\tilde{\vartheta }_{0} = \hat{\vartheta }_{0} - \vartheta_{0}\), \(\tilde{\vartheta }_{1} = \hat{\vartheta }_{1} - \vartheta_{1}\) and \(\tilde{\vartheta }_{2} = \hat{\vartheta }_{2} - \vartheta_{2}\), while \(\tilde{\vartheta }_{i}\) denotes the difference between the estimated value and the actual value. Based on Assumption 2, it is possible to derive \(\dot{\tilde{\vartheta }}_{i} = \dot{\hat{\vartheta }}_{i}\).

Remark 4

The same use is applied here as in the previous Remark 2.

Theorem 2

Consider the longitudinal speed tracking system for vehicle dynamics, which operates under uncertainty and time-varying disturbances (1). By implementing of an adaptive robust controller (34) along with adaptive updates laws (35)–(37), the system can achieve accurate speed tracking despite performance constraints, ensuring that it reaches the equilibrium position in finite time.

Proof 2

This proof shares similarities with Theorem 1 and will therefore not be discussed further to prevent redundancy.

Lower torque optimization allocation

With the desired longitudinal forces and front steering angle established, it is essential to perform control distribution to achieve an optimal allocation of longitudinal torque among the four wheels. The connection between the longitudinal force and torque can be represented as \(F_{Xij} = \frac{{T_{Xij} }}{R}\). This study enhances torque distribution to achieve a reduction in the tire loading rate, while taking into account the necessary yaw moment and overall driving torque, along with the constraints that pertain to the actuator’s physical properties and the friction conditions of the road. As a result, the previously mentioned objective function and its constraints can be set up as follows for solving:

$$\left\{ {\begin{array}{*{20}c} {\min J = \min \sum {\kappa_{ij} \frac{{F_{Xij}^{2} }}{{\left( {\mu F_{zij} } \right)^{2} }}} {\mkern 1mu} {\mkern 1mu} {\mkern 1mu} {\mkern 1mu} {\mkern 1mu} {\mkern 1mu} \left( {ij = fl,fr,rl,rr} \right)} \\ {s.t.\left\{ {\begin{array}{*{20}c} {F_{xd} = \left( {F_{Xfl} + F_{Xfr} } \right)\cos \delta_{f} + F_{Xrl} + F_{Xrr} } \\ {M_{z} = \left( {a\sin \delta_{f} - \frac{B}{2}\cos \delta_{f} } \right)F_{Xfl} + \left( {a\sin \delta_{f} + \frac{B}{2}\cos \delta_{f} } \right)F_{Xfr} - \frac{B}{2}F_{Xrl} + \frac{B}{2}F_{Xrr} } \\ {T_{dij} \le \min \left\{ {T_{d\max } ,R_{e} \sqrt {\left( {\mu F_{zij} } \right)^{2} - F_{Yij}^{2} } } \right\}} \\ \end{array} } \right.} \\ \end{array} } \right.$$
(38)

where \(F_{zij}\) indicates the vertical load on each wheel, \(\kappa_{ij}\) represents the weighting factor, \(\mu\) denotes the road adhesion factor, and \(T_{d\max }\) signifies the maximum value of driving torque.

According to the objective function and constraints determined above, Eq. (38) is rewritten into the following quadratic programming form to solve:

$$\left\{ {\begin{array}{*{20}c} {\min J = \frac{1}{2}{\mathbf{u}}^{T} {\mathbf{Qu}}{\mkern 1mu} {\mkern 1mu} {\mkern 1mu} {\mkern 1mu} {\mkern 1mu} {\mkern 1mu} \left( {ij = fl,fr,rl,rr} \right)} \\ {s.t.\left\{ {\begin{array}{*{20}c} {{\mathbf{Hu}} = {\mathbf{v}}} \\ {{\mathbf{u}} \le {\mathbf{u}}_{\max } } \\ \end{array} } \right.} \\ \end{array} } \right.$$
(39)

where the input matrix is \({\mathbf{u}} = \left( {\begin{array}{*{20}c} {F_{Xfl} } \\ {F_{Xfr} } \\ {F_{Xrl} } \\ {F_{Xrr} } \\ \end{array} } \right)\). \({\mathbf{Q}} = {\text{diag}}\left( {\begin{array}{*{20}c} {\frac{{2\kappa_{fl} }}{{\left( {\mu_{fl} F_{zfl} } \right)^{2} }}} & {\frac{{2\kappa_{fr} }}{{\left( {\mu_{fr} F_{zfr} } \right)^{2} }}} & {\frac{{2\kappa_{rl} }}{{\left( {\mu_{rl} F_{zrl} } \right)^{2} }}} & {\frac{{2\kappa_{rr} }}{{\left( {\mu_{rr} F_{zrr} } \right)^{2} }}} \\ \end{array} } \right)\) and \({\mathbf{H}} = \left( {\begin{array}{*{20}c} {\cos \delta_{f} } & {\cos \delta_{f} } & 1 & 1 \\ {a\sin \delta_{f} - \frac{B}{2}\cos \delta_{f} } & {a\sin \delta_{f} + \frac{B}{2}\cos \delta_{f} } & { - \frac{B}{2}} & \frac{B}{2} \\ \end{array} } \right)\) denote the quadratic terms of the input matrix and the action matrix \({\mathbf{v}} = \left( {\begin{array}{*{20}c} {F_{xd} } \\ {M_{z} } \\ \end{array} } \right)\), and \({\mathbf{u}}_{\max } = \min \left\{ {\frac{{T_{d\max } }}{{R_{e} }},\sqrt {\left( {\mu F_{zij} } \right)^{2} - F_{Yij}^{2} } } \right\}\) is an inequality constraint.

Results and discussion

In this part, simulations were carried out within the Carsim and Simulink environments to assess how effective the proposed ARNFTSMC scheme is for tracking trajectories in complicated scenarios. The parameters for the vehicle model used in Carsim are detailed in Table 1, while the parameters for the controller are located in (Table 2). To better illustrate the advantages of the proposed controllers, this study compares the SMC and TSMC controllers.

Table 1 Parameters of the vehicle.
Table 2 Parameters of controllers.

This research centers on managing an intelligent vehicle to follow a designated route in intricate situations, in which the reference path is supplied directly. A desired speed of 80 \(km/h\) was selected, and the double-lane change reference path49 is described by lateral position \(Y_{d}\) and yaw angle \(\psi_{d}\) as functions of longitudinal speed \(v_{x}\).

$$Y_{d} = \frac{{d_{y1} }}{2}\left( {1 + \tan {\text{h}}\left( {r_{1} } \right)} \right) - \frac{{d_{y2} }}{2}\left( {1 + \tan {\text{h}}\left( {r_{2} } \right)} \right)$$
(40)
$$\psi_{d} = \arctan \left( {d_{y1} \left( {\frac{1}{{\cos {\text{h}}\left( {r_{1} } \right)}}} \right)^{2} \left( {\frac{1.2}{{d_{\psi 1} }}} \right) - d_{y2} \left( {\frac{1}{{\cos {\text{h}}\left( {r_{2} } \right)}}} \right)^{2} \left( {\frac{1.2}{{d_{\psi 2} }}} \right)} \right)$$
(41)

where \(r_{1} = \left( {2.4/25} \right)\left( {v_{x} - 60} \right) - 1.2\), \(r_{2} = \left( {2.4/25} \right)\left( {v_{x} - 120} \right) - 1.2\), \(d_{y1} = 3.6\), \(d_{y2} = 3.6\), \(d_{\psi 1} = 25\), and \(d_{\psi 2} = 25\).

Condition A: Trajectory tracking control with internal parameter uncertainties.

This study compares and analyzes the scenarios SMC, TSMC, and ARNFTSMC proposed in this paper, focusing on the uncertainty in vehicle system parameters as internal disturbance factors. The desired speed is established as \(80km/h\), while the adhesion coefficient is represented by \(\mu = 0.8\). The vehicle mass \(m\) and rotational inertia \(I_{z}\) are increased by 300 \(kg\) and 300 \(kg \cdot m^{2}\), respectively.

The effects of trajectory tracking control and the results of dynamic response simulations are shown in Fig. 4, whereas Fig. 5 illustrates the control inputs. In Fig. 4a, the global positions of the vehicle using different control methods are depicted. Although SMC, TSMC, and ARNFTSMC are all capable of efficiently guiding a vehicle to closely follow a reference trajectory, however, ARNFTSMC is superior in tracking performance. As shown in Fig. 4c,d, the lateral offset and orientation errors associated with ARNFTSMC are significantly smaller than those of the other two controllers. Figure 4b depicts the vehicle’s performance in tracking longitudinal speed for various control approaches, with ARNFTSMC indicating improved control proficiency. Finally, Fig. 4e,f show the dynamic response results, especially the sideslip angle and yaw rate.

Fig. 4
Fig. 4The alternative text for this image may have been generated using AI.
Full size image

The trajectory tracking control effect and dynamics response simulation results for condition A. (a) Global position. (b) Longitudinal speed tracking. (c) Lateral offset error. (d) Orientation error. (e) Response curve of side slip angle. (f) Response curve of yaw rate.

Fig. 5
Fig. 5The alternative text for this image may have been generated using AI.
Full size image

The trajectory tracking control inputs simulation results for condition A. (a) Front-wheel steering angle inputs. (b) Four-wheel torque inputs (ARNFTSMC). (c) Four-wheel torque inputs (TSMC). (d) Four-wheel torque inputs (SMC).

Figure 5a shows the input of front wheel angle and Fig. 5b–d show the longitudinal torque for ARNFTSMC, TSMC and SMC respectively. Taken together, the control cost of ARNFTSMC is lower than that of SMC and TSMC and is within reasonable limits.

To specifically compare the trajectory tracking control performance, this paper utilizes the root mean square error (RMSE) along with the maximum value (MAX) of the tracking error as performance evaluation indices.

$$\left\{ {\begin{array}{*{20}c} {RMSE = \sqrt {\frac{1}{n}\sum\limits_{i = 1}^{n} {\left( {e_{i} } \right)^{2} } } } \\ {MAX = \max \left( {\left| {e_{i} } \right|} \right)} \\ \end{array} } \right.$$
(42)

where \(n\) represents the number of samples, \(e\) can denote the lateral offset \(e_{d}\), orientation error \(e_{\psi }\) and vehicle longitudinal speed error \(e_{{v_{x} }}\). The effectiveness of the proposed control approach, ARNFTSMC, is evaluated in relation to SMC and TSMC, as shown in (Table 3).

Table 3 Tracking error indicators using various controllers under condition A.

In conclusion, both Fig. 4 and Table 3 demonstrate that ARNFTSMC not only achieves superior control accuracy but also enhances the system’s response speed. The improved control accuracy is attributed to the adaptive law inherent in the design, which bolsters the system’s robustness and adaptability. Meanwhile, the increased response speed results from the incorporation of a nonlinear function, ensuring that the tracking error is confined within a finite time.

Condition B: Trajectory tracking control with sudden changes in road adhesion coefficients.

This set of simulations compares and analyzes the control performance of SMC, TSMC, and ARNFTSMC for trajectory tracking applications, utilizing the sudden change in the road surface adhesion coefficient as an external disturbance factor. The reference path of the vehicle and the variation in the road surface adhesion coefficient are illustrated in Fig. 6. The nominal pavement adhesion coefficient is 0.8 (represented by the black solid line in (Fig. 6), while the actual road adhesion coefficient of the vehicle experiences an abrupt change to 0.4 (indicated by the red double-dotted line in (Fig. 6) between 70–80 m and 130–140 m during the vehicle’s operation. Table 4 shows the results of the simulation. Figure 7 illustrates the impact of trajectory tracking control along with the dynamic response, whereas the control inputs are represented in Fig. 8.

Fig. 6
Fig. 6The alternative text for this image may have been generated using AI.
Full size image

Reference trajectory for the condition of sudden change in road adhesion coefficient.

Table 4 Tracking error indicators using various controllers under condition B.
Fig. 7
Fig. 7The alternative text for this image may have been generated using AI.
Full size image

The trajectory tracking control effect and dynamics response simulation results for condition B. (a) Global position. (b) Longitudinal speed tracking. (c) Lateral offset error. (d) Orientation error. (e) Response curve of side slip angle. (f) Response curve of yaw rate.

Fig. 8
Fig. 8The alternative text for this image may have been generated using AI.
Full size image

The trajectory tracking control inputs simulation results for condition B. (a) Front-wheel steering angle inputs. (b) Four-wheel torque inputs (ARNFTSMC). (c) Four-wheel torque inputs (TSMC). (d) Four-wheel torque inputs (SMC).

As illustrated in Fig. 7 and Table 4, all three controllers effectively ensure vehicle trajectory tracking accuracy and stability despite variations in the road adhesion coefficient. However, in terms of overall control performance, the ARNFTSMC outperforms both the SMC and the TSMC. Specifically, ARNFTSMC reduces the MAX lateral offset error of vehicle tracking by 0.01509 and 0.14066 m, as well as the RMSE by 5.9% and 21.8%, respectively, when compared to SMC and TSMC. Regarding orientation error, ARNFTSMC shows an increase in the MAX error of 0.00118 rad and a decrease in RMSE by 5% compared to SMC, while it demonstrates a decrease in MAX error by 0.00835 rad and a reduction in RMSE by 19.5% when compared to TSMC. Furthermore, the MAX and RMSE of longitudinal speed error for ARNFTSMC decreased by 0.08749 \(km/h\) and 38.7% relative to SMC, whereas these values increased by 0.02947 \(km/h\) and 28.6% compared to TSMC. The dynamic response curves for the side slip angle and yaw rate of the three controllers, depicted in Fig. 7e,f, reveal minor differences in control performance.

The inputs for control are shown in (Fig. 8). In particular, Fig. 8a depicts the steering angle of the front wheel, revealing that the cost associated with controlling this angle across the three methods is relatively consistent and remains within acceptable limits. Additionally, Figs. 8b–d present the outcomes of the optimized distribution of longitudinal torque for the three control processes.

To conclude, the analyses outlined in this study demonstrate that the ARNFTSMC control approach introduced here effectively tackles the problem of random disturbances encountered on the road. This method improves the accuracy, robustness, and responsiveness of the controller, thanks to the novel design of the adaptive law and the integration of a nonlinear function.

Condition C: Trajectory tracking control with sidewind disturbance.

In this research group, side wind is introduced as an external disturbance factor in the simulations to evaluate the control robustness of three controllers: SMC, TSMC, and ARNFTSMC. Figure 9 demonstrates the curves of wind direction and velocity of the side wind concerning the position of the vehicle while driving. Figure 10 presents the simulation curves for trajectory tracking and dynamic response. Figure 11 illustrates the inputs for the front wheel steering angle and the longitudinal moment. Table 5 presents a summary of the errors in lateral offset, orientation, and longitudinal speed.

Fig. 9
Fig. 9The alternative text for this image may have been generated using AI.
Full size image

Side wind disturbance input.

Fig. 10
Fig. 10The alternative text for this image may have been generated using AI.
Full size image

The trajectory tracking control effect and dynamics response simulation results for condition C. (a) Global position. (b) Longitudinal speed tracking. (c) Lateral offset error. (d) Orientation error. (e) Response curve of side slip angle. (f) Response curve of yaw rate.

Fig. 11
Fig. 11The alternative text for this image may have been generated using AI.
Full size image

The trajectory tracking control inputs simulation results for condition C. (a) Front-wheel steering angle inputs. (b) Four-wheel torque inputs (ARNFTSMC). (c) Four-wheel torque inputs (TSMC). (d) Four-wheel torque inputs (SMC).

Table 5 Indicators of tracking error using different controllers in condition C.

As illustrated in Fig. 9, the wind heading, represented by the black solid line, exhibits variability, registering −90° within the 90 to 120 m segment and 90° in the subsequent 90 to 120 m segment along the longitudinal trajectory of the vehicle. The red solid line in Fig. 9 depicts the change in wind speed, beginning at 0 \(km/h\) and increasing until the vehicle attains a speed of 50 \(km/h\) at approximately 110 m. The vehicle then maintains a wind speed of 50 \(km/h\) while covering an additional distance of about 110 m. After reaching 220 m, the wind speed begins to decline, ultimately reducing to 0 \(km/h\) at around 334 m.

Figure 10 shows the simulation curves for trajectory tracking and dynamic response. It is clear that all three controllers successfully follow the desired trajectory even in the presence of crosswinds, with the ARNFTSMC exhibiting the best performance. Notably, if the gains of the SMC and TSMC controllers are adjusted too high or too low, the vehicle’s trajectory may deviate from the stabilization region, leading to control inputs that fall outside a reasonable range, which may not be suitable for real-world scenarios. In other words, the adjustments to the gains of the SMC and TSMC controllers must be done carefully and cannot be made indiscriminately. To address this challenge, the ARNFTSMC method proposed in this paper serves as an excellent alternative. Figure 11 illustrates that both path tracking and speed tracking utilizing ARNFTSMC control demonstrate curves that closely match the reference trajectory and target speed, achieving a convergence time superior to the other two methods. This improvement can be attributed to the incorporation of an adaptive law and a nonlinear function, which effectively counteract disturbances caused by side winds. Consequently, the ARNFTSMC method significantly mitigates the impact of side winds, allowing for smaller gains to still provide satisfactory robustness in the resulting closed-loop system.

Conclusion

This research presents a novel adaptive robust non-singular fast terminal sliding mode control approach, targeting the resolution of trajectory tracking control challenges in intelligent vehicle systems influenced by uncertainties and external disturbances. The adaptive control law that has been developed not only successfully reduces the variations in the vehicle system’s internal parameters and the impact of external disturbances but also does so without needing prior information about the upper limit of the lumped uncertainty. By applying Lyapunov stability theory, this study shows that the suggested control law is capable of guaranteeing convergence of the path tracking error and the longitudinal speed tracking error within a finite timeframe, all while successfully addressing the issues of singularity and chattering. The lower torque optimization allocation strategy is established. In this study, simulation experiments were conducted to compare the proposed ARNFTSMC method with the SMC and TSMC under three distinct working conditions. The analysis of the data presented in the figures and tables reveals that the ARNFTSMC method demonstrates significant advantages over the other two methods across multiple dimensions, including control effectiveness, dynamic response, control input, and tracking error accuracy. The proposed method’s effectiveness and superiority are demonstrated through numerical simulations conducted under conditions where the vehicle system encounters uncertainties in internal parameters and external disturbances.