1. Introduction
The rapid development of control-by-wire technology provides a strong technical guarantee for the realization of electronic, intelligent, and electrified vehicles, and makes x-by-wire vehicles a current research hotspot [
1,
2]. The x-by-wire electric vehicle is a highly redundant system, whose steer angle and driving torque of the four wheels can be precisely controlled; thus, compared with traditional vehicles, it can theoretically achieve better control effects [
3]. The x-by-wire electric vehicle has a variety of driving modes that can be switched, with better trajectory tracking performance and a larger turning curvature limit, which can easily realize in situ steering, differential steering, oblique driving, and other working conditions, and can meet the requirements of higher precision trajectory tracking and critical working conditions [
4,
5,
6]. The high degree of controllability and flexibility and high execution ability of x-by-wire electric vehicles provide a platform for the research into driverless vehicles, which has great development potential.
The problem of trajectory tracking control is one of the three key technologies related to intelligent driving vehicles [
7]. As far as the trajectory tracking control of traditional front-wheel steered vehicles is concerned, the relevant theories and research methods are relatively mature, the relevant simulation experiments have been quite abundant, and many control strategies have been verified by real vehicles in specific environments. The control strategies include the following: pure tracking control, traditional proportional-integral-derivative (PID) control, sliding mode control, dynamic feedback control, fuzzy control, and model predictive control (MPC) [
8,
9,
10]. Al-Mayyahi et al. [
11] proposed a PID-based fractional-order (FOPID) controller for the trajectory tracking problem, using two FOPID controllers to calculate the control input torque of the vehicle and using a particle swarm optimization algorithm to control the parameters in the FOPID controller. Kapania et al. [
12] added the vehicle’s side-slip characteristics to the feedforward controller to improve the dynamic characteristics of the tire within the friction limit while keeping the vehicle within the handling limit, minimizing lateral tracking deviation. Wu [
13] proposed a back stepping sliding mode controller to reduce the chattering problem of the sliding mode control. Using the fuzzy control algorithm for the overdrive system, the simulation experiment proves that the back stepping sliding mode control method has higher control precision and a smoother control process than the traditional sliding mode control. Mallem et al. [
14] proposed a fast terminal sliding mode dynamic inverse control method based on PID, which makes the position and direction of the movement around the desired trajectory asymptotically stable, and used a terminal sliding mode control method to ensure finite time convergence of the trajectory tracking error to zero. Rokonuzzaman et al. [
15] proposed to use the large amount of data provided by the vehicle to design MPC with a neural-network-based vehicle learning dynamic model to improve the tracking performance; the results under various road conditions show that the proposed method outperforms the MPC of the traditional vehicle model. Funke et al. [
16] proposed a new control structure based on model predictive control and feedback control that integrates path tracking, vehicle stabilization, and collision avoidance, and coordinated these conflicting goals through the priority of collision avoidance. Experimental data show that the controller drives safely within the operational limits of the vehicle.
The x-by-wire electric vehicle has the advantages of independent four-wheel drive/brake and steering control, so it has been widely studied by universities and enterprises. However, the research on trajectory tracking control mainly focuses on traditional vehicles and there are few studies on trajectory tracking control algorithms for x-by-wire electric vehicles.
Based on proportional-integral (PI) control and adaptive model predictive control, Ahn et al. [
17] designed an integrated autonomous driving system independent of each wheel for vehicles equipped with four-wheel independent motors to improve vehicle stability and path tracking performance. Li et al. [
7] proposed a sliding mode drive controller based on PID control and sliding mode control for 4WIS/4WID vehicles. Hiraoka et al. [
18] proposed an automatic controller for four-wheel steering vehicle path tracking based on sliding mode control theory. Compared with active front-wheel steering, the four-wheel steering controller has a more stable and accurate trajectory tracking capability. Zheng et al. [
19] designed a trajectory tracking strategy based on a hierarchical control method. The path tracking layer adopts a nonlinear state feedback controller, and a neural network proportional-integral-derivative controller is designed to track the desired path and obtain the desired yaw rate. Chen et al. [
20] designed a new adaptive linear quadratic optimal regulator (LQR) as a coordinated controller for 4WIS/4WID electric vehicle stability control. According to different vehicle speeds and road conditions, the phase plane method is used to calculate the center of mass slip angle and stability margin.
On the other hand, the current research on the trajectory tracking control of x-by-wire electric vehicles rarely considers constraints such as tire adhesion. As each wheel of the x-by-wire vehicle can be independently controlled, a reasonable control algorithm and control strategy can achieve independent longitudinal and lateral control of each wheel, improving the accuracy of trajectory tracking and the driving stability of the vehicle.
This paper takes the x-by-wire electric vehicle as the research carrier and designs the trajectory tracking control strategy based on the hierarchical control architecture, which includes the trajectory tracking layer, the tire force distribution layer, and the actuator control layer. The main contribution of this paper is as follows:
Based on the hierarchical architecture, an x-by-wire electric vehicle trajectory tracking control strategy is established in which the controllers of each layer are modularly designed. The effectiveness of the algorithm is verified by simulation experiments.
In the tire force distribution layer, the regular octagon constraint is used to linearize the tire force constraint and the tire force distribution problem is transformed into a quadratic programming problem with constraints for solving, which improves the real-time performance of the algorithm.
The rest of this article is structured as follows.
Section 2 introduces a nonlinear x-by-wire chassis vehicle model.
Section 3 introduces the trajectory tracking controller based on a hierarchical architecture.
Section 4 introduces the simulation under the DLC test.
Section 5 presents the conclusion of the article.
3. Trajectory Tracking Controller Based on Hierarchical Architecture
The hierarchical control algorithm structure has the advantages of clear algorithm design and being convenient for subsequent algorithm updating. For the x-by-wire chassis vehicle, which is a research object with high integration and high controllable degrees of freedom, the method of controlling each subsystem separately cannot give full play to its own performance advantages. The control strategy of the hierarchical structure can realize the coordinated control of each controller of the vehicle with an x-by-wire chassis. As shown in
Figure 1, in the hierarchical trajectory tracking controller, it is divided into the trajectory tracking layer, tire force distribution layer, and actuator control layer. In the trajectory tracking layer, which is based on the MPC, the expected total force and moment are calculated by taking the longitudinal force
, lateral force
, and yaw moment
in the vehicle coordinate system as the control variables. The tire force distribution layer solves for the longitudinal force
and lateral force
in the vehicle coordinate system of each wheel. The actuator control layer obtains the tire steer angle
and driving torque
based on the inverse tire force model and controls the controlled vehicle to track the trajectory.
3.1. Trajectory Tracking Layer
3.1.1. Prediction Model
In this paper, the trajectory tracking layer is established based on the MPC algorithm and the state equation established based on Equation (1) is used as the prediction model as follows:
Equation (5) is rewritten as follows:
is the state matrix,
is the control matrix,
is the disturbance matrix, and
is the output matrix, respectively:
Discretization of Equation (5):
The discrete sampling time is defined as
, then the discretized coefficient matrix is as follows:
In order to reduce the vibration of the control amount, the control amount is rewritten as an incremental type:
The state equation is as follows:
The augmented state is as follows:
Then, the equation of state can be rewritten as follows:
After applying the control variables, the model prediction process is as follows:
Definition:
where
is the output vector,
is the state vector, and
is the disturbance vector.
The state matrix
, control matrix
, and disturbance matrix
are, in respective order, as follows:
3.1.2. Cost Function
In order to ensure the safe and accurate driving of the x-by-wire electric vehicle according to the predetermined trajectory, the cost function is as follows:
The error
is defined as follows:
Equation (18) be rewritten as follows:
The symmetric matrix is as follows:
Substituting Equation (21) into Equation (18), the cost function is as follows:
3.1.3. Security Constraints
When the vehicle is driving, it is necessary to ensure the stability and safety of the vehicle. Vehicle stability characteristics can be captured by nonlinear tire state models. Bobier [
22] uses the center of mass slip angle-yaw rate to handle the vehicle’s stability constraint envelope.
When the additional yaw moment generated by the longitudinal force is not considered, in the steady state, the relationship between the yaw rate of the vehicle and the lateral force is as follows:
As the road friction coefficient limit is
, the limit of the yaw rate at which the vehicle is stable is as follows:
The safe driving environment of the vehicle is the safe envelope area considering road boundaries, obstacles, and traffic vehicles. The obstacle avoidance and stability control framework proposed by Erlien et al. [
23] uses the safe driving envelope to delineate a collision-free area for the vehicle to exercise and the environmental safety constraints are constrained by road boundaries and traffic vehicles. This paper is based on the road boundary of the tracked trajectory as a constraint, which can be expressed as follows:
. and represent the upper and lower boundaries of the road, respectively. is the boundary safety margin.
3.2. Tire Force Distribution Layer
As the four wheels of an x-by-wire electric vehicle can be independently controlled, the control variables obtained based on the trajectory tracking layer are the longitudinal force , lateral force , and yaw moment at the center of mass. Therefore, the resultant force and torque need to be distributed to each wheel. The tire force distribution layer adopts an optimized method to distribute the force/moment to each wheel under the condition of satisfying the tire force constraint.
3.2.1. Tire Force Constraints
During the driving of the vehicle, the resultant force generated by each tire must satisfy the constraints of the trajectory tracking layered force equation:
When distributing the tire force, in order to ensure the stability of the vehicle, it is necessary to consider the adhesion capacity of the wheel and tire. Assuming that the road friction coefficient is
, the maximum resultant force that the tire can generate is
, where
is the vertical load.
As shown in
Figure 2, the longitudinal force and lateral force of the tire must satisfy the friction circle constraint. When the wheel is in the extreme condition, the tire force will reach the limit of the friction circle and the wheel will slip, resulting in the loss of vehicle stability. The constraint of tire adhesion is nonlinear and the tire force problem can be defined as an optimization problem with quadratic constraints, but it is often time-consuming. In order to improve the real-time performance of the algorithm, the tire force constraint is simplified on the premise of ensuring the driving stability of the vehicle. Therefore, this paper adopts the circumscribed regular octagon of the friction circle to approximately describe the tire friction constraint and converts the quadratic constraint into a linear constraint.
As shown in
Figure 2,
is the radius of friction circle and
is the radius of the simplified octagon.
According to the geometric calculation, the radius of the regular octagon is 1.08 times the radius of the friction circle and the area of the octagon is about 5.5% larger than that of the friction circle. This linearization treatment has little effect on tire force and ensures the driving stability of an x-by-wire chassis vehicle. The regular octagon is replaced by the friction circle and the octagon linear inequality constraint of the tire friction circle is shown in Equation (28).
must be inside the regular octagon
and the constraints of the attached ellipse can be expressed as follows:
For the four tires of the vehicle, the matrix form is expressed as follows:
3.2.2. Objective Function
The tire adhesion margin is defined as follows [
24]:
The adhesion margin of the tire represents the ratio of the remaining utilization force of the tire to the maximum force provided by the tire. The value range is
and
represents the tire reaching the adhesion limit. Thus, the objective function is defined to maximize the attachment margin. The tire usage rate is defined as follows:
Based on Equation (31), the objective function is defined as the minimum sum of the tire usage rates of the four tires, which is as follows:
In this article, the main object of coordination control is the lateral and longitudinal tire forces, which are related to vertical force. However, the vertical forces are not the control object of the control strategy, so the vertical force is regarded as directly available through sensors or other means.
3.2.3. Tire Force Distribution Algorithm
From Equation (32), the tire force distribution problem is regarded as an optimization problem with constraints:
Based on the objective function in Equation (32) and the optimization variable in Equation (29), the optimization problem is a quadratic programming problem, which can be solved quickly.
3.3. Actuator Control Layer
X-by-wire electric vehicles follow a desired trajectory by having independent drive/brake and steering control of each wheel. The actuator control layer converts the longitudinal force and lateral force of each wheel under the vehicle coordinate system obtained by the tire force distribution layer into the tire coordinate system.
Figure 3 presents the tire force diagram.
The tire force relationship is as follows:
is the wheel steer angle,
is the tire slip angle, and
is the angle between the driving direction of the wheel and the longitudinal axis of the wheel coordinate system.
The tire side slip angle
is generally small. Equation (35) is approximated as follows:
The force in the tire coordinate system can be obtained as follows:
The lateral and longitudinal velocity of each wheel are as follows:
It can be obtained from Equation (37) that the angle between the motion direction of each wheel and the longitudinal direction of the body coordinate system is as follows:
The actuator control layer solves the relationship between tire slip angle and lateral force based on the arctangent model proposed by Sakai et al. [
25], the function of which could fit the magic tire formula. The tire side slip model can be expressed as follows:
and are factors and is the tire side slip stiffness.
The desired
is brought into Equation (39) and the tire slip angle
can be obtained, then the wheel angle is as follows:
The longitudinal moment of the wheel is as follows:
is the time constant and is the radius of rotation of the wheel.