1. Introduction
With the vigorous development of new-generation information technologies such as artificial intelligence, autonomous driving technology based on pure electric vehicles as carriers has become a new strategic direction in the global automotive industry layout. The key technologies of autonomous driving mainly include positioning and perception, decision-making and planning, control and execution, etc. Among these, planning a reasonable and ideal trajectory that meets the requirements of real driving scenarios has become a research difficulty in realizing full-scenario autonomous driving. With the continuous deepening of research on this technology, the trajectory planning technology for autonomous vehicles under simple constraints has gradually matured; however, its development still faces severe challenges. Particularly, trajectory planning in complex dynamic driving scenarios, which requires dynamic randomness and high real-time performance, has become a challenging problem under more complex constraints that urgently needs to be addressed in the trajectory planning of autonomous driving technology.
At present, research on this problem adopts various methods with different characteristics. Among them, curve fitting methods [
1,
2], artificial potential field methods [
3,
4,
5,
6,
7,
8], sampling-based methods [
9,
10], and methods based on deep learning and reinforcement learning [
11,
12,
13,
14] are widely used in current autonomous driving trajectory planning. However, these methods still suffer from limitations such as high computational complexity and proneness to deadlock. The B-spline curve method is a commonly used approach in curve fitting. Y. Zhang et al. [
1] proposed the use of B-spline curves to generate smooth trajectories that satisfy centripetal acceleration constraints, which is suitable for in-lane driving scenarios. B.S. Oldaç et al. [
2] attempted to solve the trajectory generation and tracking problem of intelligent vehicles by performing linear interpolation on discrete points generated by B-spline curves. However, the B-spline curve method often has problems such as easy deformation of the overall curve caused by single-point adjustment. As a result, control points need to be recalculated frequently in dynamic scenarios, which affects the real-time performance of trajectory planning. The artificial potential field method guides the robot to avoid obstacles and move toward the target by setting target attractive forces and obstacle repulsive forces. Z. Zhang et al. [
3] proposed an algorithm integrating global and local path planning based on the artificial potential field method. By optimizing the gravitational and repulsive force functions acting on the vehicle, this algorithm overcomes the failure problem of the traditional artificial potential field method in specific scenarios. G. Du et al. [
6] first conducted systematic modeling and mathematical description of the planning and control problems of autonomous vehicles, and then used the global heuristic planning algorithm based on the artificial potential field method to generate real-time optimal motion sequences. H. Zhang et al. [
8] optimized the problems of unreachable target and low success rate in the artificial potential field method by improving the repulsion field function to solve the unreachable target issue and selecting a virtual target point to make the system escape the trap when it falls into one. Although such methods can effectively construct models, they generally have problems of low path search efficiency and an inability to ensure path optimality. Sampling-based methods construct paths by randomly generating samples in the environment. Z. Chen et al. [
9] adopted a longitudinal sampling strategy based on preset driving modes, which improved the probabilistic completeness of existing parameterized curve sampling technologies, thereby realizing fast and effective obstacle avoidance. G. Li et al. [
10] proposed an improved sampling-based hybrid A* algorithm. First, a hybrid potential field model that characterizes the vehicle’s workspace and integrates traffic rules and obstacle distribution was proposed as a heuristic function, and environmental topology prior information was introduced to generate a set of directional motion primitives, which further improved the feasibility of the planned path. Although such methods can find the optimal path, the speed of approaching the optimal solution is relatively slow.
In addition, learning-based methods have gradually attracted attention, especially the application of deep learning and reinforcement learning. Z. Yu et al. [
11] proposed a learning-based Frenet planning network, which samples and selects the most human-like terminal states through learning strategies to generate safe trajectories. Z. Bai et al. [
12] proposed an improved deep reinforcement learning path planning algorithm. First, the Automated Mobile Robot (AMR) path planning was modeled as a Markov Decision Process (MDP), and a Double Deep Q-Network (DDQN) was used to obtain the optimal adaptive solution. Finally, the B-spline curve theory was applied to realize path smoothness optimization. J. Nan et al. [
13] proposed a longitudinal car-following trajectory planning method based on offline sampling maximum entropy Deep Inverse Reinforcement Learning (DIRL). This method collects natural driving data and uses a deep neural network to replace the linear function of traditional inverse reinforcement learning, which greatly improves the fitting ability to human reward functions. R. Chai et al. [
14] specifically focused on the parking maneuver problem of autonomous ground vehicles. In the motion planning stage, a Recurrent Deep Neural Network (RDNN) was innovatively used to approximate the optimal parking trajectory, and the internal correlation between vehicle states was fully explored through the recurrent network structure. In terms of tracking control, a controller based on Adaptive Neural Networks (ALNN) was designed. By dynamically adjusting network parameters, the system stability and error convergence were theoretically guaranteed. Although these methods perform well in handling complex environments and nonlinear problems, they still face challenges such as long training time and large data demand.
In recent years, the Model Predictive Control (MPC) algorithm has garnered significant attention and been widely adopted due to its advantages of good control effect, strong robustness, and convenient handling of various constraints in controlled variables and manipulated variables of the process. Among relevant studies, D. J. Kim et al. [
15] proposed a lateral vehicle trajectory planning and control algorithm based on MPC for automatic vertical parking systems. In the research of Bassam Alrifaee [
16], vehicle collision avoidance control was studied based on the MPC method, and the effectiveness of this method was verified through simulations and experiments. Zhao et al. [
17] designed a two-layer controller for trajectory planning and tracking based on the MPC algorithm and a fuzzy adaptive PID trajectory tracking controller to improve the driving safety of intelligent vehicles. Q. Zeng et al. [
18] addressed the problems of insufficient emergency obstacle avoidance capability and vulnerability to noise interference in vehicle collision avoidance systems, and constructed a Cooperative Adaptive Cruise Control (CACC) model integrating multi-constraint MPC. Q. Dai et al. [
19] proposed a Model Predictive Decision-Making (MPDM) method integrating lane-changing time constraints based on the MPC method. I. Askari et al. [
20] transformed the MPC problem of motion planning into a Bayesian state estimation problem, and then developed a new type of implicit particle filtering/smoothing algorithm. This algorithm is implemented through multiple sets of Unscented Kalman Filters/Smoothers and has the characteristics of high sampling efficiency, fast calculation speed, and excellent estimation accuracy. D. Chu et al. [
21] proposed a trajectory planning and tracking framework, which obtains the target trajectory through the artificial potential field method and uses an MPC controller combined with PID feedback to achieve accurate tracking. Experimental and simulation results show that compared with traditional MPC, this framework has significant improvements in tracking accuracy and steering smoothness, especially under curve driving conditions, where its steady-state error can approach zero. G. Yu et al. [
22] proposed a bidirectional multi-vehicle collaborative collision avoidance system based on the MPC framework to solve the collision risk prevention and control problem in multi-vehicle head-on driving scenarios. H. Yang et al. [
23] proposed a dynamic obstacle avoidance strategy for autonomous vehicles based on MPC by establishing new collision constraints considering road width and vehicle geometric dimensions, ensuring a safe distance between the host vehicle and obstacle vehicles. J. Wang et al. [
24] proposed a new obstacle avoidance method based on event-triggered MPC. By setting the trajectory tracking error as the trigger condition, the frequent collaborative operation between the planning layer and the control layer was realized. Y. Wang et al. [
25] innovatively considered the motion prediction of other traffic participants and used MPC to optimize the trajectory according to the current state of the vehicle. Through the collaborative optimization strategy of differentiated prediction horizons and coordinate transformation, it not only simplified the integration process of constraints, but also made the planning results more intuitive. However, the aforementioned methods generally have problems such as excessively high computational complexity or insufficient adaptability when facing dynamic and complex working conditions. Therefore, in view of the characteristic that constraint conditions and planning objectives in trajectory planning often change with different scenarios, researching trajectory planning technologies for different scenarios under complex constraints based on control theory with predictive capabilities will effectively solve the key problem of trajectory planning in complex dynamic driving scenarios, thereby accelerating the application and industrialization of autonomous driving technology in engineering.
Based on the current research landscape, this paper conducts relevant research on the challenging issue of trajectory planning in complex dynamic scenarios using the MPC method and proposes a novel trajectory planning approach tailored for complex dynamic driving scenarios. The organization of this paper is as follows. In
Section 2, a vehicle kinematic model including the host vehicle and surrounding vehicles is established. In
Section 3, the implementation process of dynamic trajectory planning based on model prediction is deduced and analyzed in detail. In
Section 4, simulation analyses are carried out under different working conditions based on the built co-simulation platform to verify the effectiveness of the proposed method. Finally, the conclusion and future work are summarized in
Section 5.
2. Establishment of a Vehicle Kinematic Model
Autonomous driving needs to be realized through the control of the vehicle’s kinematic or dynamic system. Establishing a reasonable vehicle system model is not only a prerequisite for designing a model predictive controller, but also the foundation for achieving vehicle motion planning and control.
2.1. Vehicle Kinematic Modeling (Kinematic Model)
Kinematics examines the laws of object motion from a geometric standpoint, encompassing changes in spatial position, velocity, and other parameters over time. Applying kinematic models in vehicle path planning algorithms ensures that the planned paths are practically feasible and satisfy the kinematic geometric constraints during driving; meanwhile, kinematic models can also reflect vehicle motion characteristics with relatively high accuracy.
The vehicle steering motion model is shown in
Figure 1 and
Figure 2. In the inertial coordinate system XOY, (X
f, Y
f) and (X
r, Y
r) represent the coordinates of the centers of the vehicle’s front axle and rear axle, respectively. φ denotes the vehicle’s yaw angle (heading angle). The research object is assumed to be a front-wheel-steering vehicle, where δ
f is the front-wheel steering angle, v
f is the velocity at the center of the front axle, v
r is the velocity at the center of the rear axle, and l is the wheelbase. In the variables, the subscript “f” stands for “front”, and “r” stands for “rear”; the same notation applies hereinafter.
Since the research object is a front-wheel-steering vehicle, during the vehicle’s steering movement, the instantaneous center of rotation P lies on the extension line of the rear axle, where R represents the steering radius of the rear wheels. Let M be the center of the vehicle’s rear axle and N be the center of the front axle. It is assumed that the vehicle’s sideslip angle at the center of mass remains constant during steering, meaning the vehicle’s instantaneous steering radius is the same as the road’s curvature radius.
At the rear axle’s travel center (Xr, Yr), the velocity can be expressed as
Then, the kinematic constraint at the rear axle center M can be expressed as
By combining the two equations above, the following can be obtained:
According to the geometric relationship between the front wheels and rear wheels, the following can be obtained:
At the center M of the vehicle’s rear axle, the yaw rate can be expressed as
In the formula, ω represents the vehicle yaw rate; meanwhile, the steering radius
R and the front-wheel steering angle
δf can be derived from the yaw rate
ω and the vehicle’s rear-axle speed
vr:
By synthesizing the above equations, the kinematic model of a single vehicle can be obtained as follows:
This model can be further expressed in a more general form:
In this system, the state variables are selected as the longitudinal position, lateral position, and heading angle of the host vehicle in the inertial coordinate system. , The control variables are selected as the vehicle speed and the front-wheel steering angle of the vehicle. ; In the formula, is the state transition function of the system.
2.2. Kinematic Model of Surrounding Vehicles
Considering that there are surrounding vehicles during the vehicle’s driving process, and the motion state of each vehicle is also dynamically updated. The kinematic model for surrounding vehicles is established using the same method as described above:
In the formula, the subscript represents surrounding vehicles, and when takes values , they represent the preceding vehicle in the current lane, the preceding vehicle in the left lane, the following vehicle in the left lane, the preceding vehicle in the right lane, and the following vehicle in the right lane, respectively.
Similarly, it can be expressed in a more general form:
In this system, the state variables are selected as the longitudinal-lateral positions and heading angles of other surrounding vehicles in the inertial coordinate system, , and the control variables are selected as the vehicle speeds and front-wheel steering angles of these vehicles .
3. Implementation of Dynamic Trajectory Planning Based on Model Predictive Control
The implementation process of the model predictive theory mainly consists of three key steps [
26]: predictive model, rolling optimization, and feedback correction (
Figure 3). The predictive model is the foundation of model predictive control, and its main function is to predict the future output of the system based on the historical information of the object and future inputs. Rolling optimization refers to the process where model predictive control determines the control action through the optimization of a certain performance index. However, this optimization is not carried out offline once, but repeatedly online, which is the fundamental difference between model predictive control and traditional optimal control. Feedback correction is intended to prevent the deviation of the control from the ideal state caused by model mismatch or environmental interference. At a new sampling moment, the actual output of the object is first detected, and this real-time information is used to correct the prediction result based on the model, followed by the execution of a new round of optimization.
3.1. Vehicle Model Construction—Predictive Model
In the prediction horizon, both the system’s future state variables and output variables can be calculated using the system’s current state variables and the control increments within the control horizon. This corresponds to the “prediction” function in the model predictive algorithm.
In the formula, represents a certain moment during the lane-changing process. , , , , are the values of the vehicle’s driving state variables and control variables at moment , respectively, is the simulation time step.
Expressed in matrix form:
3.2. Establishment of Objective Function with Constraints—Rolling Optimization
At each moment in MPC, optimization must be performed to obtain the optimal control quantity for the next moment (
Figure 4).
Minimize the lateral acceleration of the vehicle during the lane-changing process to ensure riding comfort: . In the formula, represents the lateral acceleration value during the lane-changing process.
Enable the lane change to be completed as quickly as possible, with the shortest possible lane-changing time: . In the formula, and represent the desired lateral displacement and the actual lateral displacement during the lane-changing process, respectively.
Convert each index into a quadratic form to obtain the total objective function (performance index function):
In the formula, and are the weight coefficients of each index in the objective function; is the desired lateral displacement during the lane-changing process, which is set as the lane width in this paper, taking 3.5 m; is the actual lateral displacement during the lane-changing process; and are the vehicle lateral position information at the start moment of lane change; is the vehicle lateral acceleration value during the lane-changing process, which can be expressed as according to the stable yaw rate gain relationship of the two-degree-of-freedom vehicle and the motion relationship of the vehicle during instantaneous curve driving.
From this, it can be concluded that the expression of the objective function is only related to the vehicle driving state and the control quantity .
In the above relational expression, is the vehicle’s driving speed; is the vehicle’s heading angle; is the vehicle’s front-wheel steering angle; is the vehicle’s stability factor, , with the unit of ; where and are the cornering stiffness of the front and rear tires, respectively; and is the vehicle’s wheelbase.
- 2.
Constraints
In the formula, and represent the ID number of surrounding vehicles and the number of surrounding vehicles, respectively; is the position coordinate information of the -th surrounding vehicle, which can be obtained in real time through on-board sensors; represents the real-time distance between the Ego vehicle and surrounding vehicles; represents the minimum safe distance between the Ego vehicle and surrounding vehicles during driving.
Through the above analysis, the problem is converted into an optimization solution problem for the objective function with constraints:
By solving this optimization objective with constraints, the control sequence for a future period can be obtained. However, since the system model changes in real time, it cannot be guaranteed that a feasible solution for this optimization objective can be obtained at every moment. Therefore, the optimization objective needs to be processed accordingly.
A common and proven effective method is to add a slack variable to the optimization objective:
In the formula, is the weight coefficient, and is the slack variable.
- 3.
Coordinate Conversion of Control Quantities
To achieve the optimal solution for the established multi-objective function and constraint conditions, and in consideration of the vehicle’s driving characteristics, the area that the vehicle can reach at the next moment—predictable based on the vehicle’s speed and heading angle information—can be represented by a sector. For standardized representation and to facilitate the direct solution of control quantities, a conversion method is proposed to convert the 2D coordinate system into a polar coordinate form. This method converts the speed and heading angle (which are the corresponding control quantities) into the radius and rotation angle forms of polar coordinates (
Figure 5).
Correspondingly, the vehicle speed
is represented as the radius
in polar coordinates, and the front-wheel steering angle
is represented as the rotation angle
in polar coordinates. The coordinate relational expressions corresponding to the vehicle’s driving process are as follows:
In this way, the optimal solution of the multi-objective function with constraints is converted into the solution of R and θ in the polar coordinate system.
3.3. Return of the Optimal Control Sequence—Feedback Adjustment
After completing the optimal solution of the above formula in each control cycle, a series of control input increments within the control horizon are obtained.
According to the basic principle of model predictive control, the first element in the control sequence is used as the actual control input increment acting on the system, that is, .
The system executes this control quantity until the next moment. At the new moment, the system re-predicts the output of the next time domain based on the state information, and obtains a new sequence of control increments through the optimization process. This cycle repeats until the system completes the entire control process.
3.4. Curve Fitting of Optimal Discrete Points
The discrete points corresponding to the optimal solution obtained from the rolling optimization process are subjected to curve fitting to plan a smooth and feasible trajectory line. To fully ensure the smoothness of the curve and that the curve curvature at the start and end points can meet the consistency of the vehicle’s forward direction, a quintic polynomial is used for least squares fitting.
The least squares fitting polynomial (also known as the method of least squares) is a mathematical optimization technique. It finds the best function fit for the data by minimizing the sum of the squares of the errors.
Given the function value of function at point , find a polynomial such that
Let
Solving
is thus converted into solving
After rearranging the equation, we obtain
Solving this system of normal equations yields the value of .
Thus, the expression of the least squares fitting polynomial for
is obtained.
According to the principle of model predictive control, the prediction horizon Np is set to 5 to predict the optimal points at the next 5 moments. Together with the initial position point
of the vehicle at the initial moment, there are 6 points in total. The curve fitting toolbox in MATLAB(R2022a) is used to perform quintic polynomial curve fitting, so as to obtain the real-time optimal trajectory. To facilitate the direct control of the vehicle, this study converts the planned optimal trajectory into a steering wheel angle signal based on the preview-following driver model [
27].
4. Simulation and Analysis
A co-simulation is conducted using MATLAB/Simulink and Prescan (
Figure 6). A driving trajectory generator is built in MATLAB, while a driving scenario is constructed in Prescan. The planned trajectory is converted into a front-wheel steering wheel angle signal via the preview-following driver module, which is then input to the controlled vehicle. This process is used to perform simulation verification of the proposed method.
4.1. The Surrounding Vehicles Maintain a Constant Speed
This is the simulation of the lane-change trajectory realized by the proposed model predictive control method when surrounding vehicles maintain a constant speed. The detailed process of the simulation working condition is shown in the
Figure 7. In the simulation, the speed of the host vehicle is set to 12 m/s; the speed of the preceding vehicle is 10 m/s, and it keeps moving straight; the speed of the vehicle behind on the left is 8 m/s, and it also keeps moving straight.
The
Figure 7 shows the lane-change scenario in a dynamic environment, which occurs when the preceding vehicle’s speed is detected to be lower than the host vehicle’s speed and the lane-change conditions are met.
Figure 7a illustrates the initial state just before lane change begins, while
Figure 7b shows the situation where the steering wheel angle signal is 0 at this moment.
Figure 7c depicts the process of the host vehicle merging from the original lane into the target lane during the lane change, with the corresponding steering wheel turning status shown in
Figure 7d.
Figure 7e presents the scenario where the host vehicle travels along the target lane after entering it, and the corresponding steering wheel angle also returns to 0.
Figure 7f shows the driver’s forward-facing view after the host vehicle has fully completed the lane-change maneuver
As can be seen from
Figure 8,
Figure 9,
Figure 10 and
Figure 11, when the host vehicle approaches the preceding vehicle and the preceding vehicle’s speed (10 m/s) is lower than that of the host vehicle (12 m/s), the host vehicle will generate an intention to change lanes. At this point, if a safe lane-change distance from the left-behind vehicle is detected, the host vehicle will start the lane change.
The entire lane-change process lasts 5.2 s, covering a distance of 47 m, with a maximum steering wheel angle of 41 degrees during the process. At the start of the lane change, the initial relative distances between the host vehicle and the preceding vehicle, and between the host vehicle and the left-behind vehicle are 18.3 m and 12.6 m, respectively. Since the host vehicle’s speed is higher than that of the left-behind vehicle, the relative distance between them keeps increasing until it reaches 20 m (the measurement range of the sensor), and a relative distance greater than 20 m is maintained throughout the entire lane-change process.
Meanwhile, as the host vehicle’s speed is higher than that of the preceding vehicle, the relative distance between them keeps decreasing until the lane change is completed. After entering the target lane, there is no following vehicle ahead, so the corresponding relative distance value becomes 0.
Combined with the above simulation results, it can be concluded that the designed lane-change trajectory planner enables a smooth and safe lane-change process.
4.2. Sudden Deceleration of the Preceding Vehicle—Constant Speed of the Left-Behind Vehicle
This is the simulation and analysis of the lane-change trajectory realized by the proposed model predictive control method under the dynamic condition of surrounding vehicles, where the preceding vehicle decelerates suddenly while the left-behind vehicle maintains a constant speed. The detailed process of the simulation condition is shown in the
Figure 12.
In the simulation, the host vehicle’s speed is set to 12 m/s. The preceding vehicle has an initial speed of 10 m/s; after running for 1.5 s, it suddenly applies a braking acceleration of 2.5 m/s2 and continues to move straight. The left-behind vehicle maintains a constant speed of 8 m/s and travels straight.
In this simulation scenario, the host vehicle intends to perform a lane change. However, during the initial phase of the lane change, it suddenly detects a sudden speed reduction of the preceding vehicle. Nevertheless, the lane-change conditions are still satisfied, so the lane change proceeds in this dynamic environment.
Figure 12a shows the initial state just before the lane change starts, and
Figure 12b presents the situation where the steering wheel angle signal is 0 at this moment. In
Figure 12c, during the lane-change process, the host vehicle detects a sudden deceleration of the preceding vehicle. To respond to this situation, the planned lane-change trajectory enables the host vehicle to complete the lane change earlier and more quickly to ensure driving safety, with the corresponding steering wheel turning status shown in
Figure 12d.
Figure 12e depicts the scenario where the host vehicle travels along the target lane after entering it, and the corresponding steering wheel angle also returns to 0.
Figure 12f shows the driver’s-view perspective after the lane change has been completed.
As can be seen from
Figure 13,
Figure 14,
Figure 15 and
Figure 16, when the host vehicle approaches the preceding vehicle and the preceding vehicle’s speed (10 m/s) is lower than that of the host vehicle (12 m/s), the host vehicle generates an intention to change lanes. At this point, if a safe lane-change distance from the left-behind vehicle is detected simultaneously, the host vehicle starts the lane change. When the host vehicle is traveling at 12 m/s, it initiates the lane change after 1.2 s of driving. 0.3 s after the start of the maneuver, a sudden speed reduction of the preceding vehicle is detected. To ensure safety, the host vehicle applies a larger steering wheel angle to achieve a rapid lane change. Under this condition, the maximum steering wheel angle is 61 degrees, the entire lane-change process lasts 4.6 s, and the lane-change distance is 42 m.
The host vehicle has an initial speed of 12 m/s; during the lane change, its speed decreases slightly due to the detected speed reduction in the preceding vehicle. The preceding vehicle first travels at 10 m/s, then suddenly applies a braking acceleration of 2.5 m/s2 after 1.5 s, causing its speed to drop rapidly. After 3.3 s of driving, the preceding vehicle’s speed decreases to 5 m/s and remains constant as it continues straight. The left-behind vehicle maintains a constant speed of 8 m/s while traveling straight. Throughout the process, the host vehicle travels 87 m longitudinally, with a lateral displacement of 3.5 m (from the original lane to the target lane); the preceding vehicle travels 46 m, and the left-behind vehicle travels 56 m.
At the start of the lane change, the initial relative distances between the host vehicle and the preceding vehicle, and between the host vehicle and the left-behind vehicle are 18.1 m and 12.4 m, respectively. Since the host vehicle’s speed is higher than that of the left-behind vehicle, the relative distance between them keeps increasing until it reaches 20 m (the measurement range of the sensor), and a relative distance greater than 20 m is maintained throughout the entire lane-change process. Meanwhile, as the host vehicle’s speed is higher than that of the preceding vehicle, the relative distance between them keeps decreasing. When the preceding vehicle starts to decelerate, the relative distance between the host vehicle and the preceding vehicle drops rapidly; by 3.2 s, this relative distance becomes 0, indicating that the host vehicle has completed the lane change.
Combined with the above simulation results, it can be observed that in response to the lane-change scenario where the preceding vehicle decelerates suddenly, the host vehicle completes the lane change in advance and applies a larger steering wheel angle signal to achieve a faster lane-change maneuver. This also verifies that the designed lane-change trajectory planner can well adapt to the special condition of sudden speed reduction of the preceding vehicle.
4.3. Sudden Acceleration of the Left-Behind Vehicle—Constant Speed of the Preceding Vehicle
When surrounding vehicles are in a dynamic condition and the host vehicle detects that the left-behind vehicle suddenly accelerates after initiating a lane change, the proposed model predictive control method is subjected to simulation analysis of the lane-change trajectory under this condition. The detailed process of the simulation condition is shown in the
Figure 17. In the simulation, the initial speed of the host vehicle is set to 12 m/s; the preceding vehicle travels at a constant speed of 10 m/s in a straight line; the left-behind vehicle initially travels at 8 m/s, and after running for 1.5 s, it suddenly receives an acceleration of 2.5 m/s
2, accelerating to 14 m/s and then maintaining this speed for straight-line travel.
In this simulation scenario, the host vehicle is performing a lane-change maneuver. However, after the lane change starts, it suddenly detects that the speed of the left-behind vehicle increases abruptly and the relative distance between the host vehicle and the left-behind vehicle decreases suddenly—this is the lane-change scenario in a dynamic environment under such conditions.
Figure 17a shows the state where the host vehicle has a lane-change demand and is about to start the lane change;
Figure 17b presents the situation where the steering wheel angle signal is 0 at this moment. In
Figure 17c, during the lane-change process, the host vehicle detects that the left-behind vehicle accelerates suddenly and the relative distance between them decreases abruptly. To respond to this situation, the proposed lane-change trajectory planner enables the host vehicle to increase its speed accordingly during the lane change and complete the lane change more quickly, thus ensuring driving safety; the corresponding steering wheel turning status is shown in
Figure 17d.
Figure 17e depicts the scenario where after the host vehicle enters the target lane and travels along it, the corresponding steering wheel angle also returns to 0.
Figure 17f shows the driver’s forward-looking view after the lane-change maneuver has been completed.
As can be seen from
Figure 18,
Figure 19,
Figure 20 and
Figure 21, when the host vehicle approaches the preceding vehicle and the preceding vehicle’s speed (10 m/s) is lower than that of the host vehicle (12 m/s), the host vehicle will generate an intention to change lanes. At this point, if a safe lane-change distance from the left-behind vehicle is detected simultaneously, the host vehicle will start the lane change.
The host vehicle initially travels straight along the lane at 12 m/s for 1.4 s; when the relative distance to the preceding vehicle is 15 m, it begins the lane-change maneuver. 2.1 s after the start of the lane change, the host vehicle detects a sudden decrease in the relative distance to the left-behind vehicle. To ensure safety, the host vehicle increases its speed accordingly to complete the lane change quickly and safely. Under this condition, the maximum steering wheel angle is 43 degrees, the entire lane-change process lasts 4.7 s, and the lane-change distance is 48 m.
From the vehicle speed and position diagrams, it can be observed that the preceding vehicle travels at a constant speed of 10 m/s in a straight line throughout the process. The left-behind vehicle has an initial speed of 8 m/s; after traveling for 1.5 s, it suddenly accelerates with an acceleration of 2.5 m/s2, reaching 14 m/s after 2.4 s, and then maintains this speed for straight-line travel—during this period, the relative distance between the left-behind vehicle and the host vehicle keeps decreasing. The host vehicle initially travels at 12 m/s; as the lane change starts and the left-behind vehicle accelerates, when the host vehicle detects that the relative distance to the left-behind vehicle is less than 20 m at 3.8 s, it begins to accelerate until the lane change is completed and the simulation ends. Throughout the process, the host vehicle travels 95 m longitudinally with a lateral displacement of 3.5 m (from the original lane to the target lane); the preceding vehicle travels 75 m, and the left-behind vehicle travels 86 m.
At the start of the lane-change process, the initial relative distances between the host vehicle and the preceding vehicle, and between the host vehicle and the left-behind vehicle are 18.1 m and 12.4 m, respectively. Since the host vehicle’s speed is higher than that of the preceding vehicle, the relative distance between them keeps decreasing until it drops to 15 m—at this point, a lane-change demand is generated, and the host vehicle starts the lane change. Initially, the left-behind vehicle’s speed is lower than that of the host vehicle, so the relative distance between them keeps increasing. However, the left-behind vehicle suddenly accelerates after traveling for 1.5 s; by 3.8 s, the host vehicle detects that the relative distance to the left-behind vehicle is less than 20 m (note: corrected from “20 m/s” to “20 m” for unit consistency), so the host vehicle starts to accelerate. Correspondingly, the relative distance first decreases slightly and then keeps increasing until it returns to the safe range of more than 20 m at 6.8 s.
From the above simulation results, it can be concluded that in response to the lane-change scenario where the left-behind vehicle accelerates suddenly, when the host vehicle detects that the relative distance to the left-behind vehicle is less than the safe distance, the designed trajectory planner controls the host vehicle to accelerate to re-enter the safe range. This verifies that the designed lane-change trajectory planner can well adapt to the special condition of sudden acceleration of the left-behind vehicle.
Based on the comprehensive results of the aforementioned simulation experiments, it can be indicated that the innovative real-time optimal iteration improvement of the MPC method proposed in this paper enables the real-time search for the optimal position of the vehicle at the next moment. Consequently, an ideal and feasible lane-changing trajectory for dynamic driving scenarios can be planned, achieving adaptive performance for the entire range of dynamic driving scenarios.
5. Conclusions
This paper conducts research on lane-change trajectory planning in dynamic scenarios. First, it establishes the kinematic models of the host vehicle and surrounding vehicles, which are then converted into state equations to serve as the prediction model. Next, a multi-objective function including three indicators—characterizing lane-change rapidity, safety, and comfort—is constructed, and constraint conditions such as output, input, and road boundaries are established to further complete the rolling optimization link of model predictive control (MPC). For the convenience of solving, the control variables are converted from a 2D coordinate system to a polar coordinate system. The optimal discrete points of the control variables obtained through optimization are fitted with a quintic polynomial curve to generate a smooth and feasible lane-change trajectory curve. To facilitate the direct control of the vehicle, a preview-following driver model is adopted to convert the planned ideal trajectory into a steering wheel angle signal. Finally, simulation verification of the proposed method is carried out under three working conditions: surrounding vehicles traveling at a constant speed, sudden deceleration of the preceding vehicle during lane change, and sudden acceleration of the left-behind vehicle during lane change. The simulation results show that the dynamic trajectory planning method proposed in this paper has good adaptability.
This paper comprehensively considers complex lane-change scenarios involving a preceding vehicle and a left-behind vehicle, and proposes a dynamic lane-change trajectory planning method for highway dynamic scenarios based on the model predictive control theory. The proposed method can realize real-time response to the dynamic environment; moreover, polynomial curve fitting of the discrete points obtained after optimization via coordinate conversion can better ensure the vehicle’s track-following performance with higher smoothness, which is more in line with actual driving conditions. This provides a theoretical basis for the realization of lane change in dynamic scenarios for autonomous vehicles.