Abstract
For four-wheel independent drive intelligent vehicle, the longitudinal and lateral motion control of the vehicle is decoupled and a hierarchical controller is designed: the upper layer is the motion controller, and the lower layer is the control distributor. In the motion controller, the model predictive control (MPC) is used to calculate the steering wheel angle and the total yaw moment for lateral control, and the sliding mode control (SMC) is used to calculate the total driving force for longitudinal control. In order to improve the control algorithm adaptability and the tracking accuracy at high speed, the UniTire model that can accurately express the complex coupling characteristics of tire under different working conditions are used and the numerical partial derivative of the state equation is used in MPC controller to ensure the feasibility of the algorithm. The control distributor distributes the total yaw moment and driving force calculated by the motion controller of the four wheels through the objective optimization function, and the constraints on road adhesion condition and the constraints on actuators are considered at the same time. A co-simulation platform is built in the CarSim/Simulink environment and the MPC-SMC controller is compared with the previously established MPC controller.
Keywords
Introduction
Traditional vehicles are driven by drivers and their personal factors are the main cause of various traffic accidents. Traditional vehicle emissions can also cause environmental pollution. 1 However, the intelligence of automobiles can solve this problem well. They can be widely used in transportation, agriculture, planetary exploration, military, and other aspects. Distributed drive electric vehicles have become the focus on current automotive research due to the advantages of low noise, no emissions, simple chassis structure, independent control of the four-wheel driving/braking torque, and high energy transmission efficiency. 2
Scholars have proposed many control methods of the trajectory tracking of intelligent vehicles. MacAdam3,4 considered the driver’s forward-looking characteristics and applied the preview optimal control to the driver model based on a small heading angle. On the basis of the preview optimal driver model, Guo and Guan 5 established the preview optimal curvature driver model. In 2002, a preview-optimized artificial neural network driver model (POSANN) was proposed and the front wheel steering angle was decided based on the preview point and the current vehicle state. Analytical values of model parameters can be obtained by error analysis. 6 Soudbakhsh and Eskandarian 7 designed two SMC trajectory tracking controllers with linear tire model and compared them with LQR controller at different speeds. The results showed that the SMC controller was better in yaw angle control. Wu and Si 8 realized trajectory tracking control based on the linear matrix inequality. The saturated linear tire was used to obtain the vehicle lateral dynamic multi-cell model including the time-varying characteristics of the tire and the designed controller was compared with the model prediction controller and the preview driver model. The results showed that the controller had better tracking accuracy. A composite control method combining MPC and adaptive fuzzy control is proposed, which realizes the trajectory tracking control of the tractor in a complex environment. 9 Zhang et al. 10 proposed a robust control scheme that combines backstepping method, neural network, and SMC to achieve underactuated vehicle trajectory tracking under parameter uncertainty and external interference. Shuo Zhang et al. 1 proposed a preview controller based on adaptive SMC and a feedback controller based on fuzzy control. The extension theory is introduced to adjust the control ratio of the two controllers, which improves the adaptability and robustness of the algorithm. Chen et al. 11 adopted the supertwist second-order sliding mode to suppress the chattering issue and proposed a nonlinear disturbance observer to improve the robustness of the system to disturbances, which realize the trajectory tracking of four-wheel independent driving electric vehicles. The performance of the controller is better than PID control and first-order SMC. Fei et al. 12 designed a fuzzy double hidden layer recurrent neural network controller for a class of nonlinear systems using a terminal sliding-mode control, which increase the dynamic approximation ability and reduce the switching gain.
Model predictive control has been widely used because of its robustness and its ability to handle multi constraints and multi coupling problems. Yoon et al. 13 used a hyperbolic tangent function to approximate the magic formula and the NMPC controller was designed to control the autonomous ground vehicle longitudinally and laterally and avoid obstacle based on the tire model. Zhou et al. 2 used the Burckhardt tire model to build a seven-DOF (degrees of freedom) nonlinear vehicle model and used NMPC to design a longitudinal and lateral coordinated controller for four-wheel independent drive electric vehicles to track the desired yaw rate and vehicle speed. The effectiveness of the controller was verified by the HIL test platform and it had strong robustness to the road adhesion coefficient. Choi and Kang 14 used NMPC-based active steering and braking to increase the current operating range of the Autonomous Emergency Braking (AEB) system. The front wheels steering angle and longitudinal acceleration were the control variables to minimize the deviation between the predicted vehicle trajectory and the expected trajectory and the steering angle was constrained to ensure the stability of the vehicle. Kong et al. 15 studied the application of the linear two-DOF vehicle model and kinematic models in autonomous driving. Based on the experimental data, the author discussed the errors caused by the two models in predicting the state of the vehicle and analyzed the effect of discretization on the prediction error. The MPC controller was designed with the kinematic model and the effectiveness of the controller was verified under windy environments and different vehicle speeds. There are also some scholars that studied the trajectory tracking of vehicles for low road adhesion and the use of model predictive control can make vehicles have higher tracking accuracy while ensuring stability.16–18 Zhang et al. 19 proposed an adaptive learning MPC for the trajectory tracking of input constrained vehicles subject to parametric uncertainties and additive disturbances and guaranteed the recursive feasibility and closed-loop stability. The results show that the tracking accuracy of the designed controller is better than robust MPC. In addition, MPC control can also realize simultaneous vehicle trajectory planning and tracking. Guo et al. 20 realized the obstacle avoidance trajectory planning and tracking of the vehicle based on MPC control by establishing a single-track model and measuring the yaw angle, velocity, and angular velocity of the obstacle vehicle.
The local linearization of the nonlinear vehicle dynamic model with PAC tire model have been adopted by the author to design the MPC trajectory tracking controller, which is superior to the PDM controller of trajectory tracking accuracy and maintaining vehicle stability. However, the control objective of the MPC controller is to minimize the objective function by the method of weighting. The objective function consider the weighting of the control variable, control increment, control output, and relaxation factor, resulting in a certain error between the control output and the reference value. 21 Trajectory tracking requires not only the tracking of the position, but also the tracking of the speed. In order to reduce the vehicle speed tracking error, the longitudinal and lateral motion control of the vehicle are decoupled and a hierarchical controller is designed.
One of the innovations in this article is to decouple the longitudinal and lateral motion control of the vehicle. The coupling characteristics of tire mechanics based on UniTire model 22 are considered in the longitudinal and lateral stability constraints. The results show that the designed controller is superior to the traditional MPC controller of speed control. The second innovation in this paper is the use of the UniTire model that can accurately express the complex coupling characteristics of tire under different working conditions. Because of its dimensionless force characteristic expression, plug-in friction coefficient, theoretical model boundary conditions, and other modeling characteristics, UniTire model not only has high model accuracy, but also owns a good model expansion capabilities. In the control system of this article, the nonlinearity of the system is treated with local linearization. Using the complicated UniTire model, a simple numerical calculation method is developed to approximate the partial derivative of the tire force with respect to the state quantity, avoiding complicated formulas derivation, and complex numerical solution of control algorithm. The use of high-precision tire model makes the algorithm more extensible and can also improve the tracking accuracy under extreme conditions.
The contents of the rest sections are as follows. In section 2, the 7-degrees of freedom vehicle model and the UniTire model used in the controller are established. The parameterized vehicle model in Carsim is established as the controlled plant. According to the real vehicle experimental data, the accuracy of the Carsim model is verified. In Section 3, the hierarchical controller is designed, in which the upper layer is the motion controller and the lower layer is the control distributor. In the motion controller, the model predictive control is used to calculate the steering wheel angle and total yaw moment for lateral control. The sliding mode control is applied to calculate the total driving force for longitudinal control. And the control distributor optimally distributes the total yaw moment and driving force to the four wheels. In section 4, the trajectory tracking performance of different tire models and control methods is compared. Conclusions are achieved in Section 5.
System model
Vehicle dynamic model
In order to reduce the complexity of the algorithm, the vehicle model is simplified. For vehicle control system development, the seven-degrees of freedom model is a classic and often used vehicle reference model.2,21,23,24 Among different vehicle models, the most important and main difference is that different tire models are used. This paper uses UniTire model that can accurately express the complex coupling characteristics of tire under different working conditions. 25 The longitudinal movement, lateral movement, and yaw movement of the vehicle is controlled in trajectory tracking, so their characteristics need to be analyzed.
According to the theory of automotive dynamics, the motion equations of the vehicle center of gravity (CG) along the X-axis, Y-axis, and around the Z-axis of the vehicle coordinate system can be obtained, at the meantime the rotation of the wheels is considered. The nonlinear dynamic model of the vehicle is established. 21
Longitudinal motion:
Lateral motion:
Yaw motion:
Wheels rotation:
where m is the vehicle mass. JZ is the yaw inertia. Fxi and Fyi is the longitudinal and lateral tire forces respectively. The nonlinear characteristics of the vehicle are largely determined by the tire properties. Vx and Vy are the longitudinal and lateral speed relative to the vehicle coordinate system.

