Methods, devices, electronic equipment and storage media for planning trajectory generation

By combining POMDP and Frenet coordinate systems, the problem of not considering the uncertain behavior of traffic participants in existing technologies is solved, and efficient, stable and safe trajectory generation for autonomous vehicles is achieved.

CN119975408BActive Publication Date: 2026-01-06SAIC GM WULING AUTOMOBILE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510113155.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-23
Publication Date
2026-01-06
Estimated Expiration
2045-01-23

AI Technical Summary

Technical Problem

Existing technologies do not fully consider the uncertain behaviors of other traffic participants, resulting in imperfect final planned trajectories. Furthermore, existing methods are prone to the curse of dimensionality in complex scenarios, affecting the efficiency and stability of decision-making and planning.

Method used

The behavior interaction between the autonomous vehicle and the adjacent vehicle is modeled using a partially observable Markov decision process (POMDP). The predicted trajectories of the adjacent vehicles are classified into risk trajectory sets and safe trajectory sets based on potential collision risks, reducing the dimensionality of the state space. The Frenet coordinate system is then used to optimize the planned trajectory.

Benefits of technology

It effectively predicts the uncertain behavior of other vehicles, improves the driving safety of the vehicle and the efficiency and stability of decision-making and planning, and generates a planned trajectory that conforms to actual driving habits.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119975408B_ABST
    Figure CN119975408B_ABST
Patent Text Reader

Abstract

This application provides a method, apparatus, electronic device, and storage medium for generating a planned trajectory. The method includes: acquiring a state space and the vehicle's action space; classifying the predicted trajectories of neighboring vehicles based on potential collision risks and the action space to obtain a set of risk trajectories and a set of safe trajectories; and modeling the state space, action space, set of risk trajectories, and set of safe trajectories using a partially observable Markov decision process to obtain a reference trajectory. The decision-making and planning process under the uncertainty of neighboring vehicle behavior is modeled as a POMDP, thereby fully predicting the uncertain behavior of neighboring vehicles and ensuring the driving safety of the vehicle. Furthermore, considering the excessively high dimensionality of the predicted trajectory clusters of multiple traffic participants in complex scenarios, the POMDP model is prone to the curse of dimensionality. Therefore, by classifying the predicted trajectories of neighboring vehicles into a set of risk trajectories and a set of safe trajectories based on potential collision risks, the dimensionality of the state space is reduced, effectively improving the efficiency and stability of decision-making and planning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of intelligent driving technology, specifically to a method, apparatus, electronic device, and storage medium for generating a planned trajectory. Background Technology

[0002] With the rapid development of automotive technology, more and more cars are equipped with autonomous driving technology. The decision planning module is one of the key parts of autonomous driving. The decision planning module is a process of making some purposeful decisions for a certain goal. It usually refers to getting from the starting point to the destination while avoiding obstacles, and continuously optimizing the planned trajectory and behavior to ensure the safety and comfort of passengers.

[0003] Some related technologies directly sample trajectory clusters from the planning space and then evaluate the final planned trajectory using indicators such as safety and comfort. However, they do not consider the behavioral interactions with other traffic participants, which may result in an imperfect final planned trajectory, requiring adjustments during driving.

[0004] In addition, some related technologies, such as decision-making methods based on optimization or game theory, although modeling the dynamics of behavioral interactions, only consider the deterministic prediction of the future movement state of surrounding traffic participants and lack a mechanism to deal with uncertain behaviors.

[0005] It should be noted that the information disclosed in the background section of this application is intended only to enhance the understanding of the general background of this application, and should not be construed as an admission or in any way implying that the information constitutes prior art known to those skilled in the art. Summary of the Invention

[0006] In view of this, this application provides a method, apparatus, electronic device and storage medium for generating a planned trajectory, in order to solve the problem that the final planned trajectory is not perfect due to the lack of sufficient consideration of the uncertain behavior of other traffic participants in the prior art.

[0007] In a first aspect, embodiments of this application provide a method for generating a planned trajectory, including:

[0008] Acquire the state space and the action space of the vehicle. The state space includes the position information and motion state information of the vehicle and the adjacent vehicles. The action space includes the driving actions of the vehicle.

[0009] Based on the potential collision risk and the action space, the predicted trajectories of the adjacent vehicles are classified to obtain a set of risk trajectories and a set of safe trajectories.

[0010] By using a partially observable Markov decision process, the state space, the action space, the set of risk trajectories, and the set of safe trajectories are modeled to obtain a reference trajectory.

[0011] In this embodiment, the decision-making process under uncertainty regarding the behavior of other vehicles is modeled as a Partially Observable Markov Decision Process (POMDP), thereby fully predicting the uncertain behavior of other vehicles and ensuring the driving safety of the vehicle itself. Furthermore, considering the high dimensionality of predicted trajectory clusters from multiple traffic participants in complex scenarios, which can easily lead to the curse of dimensionality in POMDP decision-making models, the predicted trajectories of other vehicles are classified into risk trajectory sets and safe trajectory sets based on potential collision risks. This achieves dimensionality reduction of the state space, effectively improving decision-making efficiency and stability.

[0012] In one possible implementation, the vehicle's motion space includes a lateral behavior library and a longitudinal behavior library, and obtaining the vehicle's motion space includes:

[0013] Based on the global planning and lane-level map, obtain the set of feasible lanes;

[0014] Extract the centerline of the lane from the set of feasible lanes to obtain a set of reference paths, which is the lateral behavior library.

[0015] Obtain the acceleration set, which is the longitudinal behavior library.

[0016] In this embodiment, a set of feasible lanes is obtained based on global planning and a lane-level map. Lane centerlines are then extracted from these lanes to obtain a reference path set, which is the lateral behavior library. The acceleration set is used as the longitudinal behavior library according to typical longitudinal motion patterns. It is understood that the lateral behavior library in this application uses the reference path set, not the lane set. Lane centerlines, as paths, are easier to calculate than lanes, which helps reduce the algorithm's burden.

