High-performance modular trajectory planning algorithm for complex automatic driving scene
By using modular trajectory planning algorithms in complex autonomous driving scenarios, combined with the Frenet coordinate system and multi-objective optimization strategies, the problems of low efficiency and poor handling of dynamic obstacles in the existing technology are solved, and efficient and safe trajectory planning is achieved. , adapt to complex scenarios and quickly find the optimal trajectory.
Patent Information
- Application Number
- CN202411248457.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-06
- Publication Date
- 2024-10-11
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing trajectory planning algorithms are inefficient in complex autonomous driving scenarios, especially in highly dynamic or unpredictable environments. It is difficult to find the best trajectory, and sampling-based methods cannot guarantee to find the best trajectory. Graph-based methods are difficult to deal with dynamic obstacles. The effect is not good when it comes to things.
Using a high-performance modular trajectory planning algorithm for complex autonomous driving scenarios, trajectory sampling is performed through the Frenet coordinate system, a collection containing multiple trajectories is constructed, and the comfort and safety of the trajectory are optimized through multi-objective optimization strategies and cost functions. Kinematics checks, collision checks and road boundary checks ensure feasibility and optimization of trajectories.
It improves the adaptability and scalability of the trajectory planning algorithm, can quickly adapt to complex scenarios, ensures that the optimal trajectory is found, and allows easy integration and optimization of functions through a modular structure to meet the needs of changing traffic scenarios.
Smart Images

