Next Article in Journal
Evaluation of Short-Term Clinical Effects of a Novel Repetitive Facilitation Exercise Training Program Using a Hemiplegic Elbow Extension Rehabilitation System
Previous Article in Journal
Research on the Influence of Disc–Drum Connection Bolt Preloading Rotor Assembly Modal Characteristics and Diagnosis Technology
Previous Article in Special Issue
Geofencing Motion Planning for Unmanned Aerial Vehicles Using an Anticipatory Range Control Algorithm
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Essay

An Optimal Hierarchical Control Strategy for 4WS-4WD Vehicles Using Nonlinear Model Predictive Control

College of Mechanical and Electronic Engineering, Nanjing Forestry University, Nanjing 210037, China
*
Author to whom correspondence should be addressed.
Machines 2024, 12(1), 84; https://doi.org/10.3390/machines12010084
Submission received: 4 December 2023 / Revised: 6 January 2024 / Accepted: 17 January 2024 / Published: 22 January 2024

Abstract

:
Advanced driving algorithms, control strategies, and their optimization in self-driving vehicles in various scenarios are hotspots in current research; 4WS-4WD (four-wheel steering and four-wheel drive) is another hotspot in the study of new concept models; and the nonlinear dynamic characteristics of self-driving vehicles (AVs) are prominent in the fast cornering mode, which leads to a significant reduction in the accuracy and stability of trajectory tracking. Based on these research backgrounds, this paper proposes a control strategy optimization idea based on the 4WS4WD vehicle and its optimization model. The main content includes the establishment of a 3D vehicle model that takes into account vehicle load transfer and position change, and the establishment of a hierarchical control strategy based on the optimized NMPC and 4WS4WD models. The controller consists of two parts: an upper tracking controller based on the new vehicle model and NMPC, and a lower decoupled controller. The tracking control effect of the algorithmic control strategy based on the model and controller is validated in the high-speed serpentine motion mode and double-shift linear motion mode on the joint simulation platform of Car Sim and Simulink.

1. Introduction

Autonomous driving has emerged as a prominent topic for research in recent years [1,2,3,4,5,6,7,8]. Trajectory tracking is a fundamental component of autonomous driving technology that has garnered a lot of interest [9,10,11,12,13,14].
The trajectory tracking reference trajectory is contingent upon the time parameter, necessitating simultaneous control of a vehicle’s longitudinal and lateral motion. This places significant demands on the control performance of trajectory tracking controllers. Scholars have undertaken numerous research investigations to produce a trajectory tracking controller that is accurate, safe, and stable for regulating autonomous driving [15,16,17,18,19,20]. Instead of considering the vehicle’s own pose variation motions, such as roll and pitch, in the previously mentioned studies, researchers concentrate more on building a responsive linear vehicle model, using the vehicle’s longitudinal, lateral, and transverse roll motion parameters as the controller’s tracking objects. These existing studies point out that vehicles are complex systems with many interacting components, each of which has its own dynamics, and these dynamics interact with each other in complex ways. This makes the development of accurate and efficient vehicle models a difficult task. But model improvement does not mean that all relevant aspects of vehicle behavior need to be captured and all factors involved taken into account. Indeed, during high-speed driving, a vehicle’s steering angle shift will result in a large variation in the vehicle’s pose. This load transfer impact will further affect the vehicle’s stability and increase the nonlinear response of the vehicle model [21,22,23,24,25]. Therefore, in this paper, the effects of load transfer and vehicle position are taken into account to improve the model so that the nonlinear characteristics of the vehicle under high-speed turning conditions can be included in the dynamics, which is more in line with the actual working conditions.
In autonomous driving, a hierarchical control system is often employed to manage complex scenarios [26,27,28,29]. This type of system breaks down the overall task into smaller subtasks, each managed by a separate controller. The controllers are organized in a hierarchy, with higher-level controllers managing lower-level ones. This structure allows for modular design and easier debugging. In these studies, self-driving cars use hierarchical control to manage complex tasks, which can be broadly categorized into different layers of environment sensing, path planning, and trajectory tracking; there is also policy switching in different scenarios. But hierarchical controllers can be used as a way to cope with the processing of complex nonlinear models and to link the dynamic model parameter requirements with kinematic control strategies [30]. Therefore, it is necessary to consider the vehicle’s pose variation and introduce it into the tracking object of the controller.
Nonlinear Model Predictive Control (NMPC) [31] is a variant of Model Predictive Control (MPC) [32] that uses nonlinear system models in prediction and has considerable applications in the unmanned driving research [33,34,35,36,37,38]. Unlike MPC, which relies on linear models, NMPC explicitly takes into account process nonlinearities and constraints, making it more suitable for a wide range of operating conditions and near the boundary of the admissible region [39,40]. Therefore, by choosing NMPC as the control algorithm and establishing the corresponding nonlinear model with constraints, the simulation can have better performance.
The novelty and contribution of this paper can be summarized as follows:
A new vehicle model based on 4WS4WD and a controller-based NMPC algorithm are used for the stability control problem of autopilot trajectory tracking. The vehicle dynamics model takes into account the 3D attitude change with load transfer; the structural parameters of the tire model are modified according to the rolling geometry of the vehicle and take into account the vertical load change of the tires due to the load transfer effect. A hierarchical control strategy is established with the upper trajectory tracking controller and the lower decoupling controller, respectively.

2. Nonlinear Three-Dimensional Pose-Varying Vehicle Model

The proposed nonlinear vehicle model includes a vehicle dynamics model, a chassis model, and a modified “magic formula” tire model. The vehicle dynamics model is used to analyze the state feedback of the vehicle system under the action of external forces and moments, and by selecting multiple state variables to accurately derive vehicle motion states under a given input, the chassis dynamics model is used to connect the vehicle dynamics model and the tire model, and the tire model analyzes the state feedback of the vehicle system under the action of the current state change of the vehicle system (including the change of steering wheel angle due to steering wheel angle, the change of drive tire slip rate due to longitudinal vehicle speed, etc.) and analyzes the state feedback of the external forces and moments. The tire model is used to analyze the state feedback of external forces and moments under the current state changes of the vehicle system (including the change of steering wheel angle due to steering wheel angle, the change of drive tire slip rate due to longitudinal speed, etc.), and accurately quantifies the values of external forces and moments through the model. The vehicle dynamics model, chassis model, and modified “magic formula” tire model together form a controlled closed-loop model, based on which the trajectory tracking controller provides the tire model with control quantities to achieve closed-loop control of the vehicle motion state, and the control structure is shown in Figure 1.

2.1. Model Assumptions

The vehicle model forms the foundation of the prediction model in the NMPC controller, and the controller has demanding criteria for computational iteration speed in practical applications. Therefore, it is necessary to streamline the model to the fullest extent possible, reducing the arithmetic power required for the NMPC controller while ensuring that the prediction model possesses high accuracy.
In the dynamic modeling process, the following assumptions are required:
  • Autonomous driving takes place on a flat road surface, i.e., there is no vertical freedom of the chassis due to the unevenness of the vertical road surface, and the change in the gravitational potential energy of the vehicle due to the displacement of the vertical road surface is neglected.
  • The overall structure of autonomous driving is rigid, and the body stiffness is large enough.
  • Assuming that the steering system is rigid and ignoring the local degrees of freedom due to the deformation of the steering column, the input from the steering wheel can be applied directly and proportionally to the steering wheel.
  • The effects of drag and vehicle aerodynamics can be ignored.
  • The role of tire return torque can be ignored.

2.2. Kinematic Analysis of the Vehicle