[0017] In one possible implementation, before classifying the predicted trajectories of the adjacent vehicles based on the potential collision risk and the action space, the method further includes:

[0018] Probability calculations are performed on the predicted trajectories of the adjacent vehicles to obtain the probability distribution of the predicted trajectories;

[0019] Based on the predicted trajectory probability distribution, predicted trajectories with a probability less than or equal to a preset probability threshold are deleted.

[0020] In this embodiment, before processing the predicted trajectory of the adjacent vehicle, a probability calculation is performed on the predicted trajectory to obtain its probability distribution. Based on this probability distribution, predicted trajectories with probabilities less than or equal to a preset probability threshold are deleted. It is understood that pre-calculating the probability of the predicted trajectory allows for the early removal of trajectories that are almost impossible to occur, thus avoiding any impact on decision-making safety and significantly optimizing real-time performance.

[0021] In one possible implementation, classifying the predicted trajectories of adjacent vehicles based on potential collision risks and the action space to obtain a set of risk trajectories and a set of safe trajectories includes:

[0022] The vehicle's driving lane is determined based on the aforementioned action space;

[0023] Determine whether the predicted trajectory of the adjacent vehicle intersects with the driving lane of the vehicle;

[0024] If the predicted trajectory of any of the adjacent vehicles intersects with the driving lane of the vehicle, then the predicted trajectory of any of the adjacent vehicles is determined to be a risk trajectory.

[0025] If the predicted trajectory of any of the adjacent vehicles does not intersect with the driving lane of the vehicle, then the predicted trajectory of any of the adjacent vehicles is determined to be a safe trajectory.

[0026] In this embodiment, the predicted trajectory of the adjacent vehicle is determined to be either a risky or safe trajectory by judging whether there is an intersection between the predicted trajectory of the adjacent vehicle and the driving lane of the own vehicle. This can be understood as transforming the probability distribution of the predicted trajectory into a probability distribution of whether there is a potential collision risk with the own vehicle. The confidence state space is directly reduced to two states, reducing the solution time of POMDP and improving real-time efficiency.

[0027] In one possible implementation, the reference trajectory is a trajectory generated with reference to the lane centerline, and after obtaining the reference trajectory, the method further includes:

[0028] The reference trajectory is adjusted laterally to obtain the planned trajectory.

[0029] In this embodiment of the application, the reference trajectory is a trajectory generated with the lane center line as a reference. However, when a vehicle is driving, it obviously cannot drive along the lane center line, so it is necessary to adjust the reference trajectory laterally to obtain a planned trajectory that is more in line with actual driving habits.

[0030] In one possible implementation, the lateral adjustment of the reference trajectory to obtain the planned trajectory includes:

[0031] Construct a Frenet coordinate system using the tangent and normal vectors of the reference trajectory;

[0032] In the Frenet coordinate system, a planned trajectory is generated at a position at a preset distance from the reference trajectory.

[0033] In this embodiment, a planned trajectory is generated at a preset distance from the reference trajectory using the Frenet coordinate system. It is understood that the Frenet coordinate system can more intuitively represent the vehicle's position on a curved road, making it more conducive to generating a planned trajectory that meets expectations.

[0034] In one possible implementation, the step of modeling the state space, the action space, the set of risk trajectories, and the set of safe trajectories through a partially observable Markov decision process to obtain a reference trajectory includes:

[0035] By using a partially observable Markov decision process, the state space, the action space, the set of risk trajectories, and the set of safe trajectories are modeled to obtain a set of feasible trajectories.

[0036] A reference trajectory is obtained from the set of feasible trajectories using a reward function.

[0037] In this embodiment, after POMDP modeling, a set of feasible trajectories is obtained. A reference trajectory is then obtained from this set using a reward function. It is understood that the set of feasible trajectories includes multiple trajectories, and the trajectory generation device needs to select a safe, reasonable trajectory that ensures passenger comfort and high driving efficiency as the reference trajectory.

[0038] Secondly, embodiments of this application provide a planning trajectory generation device, comprising:

[0039] The information acquisition module is used to acquire the state space and the action space of the vehicle. The state space includes the position information and motion state information of the vehicle and the adjacent vehicles. The action space includes the driving action of the vehicle.

[0040] The predicted trajectory classification module is used to classify the predicted trajectories of the adjacent vehicles based on the potential collision risk and the action space, and obtain a risk trajectory set and a safe trajectory set.

[0041] The modeling module is used to model the state space, the action space, the risk trajectory set, and the safe trajectory set through a partially observable Markov decision process to obtain a reference trajectory.

[0042] Thirdly, embodiments of this application provide an electronic device, including:

[0043] processor;

[0044] Memory;

[0045] And a computer program, wherein the computer program is stored in the memory, the computer program including instructions that, when executed by the processor, cause the electronic device to perform the method described in any one of the first aspects.

[0046] Fourthly, embodiments of this application provide a computer-readable storage medium, characterized in that the computer-readable storage medium includes a stored program, wherein, when the program is executed, it controls the device where the computer-readable storage medium is located to perform the method described in any one of the first aspects.

[0047] It is understood that the trajectory generation apparatus provided in the second aspect, the electronic device provided in the third aspect, and the computer-readable storage medium provided in the fourth aspect are used to execute the method provided in this application. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods, and will not be repeated here. Attached Figure Description

[0048] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0049] Figure 1 A flowchart illustrating a method for generating a planned trajectory provided in an embodiment of this application;

[0050] Figure 2 A lane diagram of a lateral motion library provided in an embodiment of this application;

[0051] Figure 3 A schematic diagram illustrating the assessment of potential collision risk provided in an embodiment of this application;

[0052] Figure 4 A schematic diagram illustrating the probability calculation of a representative trajectory provided in an embodiment of this application;

