Trajectory planning method, device, equipment and vehicle for autonomous driving vehicle
Through action sampling and game strategy analysis, the trajectory planning of autonomous vehicles is optimized, solving the reliability and efficiency problems of spatio-temporal conflicts with multiple interactive traffic participants, and achieving safe and efficient driving.
Patent Information
- Application Number
- CN202410896837.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-07-05
AI Technical Summary
When autonomous vehicles encounter spatio-temporal conflicts with multiple interactive traffic participants, it is difficult to quickly and accurately predict their behavior, leading to reliability and efficiency issues in driving trajectory planning.
By obtaining the driving data of the vehicle and the agent, action sampling processing and game strategy analysis are performed, combined with the preset hierarchical game strategy and search algorithm, to determine the target response trajectory of the vehicle and the agent and optimize the vehicle's planning trajectory.
It improves the effectiveness and solution speed of autonomous vehicle trajectory planning in multiple interactive agent scenarios, ensuring a safe, smooth and efficient driving process.
Smart Images

Figure CN118424321B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, specifically to technical fields such as intelligent transportation and autonomous driving, and in particular to a trajectory planning method, device, equipment and vehicle for an autonomous driving vehicle. Background Art
[0002] In the event of a spatiotemporal conflict between an autonomous vehicle and other traffic participants, the autonomous vehicle should accurately predict the behavior of these traffic participants and the behavior of these interacting vehicles based on the surrounding environment and develop reasonable interaction strategies.
[0003] At present, the vehicle driving trajectory planning scheme in the related technology can make reasonable driving decisions and plan the vehicle's driving trajectory by using relevant algorithms based on game theory. However, in practical applications, interactive traffic participants have flexible and uncertain interaction strategies. It is difficult to quickly and accurately solve the one-to-many interaction problem using the related technology scheme. The autonomous driving vehicle may not be able to realize the uncertainty of the interaction strategies of other traffic participants in a timely manner, which makes it impossible to effectively ensure the reliability of the autonomous driving vehicle. Summary of the invention
[0004] The present application provides a trajectory planning method, device, equipment and vehicle for an autonomous driving vehicle, which ensures the reliability and efficiency of trajectory planning for the autonomous driving vehicle. The technical solution is as follows:
[0005] In a first aspect, a trajectory planning method for an autonomous driving vehicle is provided, the method comprising:
[0006] Acquire driving data of a vehicle and driving data of at least one intelligent agent; wherein the driving data of the vehicle includes a planned path, and the driving data of each intelligent agent includes multiple predicted paths;
[0007] The following operations are performed for the vehicle and each agent respectively: based on the driving data of the vehicle, the action sampling process is performed on the planned path to obtain a first action set of the planned path; based on the driving data of the agent, the action sampling process is performed on each predicted path to obtain a second action set of each predicted path; based on the given inference level of the vehicle inferred by the agent in advance, the driving data of the vehicle, the first action set, the driving data of the agent and the second action set of each predicted path, the vehicle and the agent are gamed using a preset hierarchical game strategy to obtain a target response trajectory of the agent;
[0008] Based on the driving data of the vehicle, the first action set, and the target response trajectory of each intelligent agent, the driving trajectory of the vehicle is searched and processed using a preset first search algorithm to obtain the planned trajectory of the vehicle.
[0009] In a possible implementation, performing action sampling processing on the planned path based on the driving data of the vehicle to obtain a first action set of the planned path includes:
[0010] Acquire driving data of the intelligent body ahead of the planned path;
[0011] Based on the driving data of the vehicle and the driving data of the intelligent body in front, a forward motion of the vehicle is obtained by using a preset first acceleration algorithm;
[0012] Acquire driving data of the intelligent body behind the planned path;
[0013] Based on the driving data of the vehicle and the driving data of the rear intelligent body, a rearward movement of the vehicle is obtained by using a preset second acceleration algorithm;
[0014] determining an emergency action of the vehicle and a uniform speed action of the vehicle;
[0015] Based on the forward action of the vehicle, the backward action of the vehicle, the emergency action of the vehicle and the uniform speed action of the vehicle, a first action set of the planned path is obtained.
[0016] In a possible implementation, obtaining a first action set of the planned path based on the forward action of the vehicle, the backward action of the vehicle, the emergency action of the vehicle, and the uniform speed action of the vehicle includes:
[0017] Obtaining a candidate action set based on the forward action of the vehicle, the backward action of the vehicle, the emergency action of the vehicle and the uniform speed action of the vehicle;
[0018] The candidate action set is pruned using a preset pruning strategy to obtain a first action set of the planned path.
[0019] In a possible implementation, the performing action sampling processing on each predicted path based on the driving data of the intelligent agent to obtain a second action set for each predicted path includes:
[0020] For each predicted path, the following operations are performed: obtaining driving data of other intelligent agents ahead of the predicted path;
[0021] Based on the driving data of the vehicle and the driving data of the other intelligent bodies in front, using a preset first acceleration algorithm, obtaining the forward movement of the intelligent body;
[0022] Acquire driving data of other intelligent bodies behind the predicted path;
[0023] Based on the driving data of the vehicle and the driving data of other intelligent bodies behind the vehicle, a backward movement of the intelligent body is obtained by using a preset second acceleration algorithm;
[0024] Determining an emergency action of the agent and a uniform speed action of the vehicle;
[0025] Based on the forward action of the agent, the backward action of the agent, the emergency action of the agent and the uniform speed action of the agent, a second action set of the predicted path is obtained.
[0026] In a possible implementation, the given reasoning level of the vehicle, the driving data of the vehicle, the first action set, the driving data of the agent, and the second action set of each predicted path are inferred based on a predetermined agent, and a preset hierarchical game strategy is used to perform game processing on the vehicle and the agent to obtain a target response trajectory of the agent, including:
[0027] Inferring a given reasoning level of the vehicle based on a pre-given agent, and performing game processing on the vehicle and the agent to determine at least one reasoning interaction situation between the vehicle and the agent corresponding to the given reasoning level;
[0028] Based on the driving data of the vehicle, the first action set, the driving data of the agent, the second action set of each predicted path, and at least one reasoning interaction between the vehicle and the agent, searching and processing the reasoning trajectory of the vehicle and the reasoning trajectory of the agent to obtain a response trajectory of the agent corresponding to the given reasoning level;
[0029] The response trajectory of the intelligent agent corresponding to the given reasoning level is verified to obtain the target response trajectory of the intelligent agent.
[0030] In a possible implementation, the reasoning interaction situation includes a first interaction state and a second interaction state, and based on the driving data of the vehicle, the first action set, the driving data of the agent, the second action set of each predicted path, and at least one reasoning interaction situation of the vehicle and the agent, searching and processing the reasoning trajectory of the vehicle and the reasoning trajectory of the agent to obtain the response trajectory of the agent corresponding to the given reasoning level includes:
[0031] Based on the driving data of the vehicle, the first action set, and the driving data of the agent, searching and processing the reasoning trajectory in the first interaction state using the preset first search algorithm to obtain a first search result;
[0032] Based on the driving data of the vehicle, the driving data of the agent, and the second action set of each predicted path, a search process is performed on the inference trajectory in the second interaction state using a preset second search algorithm to obtain a second search result;
[0033] Based on the first search result and the second search result, a response trajectory of the agent corresponding to the given reasoning level is obtained.
[0034] In a possible implementation, based on the driving data of the vehicle, the first action set, and the target response trajectory of each agent, using a preset first search algorithm, searching the driving trajectory of the vehicle to obtain the planned trajectory of the vehicle includes:
[0035] Based on the target response trajectory of each agent and the first action set, using the preset first search algorithm, searching the driving trajectory of the vehicle to obtain a reward value of the first action set of the vehicle;
[0036] In response to the reward value satisfying a preset reward condition, a planned trajectory of the vehicle is obtained.
[0037] In a second aspect, a trajectory planning device for an autonomous driving vehicle is provided, the device comprising:
[0038] An acquisition unit, used to acquire driving data of a vehicle and driving data of at least one intelligent agent; wherein the driving data of the vehicle includes a planned path, and the driving data of each intelligent agent includes multiple predicted paths;
[0039] A game unit is used to perform the following operations for the vehicle and each intelligent agent respectively: based on the driving data of the vehicle, perform action sampling processing on the planned path to obtain a first action set of the planned path; based on the driving data of the intelligent agent, perform action sampling processing on each predicted path to obtain a second action set of each predicted path; based on a given inference level of the vehicle inferred by the intelligent agent in advance, the driving data of the vehicle, the first action set, the driving data of the intelligent agent and the second action set of each predicted path, use a preset hierarchical game strategy to perform game processing on the vehicle and the intelligent agent to obtain a target response trajectory of the intelligent agent;
[0040] A planning unit is used to search and process the driving trajectory of the vehicle based on the driving data of the vehicle, the first action set, and the target response trajectory of each intelligent agent using a preset first search algorithm to obtain a planned trajectory of the vehicle.
[0041] In a third aspect, a computer-readable storage medium is provided, wherein at least one instruction is stored in the storage medium, and the at least one instruction is loaded and executed by a processor to implement the method of the above-mentioned aspect and any possible implementation manner.
[0042] According to a fourth aspect, an electronic device is provided, comprising: at least one processor; and
[0043] a memory communicatively connected to the at least one processor; wherein,
[0044] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method of any possible implementation manner and the aspects described above.
[0045] According to a fifth aspect, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the above-mentioned aspects and any possible implementation method.
[0046] In a sixth aspect, an autonomous driving vehicle is provided, comprising the electronic device as described above.
[0047] The beneficial effects of the technical solution provided by this application include at least:
[0048] It can be seen from the above technical solution that the embodiment of the present application can obtain the driving data of the vehicle and the driving data of at least one intelligent agent; wherein the driving data of the vehicle includes a planned path, and the driving data of each intelligent agent includes multiple predicted paths; for the vehicle and each intelligent agent, the following operations are performed respectively: based on the driving data of the vehicle, the action sampling processing of the planned path is performed to obtain a first action set of the planned path; based on the driving data of the intelligent agent, the action sampling processing of each predicted path is performed to obtain a second action set of each predicted path; based on the pre-given intelligent agent, the given reasoning level of the vehicle, the driving data of the vehicle, the first action set, the driving data of the intelligent agent and the second action set of each predicted path are inferred, and the vehicle and the intelligent agent are gamed using a preset hierarchical game strategy to obtain the target response trajectory of the intelligent agent, so that the target response trajectory can be obtained based on the driving data of the vehicle, The first action set and the target response trajectory of each intelligent agent are used to search and process the driving trajectory of the vehicle using a preset first search algorithm to obtain the planned trajectory of the vehicle. The driving actions of the vehicle are first sampled according to the planned path, and the driving actions of the intelligent agent are sampled according to each predicted path. Then, based on the action sets of the two obtained by the sampling and the game combination of each pair of vehicles and intelligent agents, a preset hierarchical game strategy is used to determine the target response trajectory of each intelligent agent for a given reasoning level of a pre-given vehicle. Then, the preset first search algorithm is used to solve the planned trajectories of the vehicles corresponding to the target response trajectories of multiple intelligent agents. This can achieve the effectiveness of trajectory planning of autonomous driving vehicles in scenarios with multiple interactive intelligent agents, reduce the amount of action sampling, and improve the solution speed of trajectory planning of autonomous driving vehicles, thereby ensuring the safety, stability and efficiency of the driving process of autonomous driving vehicles in scenarios with multiple interactive intelligent agents.
[0049] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0051] Figure 1 It is a flowchart of a trajectory planning method for an autonomous driving vehicle provided by an embodiment of the present application;
[0052] Figure 2 is a flow chart of a trajectory planning method for an autonomous driving vehicle provided by another embodiment of the present application;
[0053] Figure 3 is a schematic diagram of an application scenario of a trajectory planning method for an autonomous driving vehicle provided by another embodiment of the present application;
[0054] Figure 4 is a schematic diagram of a path sampling action based on a trajectory planning method for an autonomous driving vehicle provided by another embodiment of the present application;
[0055] Figure 5 is a schematic diagram of a one-to-one MCTs search corresponding to a first search algorithm of a trajectory planning method for an autonomous driving vehicle provided in another embodiment of the present application;
[0056] Figure 6 is a schematic diagram of an MCTs search corresponding to a second search algorithm of a trajectory planning method for an autonomous driving vehicle provided in another embodiment of the present application;
[0057] Figure 7 is a schematic diagram of a separation zone of a trajectory planning method for an autonomous driving vehicle provided by another embodiment of the present application;
[0058] Figure 8 is a schematic diagram of a cross-validation of a trajectory planning method for an autonomous driving vehicle provided by another embodiment of the present application;
[0059] Fig. 9 is a schematic diagram of a one-to-many MCTs of a trajectory planning method for an autonomous driving vehicle provided by another embodiment of the present application;
[0060] Fig.10 A structural block diagram of a trajectory planning device for an autonomous driving vehicle provided by an embodiment of the present application is shown;
[0061] Fig.11 It is a block diagram of an electronic device used to implement the trajectory planning method of the autonomous driving vehicle in the embodiment of the present application. DETAILED DESCRIPTION
[0062] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0063] Obviously, the described embodiments are only part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0064] It should be noted that the terminal devices involved in the embodiments of the present application may include but are not limited to mobile phones, personal digital assistants (PDAs), wireless handheld devices, tablet computers and other smart devices; display devices may include but are not limited to personal computers, televisions and other devices with display functions.
[0065] In addition, the term "and / or" in this article is only a description of the association relationship between the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0066] Please refer to Figure 1 , which shows a flow chart of a trajectory planning method for an autonomous driving vehicle provided by an embodiment of the present application. The trajectory planning method for an autonomous driving vehicle may specifically include:
[0067] Step 101: Acquire driving data of a vehicle and driving data of at least one intelligent agent; wherein the driving data of the vehicle includes a planned path, and the driving data of each intelligent agent includes multiple predicted paths.
[0068] Step 102, perform the following operations for the vehicle and each agent respectively: based on the driving data of the vehicle, perform action sampling processing on the planned path to obtain a first action set of the planned path; based on the driving data of the agent, perform action sampling processing on each predicted path to obtain a second action set of each predicted path; based on a given agent inference of the vehicle's given reasoning level, the vehicle's driving data, the first action set, the agent's driving data and the second action set of each predicted path, use a preset hierarchical game strategy to perform game processing on the vehicle and the agent to obtain the agent's target response trajectory.
[0069] Step 103: Based on the driving data of the vehicle, the first action set, and the target response trajectory of each agent, a preset first search algorithm is used to search and process the driving trajectory of the vehicle to obtain the planned trajectory of the vehicle.
[0070] It should be noted that the vehicle may refer to the vehicle itself, and the number of intelligent agents that can interact with the vehicle in the driving environment of the vehicle may be multiple. The intelligent agents may include but are not limited to autonomous vehicles, unmanned vehicles, low-speed autonomous vehicles, and other intelligent traffic participants.
[0071] It should be noted that the vehicle's driving data may be the current driving data of the vehicle in the current planning period. The vehicle's driving data may include but is not limited to position, speed, acceleration, and planned path.
[0072] It should be noted that the driving data of the agent may be the current driving data of the agent in the current planning cycle. The driving data of the agent may be obtained by the vehicle perception, or obtained by the vehicle directly through interaction with the agent. The driving data of the agent may include but is not limited to position, speed, acceleration and at least one predicted path. The predicted path may be the path of the agent predicted by the vehicle.
[0073] It should be noted that the first action set of the planned path may be a first action set of the vehicle determined based on the planned path, and the second action set of the predicted path may be a second action set of the agent determined based on the predicted path.
[0074] It should be noted that part or all of the execution subject of steps 101 to 103 may be an application located in the local terminal, or may also be a functional unit such as a plug-in or software development kit (SDK) set in the application located in the local terminal, or may also be a processing engine located in a network-side server, or may also be a distributed system located on the network side, for example, a processing engine or distributed system in an autonomous driving platform on the network side, etc. This embodiment does not specifically limit this.
[0075] It is understandable that the application may be a local program (nativeApp) installed on the local terminal, or may also be a webpage program (webApp) of a browser on the local terminal, which is not limited in this embodiment.
[0076] In this way, the driving actions of the vehicle can be sampled according to the planned path, and the driving actions of the intelligent agent can be sampled according to each predicted path. Then, based on the action sets of the two obtained by sampling and the game combination of each pair of vehicles and intelligent agents, the preset hierarchical game strategy can be used to determine the target response trajectory of each intelligent agent for a given reasoning level of a pre-given vehicle. Then, the preset first search algorithm can be used to solve the planned trajectories of the vehicles corresponding to the target response trajectories of multiple intelligent agents. This can achieve the effectiveness of trajectory planning of autonomous driving vehicles in scenarios with multiple interactive intelligent agents, reduce the amount of action sampling, and improve the solution speed of trajectory planning of autonomous driving vehicles, thereby ensuring the safety, stability and efficiency of the driving process of autonomous driving vehicles in scenarios with multiple interactive intelligent agents.
[0077] Optionally, in a possible implementation of the present embodiment, in step 102, first, the driving data of the intelligent body in front of the planned path may be obtained. Secondly, based on the driving data of the vehicle and the driving data of the intelligent body in front, a preset first acceleration algorithm may be used to obtain the forward motion of the vehicle. Thirdly, the driving data of the intelligent body behind the planned path may be obtained. Thirdly, based on the driving data of the vehicle and the driving data of the intelligent body behind, a preset second acceleration algorithm may be used to obtain the backward motion of the vehicle, and thirdly, the emergency motion of the vehicle and the uniform motion of the vehicle may be determined. Thirdly, based on the forward motion of the vehicle, the backward motion of the vehicle, the emergency motion of the vehicle and the uniform motion of the vehicle, a first motion set of the planned path may be obtained.
[0078] In this implementation, the action may include but is not limited to driving actions such as acceleration, braking, emergency braking, and maintaining vehicle speed. The first action set may include at least one driving action of the vehicle. Maintaining vehicle speed may represent a uniform speed action.
[0079] In this implementation, the driving data of the vehicle may include the planned path, the position of the vehicle, and the speed of the vehicle. The driving data of the agent ahead of the planned path may include the position of the agent ahead.
[0080] Here, the forward motion of the vehicle may be an accelerating driving motion.
[0081] In a specific implementation process of this implementation method, first, the position of the intelligent body in front and the expected speed of the intelligent body in front are obtained. Secondly, based on the position of the vehicle and the position of the intelligent body in front, the current distance between the vehicle and the intelligent body in front is calculated. Thirdly, based on the current distance, the expected speed of the intelligent body in front, the preset safety distance, and the speed of the vehicle, a first forward acceleration is calculated. Thirdly, based on the first forward acceleration and the preset parameters, a second forward acceleration is calculated. Thirdly, the first forward acceleration and the second forward acceleration are used as the forward movement of the vehicle.
[0082] In this specific implementation process, the preset safety distance may be the minimum safe distance between the vehicle and the intelligent body in front.
[0083] Here, the first forward acceleration may be a first forward acceleration action. The second forward acceleration may be a second forward acceleration action. The first forward acceleration and the second forward acceleration may both be acceleration, or, deceleration.
[0084] In this implementation, the driving data of the intelligent body behind the planned path may include the position of the intelligent body behind and the speed of the intelligent body behind.
[0085] Here, the backward movement of the vehicle may be a braking driving movement, that is, a decelerating driving movement. The backward movement of the vehicle may represent the braking acceleration, that is, the deceleration, that the rear intelligent agent believes that the vehicle may take.
[0086] In another specific implementation process of the implementation method, first, the position and speed of the rear intelligent body are obtained. Secondly, based on the position and speed of the rear intelligent body and the preset safe vehicle distance, the reaction time of the rear intelligent body is determined. Thirdly, based on the speed of the vehicle, the reaction time of the rear intelligent body, the speed of the rear intelligent body, the preset acceleration and braking acceleration of the rear intelligent body, the first rear acceleration of the vehicle is calculated. Thirdly, based on the first rear acceleration and the preset parameters, the second rear acceleration is calculated. Thirdly, the first rear acceleration and the second rear acceleration are used as the rearward movement of the vehicle.
[0087] Here, the first backward acceleration may be a first backward acceleration action, and the second backward acceleration may be a second backward acceleration action. The first backward acceleration and the second backward acceleration may both be braking acceleration, that is, deceleration.
[0088] In another specific implementation process of this implementation, the emergency action can be determined based on actual business needs and experience.
[0089] For example, the emergency action may be an emergency braking acceleration, and the emergency action may represent the amount of emergency braking to cope with an emergency situation.
[0090] In this implementation, the uniform speed action may represent the action of the vehicle maintaining the current vehicle speed, that is, the action with zero acceleration.
[0091] In another specific implementation process of the implementation method, first, based on the forward action of the vehicle, the backward action of the vehicle, the emergency action of the vehicle and the uniform speed action of the vehicle, a candidate action set is obtained. Then, the candidate action set is pruned using a preset pruning strategy to obtain a first action set of the planned path.
[0092] In this specific implementation process, the number of actions in the first action set may be less than or equal to a preset number threshold. The preset number threshold may be determined based on driving safety conditions.
[0093] Exemplarily, the preset number threshold may be 6.
[0094] In one case of this specific implementation process, in response to the first forward acceleration being greater than zero, the number of actions in the first action set is determined to be 6, and the first action set includes the first forward acceleration, the first forward acceleration, the first backward acceleration, the first backward acceleration, the emergency action and the uniform speed action.
[0095] Another situation of this specific implementation process is that in response to the first forward acceleration being equal to zero, the number of actions in the first action set is determined to be 4, and the first action set may include the first backward acceleration, the first backward acceleration, the emergency action and the uniform speed action.
[0096] Another situation of this specific implementation process is, in response to the first forward acceleration being less than zero and the first forward acceleration being less than the first backward acceleration, it is determined that the number of actions in the first action set is 4, and the first action set includes the first forward acceleration, the first forward acceleration, the first backward acceleration, the first backward acceleration, and the emergency action.
[0097] Another situation of this specific implementation process is, in response to the first forward acceleration being less than zero and the first forward acceleration being equal to the first backward acceleration, it is determined that the number of actions in the first action set is 3, and the first action set may include the first backward acceleration, the first backward acceleration, and an emergency action.
[0098] Another situation of this specific implementation process is, in response to the first forward acceleration being less than zero and the first forward acceleration being greater than the first backward acceleration, it is determined that the number of actions in the first action set is 5, and the first action set includes the first forward acceleration, the first forward acceleration, the first backward acceleration, the first backward acceleration, and the emergency action.
[0099] In this way, the vehicle's movements can be sampled based on the vehicle's planned path. Since the path direction is determined, there is no need to sample the vehicle's orientation. Only the longitudinal movement of the vehicle needs to be sampled, which reduces the dimension of the vehicle's movement sampling and the number and complexity of solutions in the game process, thereby further improving the efficiency of vehicle trajectory planning.
[0100] Optionally, in a possible implementation of the present embodiment, in step 102, the following operations may be performed for each predicted path: First, the driving data of other intelligent bodies in front of the predicted path is obtained. Secondly, based on the driving data of the vehicle and the driving data of other intelligent bodies in front, a preset first acceleration algorithm is used to obtain the forward action of the intelligent body. Thirdly, the driving data of other intelligent bodies behind the predicted path is obtained. Thirdly, based on the driving data of the vehicle and the driving data of other intelligent bodies behind, a preset second acceleration algorithm is used to obtain the backward action of the intelligent body. Thirdly, the emergency action of the intelligent body and the uniform speed action of the vehicle are determined. Thirdly, based on the forward action of the intelligent body, the backward action of the intelligent body, the emergency action of the intelligent body and the uniform speed action of the intelligent body, a second action set of the predicted path is obtained.
[0101] In this implementation, each of the multiple intelligent agents interacting with the vehicle may correspond to multiple predicted paths. For any predicted path of any intelligent agent, the specific implementation process in this implementation may be executed.
[0102] In this implementation, the other intelligent agents may be intelligent agents that are located on the predicted path of the intelligent agent, or that are about to be located on the predicted path of the intelligent agent and that may have a risk of collision with the intelligent agent.
[0103] In a specific implementation process of the implementation method, first, a candidate action set of the agent can be obtained based on the forward action of the agent, the backward action of the agent, the emergency action of the agent and the uniform speed action of the agent. Secondly, the candidate action set of the agent is pruned using a preset pruning strategy to obtain a second action set of the predicted path.
[0104] It is understandable that the specific implementation of the process of obtaining the second action set of the agent based on the predicted path is similar to the specific implementation of the process of obtaining the first action set of the vehicle based on the planned path. The processing method of the vehicle action sampling is similar to the processing method of the action set sampling of the agent, and the relevant contents of the aforementioned implementation method can be referred to, and no further description is required here.
[0105] In this way, the action of the agent can be sampled based on the predicted path of the agent. Since the direction of the path is determined, there is no need to sample the orientation of the agent. Only the longitudinal action of the agent needs to be sampled, which reduces the dimension of the action sampling of the agent and the number and complexity of solutions in the game process, thereby further improving the efficiency of vehicle trajectory planning.
[0106] It should be noted that the specific implementation process provided in this implementation method can be combined with the various specific implementation processes provided in the aforementioned implementation methods to implement the trajectory planning method of the autonomous driving vehicle of this embodiment. For a detailed description, please refer to the relevant content in the aforementioned implementation method, which will not be repeated here.
[0107] Optionally, in a possible implementation of the present embodiment, in step 102, first, a given reasoning level of the vehicle can be inferred based on a pre-given agent, and the vehicle and the agent can be gamed to determine at least one reasoning interaction between the vehicle and the agent corresponding to the given reasoning level. Secondly, based on the driving data of the vehicle, the first action set, the driving data of the agent, the second action set of each predicted path, and at least one reasoning interaction between the vehicle and the agent, the reasoning trajectory of the vehicle and the reasoning trajectory of the agent can be searched to obtain the response trajectory of the agent corresponding to the given reasoning level. Thirdly, the response trajectory of the agent corresponding to the given reasoning level can be verified to obtain the target response trajectory of the agent.
[0108] In this implementation, the number of given reasoning levels at which the predetermined agent infers the vehicle may be multiple.
[0109] Exemplarily, the preset hierarchical game strategy includes three reasoning levels, and the given reasoning level may include level 0, level 1, and level 2. The reasoning depths corresponding to level 0 to level 1 to level 2 are from small to large.
[0110] For example, an intelligent agent or self-driving car at level 2 has a large reasoning depth and a high level of intelligence; an intelligent agent or self-driving car at level 0 has a small reasoning depth and a low level of intelligence and will take aggressive driving actions.
[0111] In a specific implementation process of this implementation method, first, a given reasoning level of the vehicle can be inferred based on a pre-given intelligent agent, and the vehicle and the intelligent agent can be gamed to determine at least one reasoning interaction between the vehicle and the intelligent agent corresponding to the given reasoning level. Secondly, based on the vehicle's driving data, the first action set, the vehicle's first action set, the intelligent agent's second action set, and at least one reasoning interaction between the vehicle and the intelligent agent, the response trajectory of the intelligent agent corresponding to the given reasoning level can be obtained using the preset first search algorithm or the preset second search algorithm. Thirdly, the response trajectory of the intelligent agent corresponding to the given reasoning level can be verified to obtain the target response trajectory of the intelligent agent.
[0112] In this specific implementation process, multiple reasoning interaction situations of the vehicle and the agent corresponding to a given reasoning level can represent the reasoning level of both parties obtained by inferring the interaction between the vehicle and the agent based on the given reasoning level.
[0113] Optionally, given the reasoning level is level 0, the reasoning interaction situations between the vehicle and the agent include the case where the agent infers that the vehicle's reasoning level is level 0, the case where the agent infers that the vehicle's reasoning level is level 0, that is, the case where the vehicle's reasoning level is level 0, the case where the vehicle infers that the agent is stationary, and the case where the agent is stationary.
[0114] Optionally, given the reasoning level is level 1, the reasoning interaction situations between the vehicle and the agent include the case where the agent infers that the vehicle's reasoning level is level 1, the case where the agent infers that the vehicle's reasoning level is level 1, the case where the vehicle infers that the agent is level 0, the case where the vehicle infers that the agent is level 0, and the case where the agent infers that the vehicle is stationary, and the case where the vehicle is stationary.
[0115] Optionally, given that the reasoning level is level 2, the reasoning interaction situations between the vehicle and the agent include the case where the agent infers that the vehicle's reasoning level is level 2, the case where the agent infers that the vehicle's reasoning level is level 2, the case where the vehicle infers that the agent is level 1, the case where the vehicle infers that the agent is level 1, the case where the agent infers that the vehicle is level 0, the case where the agent infers that the vehicle is level 0, the case where the agent infers that the vehicle is level 0, the vehicle infers that the agent is stationary, and the case where the agent is stationary.
[0116] In this implementation, the inference interaction situation may also include a first interaction state and a second interaction state.
[0117] Here, the first interaction state may include an interaction state of inferring the inference trajectory of the vehicle based on the inference trajectory of the agent. The second interaction state may include an interaction state of inferring the inference trajectory of the agent based on the inference trajectory of the vehicle.
[0118] In a specific implementation process of this implementation method, first, based on the driving data of the vehicle, the first action set, and the driving data of the agent, the preset first search algorithm can be used to search and process the reasoning trajectory in the first interaction state to obtain a first search result. Secondly, based on the driving data of the vehicle, the driving data of the agent, and the second action set of each predicted path, the preset second search algorithm can be used to search and process the reasoning trajectory in the second interaction state to obtain a second search result. Thirdly, based on the first search result and the second search result, the response trajectory of the agent corresponding to the given reasoning level is obtained.
[0119] In this specific implementation process, searching and processing the inference trajectory in the first interaction state may be searching and processing the inference trajectory of the vehicle in the first interaction state, and the first search result may be the inference trajectory of the vehicle obtained by the search. Searching and processing the inference trajectory in the second interaction state may be searching and processing the inference trajectory of the agent in the second interaction state, and the second search result may be the inference trajectory of the agent obtained by the search.
[0120] Here, the driving data of the vehicle may include but is not limited to the position of the vehicle, the speed of the vehicle, the acceleration of the vehicle, and the planned path of the vehicle, etc. The driving data of the agent may include but is not limited to the position of the agent, the speed of the agent, the acceleration of the agent, and at least one predicted path of the agent.
[0121] Exemplarily, first, when the given reasoning level is level 0, that is, when the agent infers the vehicle's reasoning level to be level 0, the vehicle can infer that the agent is stationary. Secondly, when the agent is stationary, the initial reasoning trajectory of the agent being stationary can be obtained. Thirdly, based on the driving data of the vehicle, the driving data of the agent, the first action set of the vehicle, and the initial reasoning trajectory of the agent being stationary, a preset first search algorithm is used to search for the reasoning trajectory of the vehicle that the vehicle infers the agent to be stationary. Thirdly, based on the driving data of the vehicle, the driving data of the agent, the second action set of each predicted path of the agent, and the reasoning trajectory of the vehicle that the vehicle infers the agent to be stationary, a preset second search algorithm is used to search for the response trajectory of the agent that the agent infers the vehicle's reasoning level to be level 0, that is, the response trajectory of the agent given the reasoning level to be level 0.
[0122] Exemplarily, first, when the given reasoning level is level 1, that is, when the agent infers that the vehicle's reasoning level is level 1, the vehicle can infer that the agent's reasoning level is level 0; when the vehicle infers that the agent's reasoning level is level 0, the agent can infer that the vehicle is stationary; when the agent infers that the vehicle is stationary, the vehicle can be stationary. Secondly, when the vehicle is stationary, the initial reasoning trajectory of the vehicle being stationary can be obtained. Thirdly, based on the vehicle's driving data, the agent's driving data, the agent's second action set for each predicted path, and the initial reasoning trajectory of the vehicle being stationary, the preset second search algorithm is used to search for the reasoning trajectory of the agent that the agent infers that the vehicle is stationary. Thirdly, based on the vehicle's driving data, the agent's driving data, the vehicle's first action set, and the agent's reasoning trajectory that the agent infers that the vehicle is stationary, the preset first search algorithm is used to search for the reasoning trajectory of the vehicle that the vehicle infers that the agent's reasoning level is level 0. Again, based on the vehicle's driving data, the agent's driving data, the second action set of each predicted path of the agent, and the vehicle's inference trajectory of the vehicle with a reasoning level of 0, the preset second search algorithm is used to search for the agent's inference trajectory of the vehicle with a reasoning level of 1, that is, the response trajectory of the agent given a reasoning level of 1.
[0123] Exemplarily, first, given the reasoning level of 2, that is, when the agent infers the reasoning level of the vehicle to be 2, the vehicle can infer the reasoning level of the agent to be 1; when the vehicle infers the reasoning level of the agent to be 1, the agent can infer the reasoning level of the vehicle to be 0; when the agent infers the reasoning level of the vehicle to be 0, the vehicle can infer that the agent is stationary; when the vehicle infers that the agent is stationary, the agent can be stationary. Secondly, when the agent is stationary, the initial reasoning trajectory of the agent can be obtained. Thirdly, based on the driving data of the vehicle, the driving data of the agent, the first action set of the vehicle, and the initial reasoning trajectory of the agent when the agent is stationary, the preset first search algorithm is used to search for the reasoning trajectory of the vehicle inferring the agent to be a stationary vehicle. Thirdly, based on the driving data of the vehicle, the driving data of the agent, the second action set of each predicted path of the agent, and the reasoning trajectory of the vehicle inferring the agent to be a stationary vehicle, the preset second search algorithm is used to search for the reasoning trajectory of the agent inferring the vehicle to be a stationary vehicle. Again, based on the driving data of the vehicle, the driving data of the agent, the first action set of the vehicle, and the inference trajectory of the agent whose inference level is 0, the preset first search algorithm is used to search for the inference trajectory of the vehicle whose inference level is 1. Again, based on the driving data of the vehicle, the driving data of the agent, the second action set of each predicted path of the agent, and the inference trajectory of the vehicle whose inference level is 1, the preset second search algorithm is used to search for the inference trajectory of the vehicle whose inference level is 2, that is, the response trajectory of the agent whose inference level is 2.
[0124] Preferably, the preset first search algorithm and the preset second search algorithm may be search algorithms based on Monte Carlo tree search (MCTS).
[0125] Here, the preset second search algorithm may be a search algorithm for MCTs of a search tree constructed based on multiple predicted paths of the agent and the second action set.
[0126] In this way, the MCTs algorithm can be used to calculate the reasoning trajectory in each game interaction situation to obtain the final response trajectory of the intelligent agent, which can further improve the solution speed of the trajectory planning of the autonomous driving vehicle.
[0127] One situation of the specific implementation process is that, first, the belief value corresponding to the given reasoning level can be obtained. Secondly, based on the belief value corresponding to the given reasoning level, a preset verification algorithm can be used to verify the response trajectory of the agent corresponding to the given reasoning level. Thirdly, based on the result of the verification process, the target response trajectory of the agent is obtained.
[0128] Preferably, the preset verification algorithm may include a cross-validation algorithm. The reward value of the cross-validation may be calculated based on the reward function of the cross-validation algorithm. The reward function of the cross-validation algorithm may be determined based on the safety reward function, efficiency reward function and comfort reward function of the cross-validation algorithm.
[0129] Here, preferably, the belief value corresponding to a given reasoning level in the previous planning cycle of the current planning cycle and the response trajectory of the intelligent agent corresponding to the given reasoning level can be obtained, and then based on the driving data of the intelligent agent in the current planning cycle and the response trajectory of the intelligent agent corresponding to the given reasoning level in the previous planning cycle, the belief value of the given reasoning level in the previous planning cycle can be updated to obtain the belief value corresponding to the given reasoning level.
[0130] Exemplarily, the belief values corresponding to a given reasoning level in the previous planning cycle of the current planning cycle may include a belief value of 1 for level 0, a belief value of 0 for level 1, and a belief value of 0 for level 2. The updated belief values of a given reasoning level may include a belief value of 0 for level 0, a belief value of 0.2 for level 1, and a belief value of 0.6 for level 2.
[0131] In this way, the belief value corresponding to a given reasoning level can be updated in real time during each planning cycle of the vehicle trajectory, which can further ensure the reliability of vehicle trajectory planning, thereby ensuring the safety, stability and efficiency of the autonomous driving vehicle driving process in multiple interactive intelligent agent scenarios.
[0132] Moreover, by defining belief values for the agent, the data structure can be simplified, thereby further reducing the complexity of trajectory solving.
[0133] Optionally, in a possible implementation of this embodiment, in step 103, first, based on the target response trajectory of each agent and the first action set, the preset first search algorithm is used to search the driving trajectory of the vehicle to obtain a reward value of the first action set of the vehicle. Secondly, in response to the reward value satisfying the preset reward condition, the planned trajectory of the vehicle is obtained.
[0134] In this implementation, the preset first search algorithm may include a heuristic search algorithm such as an MCTs algorithm. The reward value may be calculated based on a reward function of the preset first search algorithm. The reward function of the preset first search algorithm may include a forward deduction reward function. The forward deduction reward function may be determined based on a safety reward function, an efficiency reward function, and a comfort reward function.
[0135] In this way, through the target response trajectory of each intelligent agent and the first action set of the vehicle, a more accurate planned trajectory of the vehicle can be obtained using the preset first search algorithm.
[0136] It should be noted that the specific implementation process provided in this implementation method can be combined with the various specific implementation processes provided in the aforementioned implementation methods to implement the trajectory planning method of the autonomous driving vehicle of this embodiment. For a detailed description, please refer to the relevant content in the aforementioned implementation method, which will not be repeated here.
[0137] In order to better understand the method of the embodiment of the present application, the method of the embodiment of the present application is described below in conjunction with the accompanying drawings and specific application scenarios.
[0138] Figure 2 is a flow chart of a trajectory planning method for an autonomous driving vehicle provided by another embodiment of the present application, such as Figure 2 shown.
[0139] Step 201: Acquire driving data of a vehicle and driving data of at least one intelligent agent, wherein the driving data of the vehicle includes a planned path, and the driving data of each intelligent agent includes multiple predicted paths.
[0140] In an embodiment, a vehicle, i.e., an ego driving vehicle executing the method, may be referred to as an ego. An agent may be other obstacles in the driving environment of the ego that can interact with the ego. The number of agents may be multiple.
[0141] Preferably, the driving data of the vehicle may be the current driving data of the vehicle in the current planning cycle. The driving data of the vehicle may include but is not limited to position, speed, acceleration and planned path, etc. The driving data of the agent may be the current driving data of the agent in the current planning cycle. The driving data of the agent may be obtained by the vehicle's perception, or obtained by the vehicle directly through interaction with the agent. The driving data of the agent may include but is not limited to position, speed, acceleration and at least one predicted path. The predicted path may be the path of the agent predicted by the vehicle.
[0142] In an embodiment, Figure 3is a schematic diagram of an application scenario of a trajectory planning method for an autonomous driving vehicle provided by another embodiment of the present application, such as Figure 3 As shown in the figure, first, the vehicle can form a set of game combinations with each agent. Secondly, by using the preset hierarchical game strategy, each set of game combinations is processed to obtain the target response trajectories of multiple agents, that is, a level K game is performed on each set of ego-agent interactions to obtain the level K target response trajectory. Thirdly, based on the target response trajectories of multiple agents and the first action set of the vehicle, the preset MCTs algorithm is used to search for the optimal vehicle driving trajectory, which can be used as the planning trajectory of the vehicle.
[0143] Here, the preset hierarchical game strategy may be a K-level game strategy. In the process of playing the game using the preset hierarchical game strategy, the preset MCTs algorithm may also be used to search for the optimal reasoning trajectory. The preset MCTs algorithm may include a first search algorithm and a second search algorithm.
[0144] Here, the target response trajectory of each intelligent agent can be obtained by executing steps 202 to 206 for the vehicle and each intelligent agent respectively.
[0145] Step 202: Based on the driving data of the vehicle, perform action sampling processing on the planned path to obtain a first action set of the planned path.
[0146] Step 203: Based on the driving data of the intelligent agent, action sampling processing is performed on each predicted path to obtain a second action set for each predicted path.
[0147] In this embodiment, before collecting the first action set, first, the position coordinates and orientation angle of each discrete point on the planned path can be calculated based on the preset discreteness, the position in the driving data of the vehicle, and the planned path.
[0148] Exemplarily, based on the preset discreteness and the planned path, the position coordinates and orientation angle of each discrete point on the planned path are calculated, which can be shown as formula (1):
[0149] in, is the minimum sampling distance, is the total length of the planned path, is the path length from the location in the vehicle's driving data to the first discrete point, is the number of discrete points, represents the coordinates of discrete points, The angle representing the heading angle of a discrete point.
[0150] It is understandable that, before collecting the second action set, the above processing may be performed on each predicted path of the agent to obtain the position coordinates and orientation angles of discrete points on each predicted path.
[0151] In this embodiment, the way of collecting and obtaining the first action set is similar to the way of collecting and obtaining the second action set. For a vehicle, i.e., the ego vehicle, the first action set of the vehicle can be determined based on the relationship between the vehicle and the agent on the planned path. For an agent, i.e., an agent interacting with the ego vehicle, the second action set of the agent corresponding to each predicted path can be determined based on the relationship between the agent and other agents on each predicted path.
[0152] Preferably, for the first action set and the second action set, first, the size of the action set may be indefinite, and the total number of actions may be less than or equal to 6. When the total number of actions in the action set is 6, the action set may include 2 acceleration actions, 1 uniform speed action, 2 deceleration actions, and 1 emergency avoidance action.
[0153] Here, the action can refer to the longitudinal second-order quantity (acceleration), for example, the action corresponding to the discrete point on the path , where t is the time series, is the id of the currently controlled agent, is an action set with a maximum capacity of 6.
[0154] Exemplarily, the specific action definition process in any action set may be as follows:
[0155] First, with the currently controlled agent as the center, the surrounding agents are divided into three categories: agents on the front path , cutting into the agent around and the following agent ;
[0156] Here, when determining the first action set, the currently controlled agent may be the ego-vehicle, that is, the vehicle, and when determining the second action set, the currently controlled agent may be an agent interacting with the ego-vehicle.
[0157] Secondly, the first forward acceleration action in the forward action is calculated based on the current controlled agent and the agent on the path ahead , as shown in formula (2): (2)
[0158] in, is the expected following distance, is the expected vehicle speed, is the current speed of the controlled agent, is the current distance between the controlled agent and the agent on the path ahead, is the minimum safe distance, is the relative speed of the controlled agent and the agent on the path ahead.
[0159] In addition, according to Calculate the second forward acceleration action , as shown in formula (3): (3)
[0160] Again, it is understandable that when following its front vehicle, the rear vehicle should consider the maximum braking amount that the front vehicle may take in order to maintain a safe distance as much as possible. Based on this assumption, the maximum braking amount that the rear vehicle may take on the front vehicle can be inferred. For example, if the rear vehicle is moving at a high speed and is close to the front vehicle, it means that the rear vehicle believes that the possibility of emergency braking of the front vehicle is low.
[0161] Calculate the first backward acceleration action in the backward action based on the following agent on the rear path , as shown in formula (4): (4)
[0162] in, is the reaction time of the following agent on the rear path, i.e., the following vehicle, and is the current speed of the following agent and the controlled agent on the rear path, and is the maximum longitudinal acceleration / deceleration of the following agent on the rear path.
[0163] In addition, according to The second backward acceleration action is calculated , as shown in formula (5): (5)
[0164] Next, determine the emergency avoidance action. Here, for emergency planning, you need to set an emergency braking amount to deal with emergencies, that is, the emergency action , preferably, .
[0165] Again, make sure the uniform motion . .
[0166] Finally, the determined action set can be pruned.
[0167] In this way, the forward and backward collision risks are taken into consideration and the number of actions in the action set is reduced as much as possible while ensuring safety, thereby reducing the space exploration waste in the tree search process.
[0168] Best of the best, action set The default includes ;
[0169] if , then to Push in , , , , , the action set size is 6;
[0170] if , then to Push in , , , the action set size is 4;
[0171] if ,and , then to Push in , , , the action set size is 4;
[0172] if ,and , then to Push in , , the action set size is 3;
[0173] if ,and , then to Push in , , , , the action set size is 5.
[0174] In addition, in this embodiment, when performing MCTs search processing, based on the position coordinates and orientation angles of discrete points on the planned path and the first action set, the points on the planned path corresponding to the action, that is, the sampling points, can be found, or based on the position coordinates and orientation angles of discrete points on each predicted path and the second action set, the points on the predicted path corresponding to the action, that is, the sampling points, can be found.
[0175] Preferably, for the selected action , when performing mcts search processing, according to the selected action and execution time , calculate the amount of steps that can be taken , projected to the sl coordinate system, you can get the matching point information and get the sampling point , as shown in formula (6):
[0176] in, is the projection function of the binary search algorithm. Using the binary search algorithm, we can calculate The matching points on the corresponding path, i.e. the sampling points , for In this case, after executing action a, the position of the sl coordinate system is reached.
[0177] It can be understood that if the current state position coordinates are (x, y), the corresponding sl coordinates are s (the length of the path is s), mcts searches and samples an action a, and after executing action a, it arrives at Using formula (6), we can obtain the discrete points on the planned path from the above pre-calculation, or predict the discrete points on the path, and search for The corresponding discrete points, i.e., sampling points .
[0178] Furthermore, for executing action sequences , we can get the sampled discrete trajectory . In this way, the optimal trajectory can be searched based on the MCTs algorithm.
[0179] In this embodiment, Figure 4 is a schematic diagram of a trajectory planning method for an autonomous driving vehicle based on path sampling actions provided by another embodiment of the present application, such as Figure 4 As shown, the path can be uniformly sampled to obtain the minimum sampling distance, that is, the sampling step. Based on the sampling step, multiple points are collected on the path, and each point is assigned an action, including acceleration and deceleration, so that the trajectory corresponding to the path can be obtained.
[0180] Step 204 , based on a given reasoning level of the vehicle inferred by the pre-given agent, the vehicle and the agent are gamed to determine at least one reasoning interaction situation between the vehicle and the agent corresponding to the given reasoning level.
[0181] In this embodiment, the preset hierarchical game strategy may be a K-level game strategy. The reasoning level is determined based on the K-level game strategy. The reasoning level may represent the reasoning depth of the agent or vehicle. The number of reasoning levels may be multiple.
[0182] Preferably, the reasoning levels of the two parties in the game may include level 0, level 1, and level 2. Here, the given reasoning level of the vehicle inferred by the pre-given agent may be the reasoning level to which the pre-given agent believes the vehicle belongs. The reasoning depth of level 0 to level 1 to level 2 may be from small to large. Level 0 reasoning level may represent the lowest reasoning depth, and the agent or vehicle at level 0 reasoning level may be an aggressive agent or vehicle, and the agent or vehicle at level 0 reasoning level may predict that other agents interacting with it are static obstacles.
[0183] In this embodiment, multiple reasoning interaction situations of the vehicle and the agent corresponding to a given reasoning level may represent the reasoning level of both parties inferred by the interaction between the vehicle and the agent based on the given reasoning level.
[0184] Optionally, when the given reasoning level is level 0, the reasoning interaction between the vehicle and the agent includes a case where the agent infers that the vehicle's reasoning level is level 0, and a case where the vehicle infers that the agent is stationary when the agent infers that the vehicle's reasoning level is level 0.
[0185] Optionally, given the reasoning level is level 1, the reasoning interaction situations between the vehicle and the agent include the case where the agent infers that the vehicle's reasoning level is level 1, the case where the agent infers that the vehicle's reasoning level is level 1, and the case where the vehicle infers that the agent is level 0, and the case where the vehicle infers that the agent is level 0, and the agent infers that the vehicle is stationary.
[0186] Optionally, given the reasoning level is level 2, the reasoning interaction situations between the vehicle and the agent include the case where the agent infers that the vehicle's reasoning level is level 2, the case where the agent infers that the vehicle's reasoning level is level 2, the case where the vehicle infers that the agent is level 1, the case where the vehicle infers that the agent is level 1, and the case where the agent infers that the vehicle is level 0, and the case where the agent infers that the vehicle is level 0, and the vehicle infers that the agent is stationary.
[0187] In this embodiment, the trajectory inferred when the vehicle or agent is stationary can be the initial reasoning trajectory of the game. The trajectory when the vehicle or agent is stationary can be determined based on the driving data of the vehicle or agent in the current planning frame.
[0188] It can be understood that, because the vehicle or the intelligent body is stationary, the trajectory points are the same, and the trajectory points can all be the position coordinates and orientation angles of the vehicle or the intelligent body in the current planning frame, and the speed is zero.
[0189] Step 205: Based on the vehicle's driving data, the first action set, the agent's driving data, the second action set of each predicted path, and at least one reasoning interaction between the vehicle and the agent, the vehicle's reasoning trajectory and the agent's reasoning trajectory are searched and processed to obtain a response trajectory of the agent corresponding to a given reasoning level.
[0190] In this embodiment, the inference interaction situation may also include a first interaction state and a second interaction state.
[0191] Here, the first interaction state may include an interaction state of inferring the inference trajectory of the vehicle based on the inference trajectory of the agent. The second interaction state may include an interaction state of inferring the inference trajectory of the agent based on the inference trajectory of the vehicle.
[0192] Preferably, first, based on the vehicle's driving data, the first action set, and the agent's driving data, a preset first search algorithm can be used to search and process the reasoning trajectory in the first interaction state to obtain a first search result. Secondly, based on the vehicle's driving data, the agent's driving data, and the second action set of each predicted path, a preset second search algorithm can be used to search and process the reasoning trajectory in the second interaction state to obtain a second search result. Thirdly, based on the first search result and the second search result, the response trajectory of the agent corresponding to the given reasoning level is obtained.
[0193] In this embodiment, the preset first search algorithm may include a Monte Carlo tree search (MCTS) algorithm. Figure 5 is a schematic diagram of a one-to-one MCTs search corresponding to the first search algorithm of the trajectory planning method for an autonomous driving vehicle provided in another embodiment of the present application, such as Figure 5 As shown, it is a one-to-one Monte Carlo tree search. Monte Carlo tree search can be used to infer the optimal strategy of another interactive agent, the ego, given the strategy of an interactive agent. The interactive agent strategy may include a predetermined trajectory or a pre-inferred reasoning trajectory. Based on the given interactive agent strategy, the reasoning trajectory of the ego can be determined based on the first action set of the ego using Monte Carlo tree search. It can be understood that during the game, the reasoning trajectories of the agent and the vehicle can be determined alternately, and the strategies of the agent and the vehicle can be alternately used as the strategy of the given interactive agent.
[0194] For example, Figure 5 As shown in the figure, the root node structure of the Monte Carlo search tree includes the driving data corresponding to the reasoning trajectory of a given intelligent agent, that is, the state information , the driving data of the vehicle to be solved, that is, the state information ,Based on the time frame t, the first-level sub-node structure includes the driving data corresponding to the reasoning trajectory of a given agent, that is, the state information, , and the driving data corresponding to the actions a0, a1, a2 of the vehicle to be solved, that is, the state information , , ; The second-level subnode structure includes the driving data corresponding to the reasoning trajectory of a given intelligent agent, that is, the state information , and the driving data corresponding to the actions a0, a1, a1, a1 of the vehicle to be solved, that is, the state information , , , ; The third-level subnode structure includes the driving data corresponding to the reasoning trajectory of a given intelligent agent, that is, the state information , and the driving data corresponding to the action a0 of the vehicle to be solved, that is, the state information .
[0195] Here, the driving data corresponding to each trajectory point on the inference trajectory, that is, the state information, may include but is not limited to position, speed, acceleration, etc. The driving data corresponding to any action a to be solved, that is, the state information to be solved, may also include but is not limited to position, speed, acceleration, etc.
[0196] Exemplarily, when the agent strategy is a given strategy, the optimal strategy of the vehicle (ego) can be obtained using the following formula (7): (7)
[0197] in, Can be an agent strategy, can be the optimal strategy for the vehicle (ego), can be a reward function, t can be time, and represents the time frame.
[0198] It is understood that the policy may include actions that the agent or vehicle may perform in each frame. The policy given to the agent may be determined based on the agent's reasoning trajectory. The optimal policy of the vehicle (ego) may be mapped to the optimal reasoning trajectory of the vehicle (ego).
[0199] In this embodiment, the preset second search algorithm may also include a Monte Carlo search tree (MCTS) algorithm. The second search algorithm may be a search algorithm of the MCTs based on a search tree constructed by multiple predicted paths of the agent and the second action set. The tree and node structure of the second search algorithm are different from the tree and node structure of the first search algorithm. Figure 6 is a schematic diagram of an MCTs search corresponding to a second search algorithm of a trajectory planning method for an autonomous driving vehicle provided in another embodiment of the present application, such as Figure 6 As shown, the root node structure of the Monte Carlo search tree includes , The corresponding multiple predicted trajectories to be searched (predict_trajectory0, predict_trajectory1, ..., predict_trajectory n ). Multiple predicted trajectories can be searched and determined based on the predicted path and the actions in the second action set. Based on the given ego vehicle driving data and the second action set on each predicted path of the agent, the optimal agent reasoning trajectory can be searched. Based on the time frame t, the first-level sub-node structure includes the driving data corresponding to a given ego vehicle reasoning trajectory, that is, the state information, , based on a predicted path to be solved by the intelligent agent ; The second-level subnode structure includes the driving data corresponding to a given inference trajectory of the ego vehicle, that is, the state information, , and the driving data corresponding to the actions a0, a1, and a2 of the intelligent agent to be solved, that is, the state information , , ; The third-level subnode structure includes the driving data corresponding to a given inference trajectory of the vehicle, that is, the state information , and the driving data corresponding to the actions a0, a1, a1, a1 of the intelligent agent to be solved, that is, the state information , , , ; The fourth-level subnode structure includes the driving data corresponding to the reasoning trajectory of a given intelligent agent, that is, the state information , and the driving data corresponding to the action a0 of the intelligent agent to be solved, that is, the state information .
[0200] For example, when the ego strategy is a given strategy, the optimal strategy of the agent can be obtained using the following formula (8): (8)
[0201] in, It can be a vehicle (ego) strategy, can be the optimal strategy of the agent, can be a reward function, t can be time, and represents the time frame.
[0202] It is understood that the policy may include actions that the agent or vehicle can perform in each frame. A given policy of the vehicle (ego) may be determined based on the vehicle's reasoning trajectory. The optimal policy of the agent (agent) may be mapped to the optimal reasoning trajectory of the agent (agent).
[0203] In this embodiment, the reward function of the preset first search algorithm may include a forward deduction reward function. The reward value of the preset search algorithm may include a forward deduction reward value. The forward deduction reward function can be used to step search for the optimal response strategy given the interactive agent strategy to obtain the optimal response trajectory, so it pays more attention to the safety, efficiency and comfort of a single step. The cumulative reward function of forward deduction for executing a set of actions in time sequence, that is, the forward deduction reward function can be expressed as formula (9): (9)
[0204] in, It can be the forward deduction reward value, It can be the stage reward value, or the action performed at time t under the predicted traffic conditions. The function of It can be a discount factor, and n is the actual number of actions performed.
[0205] Optionally, the forward deduction reward function may take into account safety, efficiency and comfort. The forward deduction reward function may be determined based on the safety reward function, the efficiency reward function and the comfort reward function. It can be defined as the following formula (10): (10)
[0206] in, is the weight coefficient, index , , They represent efficiency, safety and comfort rewards respectively, namely, efficiency reward function, safety reward function and comfort reward function.
[0207] Optionally, safety may include absolute safety and separation safety. Absolute safety refers to the absolute boundary shape of the vehicle, that is, the collision judgment result between polygons is no collision, and separation safety refers to the overlap relationship between the vehicle and the relative polygon is no overlap. The relative polygon can be a polygon with a safety buffer added. Here, absolute safety must be met, and no reward function is set. If absolute safety is violated, the MCTs are directly pruned. The calculated safety reward function can be a reward function for separation safety.
[0208] Figure 7 is a schematic diagram of a separation zone of a trajectory planning method for an autonomous driving vehicle provided in another embodiment of the present application, such as Figure 7 As shown, the area formed by lc and wc can be an absolute safety area (C area), and the area formed by lc+sr+sf and ws can be a relatively safe area (S area), that is, a separation area. The position data of the vehicle can be (x, y), and the speed data of the vehicle is v.
[0209] Here, the reward function for separation safety can be calculated by accumulating the overlapping area, as shown in the following formula (11): (11)
[0210] in, is the prediction of the overlapping area of the separation zone (s zone) of vehicles i and j, and the parameter is a preset parameter used to adjust the relative contribution of the overlap area to the velocity. , are the speeds of the two cars respectively, I(⋅) is the indicator function, which takes 1 if (⋅) is true, otherwise it takes 0.
[0211] It can be understood that the process of determining the separation safety reward function is to perform collision detection between vehicles. Here, when searching for the response trajectory of any intelligent agent interacting with the vehicle, the collision detection can be a local collision detection.
[0212] Optionally, for different levels of trajectories of the interactive agent (vehicle), the efficiency evaluation of the agent is fixed, and the efficiency should be approximately proportional to the speed v and position s at the end point of the response trajectory corresponding to the response strategy. The efficiency reward function can be expressed as the following formula (12):
[0213] in, is the expected speed, is the speed of vehicle i, is the efficiency loss coefficient, is the overspeed loss coefficient, is an indicator function, which takes 1 if (.) is true, otherwise takes 0. Punishment for blocking ahead, is the distance between vehicle i and the vehicle in front, is the forward threshold, is the loss coefficient due to the blocking caused by the presence of the preceding vehicle, is the loss coefficient of the speed difference between the preceding vehicle and its expected speed, is the expected speed of the preceding vehicle.
[0214] Optionally, comfort mainly considers the impact of vehicle acceleration and deceleration behavior, and the comfort reward function can be expressed as follows: (13)
[0215] in, is the trade-off coefficient of the impact of acceleration and deceleration on comfort, is the action chosen at time t.
[0216] Step 206: Verify the response trajectory of the agent corresponding to the given reasoning level to obtain the target response trajectory of the agent.
[0217] In this embodiment, based on the belief value corresponding to the given reasoning level, a preset verification algorithm can be used to verify the response trajectory of the agent corresponding to the given reasoning level to obtain the target response trajectory of the agent.
[0218] Here, the preset validation algorithm may include a cross validation algorithm.
[0219] Preferably, based on the known trajectories of an agent (the vehicle) at different levels For example, the reasoning trajectory of vehicles at different levels can be used to calculate the response trajectory of another agent (interactive agent). For example, given the response trajectory of the agent corresponding to the reasoning level, it is necessary to judge the comprehensive performance of each response trajectory for different level trajectories, that is, to perform cross-validation.
[0220] For example, Figure 8 FIG. 1 is a schematic diagram of a cross-validation of a trajectory planning method for an autonomous driving vehicle provided by another embodiment of the present application. Figure 8As shown, the response trajectory of the agent corresponding to a given reasoning level: level 0: respond, level 1: respond, level 2: respond can be cross-validated based on the corresponding belief values b1, b2, b3, respectively, and the reasoning trajectory of the known vehicle, the reasoning trajectory of the vehicle solved during the game for interacting with the response trajectory of the agent: level 0: reasoning trajectory (level0: original), level 1: reasoning trajectory (level 1: original), level 2: reasoning trajectory (level 2: original), and then the corresponding total cross-validation reward value of each level can be calculated: the total reward value of the response trajectory of level 0 (overall for resp0), the total reward value of the response trajectory of level 1 (overall for resp0), and the total reward value of the response trajectory of level 2 (overall for resp0).
[0221] In this embodiment, cross-validation can be used to verify the performance of the response trajectory of the agent corresponding to a given reasoning level on the reasoning trajectory of the corresponding vehicle at different levels. Therefore, it mainly involves the overall safety, efficiency and comfort. The verification reward function of the cross-validation algorithm, that is, the cumulative reward, can be expressed as formula (14): (14)
[0222] in, Can be used to verify the reward value, >0, =1,2,3 are weight coefficients, indicators They represent efficiency, safety and comfort rewards respectively, namely, efficiency reward function, safety reward function and comfort reward function.
[0223] Optionally, in the calculation of the cross-validation safety reward function, absolute safety and separation safety can be considered. The absolute safety reward function is as follows (15): (15)
[0224] in, is the prediction of the overlapping area of the “safe zone” (zone c) of vehicles i and j, and the parameter Adjust the relative contribution of the overlap area to the velocity, are the speeds of the two cars, is an indicator function, which takes the value 1 if (⋅) is true and 0 otherwise.
[0225] The safety reward function is as follows (16): (16)
[0226] in, It can be the separation safety reward function, which can be calculated using the above formula (11): It can be an absolute safety reward function, ,Right now Much greater than .
[0227] Here, the cross-validated safety reward function includes collision detection, and the cross-validated safety reward function can be used to detect the collision required for cross-validating whether the trajectory has a risk when the vehicle trajectory and the trajectory of the interactive agent correspond to each other and are fixed. It can be understood that the collision detection can be a local detection.
[0228] Optionally, for the trajectories of different levels of the interactive agent, the efficiency evaluation of the agent is fixed, and the efficiency should be approximately proportional to the speed v and position s at the end point of the response trajectory corresponding to the response strategy. The efficiency reward function of the cross-validation can be expressed as the following formula (17): (17)
[0229] in, is the expected speed, is the speed of vehicle i, is the efficiency loss coefficient, is the overspeed loss coefficient, is an indicator function, which takes 1 if (.) is true, otherwise takes 0. is the target position s, is the expected position loss coefficient.
[0230] Alternatively, similar to the efficiency reward function, the comfort of a fixed response trajectory is determined only by the acceleration and deceleration actions at each step, and the comfort evaluation is the same. The comfort reward function can be expressed as the following formula (18): (18)
[0231] in, is the trade-off coefficient of the impact of acceleration and deceleration on comfort, is the action chosen at time t.
[0232] In this embodiment, during the cross-validation process, the expected cumulative reward of an action sequence of an agent's response trajectory can be expressed as the following formula (19): (19)
[0233] in, It can represent the expected cumulative reward value of an agent's response trajectory. It can represent the belief value that the agent infers that the vehicle is at a given reasoning level, that is, the belief value corresponding to a given reasoning level can be expressed as a probability, It can be defined as the following formula (20): (20)
[0234] in, is the discount factor, It can be the verification reward value of the agent's action sequence (action set) and the verification reward value of the agent's response trajectory. K can represent the reasoning level.
[0235] Based on formulas (13) and (14), the agent can select the action sequence (action set) that best corresponds to the reward function (or, cost function), that is, the action set with the maximum benefit / minimum loss. The agent infers the response trajectory of the vehicle for a given reasoning layer. It can be expressed as the following formula (21): (twenty one)
[0236] in, Can represent trajectories.
[0237] In this embodiment, first, the belief value of a given reasoning level in the previous planning cycle of the current planning cycle and the target response trajectory of the agent are obtained. Secondly, based on the driving data of the agent in the current planning cycle and the target response trajectory of the agent in the previous planning cycle, the belief value of a given reasoning level in the previous planning cycle is updated using a preset belief value update algorithm to obtain the belief value corresponding to the given reasoning level in the current planning cycle.
[0238] For example, while the agent (self-car) is driving, it can update the belief value of the reasoning level of other agents in real time. The agent should have the belief of other agent models (probability distribution of all models), which is updated and modified by analyzing the actual actions taken by each other agent.
[0239] Here, the belief value of the agent (the vehicle), that is, the probability that an agent believes that the agent it interacts with is modeled as a level k agent, is P(k). Here, we can only consider the highest reasoning level of the agent as level 2, which can be specifically shown in formula (22): (twenty two)
[0240] Optionally, here, the belief update may be to update the belief value of a given reasoning level, that is, the agent infers that the vehicle is a belief value corresponding to a given reasoning level, and the belief value may be on the agent side. The given reasoning level may include level 0 / level 1 / level 2. The inter-frame belief update process of the planning cycle may include: first, the obstacle belief value set of the previous frame may be obtained , and the corresponding optimal action set response trajectories are Secondly, obtain the state of the actual arrival position of the agent in the current frame based on the previous frame planning, recorded as , determine the trajectory points and The degree of closeness, calculation The response trajectory input by the minimum value of the two-norm between the response trajectory points can then determine the trajectory point with the greatest proximity, and the agent infers that the vehicle is at a given reasoning level, and increase the belief value of the agent inferring that the vehicle is at a given reasoning level. The belief value update algorithm can be expressed as the following formulas (23) to (26): (twenty three)
[0241] Raising the level of reasoning Belief probability, (twenty four)
[0242] Update belief probability, (25)
[0243] in, It can represent the belief value that the agent infers that the vehicle is at a given reasoning level, Can represent assignment, It can represent the preset change value, and ||.|| can represent the multi-dimensional Euclidean distance between the actual arrival position of the agent and the trajectory point on the optimal response trajectory of the agent inferring the vehicle for a given reasoning level, which is expressed by the following formula: (26)
[0244] in, and is the global position of the actual point and trajectory point, and is the yaw angle between the actual point and the trajectory point, and is the velocity of the actual point and the trajectory point.
[0245] It is understandable that the belief value can represent a general driving style. Here, the belief value can be defined on the intelligent agent that interacts with the vehicle, which can simplify the complexity of the data structure and thus greatly reduce the complexity of the solution.
[0246] It should be noted that the reward function of the preset second search algorithm and the reward function of the preset first search algorithm may be similar. The reward function determination process and verification process based on the preset second search algorithm may be the same as the reward function determination process and verification process of the preset first search algorithm. The specific implementation method may refer to the relevant content of the preset first search algorithm, which may not be repeated here.
[0247] It can be understood that the preset first search algorithm and the preset second search algorithm are merely MCTs algorithms based on different tree structures, and the specific search methods of the preset first search algorithm and the preset second search algorithm may also be based on the same MCTs algorithm.
[0248] Step 207: Based on the vehicle's driving data, the target response trajectory of each intelligent agent and the vehicle's first action set, the vehicle's driving trajectory is searched and processed using a preset first search algorithm until the reward value of the vehicle's first action set meets the preset reward condition, thereby obtaining the vehicle's planned trajectory.
[0249] In this embodiment, the vehicle's driving data may include the current vehicle's position, speed, acceleration, and planned path, etc.
[0250] In this embodiment, Fig. 9 is a schematic diagram of a one-to-many MCTs of a trajectory planning method for an autonomous driving vehicle provided by another embodiment of the present application, such as Fig. 9 As shown in , given the target response trajectories of all agents interacting with the vehicle, the Monte Carlo tree search algorithm can be used to infer the optimal planning trajectory of the vehicle. Fig. 9 As shown, the root node structure of the Monte Carlo search tree includes the driving data corresponding to the target response trajectory of all given intelligent agents interacting with the vehicle, that is, the state information. , and the vehicle's driving data, i.e., status information , based on the time frame t, the first-level sub-node structure includes the driving data corresponding to the target response trajectory of all given intelligent agents interacting with the vehicle, that is, the state information, , and the driving data corresponding to the actions a0, a1, a2 of the vehicle to be solved, that is, the state information , , ; The second-level subnode structure includes the driving data corresponding to the target response trajectory of all given intelligent agents interacting with the vehicle, that is, the state information, , and the driving data corresponding to the actions a0, a1, a1, a1 of the vehicle to be solved, that is, the state information , , , ; The third-level subnode structure includes the state information of all given agents interacting with the vehicle, , and the driving data corresponding to the action a0 of the vehicle to be solved, that is, the state information .
[0251] In this embodiment, based on the target response trajectory of all interactive agents , using the Monte Carlo tree search algorithm, the optimal trajectory of the vehicle can be inferred , here, the trajectory can be mapped to the corresponding strategy, and then the Monte Carlo tree search algorithm is specifically shown in the following formula (27): (27)
[0252] in, Can be all agent strategies, can be the optimal strategy for the vehicle (ego), can be a reward function, t can be time, and represents the time frame.
[0253] Here, the reward value of the first action set of the vehicle may represent the cost of the first action set of the vehicle, and the preset reward condition may include that the reward value of the first action set of the vehicle is the maximum value, that is, the cost of the first action set of the vehicle is the minimum.
[0254] Optionally, the first action set of the vehicle may include an action sequence, and the predicted vehicle driving data may be calculated based on the action sequence of the vehicle with the largest reward value, and then the planned trajectory of the vehicle may be obtained based on the predicted vehicle driving data.
[0255] It can be understood that here, the process of determining the reward value of the first action set of the vehicle can refer to the process of determining the reward value of the forward deduction reward function of the Monte Carlo tree search algorithm in the aforementioned steps, which will not be repeated here.
[0256] Optionally, in step 207, the vehicle's driving trajectory is searched and processed using a preset first search algorithm based on the target response trajectory of each agent and the first action set of the vehicle. Here, when determining the safety reward function of the forward deduction reward function, the target response trajectory of all agents interacting with the vehicle is searched, and the collision detection can be a global collision detection. Based on the first action set of the vehicle and the target response trajectory of all agents, the vehicle is collided with all agents.
[0257] It should be noted that in this embodiment, collision detection is used for reward function / cost function design, and collision detection can include single-step deduction detection and cross-validation detection. Specifically, single-step deduction detection is mainly used for MCTs forward deduction single-step to determine whether there is a collision. Single-step deduction detection can also include local detection and global detection. Local detection can be used for collision detection required when the interactive agent responds to trajectory search when the self-vehicle determines the hierarchical reasoning trajectory. Global detection can be used for collision detection required when the self-vehicle responds to trajectory search when all interactive agents determine the interactive trajectory.
[0258] By adopting the scheme in the present embodiment, the scheme in the present embodiment can first determine the target response trajectory of each agent for a given reasoning level of a pre-given vehicle for each pair of game combinations of vehicles and agents using a preset hierarchical game strategy, and then use a preset search algorithm to solve the planned trajectories of vehicles corresponding to the target response trajectories of multiple agents. This can achieve the effectiveness of trajectory planning of autonomous driving vehicles in scenarios with multiple interactive agents, and can improve the solution speed of trajectory planning of autonomous driving vehicles while ensuring the reliability of vehicle driving trajectory planning, thereby ensuring the safety, stability and efficiency of the driving process of autonomous driving vehicles in scenarios with multiple interactive agents.
[0259] In addition, by adopting the scheme in this embodiment, when hierarchical game processing is performed for each game combination of a vehicle and an intelligent agent and the reasoning trajectory is calculated, the reasoning trajectory in multiple interactive situations during the game process can be solved by adopting the MCTs-inspired solution method, which can better accelerate the solution speed of the game algorithm based on high-density trajectory sampling methods such as multi-branch tree mapping, thereby greatly improving the overall solution efficiency of the game algorithm.
[0260] In addition, the solution in this embodiment can also effectively cope with the trajectory planning of the vehicle in complex scenarios of multiple vehicle interactions such as intersections. Moreover, the solution in this embodiment can determine the positional relationship between the vehicle and multiple interactive intelligent agents without relying on the topological relationship of the map.
[0261] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0262] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0263] Fig.10 A structural block diagram of a trajectory planning device for an autonomous driving vehicle provided by an embodiment of the present application is shown. Fig.10The trajectory planning device 1000 of the autonomous driving vehicle of this embodiment may include an acquisition unit 1001 , a game unit 1002 , and a planning unit 1003 . Among them, the acquisition unit 1001 is used to acquire the driving data of the vehicle and the driving data of at least one intelligent agent; wherein the driving data of the vehicle includes a planned path, and the driving data of each intelligent agent includes multiple predicted paths; the game unit 1002 is used to perform the following operations for the vehicle and each intelligent agent respectively: based on the driving data of the vehicle, the action sampling process is performed on the planned path to obtain the first action set of the planned path; based on the driving data of the intelligent agent, the action sampling process is performed on each predicted path to obtain the second action set of each predicted path; based on the pre-given intelligent agent inference of the given reasoning level of the vehicle, the driving data of the vehicle, the first action set, the driving data of the intelligent agent and the second action set of each predicted path, the vehicle and the intelligent agent are gamed using a preset hierarchical game strategy to obtain the target response trajectory of the intelligent agent; the planning unit 1003 is used to search the driving trajectory of the vehicle based on the driving data of the vehicle, the first action set, and the target response trajectory of each intelligent agent using a preset first search algorithm to obtain the planned trajectory of the vehicle.
[0264] It should be noted that part or all of the trajectory planning device of the autonomous driving vehicle of this embodiment may be an application located in the local terminal, or may also be a functional unit such as a plug-in or software development kit (SDK) set in the application located in the local terminal, or may also be a processing engine located in a network-side server, or may also be a distributed system located on the network side, for example, a processing engine or distributed system in an autonomous driving platform on the network side, etc. This embodiment does not specifically limit this.
[0265] It is understandable that the application may be a local program (nativeApp) installed on the local terminal, or may also be a webpage program (webApp) of a browser on the local terminal, which is not limited in this embodiment.
[0266] Optionally, in a possible implementation of the present embodiment, the game unit 1002 can be specifically used to obtain the driving data of the intelligent body in front of the planned path; based on the driving data of the vehicle and the driving data of the intelligent body in front, using a preset first acceleration algorithm, obtain the forward movement of the vehicle; obtain the driving data of the intelligent body behind the planned path; based on the driving data of the vehicle and the driving data of the intelligent body behind, using a preset second acceleration algorithm, obtain the backward movement of the vehicle; determine the emergency movement of the vehicle and the uniform speed movement of the vehicle; based on the forward movement of the vehicle, the backward movement of the vehicle, the emergency movement of the vehicle and the uniform speed movement of the vehicle, obtain the first action set of the planned path.
[0267] Optionally, in a possible implementation of this embodiment, the game unit 1002 can be specifically used to obtain a set of candidate actions based on the forward action of the vehicle, the backward action of the vehicle, the emergency action of the vehicle and the uniform speed action of the vehicle; and use a preset pruning strategy to prune the candidate action set to obtain a first action set of the planned path.
[0268] Optionally, in a possible implementation of this embodiment, the game unit 1002 can be specifically used to perform the following operations for each predicted path: obtain the driving data of other intelligent agents in front of the predicted path; based on the driving data of the vehicle and the driving data of other intelligent agents in front, use a preset first acceleration algorithm to obtain the forward action of the agent; obtain the driving data of other intelligent agents behind the predicted path; based on the driving data of the vehicle and the driving data of other intelligent agents behind, use a preset second acceleration algorithm to obtain the backward action of the agent; determine the emergency action of the agent and the uniform speed action of the vehicle; based on the forward action of the agent, the backward action of the agent, the emergency action of the agent and the uniform speed action of the agent, obtain a second action set of the predicted path.
[0269] Optionally, in a possible implementation of this embodiment, the game unit 1002 can be specifically used to infer a given reasoning level of the vehicle based on a pre-given intelligent agent, and perform game processing on the vehicle and the intelligent agent to determine at least one reasoning interaction situation between the vehicle and the intelligent agent corresponding to the given reasoning level; based on the driving data of the vehicle, the first action set, the driving data of the intelligent agent, the second action set of each predicted path, and at least one reasoning interaction situation between the vehicle and the intelligent agent, search and process the reasoning trajectory of the vehicle and the reasoning trajectory of the intelligent agent to obtain the response trajectory of the intelligent agent corresponding to the given reasoning level; verify the response trajectory of the intelligent agent corresponding to the given reasoning level to obtain the target response trajectory of the intelligent agent.
[0270] Optionally, in a possible implementation of this embodiment, the reasoning interaction situation includes a first interaction state and a second interaction state, and the game unit 1002 can be specifically used to search and process the reasoning trajectory in the first interaction state based on the driving data of the vehicle, the first action set, and the driving data of the agent, using the preset first search algorithm to obtain a first search result; search and process the reasoning trajectory in the second interaction state based on the driving data of the vehicle, the driving data of the agent, and the second action set of each predicted path, using a preset second search algorithm to obtain a second search result; based on the first search result and the second search result, obtain the response trajectory of the agent corresponding to the given reasoning level.
[0271] Optionally, in a possible implementation of the present embodiment, the planning unit 1003 can be specifically used to search and process the driving trajectory of the vehicle based on the target response trajectory of each intelligent agent and the first action set, using the preset first search algorithm, to obtain a reward value for the first action set of the vehicle; in response to the reward value satisfying a preset reward condition, the planned trajectory of the vehicle is obtained.
[0272] In this embodiment, the driving data of the vehicle and the driving data of at least one intelligent agent can be obtained by the acquisition unit; wherein the driving data of the vehicle includes a planned path, and the driving data of each intelligent agent includes multiple predicted paths, and then the game unit can perform the following operations on the vehicle and each intelligent agent respectively: based on the driving data of the vehicle, the action sampling processing of the planned path is performed to obtain a first action set of the planned path; based on the driving data of the intelligent agent, the action sampling processing of each predicted path is performed to obtain a second action set of each predicted path; based on the pre-given intelligent agent, the given reasoning level of the vehicle, the driving data of the vehicle, the first action set, the driving data of the intelligent agent and the second action set of each predicted path are inferred, and the vehicle and the intelligent agent are gamed using a preset hierarchical game strategy to obtain the target response trajectory of the intelligent agent, so that the planning unit can obtain the target response trajectory of the intelligent agent based on the driving data of the vehicle. The driving data, the first action set, and the target response trajectory of each intelligent agent are searched and processed by using a preset first search algorithm to obtain the planned trajectory of the vehicle. The driving action of the vehicle is sampled according to the planned path, and the driving action of the intelligent agent is sampled according to each predicted path. Then, based on the action set of the two obtained by sampling and the game combination of each pair of vehicles and agents, a preset hierarchical game strategy is used to determine the target response trajectory of each intelligent agent for a given reasoning level of a pre-given vehicle. Then, the preset first search algorithm is used to solve the planned trajectory of the vehicle corresponding to the target response trajectory of multiple intelligent agents. This can achieve the effectiveness of trajectory planning of autonomous driving vehicles in scenarios with multiple interactive intelligent agents, reduce the amount of action sampling, and improve the solution speed of trajectory planning of autonomous driving vehicles, thereby ensuring the safety, stability and efficiency of the driving process of autonomous driving vehicles in scenarios with multiple interactive intelligent agents.
[0273] An embodiment of the present application provides a computer-readable storage medium, wherein the storage medium stores at least one instruction, and the at least one instruction is loaded and executed by a processor to implement the trajectory planning method for the autonomous driving vehicle as described above.
[0274] An embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores at least one instruction, and the instruction is loaded and executed by the processor to implement the trajectory planning method for the autonomous driving vehicle as described above.
[0275] One embodiment of the present application provides an autonomous driving vehicle, including the electronic device as described above. Specifically, the autonomous driving vehicle may be a vehicle of level L2 or above. The autonomous driving vehicle may include but is not limited to an unmanned delivery vehicle, an unmanned logistics vehicle, etc.
[0276] In the technical solution of this application, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the relevant laws and regulations and do not violate public order and good morals.
[0277] Fig.11 A schematic block diagram of an example electronic device 1100 that can be used to implement an embodiment of the present application is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.
[0278] like Fig.11 As shown, the electronic device 1100 includes a computing unit 1101, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 1102 or a computer program loaded from a storage unit 1108 to a random access memory (RAM) 1103. In the RAM 1103, various programs and data required for the operation of the electronic device 1100 can also be stored. The computing unit 1101, the ROM 1102, and the RAM 1103 are connected to each other via a bus 1104. An input / output (I / O) interface 1106 is also connected to the bus 1104.
[0279] Multiple components in the electronic device 1100 are connected to the I / O interface 1105, including: an input unit 1106, such as a keyboard, a mouse, etc.; an output unit 1107, such as various types of displays, speakers, etc.; a storage unit 1108, such as a disk, an optical disk, etc.; and a communication unit 1109, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 1109 allows the electronic device 1100 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0280] The computing unit 1101 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 1101 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 1101 performs the various methods and processes described above, such as a trajectory planning method for an autonomous driving vehicle. For example, in some embodiments, the trajectory planning method for an autonomous driving vehicle may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 1108. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 1100 via the ROM 1102 and / or the communication unit 1109. When the computer program is loaded into the RAM 1103 and executed by the computing unit 1101, one or more steps of the trajectory planning method for the autonomous driving vehicle described above may be performed. Alternatively, in other embodiments, the computing unit 1101 may be configured to execute a trajectory planning method for an autonomous driving vehicle in any other appropriate manner (eg, by means of firmware).
[0281] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0282] The program code for implementing the method of the present application can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, implements the functions / operations specified in the flow chart and / or block diagram. The program code can be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0283] In the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0284] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0285] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0286] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0287] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution disclosed in this application can be achieved, and this document is not limited here.
[0288] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.
Claims
1. A trajectory planning method for an autonomous driving vehicle, It is characterized in that The method comprises: Acquire driving data of a vehicle and driving data of at least one intelligent agent; wherein the driving data of the vehicle includes a planned path, and the driving data of each intelligent agent includes multiple predicted paths; The following operations are performed for the vehicle and each agent: based on the driving data of the vehicle, the action sampling process is performed on the planned path to obtain a first action set of the planned path; based on the driving data of the agent, the action sampling process is performed on each predicted path respectively to obtain a second action set of each predicted path; based on the given inference level of the vehicle inferred by the pre-given agent, the vehicle and the agent are subjected to game processing to determine at least one inference interaction situation between the vehicle and the agent corresponding to the given inference level; the inference interaction situation includes a first interaction state and a second interaction state, based on the driving data of the vehicle, the first action set, and the driving data of the agent, a search process is performed on the inference trajectory under the first interaction state using a preset first search algorithm to obtain a first search result; based on the driving data of the vehicle, the driving data of the agent, and the second action set of each predicted path, a search process is performed on the inference trajectory under the second interaction state using a preset second search algorithm to obtain a second search result; based on the first search result and the second search result, a response trajectory of the agent corresponding to the given inference level is obtained; the response trajectory of the agent corresponding to the given inference level is verified to obtain a target response trajectory of the agent; Based on the driving data of the vehicle, the first action set, and the target response trajectory of each intelligent agent, the driving trajectory of the vehicle is searched and processed using a preset first search algorithm to obtain the planned trajectory of the vehicle.
2. The method according to claim 1, It is characterized in that The step of performing action sampling processing on the planned path based on the driving data of the vehicle to obtain a first action set of the planned path includes: Acquire driving data of the intelligent body ahead of the planned path; Based on the driving data of the vehicle and the driving data of the intelligent body in front, a forward movement of the vehicle is obtained by using a preset first acceleration algorithm; Acquire driving data of the intelligent body behind the planned path; Based on the driving data of the vehicle and the driving data of the intelligent body behind, using a preset second acceleration algorithm, obtaining the backward movement of the vehicle; determining an emergency action of the vehicle and a uniform speed action of the vehicle; Based on the forward action of the vehicle, the backward action of the vehicle, the emergency action of the vehicle and the uniform speed action of the vehicle, a first action set of the planned path is obtained.
3. The method according to claim 2, It is characterized in that The obtaining of a first action set of the planned path based on the forward action of the vehicle, the backward action of the vehicle, the emergency action of the vehicle and the uniform speed action of the vehicle includes: Obtaining a candidate action set based on the forward action of the vehicle, the backward action of the vehicle, the emergency action of the vehicle and the uniform speed action of the vehicle; The candidate action set is pruned using a preset pruning strategy to obtain a first action set of the planned path.
4. The method according to claim 1, It is characterized in that The step of performing action sampling processing on each predicted path based on the driving data of the intelligent agent to obtain a second action set for each predicted path includes: For each predicted path, the following operations are performed: obtaining driving data of other intelligent agents ahead of the predicted path; Based on the driving data of the vehicle and the driving data of the other intelligent bodies in front, using a preset first acceleration algorithm, obtaining the forward movement of the intelligent body; Acquire driving data of other intelligent bodies behind the predicted path; Based on the driving data of the vehicle and the driving data of other intelligent bodies behind the vehicle, a backward movement of the intelligent body is obtained by using a preset second acceleration algorithm; Determining an emergency action of the agent and a uniform speed action of the vehicle; Based on the forward action of the agent, the backward action of the agent, the emergency action of the agent and the uniform speed action of the agent, a second action set of the predicted path is obtained.
5. The method according to claim 1, It is characterized in that The method of searching and processing the driving trajectory of the vehicle based on the driving data of the vehicle, the first action set, and the target response trajectory of each agent using a preset first search algorithm to obtain the planned trajectory of the vehicle includes: Based on the target response trajectory of each agent and the first action set, using the preset first search algorithm, searching the driving trajectory of the vehicle to obtain a reward value of the first action set of the vehicle; In response to the reward value satisfying a preset reward condition, a planned trajectory of the vehicle is obtained.
6. A trajectory planning device for an autonomous driving vehicle, It is characterized in that The device comprises: An acquisition unit, used to acquire driving data of a vehicle and driving data of at least one intelligent agent; wherein the driving data of the vehicle includes a planned path, and the driving data of each intelligent agent includes multiple predicted paths; A game unit is used to perform the following operations for the vehicle and each intelligent agent: based on the driving data of the vehicle, perform action sampling processing on the planned path to obtain a first action set of the planned path; based on the driving data of the intelligent agent, perform action sampling processing on each predicted path respectively to obtain a second action set of each predicted path; based on the given inference level of the vehicle inferred by the predetermined intelligent agent, perform game processing on the vehicle and the intelligent agent to determine at least one inference interaction situation between the vehicle and the intelligent agent corresponding to the given inference level; the inference interaction situation includes a first interaction state and a second interaction state, based on the driving data of the vehicle, the first action set, and the driving data of the intelligent agent, use a preset first search algorithm to search and process the inference trajectory in the first interaction state to obtain a first search result; based on the driving data of the vehicle, the driving data of the intelligent agent, and the second action set of each predicted path, use a preset second search algorithm to search and process the inference trajectory in the second interaction state to obtain a second search result; based on the first search result and the second search result, obtain the response trajectory of the intelligent agent corresponding to the given inference level; verify the response trajectory of the intelligent agent corresponding to the given inference level to obtain the target response trajectory of the intelligent agent; A planning unit is used to search and process the driving trajectory of the vehicle based on the driving data of the vehicle, the first action set, and the target response trajectory of each intelligent agent using a preset first search algorithm to obtain a planned trajectory of the vehicle.
7. An electronic device, include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 5.
8. A non-transitory computer-readable storage medium storing computer instructions, in, The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 5.
9. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 5.
10. An autonomous driving vehicle comprising the electronic device as claimed in claim 7.