The research object of this paper is the overall control of the vehicle and the analysis of the vehicle’s handling stability under external forces. Therefore, the vehicle body analysis can ignore vehicle reactive internal forces. Newtonian vector mechanics can be used to analyze the transmission relationship between external and internal forces to obtain the attitude of the vehicle body, which is a laborious analysis process. The analytical mechanics based on Lagrangian equations can ignore internal forces in the vehicle system by establishing generalized coordinates to analyze the work and energy conversion of the system.
Figure 2 shows a sketch of the kinematic analysis of the vehicle body. In this paper, the kinematic analysis of the vehicle body is divided into a sprung plane and an “un-sprung” plane, and four degrees of freedom are considered, including the roll degree of freedom of the sprung plane and the lateral, longitudinal, and yaw degrees of freedom of the “un-sprung” plane. The vehicle has a roll center for each of the front and rear axles, which O f is and O r . The height of the front and rear axles is not equal; the vertical distance between the front axle roll center O f and the ground is h f , the vertical distance between the rear axle roll center O r and the ground is h r , the connection between the roll center O f of front axle and the roll center O r of rear axle is the “roll center axis”.
The ground reference base e G , the vehicle reference base e v and the sprung plane reference base e s are established. The vector direction e 1 v of the vehicle reference base e v is the direction of the vehicle forward velocity; the e 2 v vector is parallel to the ground and points to the left side of the vehicle; the e 3 v vector direction is perpendicular to the ground and upward, and the origin O v of the vehicle reference base e v is the intersection of the lateral plane of the center of the plane m s and the roll center axis; the lateral plane is perpendicular to the vector e 1 v and the ground. The origin O v of the sprung plane reference base e s coincides with the origin O s of the vehicle reference base e v .
The coordinate transformation relation between the ground reference base e G , the vehicle reference base e v and the sprung plane reference base e s is
e G = A G v e v ,
e v = A v s e s ,
where, A G v , A v b is the Directional cosine matrix.
A G v = cos ψ sin ψ 0 sin ψ cos ψ 0 0 0 1 ,
A v s = 1 0 0 0 cos ϕ sin ϕ 0 sin ϕ cos ϕ ,
From Figure 1, the distance between the center of the sprung plane m s and the center axis of roll is set to h s , then the position vector P of the plane center m s relative to the origin O v of the vehicle reference base e v is given by
P = h s · e 3 s = h s sin ϕ · e 2 v + h s cos ϕ · e 3 v ,
The angle between the ground reference base e G and the vehicle reference base e v is the vehicle yaw angle ψ , and the angle between the sprung plane reference base e s and the vehicle reference base e v is the vehicle roll angle ϕ , then the absolute velocity vector of the sprung plane center of plane under the inertia base e G relative to the origin O of the inertia base e G is given by
d P G d t = d P s d t + ω G s × P = d P s d t + ( ω G v + ω 1 s ) × P ,
ω G s = ω G v + ω v s = ψ ˙ · e 3 v + ϕ ˙ · e 1 v ,
Since the center of the sprung plane m s is at rest relative to the reference base e s of the sprung plane, d P s d t = 0 , the absolute velocity vector is
d P G d t = u s e 1 v + v s e 2 v + w s e 3 v = u v h s ψ ˙ sin ϕ e 1 v + v v h s ϕ ˙ cos ϕ e 2 v + h s ϕ ˙ sin ϕ e 3 v ,
where u s , v s , w s are the forward velocity, lateral velocity, and vertical velocity of the center of the sprung plane under the inertial reference base, respectively. u v , v v are the forward and lateral velocities of the vehicle reference base origin under the inertial reference base.
The kinetic energy of the sprung plane consists of the translational kinetic energy E T s t and the rotational kinetic energy E T s r of the sprung plane, which is
E T s = E T s t + E T s r = 1 2 m s d P G d t 2 + 1 2 ω G s T I s ω G s P ,
where I s is the rotational inertia matrix of the sprung plane, and since the vehicle is symmetric about its centerline, I s is
I s = I x x 0 I x z 0 I y y 0 I x z 0 I z z ,
where I i i is the rotational inertia of the sprung plane around the vector e i s , and I i j is the product of inertia. According to the reference base transformation matrix, ω G s in the reference base on the sprung e s is
ω G s = ϕ ˙ · e 1 s + ψ ˙ sin ϕ · e 2 s + ψ ˙ cos ϕ · e 3 s ,
Take Equations (8), (10), and (11) into account to obtain the kinetic energy of the sprung plane, E T S and the kinetic energy of translation and rotation, respectively.
E T s t = 1 2 m s ( u v + h s ψ ˙ sin ϕ v v h s ϕ ˙ cos ϕ h s ϕ ˙ sin ϕ ) 2 = 1 2 m s [ ( u v 2 + h s 2 ψ ˙ 2 sin 2 ϕ + 2 u v h s ψ ˙ sin ϕ ) + ( v v 2 + h s 2 ϕ ˙ 2 cos 2 ϕ 2 v v h s ϕ ˙ cos ϕ ) + ( h s 2 ϕ ˙ 2 sin 2 ϕ ) ] = 1 2 m s [ ( u v 2 + v v 2 ) + ( h s 2 ψ ˙ 2 sin 2 ϕ + h s 2 ϕ ˙ 2 sin 2 ϕ ) ( 2 v v h s ϕ ˙ cos ϕ 2 u v h s ψ ˙ sin ϕ + h s 2 ϕ ˙ 2 cos 2 ϕ ) ] ,
In (12), when the second term of the equation ϕ is small, sin ϕ ϕ , then the second term of the equation above, which is a fourth-order term, can be ignored.
E I s r = 1 2 ( ϕ ˙ ψ ˙ sin ϕ ψ ˙ cos ϕ ) T × ( I x x 0 I x z 0 I y y 0 I x z 0 I z z ) × ( ϕ ˙ ψ ˙ sin ϕ ψ ˙ cos ϕ ) = 1 2 ( I x x ϕ ˙ 2 2 I x z ϕ ˙ ψ ˙ cos ϕ + I y z ψ ˙ 2 sin 2 ϕ + I z z ψ ˙ 2 cos 2 ϕ ) ,
In the equation above, the small second and third terms are ignored, and the first term of the roll moment of inertia and the fourth term of the yaw moment of inertia are mainly considered.
The under-sprung plane of a vehicle is almost entirely composed of two chassis components: the front suspension and front axle, and the rear suspension and rear axle. The distance between the front and rear chassis components is far apart, and in the case of a large angular velocity of the vehicle roll, treating the front and rear chassis components as one rigid body will cause large calculation errors. Therefore, the under-sprung plane is divided into front under-sprung plane m f and rear under-sprung plane m r , and the under-sprung plane kinetic energy is divided into front under-sprung plane kinetic energy E T f and rear under-sprung plane kinetic energy E T r , and each part of kinetic energy includes both translational kinetic energy and rotational kinetic energy.
E I f = 1 2 m f u f 2 + v f 2 + 1 2 I z = f ψ ˙ 2 ,
E T r = 1 2 m r u r 2 + v r 2 + 1 2 I z z r ψ ˙ 2 ,
where u f = u v , u r = u v , v r = v v l r ψ ˙ and v f = v v + l f ψ ˙ .
Assuming that the roll stiffness coefficient K ϕ and the roll damping coefficient C ϕ of the suspension are constant when the body is rolled, the dissipation energy of the vehicle is
E D = 1 2 C ϕ ϕ ˙ 2 ,
The potential energy of the vehicle E V includes two parts: one is the front and rear suspension elastic potential energy generated by the body roll, and the other is the gravitational potential energy of the sprung plane when the body rolls. The change of the body roll angle directly affects the elastic potential energy, while the change of the roll angle will cause the height of the sprung plane center to change, thus affecting the gravitational potential energy. Therefore, the gravitational potential energy is
E V = E V k + E Tg = 1 2 K ϕ ϕ 2 m s g h s ( 1 cos ϕ ) ,
where E V k is the elastic potential energy, E V g is the gravitational potential energy, and g is the gravitational acceleration.

2.3. Vehicle Dynamics Model

The Lagrangian equation with dissipative terms is
d d t E T q E T q + E V q + E D q = F q ,
where, q = x y ψ ϕ T is the generalized coordinate vector, where x , y are the longitudinal and lateral coordinates under the vehicle reference base, x ˙ = u v , y ˙ = v v , and are the generalized force vectors F q = F x   F y   M ψ   M ϕ T .
The generalized force is analyzed, and the longitudinal generalized force F x under the vehicle reference base is
F x = F x f + F x r ,
where F x f is the combined force of the longitudinal force components provided by the two tires on the front axle, and F x r is the combined force of the longitudinal force components provided by the two tires on the rear axle.
Similarly, the lateral generalized force F y under the vehicle reference base is
F y = F y f + F y r ,
where F y f is the combined force of the lateral force components provided by the two tires on the front axle, and F y r is the combined force of the lateral force components provided by the two tires on the rear axle.
The vehicle yaw generalized moment, M ψ generated by the lateral force of the front and rear tires, is given by
M ψ = l f F y f l r F y r ,
where l f is the longitudinal distance from the center of the plane to the front axle, and l r is the longitudinal distance from the center of the plane to the rear axle.
The vehicle roll generalized moment M ϕ generated by the lateral force of the front and rear tires is given by
M ϕ = h O h f F y f + h O h r F y r ,
where, h f is the vertical distance between the roll center of the front axis and the ground, h r is the vertical distance between the roll center of the rear axis and the ground, and h O is the vertical distance between the origin and the ground.
The kinetic energy, potential energy, and dissipative energy are applied to the Lagrangian equation and to the generalized coordinate vector q and its first-order derivative to find the partial derivative. The Lagrangian model of the vehicle is obtained as
Vehicle longitudinal (along x axis) equation of motion
m f + m s + m r x ¨ y ˙ ψ ˙ m s h s ψ ¨ sin ϕ + ψ ˙ ϕ ˙ cos ϕ = F x f + F x r ,
Vehicle lateral motion (along y the axis) equation
m f + m s + m r y ¨ + x ˙ ψ ˙ + m s h s ϕ ˙ 2 cos ϕ ϕ ¨ cos ϕ + m f l f m r l r ψ ¨ = F y f + F y r ,
Vehicle yaw motion (around z the axis) equation
I z z + I z z f + I z z r + m f l f 2 + m r l r 2 ψ ¨ + m f l f m r l f y ¨ + x ˙ ψ ˙ m s h s x ¨ sin ϕ + x ˙ ϕ ˙ cos ϕ + I x z ϕ ¨ = l f F y f l r F y r ,
Vehicle roll motion (around the x axis) equation
m s h s y ¨ + x ˙ ψ ˙ + I x x + m s h s 2 ϕ ¨ m s h s x ˙ ψ ˙ cos ϕ y ˙ ϕ ˙ sin ϕ h s ϕ ˙ 2 cos ϕ sin ϕ + 2 I z z ψ ˙ 2 cos ϕ sin ϕ + K ϕ ϕ m s h s g sin ϕ + C ϕ ϕ ˙ + I x z ψ ¨ = h O h f F y f + h O h r F y r ,
For this Lagrangian model, an appropriate simplification can be carried out by ignoring the higher-order terms when ϕ is small and considering sin ϕ ϕ , cos ϕ 1 then, the simplified model is obtained as.
Vehicle longitudinal (along the x axis) equation of motion
m f + m s + m r x ¨ y ˙ ψ ˙ = F x f + F x r ,
Vehicle lateral motion (along y the axis) equation
m f + m s + m r y ¨ + x ˙ ψ ˙ m s h s ϕ ¨ + m f l f m r l r ψ ¨ = F y f + F y r
Vehicle yaw motion (around x the axis) equation
I z z + I z z f + I z z r + m f l f 2 + m r l r 2 ψ ¨ + m f l f m r l r y ¨ + x ˙ ψ ˙ I x z ϕ ¨ = l f F y f l r F y r ,
Vehicle roll motion (around the x axis) equation
m s h s y ¨ + x ˙ ψ ˙ + I x x + m s h s 2 ϕ ¨ + K ϕ m s h s g ϕ + C ϕ ϕ ˙ + I x z ψ ¨ = h O h f F y f + h O h r F y r .