[0053] Figure 5 This application provides a schematic diagram of a vehicle's lane-changing trajectory as an embodiment of the present application.

[0054] Figure 6 A schematic diagram of the architecture of another planning trajectory generation method provided in an embodiment of this application;

[0055] Figure 7 This is a schematic diagram of the structure of a planning trajectory generation device provided in an embodiment of this application;

[0056] Figure 8This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0057] To better understand the technical solution of this application, the embodiments of this application will be described in detail below with reference to the accompanying drawings.

[0058] It should be understood that the described embodiments are merely some, not all, of the embodiments in this application. All other embodiments obtained by those skilled in the art based on the embodiments in this application without inventive effort are within the scope of protection of this application.

[0059] The terminology used in the embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. The singular forms “a,” “the,” and “the” used in the embodiments of this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.

[0060] It should be understood that the term "and / or" used in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this article generally indicates that the preceding and following related objects have an "or" relationship.

[0061] With the rapid development of automotive technology, more and more cars are equipped with autonomous driving technology. The decision planning module is one of the key parts of autonomous driving. The decision planning module is a process of making some purposeful decisions for a certain goal. It usually refers to getting from the starting point to the destination while avoiding obstacles, and continuously optimizing the planned trajectory and behavior to ensure the safety and comfort of passengers.

[0062] Some related technologies directly sample trajectory clusters from the planning space and then evaluate the final planned trajectory using indicators such as safety and comfort. However, they do not consider the behavioral interactions with other traffic participants, which may result in an imperfect final planned trajectory, requiring adjustments during driving.

[0063] In addition, some related technologies, such as decision-making methods based on optimization or game theory, although modeling the dynamics of behavioral interactions, only consider the deterministic prediction of the future movement state of surrounding traffic participants and lack a mechanism to deal with uncertain behaviors.

[0064] To address the aforementioned issues, this application provides a trajectory generation method that models the decision-making process under uncertainty regarding the behavior of other vehicles as a Partially Observable Markov Decision Process (POMDP), thereby fully predicting the uncertain behavior of other vehicles and ensuring the driving safety of the vehicle itself. Furthermore, considering the excessively high dimensionality of predicted trajectory clusters from multiple traffic participants in complex scenarios, which can easily lead to the curse of dimensionality in POMDP decision-making models, this application categorizes the predicted trajectories of other vehicles into risk trajectory sets and safe trajectory sets based on potential collision risks. This achieves dimensionality reduction of the state space, effectively improving decision-making efficiency and stability. The following detailed description, in conjunction with the accompanying drawings and specific embodiments, further illustrates this method.

[0065] See Figure 1 This is a flowchart illustrating a method for generating a planned trajectory provided in an embodiment of this application. Figure 1 As shown, it mainly includes the following steps.

[0066] Step S101: Obtain the state space and the motion space of the vehicle.

[0067] The state space includes the position and motion information of the vehicle and the adjacent vehicle. Specifically, it includes the positions (x, y) of the vehicle and the adjacent vehicle, their driving direction θ, speed v, distance traveled along the target reference path s, and the adjacent vehicle's driving intention I. Driving intention I characterizes the future trajectory of the adjacent vehicle and is a part of the system state that cannot be directly observed. In this embodiment, it is assumed that the adjacent vehicle's driving intention I is a trajectory from the predicted trajectory cluster output by the prediction model, and is uncertain during decision-making. Monte Carlo sampling is used to examine the impact of this uncertainty on collision risk assessment. The POMDP decision-making and programming model needs to find the optimal strategy that satisfies the maximum discount cumulative reward under the probability distribution of driving intentions. Other road information and fixed buildings are treated as static references and are not included in the state space.

[0068] The state definitions in this application embodiment are as follows:

[0069]

[0070]

[0071]

[0072] Among them, s ego Indicates the status of the vehicle. This indicates the state of the vehicles surrounding the vehicle, where n is the number of vehicles.

[0073] In the embodiments of this application, the action space includes vehicle driving actions, specifically, the action space includes two parts: a longitudinal action library and a lateral action library.

[0074] In this embodiment, the longitudinal behavior set includes four discrete accelerations:

[0075]

[0076] Among them, A lon For the longitudinal movement of the vehicle, it can be understood that when A... lon for At that time, the acceleration is 0 m / s². 2 At this time, the vehicle is moving at a constant speed; when A lon for At that time, the acceleration was 1.2 m / s². 2 At this moment, the vehicle accelerates; when A lon for At that time, the acceleration was -1.8 m / s². 2 At this time, the vehicle slows down; when A lon for At that time, the acceleration was -3.6 m / s². 2 At this point, the vehicle is forced to move.

[0077] In some possible implementations, if the situation ahead is too urgent and a collision cannot be avoided even with the acceleration corresponding to the forced longitudinal action described above, then an emergency braking mode is entered and POMDP replanning is performed using the following longitudinal action:

[0078]

[0079] By using the emergency braking mode, the safety of emergency braking is ensured, while avoiding the continuous expansion of the action space, which would affect the POMDP solution efficiency.

[0080] In some related technologies, only longitudinal velocity planning is performed, while lateral trajectory planning is carried out using other methods outside the POMDP model. In other related technologies, although both longitudinal velocity and lateral trajectory planning are modeled in the POMDP model, the lateral trajectory is fixedly defined as driving according to a predetermined pattern, including left-turn lanes, lane keeping, right lane changes, straight ahead at intersections, left turns at intersections, and right turns at intersections. This method of predefining driving actions based on traffic scenarios may not be able to traverse all necessary traffic scenarios, and these redundant actions increase or decrease the dimensionality of the POMDP action space, directly leading to an exponential increase in the time complexity of POMDP solution.

[0081] To address this issue, in this embodiment, the lateral behavior library is dynamically adjusted to the set of currently drivable reference paths, and its action space is more consistent with real-time traffic scenarios.