Seven-DOF vehicle dynamic model.
The speed of the vehicle center of mass relative to the inertial coordinates system is:
The input of the UniTire model includes longitudinal slip ratio, side slip angle, vertical load, speed of wheel center, camber angle, turn-slip properties. The turn-slip properties are usually considered when the vehicle has large steer angle at low speed. UniTire adopts the expression of dynamic friction coefficient. It is different from the adhesion coefficient, but establishes a functional relationship between the friction coefficient and the tire slip rate. Because of the small camber angle of modern vehicles, after ignoring the influence of camber angle, the UniTire model can be expressed as the following function:
where
The static load of the tire is only affected by the center of mass in the steady state and the dynamic load is caused by the pitch and roll of the vehicle when the vehicle is running. Although the pitch and roll motion of the vehicle are ignored in this paper, the longitudinal/lateral acceleration of the vehicle will also cause the vertical load of the tire to change. Therefore, the vertical load can be expressed as (7) 21 :
where H is the height of CG. L is the wheelbase.
The side slip angles are as formula (8):
Tire model
The vehicle control system requires complex numerical calculations, so the simplified tire model with fewer parameters is often used in the reference vehicle model. Even if more complicated tire model is applied, such as magic formulas, the mechanical characteristics of the combined operating conditions are still achieved by simplification processing of pure operating conditions properties.23,24 The error caused by the simplification of tire characteristics depends on the robustness of the control system to compensate. The feature of this paper is to directly apply the complicated UniTire model proposed by Konghui Guo.
The longitudinal and lateral slip ratios
where Re is the effective rolling radius. Vsx and Vsy are the relative sliding speeds in the contact patch with respect to the road surface. Kx and Ky are longitudinal sliding stiffness and lateral stiffness.
Dynamic friction coefficients are as formula (12):
where
The longitudinal and lateral forces can be expressed as:
where
Based on tire mechanical property experimental data, the UniTire model parameters are solved by nonlinear least squares fitting. The comparison of model simulation and test data under different vertical loads (2000, 4000, 6000 N) are shown in Figure 2. In view of UniTire based on physical model, adopting unified normalized slip ratios and forces, and the structure of the inserted friction coefficient, it has better multi-conditions transplantation, and it is convenient to apply to different running conditions from the test conditions.