2.4. Chassis Dynamics Model

The chassis dynamics model is used to connect the vehicle body dynamics with the tire model, decouple the coupled state variables of the vehicle body and input them into each tire model, and integrate the longitudinal and lateral forces output from each tire model into the combined forces applied to the vehicle body. The chassis dynamics model is shown in Figure 3. The tire forces in each independent tire reference system can be translated into the vehicle reference system and ground reference system, and the tire forces and velocities of each tire are expressed as: z Δ , Ω S . The z Δ , Ω S is the state variables, Z F , v , δ ,   F is the tire force, v is the tire velocity, and δ is the wheel angle; is the reference direction, Δ = l , c , w , y , z , X , Y , l and c are the longitudinal and lateral directions of the tire reference system, x and y are the x and y axis directions of the vehicle reference system, z is the z axis direction of the vehicle reference system, X and Y are the X and Y axis directions of the ground reference system; Ω is the axle positioning, Ω = f , r , f and r are the front and rear axles; S is the side positioning, S = l , r , l   l and r are the left side of the body and the right side of the body.
The transformation relation between the longitudinal and lateral forces of the tire in the vehicle reference system and the ground reference system is
F x , Ω S = F l , Ω S cos δ Ω S F c , Ω S sin δ Ω S ,
F y , Ω S = F c , Ω S cos δ Ω S + F l , Ω S sin δ Ω S ,
F X , Ω S = F l , Ω S cos δ Ω S cos ψ cos δ Ω S sin ψ F c , Ω S sin δ Ω S cos ψ + cos δ Ω S sin ψ ,
F Y , Ω S = F l , Ω S cos δ Ω S cos ψ cos δ Ω S sin ψ F c , Ω S sin δ Ω S cos ψ + cos δ Ω S sin ψ ,
The longitudinal velocity of the tire is transformed in the vehicle reference system through the following relationship:
v l , f l = x ˙ d f ψ ˙ cos δ f + y ˙ + l f ψ ˙ sin δ f v l , f r = x ˙ + d f ψ ˙ cos δ f + y ˙ + l f ψ ˙ sin δ f v l , r l = x ˙ d r ψ ˙ cos δ r + y ˙ l r ψ ˙ sin δ r v l , r r = x ˙ + d r ψ ˙ cos δ r + y ˙ l r ψ ˙ sin δ r
where d f is the front half wheelbase, d r is the rear half wheelbase; l f is the distance from the center of plane to the front axle, l r is the distance from the center of plane to the rear axle.
The expressions for the vertical load of the tire are given as
F z , f l = m l r g m h s + h O x ¨ 2 l f + l r m l r h s + h O y ¨ 2 d f l f + l r ,
F z , f r = m l r g m h s + h O x ¨ 2 l f + l r + m l r h s + h O y ¨ 2 d f l f + l r ,
F z , r l = m l f g + m h s + h O x ¨ 2 l f + l r m l f h s + h O y ¨ 2 d r l f + l r ,
F z , r r = m l f g + m h s + h O x ¨ 2 l f + l r + m l f h s + h O y ¨ 2 d r l f + l r ,
where the calculation of the vertical load takes into account the lateral and longitudinal acceleration.

2.5. Modified “Magic Formula” Tire Model

The commonly used tire models include both empirical and physical models, and the commonly used empirical models include the power exponential unified tire model and the “magic formula” tire model [41], while the commonly used physical models include the “string model” and the “brush model”. Among them, the “magic formula” model based on the function fitting method uses a form to express both longitudinal and lateral tire forces, which is convenient for subsequent control algorithm design and program writing. The “magic formula” tire model has been continuously studied and used by researchers [42,43,44,45,46]. Before we can improve it, we need to introduce the variables we need to use and their definitions. The general expressions of the “magic formula” tire model are:
y = D sin C arctan [ B x E ( B x arctan B x ) ] + S v ,
To calculate the longitudinal force and lateral force, the equations are:
(1) Longitudinal force calculation: y is considered as the longitudinal tire force F l ; x is the sum of the tire slip rate s and horizontal drift factor S h ; C is the curve shape factor; B is the stiffness factor; B is the peak factor; E is the curvature factor; S v is the vertical drift factor.
The expression of each coefficient is given by
C = L 0 D = L 1 F z 2 + L 2 F z B = ( L 3 F z 2 + L 4 F z ) × e L 5 F z / ( C × D ) E = L 6 F z 2 + L 7 F z + L 8 S h = L 9 F z + L 10 S v = 0 ,
where the longitudinal force characteristics parameters include L 0 ~ L 10 and the variables include tire vertical force, F z , tire slip rate s .
The slip rate s is defined as
d r i v e : s = r w ω w v l r w ω w b r a k i n g : s = v l r w ω w v l ,
where r w is the radius of the tire, ω w is the angular velocity of the wheel, v l is the longitudinal velocity of the wheel.
From Equations (33)–(40), both the tire slip rate and the longitudinal force of the tire can be expressed by the function
s = s x ˙ , y ˙ , ψ ˙ , δ , ω w ,
F l = f l F z , s ,
(2) Lateral force calculation:
The letter y is denoted for the tire lateral force F c ; x is the sum of the tire lateral deflection angle α and horizontal drift factor S h ; C is the curve shape factor; B is the stiffness factor; D is the peak factor; E is the curvature factor; and S v is the vertical drift factor.
The expressions of each coefficient are given as
C = P 0 D = P 1 F z 2 + P 2 F z B = P 3 sin ( 2 arctan F z P 4 ) × ( 1 P 5 γ ) / ( C × D ) E = P 6 F z + P 7 S h = P 9 F z + P 10 + P 8 γ S v = P 11 F z γ + P 12 F z + P 13 ,
where, the front tire slip angle α f is
α f = a 1 x ˙ , y ˙ , ψ ˙ , δ f = arctan y ˙ + l f ψ ˙ x ˙ δ f ,
The rear tire slip angle α r is
α r = a 2 x ˙ , y ˙ , ψ ˙ , δ r = arctan y ˙ l r ψ ˙ x ˙ δ r ,
From Equation (33)~(40), the tire lateral force function is
F c = f c F z , α i , γ , ( i = f , r ) ,
(3) Correction of alignment change: Pose variation will lead to changes in wheel positioning parameters, further causing changes in the wheel angle and camber of the wheels, which will have an impact on the tire force and its balance.
These two deformations are collectively referred to as alignment changes. Therefore, it is necessary to modify the tire model so that it can accurately reflect the actual working state of the tire under extreme conditions such as steering at high speed and sideslips with a large roll angle.
(1) Roll steering
Roll steering caused by a roll during a change of attitude depends on the specific structure of the suspension. Roll-steering of a rigid axle suspension is called axle steering, i.e., the axle turns while the tire does not actually turn. However, from a kinematic point of view, the effect of axle rotation is equivalent to tire rotation. The roll steering of an independent suspension can be obtained by analyzing the geometry of the mechanism.
A common roll-steering curve is shown in Figure 4. A roll steering condition that tends to steer to the inside of the vehicle is called toe-in, and a condition that tends to steer to the outside is called toe-out. The roll steering is equivalent to superimposing the wheel angle δ ϕ on all four wheels, as shown in Figure 4. The wheel angle δ ϕ is related to the distance d s of suspension moving, which can be obtained from the roll angle ϕ and the suspension geometry.
The expression for the wheel angle δ ϕ is given by
δ ϕ = δ d s · d s ϕ ϕ ,
As seen in Figure 4, when the motion travel d s of the suspension is small, i.e., the roll angle ϕ is not large, the wheel angle δ ϕ and the roll angle ϕ can be considered to be nearly linear, so the (49) can be approximated as
δ ϕ = K δ ϕ ,
where K δ is the roll steering stiffness.
The front axle suspension and the rear axle suspension have different roll steering stiffness coefficients due to their different geometries. According to the reference base, the left suspension stretches and the right suspension compresses when the roll angle ϕ is positive; thus, the left wheel roll steering angle δ ϕ , l is the toe-in and the right wheel roll steering angle δ ϕ , R is the toe-out.
Extending (50) to the four-wheel case leads to
δ ϕ , f l = K δ , f ϕ , δ ϕ , f r = K δ , f ϕ δ ϕ , r l = K δ , r ϕ δ ϕ , r r = K δ , r ϕ ,
The effect of roll steering on the longitudinal force of the wheel is small, but it has a large effect on the lateral force. The corrected wheel angle and tire slip angle are
δ * = δ + δ ϕ ,
α * = a x ˙ , y ˙ , ψ ˙ , δ * ,
(2) Camber change
When the suspension is a rigid axle suspension, the pose variation does not cause the wheels to change camber. When the suspension is an independent suspension, the camber change causes the wheels to change camber. The camber change curve of an independent suspension can be obtained by a geometric analysis of the guiding mechanism. The camber change curve of the double wishbone suspension is shown in Figure 5, and the camber change is equivalent to adding a camber change angle γ ϕ on the wheels.
The expression for the angle of change of camber γ ϕ is
γ ϕ = γ d s · d s ϕ ϕ ,
As seen in Figure 5, when the motion travel of d s the suspension is small, i.e., the roll angle ϕ is not large, the change of camber angle γ ϕ can be considered to be nearly linear with the roll angle ϕ , and (54) can be approximated by
γ ϕ = K γ ϕ ,
where K γ is the camber change stiffness. Thus, (55) for the four-wheels case is expanded as
γ ϕ , f l = K γ , f ϕ , γ ϕ , f r = K γ , f ϕ γ ϕ , r l = K γ , r ϕ γ ϕ , r r = K γ , r ϕ ,
In the case of no roll, the camber angle of the tire is small, so the initial camber angle γ is set to 0. Therefore, the corrected camber angle γ * is expressed as
γ * = γ ϕ = K γ ϕ ,
(3) Modification of tire vertical force:
The variation of the vehicle’s spring mass with the change in vehicle attitude is shown in Figure 6. Since the center of the sprung plane m s is not on the roll center axis but above it, the distance between them is h s , thus when the car body is rolled, the position of the center of the plane m s will be laterally offset, resulting in a change in the vertical load of the left and right wheels. The lateral offset of the center of plane m s is Δ d , the distance between the center of plane m s and the roll center O s is h s .
The expression for the lateral offset Δ d is
Δ d = h s sin ϕ ,
The vehicle roll will be in the left and right wheel additional tire vertical force Δ F z , can be obtained from the rolling coefficient λ z and the original tire vertical load F z , the expression is
Δ F Z = λ Z F Z ,
The factor λ z is determined by the lateral offset Δ d and the wheel track d , and the expression is
λ z , i = ( 1 ) j 2 Δ d d ,
where i is l for the left wheel and i is r for the right wheel; when i = l , j = 1 ; when i = r , j = 0 .
In summary, the modified vertical load is obtained as
F z * = F z + Δ F z = F z + ( 1 ) j 2 Δ d d F z ,
This chapter establishes the chassis dynamics model of the vehicle based on the on-spring mass reference base, the under-spring mass reference base, and the ground inertia reference base established by the vehicle body, which is used to decouple the coupled state quantities of the vehicle body and input them into each tire model. At the same time, the longitudinal and lateral forces outputted from each tire model are integrated into the combined force exerted on the vehicle body. Through the method of internal force analysis of the structure and the method of kinematics analysis of the vehicle body, the mechanical model of the tire’s drooping load is deduced and considered. The influence of the load transfer effect on the vertical load of tires was thus corrected. The purpose is to sort out the relationship and mutual influence of each part of the model.