[0082] Specifically, guided by a globally planned path in the lane-level map, the currently drivable lane is determined and its centerline is read. Then, a reference path is generated using piecewise cubic B-spline curves.

[0083] First, the aiming distance within the decision period is determined based on the current speed and maximum acceleration, using the following formula:

[0084]

[0085] In the formula, It is the vehicle's current speed. It is the maximum allowable acceleration, and T is the duration of the decision time domain.

[0086] Then, path points within the pre-aimed distance between the current lane and the target lane are selected as spline curve control points. Each small segment of the cubic B-spline curve consists of 4 control points P. i P i+1 P i+2 and P i+3 The generated piecewise cubic B-spline curve can be described as follows:

[0087]

[0088] Finally, the generated lateral action library ,where path i (i=0,1,……,n) represent the available lanes for the vehicle. For ease of understanding, this application uses two available lanes as an example to provide a detailed description of the available lanes.

[0089] See Figure 2 This is a lane diagram of a lateral motion library provided in an embodiment of this application. Figure 2 As shown, the vehicle is traveling straight in one lane of a two-lane road system. In this embodiment, the first path in the lateral action library is... 0 To travel straight along the current lane, use the second path in the lateral action library. 1 To change lanes to the left.

[0090] The action space A of the POMDP model can be obtained by combining elements from the vertical action library and the horizontal action library in pairs, as shown in the following formula:

[0091]

[0092] It should be noted that the vertical actions in the formulas of this application's embodiments include , , and However, in practical applications, longitudinal movements may include other movements, and this application does not impose specific limitations on them.

[0093] Furthermore, in most cases, there are no more than three drivable paths: the current lane and the adjacent lanes on the left and right. Therefore, the dimension of the lateral action library mostly changes dynamically within the range of 0-3, resulting in the dimension of the corresponding action space A mostly changing dynamically within the range of 0-12. Moreover, to avoid vehicles changing lanes back and forth within a decision cycle, this embodiment limits the lateral path change operation to only once per decision cycle, thereby saving solution time and improving work efficiency.

[0094] Step S102: Based on the potential collision risk and the action space, classify the predicted trajectories of the adjacent vehicles to obtain a set of risk trajectories and a set of safe trajectories.

[0095] Specifically, based on the action space, the driving lane of the vehicle is determined, and it is determined whether the predicted trajectory of the adjacent vehicle intersects with the driving lane of the vehicle. If the predicted trajectory of any adjacent vehicle intersects with the driving lane of the vehicle, the predicted trajectory is determined to be a risky trajectory; if the predicted trajectory of any adjacent vehicle does not intersect with the driving trajectory of the vehicle, the predicted trajectory is determined to be a safe trajectory.

[0096] For ease of understanding, this application provides a schematic diagram for assessing potential collision risks.

[0097] See Figure 3 This is a schematic diagram illustrating a potential collision risk assessment provided in an embodiment of this application. Figure 3 As shown, the red vehicle is the adjacent vehicle, with two adjacent vehicles, A and B, and the blue vehicle is the driver. Taking a two-lane road as an example, the driver has two driving decision candidates: (a) lane keeping and (b) lane changing. In each decision, the centerline of the target lane is used as the local planning reference path. Then, the potential collision risk is determined by judging whether the predicted trajectory cluster intersects with the lane area occupied by the reference path. Figure 3 As shown, the reference path is represented by a blue dashed line, the center lines of other lanes are represented by black dashed lines, and in the predicted trajectory cluster of adjacent vehicles, the blue trajectory is the safe trajectory and the red trajectory is the risk trajectory.

[0098] like Figure 3 As shown in (a), when the vehicle is currently traveling in the right lane, all trajectories in the predicted trajectory clusters of vehicles A and B that intersect with the right lane are considered risky trajectories, while all trajectories in the predicted trajectory clusters of vehicles A and B that do not intersect with the right lane are considered safe trajectories. Similarly, as... Figure 3As shown in (b), the vehicle is currently traveling in the right lane, but the vehicle's driving decision is to change lanes. Therefore, the reference path for the vehicle is the center line of the left lane. Since all trajectories in the predicted trajectory clusters of adjacent vehicles A and B intersect with the left lane, all predicted trajectories of adjacent vehicles A and B are risk trajectories.

[0099] It is understandable that the above classification of potential collision risks based on the predicted trajectories of adjacent vehicles is static and unrelated to the future speed of the vehicle itself. This is because the vehicle's speed is obtained by the POMDP decision model and is not known at this point. However, in this embodiment, if a predicted trajectory is determined to be a safe trajectory, it means that the vehicle will not collide with adjacent vehicles regardless of its speed.

[0100] After classifying the potential collision risk of the predicted trajectories of the adjacent vehicles, the predicted trajectories of the adjacent vehicles are divided into two main categories based on whether a certain candidate strategy of the vehicle itself would cause a potential collision hazard: risk trajectories. and safe trajectory And calculate the sum of probabilities for the corresponding categories. Then, respectively in and The trajectory with the highest probability is selected as the representative trajectory for collision safety. Specifically, the calculation method is as follows:

[0101]

[0102]

[0103] Where P is the probability, and track is the representative trajectory of the category, used for sampling and as the future trajectory for constructing the state transition model of surrounding vehicle i. For ease of understanding, the embodiments of this application use... Figure 3 Taking a vehicle traveling straight in the right lane and another vehicle B in the left lane as an example, this paper provides a detailed explanation of the probability calculation for the representative trajectory.