Tire model parameter identification result: (a) longitudinal forces under pure longitudinal slip conditions, (b) lateral forces under pure side slip conditions, (c) longitudinal forces under the combined slip conditions, and (d) lateral forces under the combined slip conditions.
Carsim vehicle model
The main parameters of the whole vehicle are shown in Table 1 and the characteristic curves of the suspension components are shown in Appendix A. The CarSim model includes vehicle body, tires, steering system, suspension system, etc. Parameter measurement and performance tests are performed on the sub-systems of the controlled vehicle. 26 The relevant data is filled into the parameterized interface. In the CarSim vehicle model, the Pacejka 5.2 tire model embedded in the software is used. Appendix B shows the model parameter setting interface and the corresponding parameter values. The model parameters come from the fitting of the multi-condition tire test data. The detailed discussion of the model can refer to Professor Pacejka’s 27 monograph on tire dynamics. In order to verify the parameterized model, the snake test and steering angle step test of 70 km/h were implemented. The measured speed and steering angle of the real vehicle are used as the input of the Carsim model. The yaw rate and lateral acceleration of the simulation and test results are compared. The comparison results are shown in Figure 3. The steering controller in Carsim adopts the optimal control theory proposed by MacAdam,3,4 which has been streamlined and re-formulated. Based on the square deviation of the preview point and the reference trajectory, a quadratic performance index is defined to solve the optimal control value. The task performed by the steering controller is to calculate a new value of steering angle at the front wheels as the simulation proceeds, using the preview target location. Solvers in Carsim use PID control to simulate the effect of a driver attempting to maintain a target speed.
The main parameters of the whole vehicle.

