Automatic driving control method, device, equipment, storage medium and program product
By improving the behavior tree method, if the conditional judgment node is not established, it will be traced back to the previous control node, which solves the problems of complex behavior tree structure and long development cycle in the existing technology, and achieves efficient development and decision-making of the autonomous driving system.
Patent Information
- Application Number
- CN202111142468.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-28
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-09-28
Smart Images

Figure CN113835433B
Abstract
Description
Technical Field
[0001] The present application relates to autonomous driving technology, and in particular to an autonomous driving control method, device, equipment, storage medium and program product. Background Art
[0002] In the field of autonomous driving, the autonomous driving system is the core of the autonomous driving vehicle, and the decision-making module is an important component of the autonomous driving system, which determines the autonomous driving capability of the autonomous driving vehicle.
[0003] Behavior Tree (BT) is a mathematical model of planning and execution used in computer science, robotics, control systems, and video games. It describes the switching between finite task sets in a modular way. Autonomous driving application development usually uses environmental perception, environmental judgment, and information input to obtain an output in the current scenario through a behavior tree or state machine, and controls the autonomous driving behavior of the vehicle based on the output.
[0004] In the behavior tree currently used to implement autonomous driving control, each autonomous driving function module (such as changing lanes, overtaking, etc.) contains multiple sequences, and there may be repeated nodes in different sequences, which makes the structure complex, and the structure of the overall behavior tree is even more complex, and the development cycle is long. The autonomous driving control method based on the behavior tree needs to enter from the top level of the behavior tree corresponding to the function module each time a function module is executed, and traverse each sequence of the function module, making the overall control logic of the autonomous driving system complex. Summary of the invention
[0005] The present application provides an automatic driving control method, apparatus, device, storage medium and program product.
[0006] On the one hand, the present application provides an automatic driving control method, comprising:
[0007] Acquire a behavior tree for realizing an automatic driving function, wherein the behavior tree includes a control node and a behavior node, wherein the behavior node is a leaf node in the behavior tree and is used to realize the automatic driving behavior of the vehicle, and the control node is a non-leaf node in the behavior tree and is used to realize a corresponding control logic, wherein the control node includes at least a condition judgment node;
[0008] In the process of controlling the automatic driving of the vehicle according to the behavior tree, if the judgment condition of any condition judgment node is not satisfied when executing the control logic of the condition judgment node, determining the previous control node of the condition judgment node;
[0009] Execute the control logic of the previous control node.
[0010] On the other hand, the present application provides an automatic driving control device, comprising:
[0011] A behavior tree acquisition module, used to acquire a behavior tree for realizing an automatic driving function, wherein the behavior tree includes a control node and a behavior node, wherein the behavior node is a leaf node in the behavior tree and is used to realize the automatic driving behavior of the vehicle, and the control node is a non-leaf node in the behavior tree and is used to realize a corresponding control logic, and the control node includes at least a condition judgment node;
[0012] The automatic driving control module is used to control the automatic driving of the vehicle according to the behavior tree. If the judgment condition of any conditional judgment node is not met when the control logic of the conditional judgment node is executed, the previous control node of the conditional judgment node is determined; and the control logic of the previous control node is executed.
[0013] In another aspect, the present application provides an automatic driving control device, comprising: a processor, and a memory communicatively connected to the processor;
[0014] The memory stores computer-executable instructions;
[0015] The processor executes the computer-executable instructions stored in the memory to implement the above-mentioned automatic driving control method.
[0016] On the other hand, the present application provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are executed by a processor, they are used to implement the above-mentioned automatic driving control method.
[0017] On the other hand, the present application provides a computer program product, including a computer program, which implements the above-mentioned automatic driving control method when executed by a processor.
[0018] The automatic driving control method, apparatus, device, storage medium and program product provided by the present application are based on an improved behavior tree for realizing the automatic driving function. In the process of controlling the automatic driving of the vehicle according to the behavior tree, if the control logic of any conditional judgment node is executed and the judgment condition of the conditional judgment node is not satisfied, the previous control node of the conditional judgment node is determined and the control logic of the previous control node is executed. That is, when the judgment condition of the conditional judgment node is not satisfied, the previous control node is traced back instead of re-traversing the behavior tree from the top level of the behavior tree corresponding to the functional module. This can simplify the implementation logic of each functional module of the automatic driving function, shorten the development cycle of the functional module, improve the development efficiency of the automatic driving system, and improve the efficiency of the decision-making of the automatic driving system. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0020] Figure 1 An example diagram of a traditional behavior tree provided for this application;
[0021] Figure 2 An example diagram of an improved behavior tree provided in this application;
[0022] Figure 3 A flow chart of an automatic driving control method provided in an exemplary embodiment of the present application;
[0023] Figure 4 A flow chart of an automatic driving control method provided for another exemplary embodiment of the present application;
[0024] Figure 5 A schematic diagram of the structure of an automatic driving control device provided in one embodiment of the present application;
[0025] Figure 6 A schematic diagram of the structure of an automatic driving control device provided in another embodiment of the present application;
[0026] Figure 7 A schematic diagram of the structure of an automatic driving control device provided in one embodiment of the present application.
[0027] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0028] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0029] The terms "first", "second", etc. used in this application are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. In the description of the following embodiments, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.
[0030] At present, the development of autonomous driving applications usually utilizes environmental perception, environmental judgment, and information input to obtain an output in the current scenario through a behavior tree or state machine, and controls the vehicle's autonomous driving behavior based on the output.
[0031] Behavior trees are mathematical models of planning and execution used in computer science, robotics, control systems, and video games. They describe switching between finite sets of tasks in a modular way. The strength of behavior trees comes from the ability to create complex tasks composed of simpler tasks without having to worry about how the simpler tasks are implemented. Using behavior trees has the following advantages: useful when there are many state transitions, hard-to-see state machines can be converted into hierarchical systems, conditional tasks can be encapsulated and separated into classes, easy automated testing of each task, better performance when pass / fail of the task is a core part, better reusability, emergence of goal driven behavior, multi-step behavior, and fast recovery from errors.
[0032] In the behavior tree currently used to implement autonomous driving control, each autonomous driving functional module (such as lane changing, overtaking, etc.) contains multiple sequences. There may be repeated nodes in different sequences, which makes the structure complex. The structure of the overall behavior tree is more complex and the development cycle is long.
[0033] For example, taking the lane change function module as an example, the current behavior tree structure corresponding to lane change can be as follows: Figure 1 As shown in the figure, during the automatic driving process of changing lanes, the actual operation process of changing lanes, the corresponding behavior tree may include the following levels:
[0034] First level: Sequence 1, Sequence 2, normal driving.
[0035] The second level: The lower layer of sequence 1: whether there is a vehicle approaching, drive normally; the lower layer of sequence 2: determine the current lane, whether it is safe to change lanes, and drive normally.
[0036] The third level: Sequence 1: relative speed to adjacent vehicles, normal driving; Sequence 2: lane change.
[0037] The fourth level: in sequence 1: determine the current lane, whether it is safe to change lanes, and drive normally.
[0038] Level 5: In Sequence 1: Complete lane change.
[0039] Among them, the conditional judgment nodes include: in the second level: whether there is a vehicle approaching in sequence 1, whether it is safe to change lanes in sequence 2; in the third level: the relative speed with adjacent vehicles in sequence 1; in the fourth level: whether it is safe to change lanes in sequence 1.
[0040] In the process of controlling the vehicle to automatically change lanes according to the behavior tree, selector traversal is used Figure 1 The sequences in the behavior tree shown above show the process of implementing automatic lane change:
[0041] 1) Enter the first level sequence 1 from the selector. In the first level sequence 1, first determine whether there is a vehicle approaching. If no vehicle is approaching, drive normally. If a vehicle is approaching, enter the next level in sequence 1 to determine whether the relative speed with the adjacent vehicle is within the normal range. If the relative speed with the adjacent vehicle is within the normal range, drive normally. If the speed is not within the normal range, enter the next level of sequence 1, determine the current lane, and determine whether it is safe to change lanes. If it is not safe to change lanes, drive normally. If it is safe to change lanes, enter the next level and complete the lane change.
[0042] 2) If the lane change is not completed in sequence 1, execute the first level sequence 2 to determine the current lane and determine whether it is safe to change lanes. If it is not safe to change lanes, drive normally. If it is safe to change lanes, enter the next level of sequence 2 to complete the lane change.
[0043] 3) If both sequence 1 and sequence 2 cannot complete the lane change, the vehicle continues to drive normally.
[0044] No matter which sequence or layer of the "Normal Driving" node you enter, when you perform the automatic lane change operation again, you need to enter from the top-level selector and traverse the behavior tree corresponding to the lane change again.
[0045] In the above-mentioned automatic lane changing process, each time the automatic lane changing operation is performed, it is necessary to enter from the top layer and determine which sequence or node to enter in the next layer according to the corresponding logic.
[0046] The autonomous driving control method based on behavior tree requires entering from the top level of the behavior tree corresponding to the functional module each time a functional module is executed, and traversing each sequence of the functional module. The overall control logic of the autonomous driving system is complex.
[0047] The automatic driving control method provided in this application is intended to solve the above technical problems of the prior art.
[0048] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0049] In this embodiment, by improving the behavior tree, the way of entering the traditional behavior tree from the top layer each time is modified as follows: for any condition judgment node, if the judgment is established, the processing logic of the next node is executed; if the judgment is not established, the control logic of the previous control node is executed, thereby tracing back to the previous control node, and continuing to traverse subsequent nodes from the previous control node, which can reduce the number of sequences contained in the behavior tree corresponding to the functional module and simplify the structure of the behavior tree. After the behavior tree is completed at the bottom layer, the lower behavior tree can be controlled by the upper behavior tree, and the autonomous driving system can be modularly developed according to the hierarchy of the behavior tree, which speeds up the development efficiency, and the written behavior tree can be reused, which can speed up the development cycle of the autonomous driving system and reduce the development cost.
[0050] For example, taking the lane change function module as an example, Figure 1 After improving the structure of the behavior tree shown in the figure, the improved structure of the behavior tree corresponding to lane change is as follows Figure 2 As shown, including:
[0051] First level: Sequence 1, normal driving.
[0052] The second level: the lower level of sequence 1: whether there is a vehicle approaching; if there is a vehicle approaching, go back to sequence 1 of the previous level.
[0053] The third level: in sequence 1: the relative speed with adjacent vehicles. If the relative speed with adjacent vehicles is judged to be within a safe range, then backtrack to see if there are any vehicles approaching.
[0054] Fourth level: In sequence 1: determine the current lane and whether it is safe to change lanes; if it is not safe to change lanes, backtrack to the relative speed with the adjacent vehicle.
[0055] Level 5: In Sequence 1: Complete lane change.
[0056] Among them, the conditional judgment nodes include: whether there is a vehicle approaching in sequence 1, whether it is safe to change lanes in sequence 2; in the third level: the relative speed with adjacent vehicles in sequence 1; in the fourth level: whether it is safe to change lanes in sequence 1.
[0057] Compared to Figure 1 The behavior tree shown, Figure 2The structure of the improved behavior tree shown is significantly simplified, reducing the number of sequences in the behavior tree and the number of nodes in each level.
[0058] Figure 3 A flowchart of an automatic driving control method provided in an example embodiment of the present application. The method in this embodiment is applied to a vehicle control device, which may be a vehicle-mounted terminal or a server device that remotely controls the vehicle, etc. In other embodiments, the method may also be applied to other devices. This embodiment is schematically illustrated by taking a vehicle control device as an example.
[0059] like Figure 3 As shown, the specific steps of this method are as follows:
[0060] Step S301, obtaining a behavior tree for realizing the automatic driving function, wherein the behavior tree includes a control node and a behavior node, wherein the behavior node is a leaf node in the behavior tree, and the behavior node is used to realize the automatic driving behavior of the vehicle, and the control node is a non-leaf node in the behavior tree, and the control node is used to realize the corresponding control logic, and the control node includes at least a condition judgment node.
[0061] In this embodiment, the behavior tree used to implement the autonomous driving function refers to a modified behavior tree, including control nodes and behavior nodes. Among them, the behavior node is a leaf node in the behavior tree, and the behavior node is used to implement the specific autonomous driving behavior of the vehicle. The control node is a non-leaf node in the behavior tree, which is used to implement the corresponding control logic, and the control node at least includes a condition judgment node.
[0062] For example, taking the lane change function module as an example, Figure 1 After improving the structure of the behavior tree shown in the figure, the improved structure of the behavior tree corresponding to lane change is as follows Figure 2 As shown, Figure 2 The behavior tree corresponding to the lane change shown includes the following control nodes: selector, sequence 1, whether there is a vehicle approaching, relative speed to the adjacent vehicle, and whether it is safe to change lanes. Figure 2 The behavior tree corresponding to the lane change shown includes the following behavior nodes: determine current lane, change lane, and drive normally.
[0063] In this embodiment, a behavior tree for implementing the autonomous driving function and processing logic corresponding to each node of the behavior tree may be created and stored in advance.
[0064] Optionally, the behavior tree used to implement the autonomous driving function may be stored locally or on a server, such as a cloud server.
[0065] When it is necessary to control the vehicle for autonomous driving, a stored behavior tree for implementing the autonomous driving function can be obtained locally, or a behavior tree for implementing the autonomous driving function can be obtained from a server, which is not specifically limited in this embodiment.
[0066] Step S302: In the process of controlling the automatic driving of the vehicle according to the behavior tree, if the judgment condition of any conditional judgment node is not satisfied when executing the control logic of the conditional judgment node, then the previous control node of the conditional judgment node is determined.
[0067] After obtaining the behavior tree for realizing the autonomous driving function, the process of the vehicle's autonomous driving can be controlled according to the behavior tree.
[0068] In this embodiment, based on the improved behavior tree, when entering any functional module for the first time, it enters from the top level of the behavior tree corresponding to the functional module and traverses the nodes of the behavior tree corresponding to the functional module.
[0069] When traversing to any conditional judgment node, if the judgment condition of the current conditional judgment node is not met, it is necessary to backtrack to the previous control node and determine the previous control node of the current conditional judgment node according to the structure of the behavior tree.
[0070] The previous control node may be a conditional judgment node or a sequence node.
[0071] Step S303: execute the control logic of the previous control node.
[0072] After determining the previous control node of the current condition judgment node, continue to execute the control logic of the previous control node to continue to complete the automatic driving operation of the corresponding functional module.
[0073] In the embodiment of the present application, based on the improved behavior tree for realizing the automatic driving function, in the process of controlling the automatic driving of the vehicle according to the behavior tree, if the control logic of any conditional judgment node is executed and the judgment condition of the conditional judgment node is not satisfied, the previous control node of the conditional judgment node is determined, and the control logic of the previous control node is executed. That is, when the judgment condition of the conditional judgment node is not satisfied, backtracking to the previous control node is performed, instead of re-traversing the behavior tree from the top level of the behavior tree corresponding to the functional module. This can simplify the implementation logic of each functional module of the automatic driving function, shorten the development cycle of the functional module, improve the development efficiency of the automatic driving system, and improve the efficiency of decision-making of the automatic driving system.
[0074] Figure 4 This is a flow chart of an automatic driving control method provided by another exemplary embodiment of the present application. Figure 3On the basis of the corresponding embodiment, in this embodiment, in the improved behavior tree for realizing the automatic driving function, the information of the variables required by the processing logic corresponding to the node can be added to each node. In the process of controlling the automatic driving of the vehicle according to the behavior tree, the value of the variable contained in each node in the behavior tree can be updated in real time, so as to ensure that when tracing back to the previous control node, the control logic corresponding to the previous control node can be executed according to the latest data updated in real time, so as to continue to complete the automatic driving operation of the corresponding functional module.
[0075] Optionally, in the process of controlling the automatic driving of the vehicle according to the behavior tree, the vehicle data of the vehicle, as well as the environmental information and road condition information around the vehicle can be obtained in real time; based on the vehicle data of the vehicle, as well as the environmental information and road condition information around the vehicle, the value of the variable contained in each node in the behavior tree is updated.
[0076] The vehicle data may include information about the vehicle itself (such as the shape and size of the vehicle), information related to the vehicle's driving (such as the vehicle's speed, acceleration, steering angle, etc.), etc.
[0077] The environmental information around the vehicle may include other vehicles around the vehicle, roads, weather conditions, etc.
[0078] The road condition information may include information related to the road condition of the road near the vehicle.
[0079] In addition, in this embodiment, in the process of controlling the automatic driving of the vehicle according to the behavior tree, all the information required to realize the automatic driving can be obtained, and the values of the variables involved in the behavior tree nodes can be updated. This embodiment does not specifically limit the information that can be obtained.
[0080] like Figure 4 As shown, the specific steps of this method are as follows:
[0081] Step S401: Obtain a behavior tree for implementing an autonomous driving function.
[0082] In this embodiment, a behavior tree for implementing the autonomous driving function and processing logic corresponding to each node of the behavior tree may be created and stored in advance.
[0083] The behavior tree used to implement the autonomous driving function refers to a modified behavior tree, including control nodes and behavior nodes. The behavior node is a leaf node in the behavior tree, and the behavior node is used to implement the specific autonomous driving behavior of the vehicle. The control node is a non-leaf node in the behavior tree, which is used to implement the corresponding control logic, and the control node at least includes a conditional judgment node.
[0084] For example, taking the lane change function module as an example, Figure 1After improving the structure of the behavior tree shown in the figure, the improved structure of the behavior tree corresponding to lane change is as follows Figure 2 As shown, Figure 2 The behavior tree corresponding to the lane change shown includes the following control nodes: selector, sequence 1, whether there is a vehicle approaching, relative speed to the adjacent vehicle, and whether it is safe to change lanes. Figure 2 The behavior tree corresponding to the lane change shown includes the following behavior nodes: determine current lane, change lane, and drive normally.
[0085] Optionally, according to the functional modules included in the autonomous driving function, a sub-behavior tree for implementing the corresponding functional module is created for each functional module; and the sub-behavior trees corresponding to all functional modules are combined into a complete behavior tree through control nodes.
[0086] The traditional implementation of behavior tree is to enter from the top layer each time and determine which node to enter in the next layer through conditions. The implementation of behavior tree can be improved, and the method of entering from the top layer each time can be modified to backtrack from the position where the last condition judgment was not established to the last condition judgment node. If the condition judgment is established, go to the next node, and if the condition judgment is not established, continue to backtrack to the implementation of the previous condition. In this way, the variable value contained in the judgment condition of the condition judgment node is updated before entering the behavior tree each time, and the improved implementation of behavior tree can be completed.
[0087] The improved behavior tree can control the lower behavior tree through the upper behavior tree. By updating the variables and other information contained in the nodes in the behavior tree each time, the tree behavior can be controlled. In this way, the functional module levels can be developed separately, and the existing behavior trees can be reused, allowing developers to improve their own level development and achieve the purpose of rapid joint development, thereby shortening the development cycle, accelerating development efficiency, and reducing development costs.
[0088] Step S402: During the process of controlling the automatic driving of the vehicle according to the behavior tree, when executing the control logic of any conditional judgment node, determine whether the judgment condition of the conditional judgment node is established.
[0089] After obtaining the behavior tree for realizing the autonomous driving function, the process of the vehicle's autonomous driving can be controlled according to the behavior tree.
[0090] In this embodiment, based on the improved behavior tree, when entering any functional module for the first time, it enters from the top level of the behavior tree corresponding to the functional module and traverses the nodes of the behavior tree corresponding to the functional module.
[0091] When traversing to any conditional judgment node, if the judgment condition of the current conditional judgment node is not met, it is necessary to backtrack to the previous control node and determine the previous control node of the current conditional judgment node according to the structure of the behavior tree.
[0092] In the process of controlling the automatic driving of the vehicle according to the behavior tree, when executing the control logic of any conditional judgment node, if it is determined that the judgment condition of the conditional judgment node is not established, steps S403-S404 are executed to trace back to the previous control node in the behavior tree.
[0093] The previous control node may be a conditional judgment node or a sequence node.
[0094] In the process of controlling the automatic driving of the vehicle according to the behavior tree, when executing the control logic of any conditional judgment node, if it is determined that the judgment condition of the conditional judgment node is established, steps S405-S406 are executed to continue traversing the next node in the behavior tree.
[0095] Step S403: If it is determined that the judgment condition of the conditional judgment node is not satisfied, then the previous control node of the conditional judgment node is determined.
[0096] In the above step S402, if it is determined that the judgment condition of the condition judgment node is not satisfied, it is necessary to trace back to the previous control node and determine the previous control node of the current condition judgment node according to the structure of the behavior tree.
[0097] Step S404: Execute the control logic of the previous control node.
[0098] After determining the previous control node of the current condition judgment node, continue to execute the control logic of the previous control node to continue to complete the automatic driving operation of the corresponding functional module.
[0099] Exemplarily, this step can be implemented in the following manner:
[0100] Update the value of the variable contained in the previous control node; execute the control logic of the previous control node according to the value of the variable contained in the previous control node.
[0101] Before entering the behavior tree of a certain functional module each time, the value of the variable contained in the previous control node is updated in real time to complete the control of the tree behavior, that is, to achieve the control of the vehicle's automatic driving behavior according to the real-time input data. The input data may include the vehicle data of the vehicle, as well as the environmental information and road condition information around the vehicle.
[0102] Step S405: If the judgment condition of the conditional judgment node is established, the next node of the conditional judgment node is determined.
[0103] In the above step S402, if it is determined that the judgment condition of the conditional judgment node is established, the next node can be entered, and the next node of the conditional judgment node is first determined according to the structure of the behavior tree.
[0104] The next node of the conditional judgment node may be a conditional judgment node, a sequence node or other control nodes, or may be a behavior node.
[0105] Step S406: Execute the processing logic corresponding to the next node.
[0106] After determining the next node of the current condition judgment node, continue to execute the control logic of the next node to continue to complete the automatic driving operation of the corresponding functional module.
[0107] Exemplarily, this step can be implemented in the following manner:
[0108] Update the value of the variable contained in the next node; execute the processing logic corresponding to the next node according to the value of the variable contained in the next node. The next node is a control node or a behavior node.
[0109] In this embodiment, in the process of controlling the automatic driving of the vehicle according to the behavior tree, the vehicle data of the vehicle, as well as the environmental information and road condition information around the vehicle can be obtained in real time; and according to the vehicle data of the vehicle, as well as the environmental information and road condition information around the vehicle, the value of the variable contained in each node in the behavior tree is updated in real time.
[0110] For example, Figure 2 Taking the behavior tree corresponding to the improved lane change shown in the figure as an example, the implementation method of the improved behavior tree is as follows: the method of entering from the top layer each time is modified to backtrack from the position where the last condition judgment is not satisfied to the last condition judgment node. If the condition judgment is satisfied, go to the next node. If the condition judgment is not satisfied, continue to backtrack to the implementation method of the last condition. Figure 2 In the behavior tree shown, the lane change process can be achieved through the following process:
[0111] Enter the first-level sequence 1 from the selector. In the first-level sequence 1, first determine whether there is a vehicle approaching. If no vehicle is approaching, go back to the previous control node: sequence 1. If there is a vehicle approaching, enter the next node: determine whether the relative speed with the adjacent vehicle is within the normal range; if the relative speed with the adjacent vehicle is within the normal range, go back to the previous control node: determine whether there is a vehicle approaching. If the relative speed with the adjacent vehicle is not within the normal range, enter the next node: determine the current lane, and traverse the subsequent nodes: determine whether it is safe to change lanes; if it is not safe to change lanes, go back to the previous control node: relative speed with the adjacent vehicle. If it is safe to change lanes, enter the next node and complete the lane change.
[0112] Compared to using selector traversal Figure 1The sequences in the behavior tree shown above implement the process of automatic lane change. Figure 2 The behavior tree corresponding to the improved lane change shown in the figure implements the process of lane change and simplifies the overall process of lane change.
[0113] In the embodiment of the present application, in the process of controlling the automatic driving of the vehicle according to the behavior tree, the value of the variable contained in each node in the behavior tree can be updated in real time, so as to ensure that when tracing back to the previous control node, the control logic corresponding to the previous control node can be executed according to the latest data updated in real time, so as to continue to complete the automatic driving operation of the corresponding functional module. By improving the implementation method of the behavior tree, the method of entering from the top layer each time is modified to trace back to the previous condition judgment node from the position where the last condition judgment is not established, if the condition judgment is established, go to the next node, if the condition judgment is not established, continue to trace back to the implementation method of the previous condition. In this way, the variable value contained in the judgment condition of the condition judgment node is updated each time before entering the behavior tree, and the implementation method of the improved behavior tree can be completed, simplifying the processing logic of the automatic driving control. Furthermore, by updating the value of the variable contained in each node in the behavior tree, the control of the automatic driving behavior corresponding to the behavior tree can be realized, which can be expanded for L3 and higher-level automatic driving scenarios.
[0114] Figure 5 This is a schematic diagram of the structure of an automatic driving control device provided in an embodiment of the present application. The automatic driving control device provided in an embodiment of the present application can execute the processing flow provided in an embodiment of the automatic driving control method. Figure 5 As shown, the automatic driving control device 50 includes: a behavior tree acquisition module 501 and an automatic driving control module 502.
[0115] Specifically, the behavior tree acquisition module 501 is used to obtain a behavior tree for realizing the automatic driving function. The behavior tree includes a control node and a behavior node. The behavior node is a leaf node in the behavior tree. The behavior node is used to realize the automatic driving behavior of the vehicle. The control node is a non-leaf node in the behavior tree. The control node is used to realize the corresponding control logic. The control node at least includes a conditional judgment node.
[0116] The automatic driving control module 502 is used to control the automatic driving of the vehicle according to the behavior tree. If the judgment condition of any conditional judgment node is not met when the control logic of the conditional judgment node is executed, the previous control node of the conditional judgment node is determined; and the control logic of the previous control node is executed.
[0117] The device provided in the embodiment of the present application can be specifically used to perform the above Figure 3 The specific functions of the method embodiments provided in the corresponding embodiments are not repeated here.
[0118] In the embodiment of the present application, based on the improved behavior tree for realizing the automatic driving function, in the process of controlling the automatic driving of the vehicle according to the behavior tree, if the control logic of any conditional judgment node is executed and the judgment condition of the conditional judgment node is not satisfied, the previous control node of the conditional judgment node is determined, and the control logic of the previous control node is executed. That is, when the judgment condition of the conditional judgment node is not satisfied, backtracking to the previous control node is performed, instead of re-traversing the behavior tree from the top level of the behavior tree corresponding to the functional module. This can simplify the implementation logic of each functional module of the automatic driving function, shorten the development cycle of the functional module, improve the development efficiency of the automatic driving system, and improve the efficiency of decision-making of the automatic driving system.
[0119] Figure 6 This is a schematic diagram of the structure of an automatic driving control device provided by another embodiment of the present application. Figure 5 On the basis of the corresponding embodiment, in this embodiment, the automatic driving control module is also used for:
[0120] In the process of controlling the automatic driving of the vehicle according to the behavior tree, if the control logic of any conditional judgment node is executed and the judgment condition of the conditional judgment node is established, the next node of the conditional judgment node is determined; and the processing logic corresponding to the next node is executed.
[0121] Optionally, the automatic driving control module is further configured to:
[0122] Update the value of the variable contained in the previous control node; execute the control logic of the previous control node according to the value of the variable contained in the previous control node.
[0123] Optionally, the automatic driving control module is further configured to:
[0124] Update the value of the variable contained in the next node; execute the processing logic corresponding to the next node according to the value of the variable contained in the next node, where the next node is a control node or a behavior node.
[0125] Optionally, the automatic driving control module is further configured to:
[0126] In the process of controlling the automatic driving of the vehicle according to the behavior tree, the vehicle data of the vehicle, and the environmental information and road condition information around the vehicle are obtained in real time; according to the vehicle data of the vehicle, and the environmental information and road condition information around the vehicle, the value of the variable contained in each node in the behavior tree is updated.
[0127] Alternatively, if Figure 6 As shown, the automatic driving control device 50 may further include: a behavior tree creation module 503.
[0128] The behavior tree creation module 503 is used to:
[0129] According to the functional modules included in the autonomous driving function, a sub-behavior tree for implementing the corresponding functional module is created for each functional module; the sub-behavior trees corresponding to all functional modules are combined into a complete behavior tree through control nodes.
[0130] The device provided in the embodiment of the present application can be specifically used to perform the above Figure 4 The specific functions of the method embodiments provided in the corresponding embodiments are not repeated here.
[0131] In the embodiment of the present application, in the process of controlling the automatic driving of the vehicle according to the behavior tree, the value of the variable contained in each node in the behavior tree can be updated in real time, so as to ensure that when tracing back to the previous control node, the control logic corresponding to the previous control node can be executed according to the latest data updated in real time, so as to continue to complete the automatic driving operation of the corresponding functional module. By improving the implementation method of the behavior tree, the method of entering from the top layer each time is modified to trace back to the previous condition judgment node from the position where the last condition judgment is not established, if the condition judgment is established, go to the next node, if the condition judgment is not established, continue to trace back to the implementation method of the previous condition. In this way, the variable value contained in the judgment condition of the condition judgment node is updated each time before entering the behavior tree, and the implementation method of the improved behavior tree can be completed, simplifying the processing logic of the automatic driving control. Furthermore, by updating the value of the variable contained in each node in the behavior tree, the control of the automatic driving behavior corresponding to the behavior tree can be realized, which can be expanded for L3 and higher-level automatic driving scenarios.
[0132] Figure 7 This is a schematic diagram of the structure of an automatic driving control device provided in one embodiment of the present application. Figure 7 As shown, the automatic driving control device 100 includes: a processor 1001, and a memory 1002 communicatively connected to the processor 1001.
[0133] Memory 1002 stores computer-executable instructions.
[0134] The processor 1001 executes the computer execution instructions stored in the memory 1002 to implement the automatic driving control method provided by any of the above method embodiments.
[0135] In the embodiment of the present application, based on the improved behavior tree for realizing the automatic driving function, in the process of controlling the automatic driving of the vehicle according to the behavior tree, if the control logic of any conditional judgment node is executed and the judgment condition of the conditional judgment node is not satisfied, the previous control node of the conditional judgment node is determined, and the control logic of the previous control node is executed. That is, when the judgment condition of the conditional judgment node is not satisfied, backtracking to the previous control node is performed, instead of re-traversing the behavior tree from the top level of the behavior tree corresponding to the functional module. This can simplify the implementation logic of each functional module of the automatic driving function, shorten the development cycle of the functional module, improve the development efficiency of the automatic driving system, and improve the efficiency of decision-making of the automatic driving system.
[0136] An embodiment of the present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the method provided by any of the above method embodiments.
[0137] An embodiment of the present application also provides a computer program product, including: a computer program, the computer program is stored in a readable storage medium, at least one processor of the autonomous driving control device can read the computer program from the readable storage medium, and at least one processor executes the computer program so that the autonomous driving control device executes the method provided by any of the above method embodiments.
[0138] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0139] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0140] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0141] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the methods of each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.
[0142] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example for illustration. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0143] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0144] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. An automatic driving control method, characterized in that: include: Acquire a behavior tree for realizing an automatic driving function, wherein the behavior tree includes a control node and a behavior node, wherein the behavior node is a leaf node in the behavior tree and is used to realize the automatic driving behavior of the vehicle, and the control node is a non-leaf node in the behavior tree and is used to realize a corresponding control logic, wherein the control node includes at least a condition judgment node; In the process of controlling the automatic driving of the vehicle according to the behavior tree, if the judgment condition of any condition judgment node is not satisfied when executing the control logic of the condition judgment node, determining the previous control node of the condition judgment node; Updating the value of the variable included in the previous control node; Executing the control logic of the previous control node according to the value of the variable included in the previous control node; Also includes: In the process of controlling the automatic driving of the vehicle according to the behavior tree, vehicle data of the vehicle, and environmental information and road condition information around the vehicle are acquired in real time; updating the value of the variable included in each node in the behavior tree according to the vehicle data of the vehicle, and the environment information and road condition information around the vehicle; Also includes: In the process of controlling the automatic driving of the vehicle according to the behavior tree, if the judgment condition of any condition judgment node is met when the control logic of the condition judgment node is executed, then determining the next node of the condition judgment node; Execute the processing logic corresponding to the next node.
2. The method according to claim 1, characterized in that: The executing the processing logic corresponding to the next node includes: Update the value of the variable included in the next node; According to the value of the variable contained in the next node, the processing logic corresponding to the next node is executed, wherein the next node is a control node or a behavior node.
3. The method according to claim 1 or 2, characterized in that: Before obtaining the behavior tree for realizing the autonomous driving function, the method further includes: According to the functional modules included in the autonomous driving function, a sub-behavior tree for implementing the corresponding functional module is created for each functional module; Combine the sub-behavior trees corresponding to all functional modules into a complete behavior tree through control nodes.
4. An automatic driving control device, characterized in that: include: A behavior tree acquisition module, used to acquire a behavior tree for realizing an automatic driving function, wherein the behavior tree includes a control node and a behavior node, wherein the behavior node is a leaf node in the behavior tree and is used to realize the automatic driving behavior of the vehicle, and the control node is a non-leaf node in the behavior tree and is used to realize a corresponding control logic, and the control node includes at least a condition judgment node; An automatic driving control module, used for determining a previous control node of a conditional judgment node if a judgment condition of any conditional judgment node is not satisfied when executing the control logic of the conditional judgment node during the process of controlling the automatic driving of the vehicle according to the behavior tree; Updating the value of the variable included in the previous control node; executing the control logic of the previous control node according to the value of the variable included in the previous control node; The automatic driving control module is also used for: In the process of controlling the automatic driving of the vehicle according to the behavior tree, vehicle data of the vehicle, and environmental information and road condition information around the vehicle are acquired in real time; updating the value of the variable included in each node in the behavior tree according to the vehicle data of the vehicle, and the environment information and road condition information around the vehicle; The automatic driving control module is also used for: In the process of controlling the automatic driving of the vehicle according to the behavior tree, if the judgment condition of any condition judgment node is met when the control logic of the condition judgment node is executed, then determining the next node of the condition judgment node; Execute the processing logic corresponding to the next node.
5. An automatic driving control device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 3.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 3 when executed by a processor.
7. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 3 when being executed by a processor.
Citation Information
Patent Citations
System logic control method and apparatus
CN106250100A
Control method, device and system
CN106647354A
Automatic driving vehicle transverse motion control object selection method
CN107894767A
A behavior execution method, a behavior tree generation method and device and a computer device
CN109189504A
Game behavior tree control method
CN109343913A