[0104] See Figure 4 This is a schematic diagram illustrating the probability calculation of a representative trajectory provided in an embodiment of this application. Figure 4 As shown, the predicted trajectory cluster of vehicle B includes 495 trajectories, namely, the blue safe trajectories and the red risk trajectories, totaling 495. Among them, the most probable safe trajectory (i.e., the safe trajectory) is the one with the highest probability of being safe. Representative trajectory The bold blue line represents the highest probability risk trajectory (i.e., the risk trajectory). Representative trajectory The bold red line () indicates that the result can be obtained through calculation. The predicted probability is 0.137. The predicted probability is 0.863. The degree of threat posed by other vehicles to the vehicle can be inferred from the predicted probabilities corresponding to safe and risky trajectories.

[0105] It is understandable that there are usually dozens or even hundreds of predicted trajectory clusters for the vehicles beside the other vehicle. If these are directly input into the POMDP model as the future state of the vehicles beside the other vehicle to participate in collision detection, the computational load of the POMDP model will be very large. The predicted trajectory classification method provided in this application greatly reduces the solution complexity and transforms the confidence space of dozens or hundreds of predicted trajectory clusters into a confidence space with only two states: whether there is a collision risk or not, thereby improving work efficiency.

[0106] As mentioned above, there are hundreds or even thousands of predicted trajectories for the vehicles passing by, many of which are extremely low-probability trajectories. Treating these extremely low-probability trajectories equally and including them in subsequent calculations is meaningless and would severely degrade the real-time performance of the decision-making system.

[0107] Therefore, in one possible implementation, before classifying the predicted trajectories of the adjacent vehicles, the method further includes calculating the probability of the predicted trajectories to obtain a predicted trajectory probability distribution; based on the predicted trajectory probability distribution, predicted trajectories with probabilities less than or equal to a preset probability threshold are deleted. The preset probability threshold is a fixed threshold set based on debugging experience; those skilled in the art can set it to any value according to actual needs, and this application embodiment does not impose specific limitations on it.

[0108] Understandably, extremely low-probability trajectories—those that are almost impossible to occur—are as follows: for example, the historical trajectory of a neighboring vehicle consistently remains straight within the current lane. Therefore, in the predicted trajectory clusters output by the prediction module, the probability of left turns is extremely low, indicating that left turns are very rare events. Removing these trajectories would not only not affect decision-making safety but would also significantly optimize real-time performance.

[0109] Step S103: Model the state space, action space, risk trajectory set, and safe trajectory set through a partially observable Markov decision process to obtain a reference trajectory.

[0110] Specifically, in order to obtain the states of the vehicle and the vehicles beside it, this embodiment of the application uses a state transition model to describe the evolution of the state of each participant in the traffic scenario over time. The state transition model is a set of state transition probabilities. Mathematical modeling is used. This application's embodiments involve the behavioral interactions between the autonomous vehicle and the adjacent vehicles, therefore, this application's embodiments illustrate the state transition model from the perspectives of both the autonomous vehicle and the adjacent vehicles.

[0111] This application primarily studies the decision-making problem under the uncertainty of the driving intention of a neighboring vehicle. It assumes that the motion state information of the vehicle and the neighboring vehicle, such as position, speed, and heading, is accurate, with errors small enough not to affect the decision result. Only the driving intention of the neighboring vehicle is uncertain. Furthermore, since the decision-making module is more abstract than the control module, its requirements for positioning and state evolution accuracy are not very high. Therefore, the state transition model of the vehicle can be completely determined by the vehicle's kinematics model, without involving a complex dynamic model. From the definition of the action space, it can be seen that the vehicle's decision output first selects a dynamically generated drivable path outside the model, and then performs longitudinal movement on the selected lateral path. Therefore, the vehicle's state transition model can be expressed as:

[0112]

[0113] In the formula, It is the acceleration corresponding to the longitudinal action taken at a certain decision step. S represents the drivable path i corresponding to the lateral action taken in this decision step, where S is along... The distance traveled, initial value The starting point and the current point of the vehicle are at The distance between the projections, x, y, θ along the selected path The above is obtained by interpolation using the current travel distance S, where △t is the decision step size.

[0114] The state transition model of the adjacent vehicle differs from that of the driver vehicle; the driver vehicle's state update occurs along the selected lateral path. The vehicle moves longitudinally, while surrounding vehicles do not involve changes in driving actions, and the predicted trajectory is a series of time-varying events. The trajectory points are directly interpolated on the predicted trajectory at each decision step. However, the driving intention I represented by the predicted trajectory cannot be obtained in true form; it can only be evaluated and decided upon based on its probability distribution. Therefore, this embodiment randomly samples a cluster of predicted trajectories from the probability distribution of driving intention I and uses it as the future trajectory of the vehicle in a certain decision-making process. Calculating the average of the discounted cumulative reward after multiple Monte Carlo sampling simulations can approximately approximate the optimal decision under the probability distribution of driving intention I. Therefore, in a certain Monte Carlo sampling simulation, driving intention I is unique and deterministic, i.e., the predicted trajectory sampled this time. Thus, the state transition model of the vehicle i can be represented as the state transition of the vehicle i on the sampled predicted trajectory. Above, directly from the current decision-making step time Interpolation yields new trajectory points:

[0115]

[0116] In the formula, The safe trajectory mentioned above, This refers to the risk trajectory described above.

[0117] Furthermore, in this embodiment, the posterior probability distribution of the current state is estimated using the observation z, thereby obtaining an observation space Z similar to the state space, which is defined as:

[0118]

[0119]

[0120]

[0121] in, This represents the vehicle's measured values, including its position, heading angle, and speed. The measurement values ​​of the adjacent vehicle are represented, including the adjacent vehicle's position, heading angle, speed, and driving intention. The driving intention I of the adjacent vehicle is the probability distribution of the future trajectory after the predicted trajectory cluster is reduced in dimensionality by clustering with potential collision risks.