Carsim vehicle model verification: (a) lateral acceleration of snake test, (b) yaw rate of snake test, (c) lateral acceleration of steering angle step test, and (d) yaw rate of steering angle step test.
Design of hierarchical controller
MPC controller
Figure 4 depicts the structure of the trajectory tracking controllers. Considering that the driving force/braking force of the four wheels can be controlled independently, the term containing the longitudinal force in the yaw motion equation is replaced by a total yaw moment. The horizontal component of the longitudinal force is small and can be regarded as a disturbance term in lateral motion. Therefore, the longitudinal force within the predictive horizon domain can be approximated as a constant. The vehicle system dynamic equations are established as formula (15):

The structure of the controller: (a) MPC controller and (b) MPC-SMC controller.
Yaw motion:
Lateral motion:
The speed of the vehicle center of mass relative to the inertial coordinate system is:
where
The lateral motion, yaw motion, and location relative to the inertial coordinate system are considered in the lateral model predictive controller. The following five variables are considered as the state variables of the controller:
The total yaw moment and the steering angle are defined as control variables:
In order to track the desired path accurately,
The nonlinear vehicle dynamic model is as following:
where
The theoretical derivation of the linear time-varying model predictive controller
20
has been realized in the previous work. In the discrete linear time-varying system,
So in the control system, numerical approximations
In the tracking control, the simulation step length is usually set short enough, so this method will not lead to a significant decrease in tracking accuracy.
SMC controller
Before designing the longitudinal sliding mode controller, it is necessary to simplify the longitudinal dynamic equations of the vehicle appropriately. The longitudinal tire force in the longitudinal vehicle motion equation can be independently controlled which belongs to overdrive. To reduce the controllable degrees of freedom in the system, the terms containing the longitudinal force are reduced to a total driving force as:
where
The motion controller is designed with sliding mode control which is easy to adjust parameter and does not require accurate modeling. To eliminate static errors, an integration term is introduced to define the switching function:
For sliding mode variable structure control, the discontinuous switching characteristic will cause chattering in the system. The chattering phenomenon cannot be completely eliminated, but only be weakened to a certain range. In order to make the system have a good dynamic characteristic and further reduce chattering, a new approach law is adopted. 28
where 0 < e < 1, η > 0, ε > 0, k > 0, e is the length of the positive and negative symmetry interval near the origin, arsinh(s) is inverse hyperbolic sine function, and
When |s| > e, the second term in equation (27) ensures that the system state approaches the sliding mode at a faster rate. The inverse hyperbolic sine function plays a role in smoothing and limiting the amplitude so that the second term in equation (27) is not too large. When |s| ≤ e, the first term of equation (27) can increase the approach speed and ensure that the system state reaches the sliding mode surface s = 0 within a limited time.
From equations (26)–(28), the following can be obtained:
Take equation (29) into (25) and the desired longitudinal control force can be obtained:
Control distributor
The function of the control distributor is to optimally distribute
Optimization target is set as equation (32):
where R1, Q1 are weight matrixes;
The first item is used to penalize the system control amount, reflecting the requirement for the maximum value of the control variable; the second item is to penalize the control increment, reflecting the requirement for the steady change of the control quantity; the third and fourth terms introduce relaxation factors to ensure that when the system has no optimal solution within the control horizon, the optimal solution is replaced by the suboptimal solution.
Restrictions are set as formula (33):
where
Optimal problem equation (32) is a quadratic programming problem. When the constraints (31) and (33) are satisfied, the optimal control variable
where
Restrictions:
where
The maximum braking force of the tire is mainly determined by the road adhesion condition and the maximum driving force is also affected by the maximum torque of the in-wheel motor. According to the UniTire model, the maximum and minimum longitudinal force can be obtained by calculating the longitudinal force within the full longitudinal slip ratio range with the vertical load, side slip angle, and wheel center speed as input. Taking into account the error caused by the estimation or parameter changes, the maximum value of the longitudinal force is corrected and adopted as the upper and lower limits of the constraint condition:
where
Simulation and results analysis
The Simulink/Carsim co-simulation platform was built for the simulation verification of the double-line trajectory tracking under different speeds and different road adhesion coefficients. 17 The CPU of computer is Inter(R) Core(TM) i7-6700 @ 3.40 GHz. In the MPC controller the sample time is 0.02 s. The objective function constructed and the control distributor is solved by the quadratic programming function in MALTAB. The computation time is about six times longer than the simulation time. If the control algorithm is applied to a real vehicle, it is necessary to consider a more optimized solution method, making the algorithm run in a more efficient language environment (such as C language) and using a higher performance processor to ensure the real-time performance of the algorithm. In scenario 1, the adhesion coefficient is 0.8 and the target vehicle speed is 70 km/h.
In scenario 2, the adhesion coefficient is 0.8 and the target vehicle speed is 90 km/h. In scenario 3, the adhesion coefficient is 0.4 and the target vehicle speed is 50 km/h. In scenario 4, the adhesion coefficient is 0.4 and the target vehicle speed is 60 km/h. The effectiveness of the hierarchical controller is verified based on MPC-SMC controller. It is compared with the MPC controller designed in the previous work. 20 In the following, MPC-SMC controller is denoted as controller I and MPC controller is denoted as controller II.
Scenario 1
Figure 5 shows the simulation results and the results obtained in terms of deviation and RMS are listed in Table 2. The deviation and RMS of the lateral position and yaw angle under the controller I are slightly worse than the controller II, but the speed control is far better than the controller II.