3. Upper Trajectory Tracking Controller

The upper trajectory tracking control based NMPC includes four parts: prediction model, constraints, cost function, and solver.

3.1. Predictive Model

The prediction model based on the vehicle model in this paper is strongly nonlinear. Moreover, the vehicle dynamics include the nonlinear characteristics of the pose variation; the chassis model has the nonlinear coupling characteristics of the chassis; and the modified “magic formula” tire model has the nonlinear longitudinal and lateral force output characteristics of the tire. The three vehicle models are dynamically coupled with each other, which accurately reflects the pose variation and dynamic characteristics of the vehicle and improves the performance of the controller.
Combining Equations (27)–(34), (46), (50), and (54), the equations of the nonlinear vehicle model can be obtained, and after solving the derivative terms of the state variables, the state space equations of the nonlinear prediction model are obtained as follows:
ξ ˙ = f ξ , u η = g ξ ,
where ξ = ( x ˙ , y ˙ , ϕ ˙ , ψ ˙ , X , Y , ϕ , ψ ) is the eight-dimensional state variables; η = ( X ˙ , Y ˙ , ϕ ˙ , ψ ˙ , X , Y , ϕ , ψ ) is the eight-dimensional output variables; u = δ , a x is the equivalent two-dimensional control variables; δ is equivalent wheel deflection angle; and a x is equivalent longitudinal acceleration. In the designed dynamics model, the second-order derivative terms and the first-order derivative terms are coupled with each other, i.e., the derivatives of the state quantities are not decoupled from the state quantities, and it is not possible to construct the prediction model of the NMPC controller directly. Therefore, computational decoupling is used to separate the derivative terms of the state quantities to obtain a decoupled nonlinear prediction model.
Decoupling state space equations as follows:
x ¨ = F x f + F x r + M ψ ˙ y ˙ M ,
y ¨ = C ϕ I x z M ϕ C ϕ I M ϕ + C ϕ ϕ l f 2 m f 2 + C ϕ ϕ l r 2 m r 2 + F y f I M h f F y f I M h o F y r I M h o + F y r I M h r F y f I x z M h f + F y f I x z M h o + F y r I x z M h o F y r I x z M h r F y f h f l f 2 m f 2 + F y f h o l f 2 m f 2 + F y r h o l f 2 m f 2 F y r h r l f 2 m f 2 F y f h f l r 2 m r 2 + F y f h o l r 2 m r 2 + F y r h o l r 2 m r 2 F y r h r l r 2 m r 2 + F y f I x z M l f F y r I x z M l r + I K ϕ M ϕ I x z K ϕ M ϕ K ϕ l f 2 m f 2 ϕ K ϕ l r 2 m r 2 ϕ + F y f I h s m s + F y r I h s m s F y f I x z h s m s F y r I x z h s m s F y f I x z l f m f F y r I x z l f m f + F y f I x z l r m r + F y r I x z l r m r F y f h s l f 2 m f m s F y r h s l r 2 m r m s I M g h s m s ϕ + I x z M g h s m s ϕ + g h s l f 2 m f 2 m s ϕ + g h s l r 2 m r 2 m s ϕ 2 C ϕ ϕ l f l r m f m r + 2 F y f h f l f l r m f m r 2 F y f h o l f l r m f m r 2 F y r h o l f l r m f m r + 2 F y r h r l f l r m f m r + F y r h s l f l r m f m s + F y f h s l f l r m r m s + 2 K ϕ l f l r m f m r ϕ 2 g h s l f l r m f m r m s ϕ / I x Z h s 2 m s 2 I h s 2 m s 2 I I x X M + I x x I x Z M + I x x l f 2 m f 2 + I x x l r 2 m r 2 I M h s 2 m s + I x Z M h s 2 m s + h s 2 l f 2 m f 2 m s + h s 2 l r 2 m r 2 m s + I X z h s l f m f m s I X z h s l r m r m s 2 I x x l f l r m f m r 2 h s 2 l f l r m f m r m s
ψ ¨ = F y f h s 2 l f m s 2 F y r h s 2 l r m s 2 + F y f I x x M l f F y r I x x M l r F y f I x x l f m f F y r I x x l f m f + F y f I x x l r m r + F y r I x x l r m r + F y f M h s 2 l f m s F y r M h s 2 l r m s F y f h s 2 l f m f m s F y r h s 2 l f m f m s + F y f h s 2 l r m r m s + F y r h s 2 l r m r m s g h s 2 l f m f m s 2 ϕ + g h s 2 l r m r m s 2 ϕ C ϕ ϕ h s l f m f m s + C ϕ ϕ h s l r m r m s + F y f h f h s l f m f m s F y f h o h s l f m f m s F y r h o h s l f m f m s + F y r h r h s l f m f m s F y f h f h s l r m r m s + F y f h o h s l r m r m s + F y r h o h s l r m r m s F y r h r h s l r m r m s + K ϕ h s l f m f m s ϕ K ϕ h s l r m r m s ϕ / I x z h s 2 m s 2 I h s 2 m s 2 I I x x M + I x x I x z M + I x x l f 2 m f 2 + I x x l r 2 m r 2 I M h s 2 m s + I x z M h s 2 m s + h s 2 l f 2 m f 2 m s + h s 2 l r 2 m r 2 m s + I x z h s l f m f m s I x z h s l r m r m s 2 I x x l f l r m f m r 2 h s 2 l f l r m f m r m s
X ˙ = x ˙ cos ψ y ˙ sin ψ ,
Y ˙ = x ˙ sin ψ y ˙ cos ψ ,
The above prediction model has been decoupled with the first-order derivative terms of the state quantities on the left-hand side of the equation, the coefficients on the right-hand side of the equation number, and the nonlinear set of state quantities. The above equations are also the basis for the design of specific functions in the simulation. The output equation of the nonlinear prediction model is:
η 1 = x ˙ cos ψ y ˙ sin ψ η 5 = X η 2 = x ˙ sin ψ + y ˙ cos ψ η 6 = Y η 3 = ϕ ˙ η 7 = ϕ η 4 = ψ ˙ η 8 = ψ ,