[0122] The observation model O represents the state that, after taking action 'a' in the current state, it reaches a new state. The probability of the measured value at time The sensing system in this embodiment is based on high-precision combined inertial navigation positioning and high-precision lidar. Both the vehicle and the adjacent vehicle have centimeter-level positioning accuracy. The sensing error level is far less than the impact of the uncertainty of the adjacent vehicle's intention on the decision-making result. Therefore, this embodiment does not consider observation error and assumes that the measured value is equivalent to its corresponding state value. That is, after executing action a, the measured value of the vehicle changes completely with the state transition model. The state and measured value of the adjacent vehicle are determined by the future predicted trajectory. Although its driving intention cannot be directly observed, its predicted trajectory probability distribution can be output by the prediction module. Then, within the decision-making period, after fully considering its probability distribution and uncertainty, the optimal future trajectory is sampled as the basis for updating the state and measured value of the adjacent vehicle.

[0123] In one possible implementation, in order to obtain a reference trajectory with greater benefits, the state space, action space, risk trajectory set, and safe trajectory set are modeled using POMDP. After obtaining the feasible trajectory set, the reference trajectory is obtained from the feasible trajectory set through a reward function.

[0124] Specifically, the reward function is the immediate reward after performing action a in confidence state b. It is typically quantified and compared using multiple evaluation metrics to assess the merits of action a in state b. Optimal strategy. This involves accumulating real-time rewards throughout the entire decision-making cycle and selecting the state-action sequence with the highest accumulated discount. This application's embodiments consider the global task completion rate... Safety Comfort and driving efficiency The reward function was designed from several aspects, and the overall reward function and the effects of these aspects are as follows:

[0125]

[0126] The global task constraint is as follows: given the global path, the decision-making aiming distance is determined according to the formula. A local reference path can be extracted from the global reference path, and the endpoint of the local reference path can be used as the target point for the current decision cycle. Under the premise of ensuring driving safety and comfort, the further the distance traveled along the local reference path, the closer to the target point, the higher the task completion rate under the guidance of the global path, and the greater the benefit. The formula is as follows:

[0127]

[0128] in, and These are the weighting coefficients. Let be the distance traveled by the vehicle from the projection point on the local reference path to the target point. This is the lateral and vertical distance from the vehicle's actual position to the local reference path. Unreasonable lane-changing actions can be suppressed through global task constraints.

[0129] The specific driving safety constraint is as follows: Starting from the current moment, assess the potential safety of the vehicle colliding with another vehicle within the future decision-making cycle. The driving safety assessment is based on whether a collision occurs within a certain decision-step time interval Δt between the vehicle's planned trajectory and the other vehicle's predicted trajectory, using the following formula:

[0130]

[0131] in, This is the weighting coefficient, relative to other weights. A relatively large constant, such as 1000, is typically chosen to penalize actions that result in collisions. It is the vehicle speed at the moment of the collision, a constant. Used as a penalty to ensure the vehicle speed is 0.

[0132] The comfort constraint specifically refers to the fact that occupant comfort is an important indicator for evaluating intelligent driving systems, and current research mainly uses acceleration and its rate of change to characterize it. Acceleration includes two dimensions: longitudinal and lateral acceleration. Where v is the longitudinal vehicle speed and θ is the vehicle heading angle. For longitudinal acceleration, For lateral acceleration, an excessively large rate of change of acceleration *j* manifests as frequent acceleration and deceleration at the operational level, leading to significant discomfort. When both acceleration and its rate of change exceed critical values, comfort deteriorates as both increase, as follows:

[0133]

[0134] in, , , and These are the corresponding weighting coefficients.

[0135] The driving efficiency constraint is specifically set as follows: In order to encourage intelligent driving vehicles to travel at the desired speed while ensuring safety and comfort, a speed constraint is set as follows:

[0136]

[0137] in, The maximum speed permitted by traffic rules. These are the weighting coefficients.

[0138] It should be noted that all the weighting coefficients mentioned above are values ​​set based on experience. Those skilled in the art can set the weighting coefficients to any value according to actual needs, and this application does not impose any specific restrictions on this.

[0139] After constructing the POMDP decision-making and programming model and reducing its dimensionality in the state space to improve decision-making efficiency and stability, the POMDP model is solved using the Despot solver. The final output is a reference trajectory along the road centerline containing speed information. The speed is obtained by integrating the longitudinal action sequence, i.e., the desired acceleration. The reference path corresponding to the reference trajectory is a drivable path selected by the lateral action sequence, with its endpoint located only at the center of the corresponding lane.

[0140] join Figure 5 This is a schematic diagram of a vehicle lane-changing trajectory provided in an embodiment of this application. Figure 5 As shown, the endpoint of the reference trajectory is located at the center of the corresponding lane. This is done to reduce the POMDP (Planning, Mapping, and Deployment) action space dimension, but it introduces a problem: the vehicle always travels along the lane centerline, which obviously does not conform to actual driving habits. Therefore, this embodiment, based on the reference trajectory, keeps the speed information unchanged, laterally samples a larger set of planned trajectories, and selects the optimal planned trajectory based on performance indicators, thereby improving the rationality of the planned trajectory.

[0141] Specifically, the reference trajectory output by POMDP is used as a reference line, and a Frenet coordinate system is constructed using the tangent vector and normal vector of this line. In the Frenet coordinate system, the horizontal coordinate 's' describes the distance along the reference line, and the vertical coordinate 'd' represents the displacement of the normal vector at the current position along the reference line, i.e., the distance deviating from the reference line. The Frenet coordinate system is more effective than the Cartesian coordinate system in describing how far a vehicle has traveled along a curved lane and whether it has deviated from the lane center. Keeping the reference trajectory distance constant, a set of end-point normal displacements 'd' of different magnitudes are sampled within the target lane. Combined with the starting state, a set of fifth-order polynomial curves spreading across the lateral space of the target lane can be obtained. It is worth noting that, in order not to compromise the existing collision safety of the reference trajectory, the sampled 'd' must satisfy the following formula; otherwise, the newly sampled planned trajectory set will need to undergo collision risk assessment under the uncertainty of the surrounding vehicles' intentions, thus rendering the reference trajectory obtained using POMDP meaningless.