Simulation results under scenario 1: (a) tracking paths, (b) yaw angles, (c) vehicle speeds, (d) steering angles, (e) vehicle mass center sideslip angles, (f) tire side slip angles under controller I, and (g) driving/braking torques under controller I.
Deviation and RMS of results under scenario 1.
It can be seen from Figure 5(d) that the maximum front wheel angle under controller I is 4.79° while that under controller II is 5.00°. The difference between the two results is small. Figure 5(e) shows the vehicle mass center sideslip angle under controller I and II. The maximum vehicle sideslip angle under controller I is 3.37° while that under controller II is 2.86°. They are both lower than the stability threshold 8.91°. 28 It can be seen from Figure 5(f) that the maximum tire side slip angles of the front left, front right, rear left, and rear right wheels are 3.79°, 4.22°, 4.07°, and 4.21° respectively, which all meet the soft-constraint condition. It can be seen from Figure 5(g) that the maximum driving/braking torques of the front left, front right, rear left, and rear right wheels are 199.93, 165.35, 187.78, and 173.04 N m respectively, which all meet the constraint condition.
Scenario 2
Figure 6 shows the simulation results and the results obtained in terms of deviation and RMS are listed in Table 3. The deviation and RMS of the lateral position and yaw angle under the controller I are slightly better than the controller II and the speed control is far better than the controller II.