3.2. Constraints

The upper controller based on NMPC requires the construction of constraints, some of which are hardware limitations of the vehicle and some are soft constraints that are used to keep the vehicle in a stable and controllable state. The advantage of the NMPC controller is that it can build nonlinear constraints, making the control results more accurate and improving the system’s robustness. Therefore, the following constraints are defined.
0 v x 160 ,
0.615 v ˙ x 0.615 ,
15 δ 15 ,
0.85 δ ˙ 0.85 ,
F l , Ω S 2 + F c , Ω S 2 μ Ω S F z , Ω S 2 ,
The constraints (69) and (70) are vehicle longitudinal speed constraints. (71) and (72) are the equivalent wheel deflection angle constraints.
The vehicle center-of-plane slip angle is defined as:
β = arctan v y v x ,
where V y is the lateral velocity of vehicle center-of-plane, V x is the lateral velocity of vehicle center-of-plane.
Defining center-of-plane slip angle constraints as follows:
5 β 5   ,
25 β ˙ 25   ,
The constraints (75) and (76) are the vehicle center-of-plane slip angle constraints, and the lateral deflection angle is limited to this range, which can make the vehicle move in the state stability region.
Inequality (73) is a tire friction circle constraint; the longitudinal and lateral forces of the tire coupled need to be located within the friction circle of the tire vertical load to prevent tire slip.

3.3. Cost Function

The discrete cost function is set as follows:
J ( ξ ( t ) , U ( t ) ) = i = 1 N p 1 η ( k + i ) η r e f ( k + i ) Q 2 + i = 1 N c [ Δ u ( k + i ) R 2 ] + η ( k + N p ) η r e f ( k + N p ) P 2 + ρ ε 2 ,
where ξ t is the system state vector trajectory, η k is the output variables, η r e f k is the desired output variables, U ( t ) = [ u ( k ) , , u ( k + N p ) ] is the sequence of control variables. N p in the time domain, Δ u ( k + 1 ) = u ( k + 1 ) u ( k ) is the control increment, N p is the prediction time domain, N c is the control time domain, Q is the output variables weight, R is the control increment weight, P is the terminal output weight, ρ is the relaxation weight, and ε is the relaxation factor.
The first term in the cost function is used to make the tracking error between the system output and the desired output as small as possible; the second term is used to penalize the amount of change in the control variables, i.e., the redundant control actions of the system, so that the control variables change smoothly; the third term is used to constrain the terminal output; and the fourth term is a relaxation factor to improve the convergence speed of the operation so that the nonlinear programming can be solved optimally.

3.4. Solutions

Based on the above constructed parts, the NMPC control is transformed into solving the following nonlinear programming problem.
m i n J ξ ( t ) , U ( t ) ,
The Sequential Quadratic Programming (SQP) algorithm is a good solution to the problem [20]. The SQP algorithm consists of four main steps: initialization, quadratic programming solution, line search, and Hessian matrix update, and the optimal control sequence U * ( t ) = [ u * ( k ) , , u * ( k + N p ) ] is obtained by solving (65) for each control cycle.
The first element u * ( k ) of the optimal control sequence U * ( t ) is entered into the system as the actual control variables and executed to the next step. In the new step, the system solves the nonlinear programming problem again according to the new state to obtain the new optimal control sequence, and so on.

4. Lower Decoupling-Controller

The research object is a 4WS-4WD vehicle, while the upper controller chose u = δ , a x as the two-dimensional control variables for the global convexity of the strong coupling nonlinear optimization problem and the solution efficiency. The 4WS-4WD vehicles need eight-dimensional control variables as input variables. The lower decoupling control scheme is constructed to decouple the two-dimensional control variables output by the upper NMPC controller into eight-dimensional control variables that can actually be input to the 4WS-4WD vehicle. The eight-dimensional control variables are u = δ i j , T i j ,   i f , l ,   j ( l , r ) , where δ i j is wheel angle, T i j is wheel torque. The lower decoupling controller is divided into a four-wheel angle decoupling controller and a four-wheel torque decoupling controller.

4.1. Four-Wheel Angle Decoupling Control Scheme

The front-wheel angle decoupling controller is based on Ackerman-steering-geometry, and the rear-wheel angle decoupling controller is based on state-feedback. According to Ackerman’s geometric relationship, it can be deduced that the angle relationship between the left and right wheels of the front axle should meet the following formula:
cot δ f r cot δ f l = 2 d r l r + l f ,
And δ is the comprehensive steering of the left wheel angle δ f l and right wheel angles δ f r of the front axle, so it meets the following formula:
δ = δ f l + δ f r 2 ,
The rear wheels of four-wheel steer vehicles also have independent steering ability. Considering the real-time angle control of the front wheel, the longitudinal speed, and the yaw rate of the vehicle, a rear wheel angle control scheme based on state feedback is designed as follows:
δ r = K 1 δ + K 2 x ˙ ψ ˙ ,
where K 1 and K 2 are proportional coefficients; K 1 is the constant proportional coefficient, K 1 = k f x ˙ k r ; K 2 is the proportional coefficient function whose independent variable is the state quantity, K 2 = l f k f l r k r m x ˙ x ˙ k r ; m is the vehicle plane, K f is the lateral stiffness of the front wheel, K r is the lateral stiffness of the rear wheel.
Meanwhile, based on the Ackerman steering geometry, it can be deduced that the angle relationship between the left and right wheels of the rear axle meets the following formula:
cot δ r r cot δ r l = 2 d f l r + l f ,
Based on the above formula, the four-wheel angles of a vehicle can be uniquely determined under any working condition and state. A four-wheel angle decoupling control scheme is shown in Figure 7.

4.2. Four-Wheel Torque Decoupling Control Scheme

Four-wheel steering four-wheel drive vehicles have four independent drive motors, which can control the driving torque of one wheel, respectively. By controlling the driving or braking torque of the four wheels, the overall acceleration and braking control of the vehicle can be realized. Based on the characteristics of 4WS-4WD vehicles, a multi-objective four-wheel torque decoupling controller is designed. Considering the various objectives of vehicle stability, safety, and tracking accuracy, a unified objective function is established to realize the four-wheel torque decoupling controller.

4.2.1. Four-Wheel Torque Control Variables Variation

The variation of four-wheel torque control variables is added to the unified objective function to limit the change of four-wheel torque so vehicles can track their trajectory through minimum control variable adjustment.
The four-wheel torque is as follows:
T = τ 1 T f l + τ 2 T f r + τ 3 T r l + τ 4 T r r ,
where τ i is the weight of four-wheel torque; T i j i ( f , r ) , j ( l , r ) is the wheel torque. The objective function is designed and sorted into quadratic form as follows:
J 1 = T f l T f r T r l T r r τ 1 τ 2 τ 3 τ 4 T f l T f r T r l T r r = u T H 1 u = H 1 u 2 2 ,

4.2.2. Upper Control Variable Difference

The lower four-wheel torque is decoupled from the upper control variables, so the difference between them should be added to the unified objective function. The relationship between the lower four-wheel torque and the upper control variables is as follows:
a x = H 2 u = cos δ f m r w cos δ f m r w cos δ n l m r w cos δ r m r w T f T f T r T m ,
The objective function is designed and sorted into quadratic form as follows:

4.2.3. Tire Adhesion Limit