[0142]

[0143] in, For the width of the vehicle, This is for safety reasons, allowing for a margin of lateral space in the vehicle body. This is the lateral safety distance threshold.

[0144] Unlike most current methods that use Frenet coordinate sampling for trajectory planning, the reference line here is not a global path, but a reference trajectory that has been modeled and solved using POMDP and has already satisfied indicators such as collision safety, driving efficiency, and comfort as much as possible. Here, we only perform fine-tuning of the reference trajectory. Therefore, we no longer sample the distance s along the reference line direction, but only sample the end-point normal displacement d. As a result, the generated candidate set of planned trajectories is very small, and the computational cost is not high.

[0145] After obtaining the above candidate trajectory set, the performance of each candidate trajectory needs to be calculated according to the cost evaluation function. Then, the optimal trajectory is selected as the planned trajectory output to the vehicle control module. Specifically:

[0146]

[0147] In the formula, It is the loss function term. These are the corresponding weighting coefficients. The most valid trajectory index is N, which is the total number of candidate trajectories. Since the collision safety of the reference trajectory is guaranteed by POMDP modeling, and the sampling range of the lateral distance d is limited by the formula, there is no need to perform a collision risk assessment here.

[0148] Loss Item J dThis indicates the degree of deviation from the reference trajectory, with the aim of guiding the vehicle to tend to travel along the center of the road in most situations. J d The specific calculation method is as follows:

[0149]

[0150] In the formula, d i It is the sampling deviation distance of candidate trajectory i, d max It is the maximum deviation distance.

[0151] Trajectory curvature smoothing cost J k This is to improve ride comfort and avoid violent lateral movement shocks. J k The specific calculation method is as follows:

[0152]

[0153] In the formula, τ i Let i be the candidate trajectory and k be the curvature of the trajectory points.

[0154] Loss Item J c This is to penalize the discontinuity between the two planned trajectories, preventing the vehicle from experiencing instability such as vibration or overshoot. c The specific calculation method is as follows:

[0155]

[0156] In the formula, It is the deviation distance at the end of the previously planned optimal trajectory.

[0157] Corresponding to the above embodiments, this application also provides another method for generating planning trajectories.

[0158] See Figure 6 This is a schematic diagram illustrating the architecture of another trajectory generation method provided in this application. Figure 6 As shown, the state space is obtained through the positioning system, the set of feasible lanes is obtained through global planning and lane-level map, the set of reference paths is obtained based on the set of feasible lanes, the set of reference paths can form the lateral behavior library, the set of accelerations is the longitudinal behavior library, and the lateral behavior library and the longitudinal behavior library form the action space.

[0159] The trajectory generation device acquires the predicted trajectory of the adjacent vehicle and calculates its probability distribution. The probability distribution is then pruned (predicted trajectories with probabilities less than or equal to a preset probability threshold are deleted). The predicted trajectories are categorized into risky and safe trajectories based on a set of reference paths. Specifically, the probability of each risky and safe trajectory is summed, and the maximum value among the risky and safe trajectories is used as the representative trajectory. Two representative trajectories are sampled probabilistically to obtain the adjacent vehicle's state transition. The safety distance is dynamically adjusted, and the collision risk is assessed based on the ST distribution diagram. The action corresponding to the maximum benefit is obtained through a reward function.

[0160] The state space, action space, vehicle state transition and reward function are modeled by POMDP, and the lateral and longitudinal behavior sequences are solved by DESPOT to generate a reference trajectory. The planned trajectory is obtained by lateral sampling and optimization of the reference trajectory.

[0161] Corresponding to the above embodiments, this application also provides a planning trajectory generation device.

[0162] See Figure 7 This is a schematic diagram of the structure of a trajectory generation device provided in an embodiment of this application. Figure 7 As shown, the trajectory generation device includes: an information acquisition module 701, a predicted trajectory classification module 702, and a modeling module 703. These components communicate via one or more buses. Those skilled in the art will understand that the structure of the electronic device shown in the figure does not constitute a limitation on the embodiments of this application. It can be a bus-shaped structure or a star-shaped structure, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0163] Among them, the information acquisition module 701 is used to acquire the state space and the action space of the vehicle. The state space includes the position information and motion state information of the vehicle and the adjacent vehicles, and the action space includes the driving action of the vehicle.

[0164] The predicted trajectory classification module 702 is used to classify the predicted trajectories of the adjacent vehicles according to the potential collision risk and the action space, and obtain a risk trajectory set and a safe trajectory set.

[0165] The modeling module 703 is used to model the state space, the action space, the risk trajectory set, and the safe trajectory set through a partially observable Markov decision process to obtain a reference trajectory.

[0166] Corresponding to the above embodiments, this application also provides an electronic device.

[0167] See Figure 8This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 8 As shown, the electronic device 800 may include a processor 801, a memory 802, and a communication unit 803. These components communicate via one or more buses. Those skilled in the art will understand that the structure of the electronic device shown in the figure does not constitute a limitation on the embodiments of this application. It may be a bus topology or a star topology, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0168] The communication unit 803 is used to establish a communication channel, enabling the electronic device to communicate with other devices. It can receive user data sent by other devices or send user data to other devices.

[0169] The processor 801 serves as the control center of the electronic device, connecting various parts of the device via various interfaces and lines. It executes software programs, instructions, and / or modules stored in the memory 802, and calls data stored in the memory to perform various functions and / or process data. The processor can be composed of integrated circuits (ICs), such as a single packaged IC or multiple packaged ICs with the same or different functions connected together. For example, the processor 801 may consist only of a central processing unit (CPU). In this embodiment, the CPU may have a single processing core or include multiple processing cores.

[0170] The memory 802 is used to store the execution instructions of the processor 801. The memory 802 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.