Simulation results under scenario 2: (a) tracking paths, (b) yaw angles, (c) vehicle speeds, (d) steering angles, (e) vehicle mass center sideslip angles, (f) tire side slip angles under controller I, and (g) driving/braking torques under controller I.
Deviation and RMS of results under scenario 2.
It can be seen from Figure 6(d) that the maximum front wheel angle under controller I is 4.64° while that under controller II is 5.57°. The difference between the two results is small. Figure 6(e) shows the vehicle mass center sideslip angle under controller I and II. The maximum vehicle sideslip angle under controller I is 6.63° while that under controller II is 3.99°. They are both lower than the stability threshold 8.91°. 28 It can be seen from Figure 6(f) that the maximum tire side slip angles are 5.27°, 5.86°, 6.36°, and 6.75° respectively, which all meet the soft-constraint condition. It can be seen from Figure 6(g) that the maximum driving/braking torques are 369.12, 167.87, 354.03, and 183.29 N m respectively, which all meet the constraint condition.
Scenario 3
Figure 7 shows the simulation results and the results obtained in terms of deviation and RMS are listed in Table 4. The deviation and RMS of the lateral position and yaw angle under the controller I are not much different from the controller II and the speed control is far better than the controller II. It can be seen from Figure 7(d) that the maximum front wheel angle under controller I is 4.94° while that under controller II is 4.04°. The front wheel angle under controller I is a little larger than that under controller II. Figure 7(e) shows the vehicle mass center sideslip angle under controller I and II. The maximum vehicle sideslip angle under controller I is 0.86° while that under controller II is 1.60°. They are both lower than the stability threshold 4.48°. 28 It can be seen from Figure 7(f) that the maximum tire side slip angles are 3.19°, 3.29°, 2.23°, and 2.05° respectively, which all meet the soft-constraint condition. It can be seen from Figure 7(g) that the maximum driving/braking torques are 49.56, 37.31, 48.83, and 36.76 N m respectively, which all meet the constraint condition.

Simulation results under scenario 3: (a) tracking paths, (b) yaw angles, (c) vehicle speeds, (d) steering angles, (e) vehicle mass center sideslip angles, (f) tire side slip angles under controller I, and (g) driving/braking torques under controller ã.
Deviation and RMS of results under scenario 3.
Scenario 4
Figure 8 shows the simulation results and the results obtained in terms of deviation and RMS are listed in Table 5. The deviation and RMS of the lateral position and yaw angle under the controller I are a little lower than the controller II but the speed control is far better than the controller II.

Simulation results under scenario 4: (a) tracking paths, (b) yaw angles, (c) vehicle speeds, (d) front wheel steering angles, (e) vehicle mass center sideslip angles, (f) tire side slip angles under controller I, and (g) driving/braking torques under controller I.
Deviation and RMS of results under scenario 4.
It can be seen from Figure 8(d) that the maximum front wheel angle under controller I is 4.63° while that under controller II is 3.08°. Figure 8(e) shows the vehicle mass center sideslip angle under controller I and II. The maximum vehicle sideslip angle under controller I is 2.03° while that under controller II is 2.60°. They are both lower than the stability threshold 4.48°. 29 It can be seen from Figure 8(f) that the maximum tire side slip angles are 3.78°, 3.90°, 3.04°, and 2.88° respectively, which all meet the soft-constraint condition. It can be seen from Figure 8(g) that the maximum driving/braking torques are 85.75, 58.89, 81.95, and 59.73 N m respectively, which all meet the constraint condition.
Conclusion
A UniTire model under complex wheel motion inputs is adopted and the model parameters are solved by fitting the multi conditions test data in this paper. On the one hand, it improves the expression accuracy of the tire model, on the other hand, it facilitates the practical application of the algorithm based on the UniTire model structure features. With the characteristics of physical model background, unified normalized expression of slip ratio and forces, and the inserted friction coefficient, UniTire which model parameters fitted from test condition is convenient for application under different working conditions with high accuracy. For four-wheel independent drive intelligent vehicle, the longitudinal and lateral motion control of the vehicle are decoupled. Based on MPC and SMC, a hierarchical controller is designed to track the reference trajectory and expected vehicle speed simultaneously. A new approach law is adopted in the SMC of vehicle speed which can further weaken the chattering of the system while ensuring fast convergence to the sliding mode surface. The quadratic planning method is used in the control distributor to distribute the total yaw moment calculated by the MPC and the total longitudinal force calculated by the SMC, that takes into account the road adhesion conditions and the constraints of the actuator. The feasibility and accuracy of the designed controller was verified through CarSim/Simulink co-simulation. The MPC-SMC controller is significantly better than the MPC controller in speed control. The difference in the tracking accuracy of the lateral position and yaw angle is small.
Footnotes
Appendix A
The characteristic curves of the suspension components are shown in Figures A1–A4.
Appendix B
The model parameter setting interface and the corresponding parameter values are shown in Figure A5.
Handling Editor: James Baldwin
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This work was supported by the National Natural Science Foundation of China under Grant No. 51775224.