The tire forces generated in tire footprint areas have an upper limit, which is called the tire adhesion limit. The limit resultant forces of a tire under a combined working condition can be obtained by solving the limit of longitudinal and lateral forces in the linear region, respectively, and synthesizing through the “magic formula” model. By extending a series of joint working conditions, the limit resultant tire forces can be expressed by a function family, which is called the “friction circle,” which is shown in Figure 8.
The function of the “friction circle,” which tire longitudinal and lateral forces need to satisfy, is as follows:
( F x i j F x max ) 2 + ( F y i j F y max ) 2 1 , ( i ( f , r ) , j ( l , r ) ) ,
Ignoring the influence of lateral forces and taking the limit of the longitudinal force of the tire as the main control object, the objective function is established as follows:
J 3 = i , j F x i j 2 λ F z i j 2 = F x f l 2 λ F z f l 2 + F x f r 2 λ F z f r 2 + F x r l 2 λ F z r l 2 + F x r r 2 λ F z r r 2 = T f l   T f r   T r l   T r r 1 λ r w F z f l 1 λ r w F z f r 1 λ r w F z r l 1 λ r w F z r r T f l T f r T r l T r r = u T H 3 u = H 3 u 2 2
Based on the above-established objective functions J 1   J 2   J 3 , the overall objective function is formed, and the optimization problem is as follows:
m i n J = ω 1 J 1 + ω 2 J 2 + ω 3 J 3 = ω 1 H 1 u 2 2 + ω 2 a x H 2 u 2 2 + ω 3 H 3 u 2 2 ,
  s . t   T min   < T i j < T max   ,
The above optimization problem is a linear quadratic programming problem, which can be solved as the QP (quadratic programming) problem to obtain the lower four-wheel torque control variables.

5. Simulation and Analysis

In order to verify the control effect of the hierarchical trajectory tracking controller, a joint Simulink-Carsim simulation experiment is designed in this section to simulate and analyze the trajectory tracking of the vehicle. Among them, Simulink is the simulation experiment platform, the hierarchical trajectory tracking controller is implemented by Matlab-Function Writing, and the vehicle model of Carsim is called the simulation model.
The simulation experiment platform uses the Driving Scenario Designer in the Matlab toolbox to construct the reference trajectory of the simulated vehicle and imports it into the Simulink simulation platform as the desired output variables η r e f . The C-Class vehicle model of Carsim is selected as the simulation model and connected to Simulink in the form of an S-Function. The NMPC algorithm requires setting specific values for parameters. The parameter settings of NMPC for the hierarchical controller designed in this paper can be seen in Table A1 of Appendix A.
The control variables of the hierarchical trajectory tracking controller can be inputted into Carsim software(Carsim.2020.0) through the Simulink platform. After the control variables are applied to the vehicle model, the Carsim software outputs the driving state of the vehicle to the Simulink platform. The state is transmitted to the hierarchical trajectory tracking controller to complete a cycle of trajectory tracking and feedback correction.

5.1. Simulation of High-Speed Serpentine Working Conditions

Figure 9 shows the reference trajectory of the vehicle traveling the serpentine trajectory. The initial speed of the vehicle is 70 km/h and is maintained.
The simulation results are shown in Figure 10, Figure 11, Figure 12, Figure 13 and Figure 14. The processed reference trajectory, the simulated trajectory tracking trajectory of the classical MPC model, and the trajectory tracking trajectory of the model in this paper are shown in Figure 10. Figure 10 indicates the trajectory tracking effect of the hierarchical trajectory tracking controller, which shows that the control effect of the hierarchical trajectory tracking controller is good under the high-speed serpentine condition and that the actual trajectory effectively tracks on the desired trajectory. MPC simulation reveals diminished performance at bends. However, our hierarchical trajectory tracking controller efficiently follows the required course at bends, maintaining the lateral distance error within narrow limits when compared with traditional MPC.
As part of the vehicle motion modeling improvement, especially for the 4WS4WD, the angles and torques of its four wheels need to be studied. Figure 11 and Figure 12 display the change curves for the control variables of four-wheel tire angle and four-wheel torque. Four-wheel drive torque at curved roads with large curvature decreases to improve the stability and trajectory tracking accuracy of the vehicle in curved sections and increases in straight sections to compensate for the time difference between the curvature The four-wheel drive torque is reduced at curved sections to improve the stability and trajectory tracking accuracy of the vehicle in curved sections; it is increased at straight sections to compensate for the time difference between the deceleration at curved sections and the trajectory sequence. Among the four wheel angles, the front wheel angle plays the role of steering, so the control quantity value is small and the response is fast. In four-wheel cornering, the front wheel cornering plays the role of steering, so the control volume value is small and quick response; the rear wheel cornering plays the role of stabilization and feedback to compensate for the vehicle’s traverse angular velocity, so in the corners where the traverse angular velocity is large, the rear wheel cornering plays the role of stability. The rear wheel angle is also larger at the corners of the road.
Figure 13, Figure 14 and Figure 15 show the changes in the motion state of the vehicle. The actual speed Y ˙ and X ˙ of the hierarchical trajectory tracking controller in the ground reference system can track the desired speed well, and the initial speed fluctuation can be eliminated quickly, which indicates that the speed control of the controller is robust; the yaw angle ψ of the controller can also track the desired yaw angle ψ r e f accurately. The speed tracking of the controller is more accurate, and there is no obvious lag and fluctuation in the yaw angle tracking and speed tracking. X ˙ fluctuates slightly at the turn, and the speed change trend is slightly larger than the desired speed, i.e., there is a slight oversteer phenomenon, but it can be compensated and re-tracked on the desired trajectory relatively quickly, which also reflects the overall controller’s better robustness.

5.2. Simulation of Double-Shifted Line Working Condition

Simulation conditions are shown in Figure 16. The sample curve is used to draw a double-shifted line vehicle driving trajectory; the initial speed of the vehicle is 60 km/h, and the speed is maintained while traveling.
The simulation results are shown in Figure 17, Figure 18, Figure 19, Figure 20 and Figure 21. Figure 17 indicates the trajectory tracking result of the hierarchical trajectory tracking controller, and it can be seen that the control result of the controller is significantly efficient under the double shift line condition, and the lateral position accuracy and yaw angle accuracy of the controller at the bend are good, and the lateral error is controlled within a very small range. The trajectory of the controlled vehicle completely tracks on the desired trajectory and completes the driving maneuver for the double shift line condition with negligible tracking error. This is partly due to the reduced speed of the vehicle; on the other hand, compared with the serpentine condition, the controlled vehicle is in the double-shifted line condition, which has a small turning arc. On the other hand, it shows that there is little room for improvement in this paper compared to the control effect of the classical MPC in scenarios similar to the double shift line condition. As can be seen in the locally enlarged view of Figure 17b, the improvement of NMPC with respect to MPC is not significant, and in terms of the global trajectory, there is essentially an overlap.
As seen in Figure 18 and Figure 19, the control variables of the controller have a substantial change in the four-wheel tire angle to complete the lane change motion of the vehicle. The lower four-wheel torque distribution algorithm assigns that the four-wheel drive motors are larger in the vehicle start-up phase, the drive torque decreases when the vehicle is steering in a double-shift line to complete the steering maneuver, and the driving torque is kept low in the final straight line section to ensure smooth driving of the vehicle. The four-wheel turning angle of the vehicle Between the front and rear axles, the left and right wheels of the front and rear axles are allocated based on Ackermann’s formula, and the values of the control quantities are relatively close to each other, and the front axle turning angle changes faster. The front axle angle changes faster in order to respond quickly to the lane-changing action; the rear axle angle is based on state quantity feedback, and the change is smoother to improve the stability of the vehicle.
As seen in Figure 20 and Figure 21, the controller has an accurate tracking effect at the bend during the double shift lane movement, and the errors of both speed and yaw angle are significantly small.
In general, this chapter builds a Matlab/Simulink/Carsim joint simulation platform in order to verify the control effect of the nonlinear trajectory tracking controller based on hierarchical control. Among the trajectory tracking objects are those generated by the desired trajectory generator with Driving Scenario Designer, which corresponds to the reference trajectory generated by the trajectory planning for unmanned vehicles. The nonlinear trajectory tracking control algorithm based on hierarchical control is verified by constructing the simulation tests of the double-shift line condition and the serpentine condition, and the simulation results show that the algorithm can effectively track the desired trajectory with smaller path tracking errors and higher speed tracking accuracy. Under the working conditions of higher speed and excessive turning, the control effect is greatly improved compared with that of the classical MPC. In straight-line acceleration or turning under smaller working conditions, because the turning nonlinear characteristics are not abrupt, the improvement space is smaller, but it can also meet the vehicle trajectory tracking requirements.

6. Conclusions

In this paper, a hierarchical trajectory tracking controller for 4WS-4WD autonomous driving is designed with the following main features.
A three-dimensional attitude change vehicle model is developed, which improves the accuracy of the vehicle model and the ability to capture the nonlinear characteristics of the vehicle by taking into account the effects of attitude change on the longitudinal and lateral control of autonomous driving in the vehicle model. The improved’magic formula’ tire model modifies the time-varying parameters based on the vehicle attitude change geometry and load transfer effects and captures the non-linear characteristics of the tire longitudinal and lateral force outputs. The improvements focus on considering the effects of attitude changes on the longitudinal and lateral control of autonomous driving in the vehicle model.
A two-part hierarchical trajectory tracking controller was designed. The upper trajectory tracking controller is constructed based on the vehicle model, and the lower decoupling controller decouples the upper control variables into eight-dimensional control variables, i.e., four-wheel torque and four-wheel angle.
The Control Strategy based on the NMPC algorithm and 4WS-4WD vehicle characteristics is optimized.
A joint simulation platform based on Carsim and Simulink was established, and simulation experiments were conducted. The results show that, based on the improved vehicle model, the hierarchical trajectory tracking Control Strategy can accurately complete the longitudinal and transverse trajectory tracking control of the vehicle, effectively track the high-speed trajectory under a variety of working conditions, and maintain the tracking accuracy and robustness.