[0171] When the execution instructions in memory 802 are executed by processor 801, the electronic device 800 is able to perform operations. Figure 1 Some or all of the steps in the illustrated embodiments.

[0172] In a specific implementation, this application embodiment also provides a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, it may include some or all of the steps of the simulation scene generation method provided in various embodiments of this application. The storage medium may be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.

[0173] In a specific implementation, this application also provides a computer program product, wherein the computer program product includes executable instructions, which, when executed on a computer, cause the computer to perform some or all of the steps in the various embodiments of the simulation scene generation method provided in this application.

[0174] In this application embodiment, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent the existence of A alone, the simultaneous existence of A and B, or the existence of B alone. A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects have an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, and c can represent: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.

[0175] Those skilled in the art will recognize that the units and algorithm steps described in the embodiments disclosed herein can be implemented using electronic hardware, computer software, or a combination of electronic hardware and software. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0176] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0177] In the several embodiments provided in this application, any function, if implemented as a software functional unit and sold or used as an independent product, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0178] The same or similar parts between the various embodiments in this specification can be referred to mutually. In particular, the device embodiments and terminal embodiments are basically similar to the method embodiments, so the description is relatively simple, and the relevant parts can be referred to the description in the method embodiments.

Claims

1. A trajectory planning generation method characterized by, The method comprises the following steps: acquiring a state space and an action space of a vehicle, the state space comprising position information and motion state information of the vehicle and other vehicles, and the action space comprising driving actions of the vehicle; classifying predicted trajectories of the other vehicles according to potential collision risks and the action space, to obtain a risk trajectory set and a safe trajectory set; modeling the state space, the action space, the risk trajectory set and the safe trajectory set through a partially observable Markov decision process, to obtain a reference trajectory; the step of classifying the predicted trajectories of the other vehicles according to the potential collision risks and the action space, to obtain the risk trajectory set and the safe trajectory set, comprises the following steps: determining a driving lane of the vehicle according to the action space; judging whether the predicted trajectories of the other vehicles intersect with the driving lane of the vehicle; if any predicted trajectory of the other vehicles intersects with the driving lane of the vehicle, determining that the predicted trajectory of the other vehicle is a risk trajectory; if any predicted trajectory of the other vehicles does not intersect with the driving lane of the vehicle, determining that the predicted trajectory of the other vehicle is a safe trajectory.

2. The method of claim 1, wherein, the action space of the vehicle comprises a lateral behavior library and a longitudinal behavior library, and the step of acquiring the action space of the vehicle comprises the following steps: obtaining a feasible lane set according to global planning and a lane-level map; extracting a lane centerline in a lane in the feasible lane set, to obtain a reference path set, the reference path set being the lateral behavior library; acquiring an acceleration set, the acceleration set being the longitudinal behavior library.

3. The method of claim 1, wherein, Before the step of classifying the predicted trajectories of the other vehicles according to the potential collision risks and the action space, the method further comprises the following steps: performing probability calculation on the predicted trajectories of the other vehicles, to obtain a predicted trajectory probability distribution; according to the predicted trajectory probability distribution, deleting a predicted trajectory with a probability less than or equal to a preset probability threshold.

4. The method of claim 1, wherein, the reference trajectory is a trajectory generated with a lane centerline as a reference, and after the step of obtaining the reference trajectory, the method further comprises the following steps: adjusting the reference trajectory in a lateral direction, to obtain a planning trajectory.

5. The method of claim 4, wherein, the step of adjusting the reference trajectory in the lateral direction, to obtain the planning trajectory, comprises the following steps: constructing a Frenet coordinate system with a tangent vector and a normal vector of the reference trajectory; in the Frenet coordinate system, generating the planning trajectory at a position at a preset distance from the reference trajectory.

6. The method of claim 1, wherein, the step of modeling the state space, the action space, the risk trajectory set and the safe trajectory set through the partially observable Markov decision process, to obtain the reference trajectory, comprises the following steps: modeling the state space, the action space, the risk trajectory set and the safe trajectory set through the partially observable Markov decision process, to obtain a feasible trajectory set; obtaining the reference trajectory from the feasible trajectory set through a reward function.

7. A trajectory planning generation device characterized by comprising: The method comprises the following steps: an information acquisition module is configured to acquire a state space and an action space of a vehicle, the state space comprising position information and motion state information of the vehicle and other vehicles, and the action space comprising driving actions of the vehicle; The prediction trajectory classification module is configured to classify the prediction trajectories of the side-by-side vehicles according to the potential collision risk and the action space, to obtain a risk trajectory set and a safe trajectory set; The modeling module is configured to model the state space, the action space, the risk trajectory set and the safe trajectory set by using a partially observable Markov decision process, to obtain a reference trajectory; The prediction trajectory classification module is specifically configured to determine a lane in which a host vehicle travels according to the action space; determine whether the prediction trajectories of the side-by-side vehicles intersect with the lane in which the host vehicle travels; if the prediction trajectories of any of the side-by-side vehicles intersect with the lane in which the host vehicle travels, determine that the prediction trajectories of any of the side-by-side vehicles are risk trajectories; and if the prediction trajectories of any of the side-by-side vehicles do not intersect with the lane in which the host vehicle travels, determine that the prediction trajectories of any of the side-by-side vehicles are safe trajectories.

8. An electronic device, comprising: comprise: a processor; a memory; and a computer program, wherein the computer program is stored in the memory, and the computer program comprises instructions, which, when executed by the processor, cause the electronic device to perform the method of any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium comprises a stored program, wherein the program controls the device in which the computer-readable storage medium is located to perform the method of any one of claims 1 to 6 when the program is running.

Citation Information

Patent Citations

  • Automatic driving automobile lane changing decision control method considering uncertainty

    CN115257746A

  • Lane-based probabilistic motion prediction of surrounding vehicles and predictive longitudinal control method and apparatus

    US20200172093A1