Figure CN118758331A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a trajectory planning algorithm, and in particular to a high-performance modular trajectory planning algorithm for complex autonomous driving scenarios. Background Art
[0002] Trajectory planning is a key component of autonomous vehicle software development. The trajectory planner runs within a specific time frame and quickly generates an efficient and reliable local trajectory to complete the safe and comfortable movement of the autonomous vehicle from the starting point to the end point. The trajectory includes the path (x(t), y(t) - position) and speed v(t), providing reference information for subsequent lateral and longitudinal control.
[0003] Current optimization-based methods such as optimal control (OCP) typically use variational methods to find smooth trajectories in complex spaces, focus on finding the best solution or path under a given set of constraints, and use mathematical optimization techniques to minimize or maximize the objective function. They can provide the best solution under certain conditions, but require a lot of computing resources and are less efficient in highly dynamic or unpredictable environments. Sampling-based methods randomly search for the target state in the free space around the current state of the vehicle. Once an available target state is found, a trajectory is created that connects the current driving state of the vehicle with the selected target state. By introducing randomness, these algorithms are usually effective, but they are not guaranteed to find the best trajectory. Graph-based methods discretize the planning space into nodes and edges to represent possible vehicle positions and paths. This approach is effective in structured and typical scenarios, but these algorithms may be limited by the accuracy of the graph representation and may not handle dynamic obstacles well. Summary of the invention
[0004] In order to address the deficiencies in the prior art, the present invention aims to provide a high-performance modular trajectory planning algorithm for complex autonomous driving scenarios.
[0005] To achieve the purpose of the present invention, the technical solution adopted by the present invention is:
[0006] A high-performance modular trajectory planning algorithm for complex autonomous driving scenarios, including the following steps:
[0007] (1) After the trajectory planner is initialized, it obtains the current state of the vehicle and the specific target location, and calls the navigation module to generate a reference path;
[0008] (2) Update the vehicle status, including updating the location information and updating the motion information;
[0009] (3) Trajectory sampling is performed based on the Frenet coordinate system. By sampling m trajectories in the longitudinal direction and n trajectories in the transverse direction, a set of m × n trajectories is constructed. After sampling, the trajectory samples are converted into global Cartesian coordinates for trajectory evaluation.
[0010] (4) Find the real-time optimal trajectory by evaluating the trajectory samples.
[0011] Furthermore, in step (3), the lateral trajectory is represented by the following polynomial function:
[0012] (1);
[0013] Differentiating the polynomial function (1) twice, we obtain the following system of equations:
[0014] (2);
[0015] The polynomial coefficients satisfy the following relationship:
[0016] (3);
[0017] The end point of the trajectory is parallel to the reference path, and the final lateral state velocity and acceleration Set to zero.
[0018] Furthermore, in step (3), for longitudinal trajectory generation, the target position state is configured for cruise control according to the scenarios of following, merging and parking.
[0019] Furthermore, in step (4), trajectory evaluation includes kinematics check, cost calculation, collision check, and road boundary check.
[0020] Furthermore, the kinematic check evaluates each trajectory sample to ensure that it satisfies the kinematic constraints of the vehicle based on the kinematic ego vehicle model, taking into account acceleration, curvature, rate of change of curvature, and yaw rate to ensure that the trajectory is within the kinematic capabilities of the ego vehicle.
[0021] Furthermore, the cost is calculated by calculating the cost of each trajectory according to the cost function, calculating the cost function according to different factors considered in the trajectory, and then performing weighted summation of the cost functions of different factors to obtain the final cost of the trajectory. The total cost expression for each trajectory is as follows:
[0022] (11);
[0023] In the formula, J iIt represents the calculation result of the i-th cost function, and the weighting factor ωi represents the relative importance of the corresponding cost component in the total cost calculation.
[0024] Furthermore, the cost function includes acceleration, acceleration change rate, lateral acceleration change rate, longitudinal acceleration change rate, vehicle speed deviation, reference path distance, obstacle distance, collision probability, and Mahalanobis distance.
[0025] Furthermore, collision checking is to analyze the possibility of collision between the planned trajectory and static and dynamic objects and find a collision-free path.
[0026] Furthermore, the road boundary check is to check whether the previously screened trajectory is within the drivable range of the road. If the trajectory does not meet the requirements, the next trajectory needs to be checked to find a trajectory that meets the road conditions.
[0027] The beneficial effect of the present invention is that, compared with the prior art, the present invention improves the sampling method and introduces a multi-objective optimization strategy, optimizes the trajectory comfort and safety, adopts a modular approach to improve the adaptability and scalability of the algorithm, and allows each component in the system to easily integrate and optimize functions to meet a wide range of diverse actual traffic scenarios.
[0028] The present invention proposes a high-performance modular autonomous driving trajectory planning method, whose modular structure allows rapid adaptation and integration of new functions and modules. The cost function designed by this method allows the factors affecting the trajectory to be prioritized by adjusting the cost weights. On the one hand, it demonstrates the variable impact on the target variable, which helps to successfully simulate complex driving behaviors. On the other hand, it also ensures that the optimal trajectory can be quickly found later. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 It is a flow chart of a high-performance modular trajectory planning algorithm for complex autonomous driving scenarios according to the present invention;
[0030] Figure 2 It is a schematic diagram of the Frenet coordinate system;
[0031] Figure 3 is a schematic diagram of the sampling trajectory, the curvilinear coordinate system (a) and the Cartesian coordinate system (b);
[0032] Figure 4 It is a flow chart of trajectory evaluation. DETAILED DESCRIPTION
[0033] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the protection scope of this application.
[0034] The high-performance modular trajectory planning algorithm for complex autonomous driving scenarios described in the present invention includes a cost function, risk assessment, and validity check, so that a comfortable, safe, and feasible trajectory that adapts to environmental changes can be quickly obtained.
[0035] like Figure 1 As shown, the high-performance modular trajectory planning algorithm for complex autonomous driving scenarios described in the present invention obtains the current state of the vehicle and the specific target position after the trajectory planner is initialized. At this time, the navigation module is called to generate a reference path Γ. The trajectory planner calculates a safe and comfortable feasible trajectory in real time based on the reference path and current environmental information.
[0036] The specific steps include:
[0037] Step 1, vehicle status update, including updating location information and updating motion information;
[0038] Step 2, trajectory sampling: The trajectory planner generates samples in the Frenet coordinate system to simplify trajectory planning by separating the longitudinal and lateral motion of the vehicle. The position of the vehicle in the Frenet coordinate system is quantified using two key parameters: the lateral displacement (denoted as d) and the longitudinal displacement (denoted as s), as Figure 2 As shown;
[0039] Unlike traditional Cartesian coordinate systems, the Frenet coordinate system adopts a path-centric approach. In this system, the position and motion of the vehicle are characterized by their relationship to a predetermined reference path, thus providing a unique, path-oriented perspective.
[0040] The horizontal and vertical trajectory endpoint sampling matrix of the trajectory planning algorithm is shown in Table 1.
[0041] Table 1
[0042] Sampling category Sampling plan Time sampling (t) <![CDATA[[t min ,t1,t2,…,t max ]]]> Longitudinal distance sampling (d) <![CDATA[[d min ,d1,…,d curr ,d (curr+1) ,…,d max ]]]> Velocity sampling (v) <![CDATA[[v min , v1,…, v curr , in (curr+1) ,…, v max ]]> Horizontal distance sampling(s) <![CDATA[[s min , s1,…, s curr , p (curr+1) ,…, p max ]]>
[0043] Among them, t max Corresponding to the maximum sampling time horizon τ, the index curr represents the current ego vehicle state. All trajectories are extended to a fixed planning horizon T to ensure comparability between all samples for cost evaluation of subsequent trajectories. min and v max Depends on the current vehicle state and the acceleration limits. Due to the dependency, the s-sampling method is only used if velocity sampling is disabled. This is because the longitudinal end state can only be defined by a velocity or position range.
[0044] For lateral trajectory planning, a quintic polynomial function is used to ensure smooth trajectory and minimal jerk. Therefore, the trajectory along the lateral direction is represented by a polynomial function of the following form:
[0045] (1);
[0046] Differentiating the polynomial function (1) twice, we obtain the following system of equations:
[0047] (2);
[0048] The polynomial coefficients satisfy the following relationship:
[0049] (3);
[0050] The end point of the trajectory is parallel to the reference path, and the final lateral state velocity and acceleration Set to zero.
[0051] Where t represents the trajectory planning sampling time, c0, c1, c2, c3, c4, c5 represent the trajectory curve polynomial coefficients, , represents the lateral velocity and lateral acceleration at sampling time t, , , Indicates the sampling time t=0, that is, the initial position lateral distance, lateral velocity, lateral acceleration, d τ Represents the lateral distance at sampling time t=τ.
[0052] For the longitudinal trajectory generation, the cruise control treats the state of configuring the target position differently according to the scenario of following, merging and parking. Similarly, the coefficients of the lateral trajectory planning equation can be solved by determining the boundary conditions to solve equation (3).
[0053] By sampling m trajectories in the longitudinal direction and n trajectories in the transverse direction, a set of m × n trajectories is constructed through the systematic transverse superposition of these two sets. The number of generated trajectories depends on the sampling scheme and density. After the sampling process is completed, the trajectory samples are converted back to global Cartesian coordinates for further evaluation steps. The sampling process is as follows Figure 3 As shown, the obtained samples are represented in a curvilinear coordinate system (a) and a Cartesian coordinate system (b).
[0054] Step 3, trajectory evaluation: The trajectory evaluation stage needs to evaluate the feasibility and optimality of the trajectory samples. Figure 4 As shown in Figure 1, this phase uses a systematic funneling approach to process all trajectory samples generated in the previous step through a series of evaluations. These evaluations aim to determine the best trajectory that the vehicle should follow in the subsequent time period.
[0055] Step 3.1, Kinematic Check: The first step in the trajectory evaluation process is the kinematic check, which involves evaluating each trajectory sample to ensure that it satisfies the kinematic constraints of the vehicle based on the kinematic ego vehicle model. This step considers acceleration, curvature, curvature change rate, and yaw rate to ensure that the trajectory is within the kinematic capabilities of the ego vehicle. The expression for the allowed acceleration is as follows:
[0056] (4);
[0057] Where v(t) represents the velocity of the vehicle at any point along the trajectory and a(t) represents the corresponding acceleration. Given a predefined maximum acceleration and threshold speed , which depicts the transition from a constant acceleration limit to a variable acceleration limit.
[0058] (5);
[0059] here, and denote the beginning and end of the time interval under consideration, respectively. In addition, the curvature of the trajectory at any point in time is The maximum curvature must not be exceeded , the curvature The maximum permissible steering angle of the vehicle And wheelbase L derived:
[0060] (6);
[0061] So the curvature constraint can be expressed as:
[0062] (7);
[0063] To ensure smooth and comfortable steering, the rate of change of curvature needs to be limited to a certain range. We use the maximum acceptable rate of change of curvature to determine the feasibility of the trajectory:
[0064] (8);
[0065] Finally, the yaw rate of the vehicle direction Should not exceed and vehicle speed Determine the maximum yaw rate :
[0066] (9);
[0067] (10);
[0068] Any trajectory that violates the above constraints is considered to deviate from the vehicle's kinematic capabilities and is not a feasible trajectory.
[0069] Step 3.2, cost calculation: After kinematic verification, the cost of each trajectory is calculated according to the cost function. The cost function is calculated separately according to different factors considered in the trajectory, and then the cost functions of different factors are weighted summed to obtain the final cost of the trajectory. The total cost expression for each trajectory is as follows:
[0070] (11);
[0071] In the formula, J i represents the calculation result of the i-th cost function. The cost function composition is shown in the following table. The weighting factor ωi represents the relative importance of the corresponding cost component in the total cost calculation. The cost function includes criteria such as comfort, efficiency, and especially safety. Safety is mainly quantified by the collision probability cost. After calculating the cost of each trajectory, they are sorted in ascending order of their respective costs, and the trajectory with the lowest cost is placed at the front for further evaluation. The specific cost function expression is shown in Table 2.
[0072] Table 2
[0073] Step 3.3, collision check: In the previous step, the cost function only considers the collision probability. The trajectory with a high collision probability is penalized to make its cost higher and sorted later, but it cannot completely avoid collisions. Therefore, we need to perform collision checks on the sorted trajectories to filter out trajectories that may collide with obstacles. This step analyzes the possibility of collision between the planned trajectory and static and dynamic objects. After finding a collision-free path, stop checking this step, because the planned trajectories have been sorted according to their costs, and we only need to find the first collision-free trajectory, which greatly reduces the calculation time of collision checks.
[0074] Step 3.4, road boundary check: The last step is the road boundary check. The lateral sampling range has been considered when planning the lateral sampling of the trajectory. However, the maximum lateral sampling range of the present invention is a fixed value and is not dynamically adjusted according to the actual road width. Therefore, it is necessary to check in this step to ensure that the previously screened trajectory is within the drivable range of the road. If the trajectory does not meet the requirements, the next trajectory needs to be checked. Similarly, this step can be terminated when a trajectory that meets the road conditions is found.
[0075] Step 4: After evaluating the trajectory in Step 3, an optimal trajectory can be obtained. This trajectory is considered to be the most suitable for the vehicle to execute, balancing efficiency, safety and comfort. If there is no trajectory that meets the conditions, then Figure 1Restart the trajectory planning process.
[0076] The beneficial effect of the present invention is that, compared with the prior art, the present invention improves the sampling method and introduces a multi-objective optimization strategy, optimizes the trajectory comfort and safety, adopts a modular approach to improve the adaptability and scalability of the algorithm, and allows each component in the system to easily integrate and optimize functions to meet a wide range of diverse actual traffic scenarios.
[0077] The present invention proposes a high-performance modular autonomous driving trajectory planning method, whose modular structure allows rapid adaptation and integration of new functions and modules. The cost function designed by this method allows the factors affecting the trajectory to be prioritized by adjusting the cost weights. On the one hand, it demonstrates the variable impact on the target variable, which helps to successfully simulate complex driving behaviors. On the other hand, it also ensures that the optimal trajectory can be quickly found later.
[0078] The applicant of the present invention has made a detailed explanation and description of the implementation examples of the present invention in conjunction with the drawings in the specification. However, those skilled in the art should understand that the above implementation examples are only preferred implementation schemes of the present invention, and the detailed description is only to help readers better understand the spirit of the present invention, but not to limit the scope of protection of the present invention. On the contrary, any improvements or modifications based on the inventive spirit of the present invention should fall within the scope of protection of the present invention.
Claims
1. A high-performance modular trajectory planning algorithm for complex autonomous driving scenarios, characterized by: Includes steps: (1) After the trajectory planner is initialized, it obtains the current state of the vehicle and the specific target location, and calls the navigation module to generate a reference path; (2) Update the vehicle status, including updating the location information and updating the motion information; (3) Trajectory sampling is performed based on the Frenet coordinate system. By sampling m trajectories in the longitudinal direction and n trajectories in the transverse direction, a set of m × n trajectories is constructed. After sampling, the trajectory samples are converted into global Cartesian coordinates for trajectory evaluation. (4) Find the real-time optimal trajectory by evaluating the trajectory samples.
2. The high-performance modular trajectory planning algorithm for complex autonomous driving scenarios according to claim 1, characterized in that: In step (3), the lateral trajectory is represented by the following polynomial function: (1); Differentiating the polynomial function (1) twice, we obtain the following system of equations: (2); The polynomial coefficients satisfy the following relationship: (3); The end point of the trajectory is parallel to the reference path, and the final lateral state velocity and acceleration Set to zero; Where t represents the trajectory planning sampling time, c0, c1, c2, c3, c4, c5 represent the trajectory curve polynomial coefficients, , represents the lateral velocity and lateral acceleration at sampling time t, , , Indicates the sampling time t=0, that is, the initial position lateral distance, lateral velocity, lateral acceleration, d τ Represents the lateral distance at sampling time t=τ.
3. The high-performance modular trajectory planning algorithm for complex autonomous driving scenarios according to claim 1, characterized in that: In step (3), for longitudinal trajectory generation, the target position state is configured according to the scenario of following, merging and parking, and cruise control.
4. The high-performance modular trajectory planning algorithm for complex autonomous driving scenarios according to claim 1, characterized in that: In step (4), trajectory evaluation includes kinematics check, cost calculation, collision check, and road boundary check.
5. The high-performance modular trajectory planning algorithm for complex autonomous driving scenarios according to claim 4, characterized in that: The kinematic check evaluates each trajectory sample to ensure that it satisfies the kinematic constraints of the vehicle based on the kinematic ego vehicle model, taking into account acceleration, curvature, rate of change of curvature, and yaw rate to ensure that the trajectory is within the kinematic capabilities of the ego vehicle.
6. The high-performance modular trajectory planning algorithm for complex autonomous driving scenarios according to claim 4, characterized in that: The cost is calculated by calculating the cost of each trajectory according to the cost function, calculating the cost function separately according to the different factors considered in the trajectory, and then performing weighted summation of the cost functions of different factors to obtain the final cost of the trajectory. The total cost expression for each trajectory is as follows: (11); In the formula, J i It represents the calculation result of the i-th cost function, and the weighting factor ωi represents the relative importance of the corresponding cost component in the total cost calculation.
7. The high-performance modular trajectory planning algorithm for complex autonomous driving scenarios according to claim 6, characterized in that: The cost functions include acceleration, acceleration change rate, lateral acceleration change rate, longitudinal acceleration change rate, vehicle speed deviation, reference path distance, obstacle distance, collision probability, and Mahalanobis distance.
8. The high-performance modular trajectory planning algorithm for complex autonomous driving scenarios according to claim 4, characterized in that: Collision checking is to analyze the possibility of collision between the planned trajectory and static and dynamic objects and find a collision-free path.
9. The high-performance modular trajectory planning algorithm for complex autonomous driving scenarios according to claim 1, characterized in that: The road boundary check is to check whether the previously selected trajectory is within the drivable range of the road. If the trajectory does not meet the requirements, the next trajectory needs to be checked to find a trajectory that meets the road conditions.
Citation Information
Patent Citations
Intelligent decision-making and local trajectory planning method for autonomous vehicle and decision-making system thereof
CN113386795A
Rapid automatic driving track planning method based on driving environment
CN116513245A
Cited By
Method and system for quickly evaluating and searching optimal track and terminal equipment
CN120685110A
Toll station shunting area vehicle trajectory planning method and system considering vehicle interaction, and storage medium
CN121677758A