Author Contributions

Conceptualization, J.Y. and X.X.; methodology, Q.L.; software, X.X. and K.W.; validation, X.X. and K.W.; formal analysis, X.X.; investigation, X.X.; resources, J.Y.; data curation, Q.L.; writing—original draft preparation, X.X.; writing—review and editing, X.X. and J.Y.; visualization, X.X. and K.W.; supervision, J.Y.; project administration, J.Y.; funding acquisition, J.Y. All authors have read and agreed to the published version of the manuscript.

Funding

This research was supported by the Graduate Research Innovation Program Project of Jiangsu Province, China (KYCX22_1059).

Data Availability Statement

The data that supports the findings of this study is available from the corresponding author upon reasonable request.

Acknowledgments

The authors would like to thank the anonymous reviewers for their valuable suggestions.

Conflicts of Interest

On behalf of all authors, the corresponding author states that there are no conflicts of interest.

Appendix A

Table A1. Parameters and description of the training data files.
Table A1. Parameters and description of the training data files.
Parameter NameParameterNumeric
Sampling Period T s 0.01
Prediction Time Domain H p 10
Control Time Domain H c 4
Weighting Matrix Q [1,1,0.1,0.2,1,1,0,1]
Weight Matrix R [0.6,0.6]
Weight matrix P [0.1,0.1,0,0,0.1,0.1,0,0]
Weight Coefficients ρ 1000
Weighting Matrix H 1 [0.3,0.3,0.8,0.8]
Weight Coefficients ω 1 ,   ω 2 ,   ω 3 [0.3 1 0.6]

References

  1. Silva, D.S.; Csiszár, C.; Földes, D. Autonomous vehicles and urban space management. Sci. J. Silesian Univ. Technol. Ser. Transp. 2021, 110, 169–181. [Google Scholar]
  2. Dudziak, A.; Stoma, M.; Kuranc, A.; Caban, J. Assessment of Social Acceptance for Autonomous Vehicles in Southeastern Poland. Energies 2021, 14, 5778. [Google Scholar] [CrossRef]
  3. Caban, J.; Nieoczym, A.; Dudziak, A.; Krajka, T.; Stopková, M. The Planning Process of Transport Tasks for Autonomous Vans—Case Study. Appl. Sci. 2022, 12, 2993. [Google Scholar] [CrossRef]
  4. Bartuska, L.; Labudzki, R. Research of basic issues of autonomous mobility. Transp. Res. Procedia 2020, 44, 356–360. [Google Scholar] [CrossRef]
  5. Farkaš, P.; Szőke, L.; Aradi, S. Defining metrics for scenario-based evaluation of autonomous vehicle models. In Proceedings of the 2022 IEEE 1st International Conference on Cognitive Mobility (CogMob), Budapest, Hungary, 12–13 October 2022; pp. 155–160. [Google Scholar]
  6. Kosobudzki, M.; Zajac, P.; Gardyński, L. A Model-Based Approach for Setting the Initial Angle of the Drive Axles in a 4 × 4 High Mobility Wheeled Vehicle. Energies 2023, 16, 1938. [Google Scholar] [CrossRef]
  7. Nieoczym, A.; Caban, J.; Dudziak, A.; Stoma, M. Autonomous vans—The planning process of transport tasks. Open Eng. 2020, 10, 18–25. [Google Scholar] [CrossRef]
  8. Czech, P.; Turoń, K.; Barcik, J. Autonomous Vehicles: Basic Issues. Sci. J. Silesian Univ. Technol. Ser. Transp. 2018, 100, 15–22. [Google Scholar] [CrossRef]
  9. Chen, Y.; Yu, F. A Novel Simulation-Based Optimization Method for Autonomous Vehicle Path Tracking with Urban Driving Application. Mathematics 2023, 11, 4762. [Google Scholar] [CrossRef]
  10. Weilin, L.; Bo, C. Disturbance suppression and NN compensation based trajectory tracking of underactuated AUV. Ocean Eng. 2023, 288, 116172. [Google Scholar]
  11. Han, Y.; Ma, X.; Wang, B.; Zhang, H.; Zhang, Q.; Chen, G. A Strategy for Integrated Multi-Demands High-Performance Motion Planning Based on Nonlinear MPC. Appl. Sci. 2023, 13, 12443. [Google Scholar] [CrossRef]
  12. Wei, L.; Xiang, G.; Ma, C.; Jiang, X.; Dian, S. Trajectory Tracking Control of Transformer Inspection Robot Using Distributed Model Predictive Control. Sensors 2023, 23, 9238. [Google Scholar] [CrossRef]
  13. Si, Y.; Zhang, L. Research on Path Planning and Trajectory Tracking of Autonomous Vehicle. Autom. Mach. Learn. 2023, 4, 47–54. [Google Scholar]
  14. Hui, S.; Dayi, Q.; Haibing, G.; Kekun, Z.; Tao, W. Lane-Changing Trajectory Tracking and Simulation of Autonomous Vehicles Based on Model Predictive Control. Sustainability 2022, 14, 13272. [Google Scholar]
  15. Stano, P.; Montanaro, U.; Tavernini, D.; Tufo, M.; Fiengo, G.; Novella, L.; Sorniotti, A. Model predictive path tracking control for automated road vehicles: A review. Annu. Rev. Control 2023, 55, 194–236. [Google Scholar] [CrossRef]
  16. Manav, K.; Sharifuddin, M. Recent developments on target tracking problems: A review. Ocean Eng. 2021, 236, 109558. [Google Scholar]
  17. Shilp, D.; Saber, F.; Umberto, M.; Mehrdad, D.; Alan, S.; Francis, M.; Alexandros, M. Trajectory planning and tracking for autonomous overtaking: State-of-the-art and future prospects. Annu. Rev. Control 2017, 45, 76–86. [Google Scholar]
  18. Zhou, L.; Wang, G.; Sun, K.; Li, X. Trajectory Tracking Study of Track Vehicles Based on Model Predictive Control. Stroj. Vestn. J. Mech. Eng. 2019, 65, 329–342. [Google Scholar] [CrossRef]
  19. Wang, S.; Guo, J.; Mao, Y.; Wang, H.; Fan, J. Research on the Model Predictive Trajectory Tracking Control of Unmanned Ground Tracked Vehicles. Drones 2023, 7, 496. [Google Scholar] [CrossRef]
  20. Wang, J.; Chu, L.; Zhang, Y.; Mao, Y.; Guo, C. Intelligent Vehicle Decision-Making and Trajectory Planning Method Based on Deep Reinforcement Learning in the Frenet Space. Sensors 2023, 23, 9819. [Google Scholar] [CrossRef]
  21. Peng, H.; Xinbo, C. Towards Autonomous Driving: Review and Perspectives on Configuration and Control of Four-Wheel Independent Drive/Steering Electric Vehicles. Actuators 2021, 10, 184. [Google Scholar]
  22. Chowdhri, N.; Ferranti, L.; Iribarren, F.S.; Shyrokau, B. Integrated nonlinear model predictive control for automated driving. Control Eng. Pract. 2021, 106, 104654. [Google Scholar] [CrossRef]
  23. Ritschel, R.; Schrödel, F.; Hädrich, J.; Jäkel, J. Nonlinear Model Predictive Path-Following Control for Highly Automated Driving. IFAC Pap. 2019, 52, 350–355. [Google Scholar] [CrossRef]
  24. Chen, T.; Chen, L.; Xu, X.; Cai, Y.; Jiang, H.; Sun, X. Passive fault-tolerant path following control of autonomous distributed drive electric vehicle considering steering system fault. Mech. Syst. Signal Process. 2019, 123, 298–315. [Google Scholar] [CrossRef]
  25. Várszegi, B.; Takács, D.; Orosz, G. On the nonlinear dynamics of automated vehicles—A nonholonomic approach. Eur. J. Mech. A Solids 2018, 74, 371–380. [Google Scholar] [CrossRef]
  26. Van, N.D.; Sualeh, M.; Kim, D.; Kim, G. A Hierarchical Control System for Autonomous Driving towards Urban Challenges. Appl. Sci. 2020, 10, 3543. [Google Scholar] [CrossRef]
  27. Logan, S.; Lucian, N.; Eric, K. An efficient method for maximal area coverage in the context of a hierarchical controller for multiple unmanned aerial vehicles. Eur. J. Control 2023, 74, 100850. [Google Scholar]
  28. Nie, Y.; Liu, Y.; Cheng, S.; Mei, M.; Xiao, L. Unified Brake Service by a Hierarchical Controller for Active Deceleration Control in an Electric and Automated Vehicle. Energies 2017, 10, 2052. [Google Scholar] [CrossRef]
  29. Rafael, G.S.J.; Ramón, S.O.; Salvador, T.M.; Celso, M.S.; Manuel, H.G.V.; Mayra, A.C.; Gilberto, S.O.; Hind, T. Tracking Control for Mobile Robots Considering the Dynamics of All Their Subsystems: Experimental Implementation. Complexity 2017, 2017, 5318504. [Google Scholar]
  30. Qu, T.; Zhao, J.W.; Gao, H.H.; Cai, K.Y.; Chen, H.; Xu, F. Multi-mode switching-based model predictive control approach for longitudinal autonomous driving with acceleration estimation. IET Intell. Transp. Syst. 2020, 14, 2102–2112. [Google Scholar] [CrossRef]
  31. Grüne, L.; Pannek, J. (Eds.) Nonlinear Model Predictive Control. In Nonlinear Model Predictive Control: Theory and Algorithms; Springer: London, UK, 2011; pp. 43–66. [Google Scholar]
  32. Minh, V.T.; Reza, M.; Jindrich, C.; Jaroslav, H. Model Predictive Control for Autonomous Driving Vehicles. Electronics 2021, 10, 2593. [Google Scholar]
  33. Hannes, W.; Frieder, G.; Oliver, S. Near Time Optimal Trajectory Generation for Over-Actuated Vehicles using Nonlinear Model Predictive Controller. IFAC Pap. 2020, 53, 15626–15631. [Google Scholar]
  34. Wang, J.; Liu, Z.; Chen, H.; Zhang, Y.; Zhang, D.; Peng, C. Trajectory Tracking Control of a Skid-Steer Mobile Robot Based on Nonlinear Model Predictive Control with a Hydraulic Motor Velocity Mapping. Appl. Sci. 2024, 14, 122. [Google Scholar] [CrossRef]
  35. Wu, Y.L.; Li, S.M.; Zhang, Q.J.; Sun-Woo, K.; Yan, L.Y. Route Planning and Tracking Control of an Intelligent Automatic Unmanned Transportation System Based on Dynamic Nonlinear Model Predictive Control. IEEE Trans. Intell. Transp. Syst. 2022, 23, 16576–16589. [Google Scholar] [CrossRef]
  36. Bejarano, G.; Manzano, J.M.; Salvador, J.R.; Limon, D. Nonlinear model predictive control-based guidance law for path following of unmanned surface vehicles. Ocean Eng. 2022, 258, 111764. [Google Scholar] [CrossRef]
  37. Zou, K.; Cai, Y.F.; Chen, L.; Sun, X.Q. Event-triggered nonlinear model predictive control for trajectory tracking of unmanned vehicles. Proc. Inst. Mech. Eng. Part D J. Automob. Eng. 2023, 237, 2474–2483. [Google Scholar] [CrossRef]
  38. Dawood, M.; Abdelaziz, M.; Ghoneima, M.; Hammad, S. A nonlinear model predictive controller for autonomous driving. In Proceedings of the 2020 International Conference on Innovative Trends in Communication and Computer Engineering (ITCE), Aswan, Egypt, 8–9 February 2020; pp. 151–157. [Google Scholar]
  39. Qin, S.J.; Badgwell, T.A. An Overview of Nonlinear Model Predictive Control Applications; Allgöwer, F., Zheng, A., Eds.; Birkhäuser: Basel, Switzerland, 2000; pp. 369–392. [Google Scholar]
  40. Rawlings, J.B.; Meadows, E.S.; Muske, K.R. Nonlinear Model Predictive Control: A Tutorial and Survey. IFAC Proc. Vol. 1994, 27, 185–197. [Google Scholar] [CrossRef]
  41. Pacejka, H.B.; Bakker, E. The Magic Formula Tyre Model. Veh. Syst. Dyn. 2007, 21, 1–18. [Google Scholar] [CrossRef]
  42. Tian, M.; Gabor, S.; Denes, T.; Nan, C. Vehicle Shimmy Modeling with Pacejka’s Magic Formula and the Delayed Tire Model. J. Comput. Nonlinear Dyn. 2020, 15, 031005. [Google Scholar]
  43. Bardawil, C.; Daher, N.; Shammas, E. Applying the Similarity Method on Pacejka’s Magic Formula to Estimate the Maximum Longitudinal Tire-Road Friction Coefficient. In Proceedings of the American Control Conference 2020, Denver, CO, USA, 1–3 July 2020; pp. 218–223. [Google Scholar]
  44. Shi, P.; Zhao, Q.; Zhang, R.; Ye, L. The Simulation of Tire Dynamic Performance Based on “Magic Formula”. In Proceedings of the 2nd International Conference on Automation, Mechanical Control and Computational Engineering (AMCCE 2017), Beijing, China, 25–26 March 2017. [Google Scholar]
  45. Besselink, I.J.M.; Schmeitz, A.J.C.; Pacejka, H.B. An improved Magic Formula/Swift tyre model that can handle inflation pressure changes. Veh. Syst. Dyn. 2010, 48, 337–352. [Google Scholar] [CrossRef]
  46. Lu, C.Y.; Shih, M.C. Application of the Pacejka Magic Formula Tyre Model on a Study of a Hydraulic Anti-Lock Braking System for a Light Motorcycle. Veh. Syst. Dyn. 2010, 41, 431–448. [Google Scholar] [CrossRef]
Figure 1. Nonlinear vehicle model and control structure block diagram.
Figure 1. Nonlinear vehicle model and control structure block diagram.
Machines 12 00084 g001
Figure 2. Kinematic analysis of vehicle body.
Figure 2. Kinematic analysis of vehicle body.
Machines 12 00084 g002
Figure 3. Chassis dynamics model.
Figure 3. Chassis dynamics model.
Machines 12 00084 g003
Figure 4. Roll steering curve.
Figure 4. Roll steering curve.
Machines 12 00084 g004
Figure 5. Camber change curve.
Figure 5. Camber change curve.
Machines 12 00084 g005
Figure 6. Rear view of car body roll.
Figure 6. Rear view of car body roll.
Machines 12 00084 g006
Figure 7. Four-wheel angle decoupling control scheme.
Figure 7. Four-wheel angle decoupling control scheme.
Machines 12 00084 g007
Figure 8. Curve of “friction circle” function family.
Figure 8. Curve of “friction circle” function family.
Machines 12 00084 g008
Figure 9. High-speed serpentine trajectory.
Figure 9. High-speed serpentine trajectory.
Machines 12 00084 g009
Figure 10. Trajectory tracking results of high-speed serpentine.
Figure 10. Trajectory tracking results of high-speed serpentine.
Machines 12 00084 g010
Figure 11. Control variable four-wheel tire angle.
Figure 11. Control variable four-wheel tire angle.
Machines 12 00084 g011
Figure 12. Control variable four-wheel torque.
Figure 12. Control variable four-wheel torque.
Machines 12 00084 g012
Figure 13. Vehicle state variable X ˙ .
Figure 13. Vehicle state variable X ˙ .
Machines 12 00084 g013
Figure 14. Vehicle state variable Y ˙ .
Figure 14. Vehicle state variable Y ˙ .
Machines 12 00084 g014
Figure 15. Tracking result of yaw angle ψ .
Figure 15. Tracking result of yaw angle ψ .
Machines 12 00084 g015
Figure 16. Double shift line work trajectory.
Figure 16. Double shift line work trajectory.
Machines 12 00084 g016
Figure 17. Trajectory tracking results of double-shift line working conditions.
Figure 17. Trajectory tracking results of double-shift line working conditions.
Machines 12 00084 g017
Figure 18. Control variable four-wheel tire angle.
Figure 18. Control variable four-wheel tire angle.
Machines 12 00084 g018
Figure 19. Control variable four-wheel torque.
Figure 19. Control variable four-wheel torque.
Machines 12 00084 g019
Figure 20. Vehicle state variable Y ˙ .
Figure 20. Vehicle state variable Y ˙ .
Machines 12 00084 g020
Figure 21. Tracking result of yaw angle ψ .
Figure 21. Tracking result of yaw angle ψ .
Machines 12 00084 g021
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Xu, X.; Wang, K.; Li, Q.; Yang, J. An Optimal Hierarchical Control Strategy for 4WS-4WD Vehicles Using Nonlinear Model Predictive Control. Machines 2024, 12, 84. https://doi.org/10.3390/machines12010084

AMA Style

Xu X, Wang K, Li Q, Yang J. An Optimal Hierarchical Control Strategy for 4WS-4WD Vehicles Using Nonlinear Model Predictive Control. Machines. 2024; 12(1):84. https://doi.org/10.3390/machines12010084

Chicago/Turabian Style

Xu, Xuan, Kang Wang, Qiongqiong Li, and Jiafu Yang. 2024. "An Optimal Hierarchical Control Strategy for 4WS-4WD Vehicles Using Nonlinear Model Predictive Control" Machines 12, no. 1: 84. https://doi.org/10.3390/machines12010084

APA Style

Xu, X., Wang, K., Li, Q., & Yang, J. (2024). An Optimal Hierarchical Control Strategy for 4WS-4WD Vehicles Using Nonlinear Model Predictive Control. Machines, 12(1), 84. https://doi.org/10.3390/machines12010084

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop