U-turn path planning method, device and electronic equipment
By using the minimum turning radius and point expansion technology in the autonomous driving system to generate alternative U-turn paths, the problem of low efficiency in U-turn path planning in the existing technology is solved, and efficient and safe U-turn operations in narrow road scenarios are achieved.
Patent Information
- Application Number
- CN202411076734.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-07
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-08-07
AI Technical Summary
The existing technology is inefficient in U-turn path planning during autonomous driving, especially in narrow road scenarios, resulting in inconvenient vehicle U-turn operations and high computational complexity.
Determine the U-turn target point by detecting the minimum turning radius of the target vehicle, and perform point expansion in the preset expansion direction based on the minimum turning radius, determine whether the expansion point collides with the obstacle, and determine the termination node or sub-node to generate an alternative U-turn path. , control the vehicle to perform a U-turn according to the target path.
It improves the vehicle's U-turn efficiency on narrow paths, reduces unnecessary maneuvering operations, saves computing resources and energy loss, and enhances the smoothness and safety of the U-turn path.
Smart Images

Figure CN118579085B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle control technology, and in particular to a U-turn path planning method, device and electronic equipment. Background Art
[0002] In autonomous driving technology, key technologies mainly include environmental perception, behavioral decision-making, path planning and motion control. Among them, path planning is to plan a safe and comfortable autonomous driving path based on the driving environment information. In the path planning scenarios of autonomous driving, there are narrow road turning scenarios such as "U"-shaped bends and dead-end roads. As a subdivided scenario of path planning, ensuring safe and comfortable U-turn path planning is an indispensable part of autonomous driving.
[0003] In the prior art, when planning a U-turn path, a U-turn path with a U-shaped bend can be planned by moving the vehicle forward, searching the path through a graph, and splicing a circular arc path with a limited number of segments. However, planning a U-turn path by moving forward requires a multi-lane scenario and has high requirements for the autonomous driving scenario. The calculation of the U-turn path planned by searching the path through a graph is relatively complex and the smoothness of the planned U-turn path is relatively poor. Planning a U-turn path by splicing a circular arc path with a limited number of segments is less applicable to scenarios with narrow roads.
[0004] It can be seen that the above methods all have the problem of low turning efficiency. Therefore, how to provide a solution to the above technical problems is an urgent problem to be solved by technical personnel in this field. Summary of the invention
[0005] In view of this, the embodiments of the present application provide a U-turn path planning method, device and electronic device to solve the problem of low U-turn efficiency of vehicles during autonomous driving in the prior art.
[0006] A first aspect of an embodiment of the present application provides a U-turn path planning method, comprising:
[0007] In the case where it is detected that the target vehicle needs to turn around, determining a turning target point when the turning operation is completed on the required driving path after the turning based on the minimum turning radius of the target vehicle;
[0008] For each preset extension direction, the current position of the target vehicle is used as the parent node, and based on the minimum turning radius, point extension is performed in the preset extension direction, and it is determined whether the connection curve between the preset detection point in the extended point and the U-turn target point collides with an obstacle;
[0009] If the connection curve does not collide with the obstacle, the preset detection point is determined as the end node in the preset expansion direction, where the end node refers to a node that is no longer used as a parent node for point expansion;
[0010] If the connection curve collides with an obstacle, the point that meets the preset conditions among the extended points is determined as a child node in the preset extension direction, and when it is detected that the heading difference between the child node and the U-turn target point is decreasing, the child node is continued to be used as the parent node, and point expansion is performed in the preset extension direction based on the minimum turning radius until the end node in the preset extension direction is determined; the preset condition is that the next extension point of the current extension point collides with the obstacle;
[0011] At least one candidate U-turn path is determined based on the termination node, the child node and the U-turn target point, and a target U-turn path is determined from the at least one candidate U-turn path, and the target vehicle is controlled to perform a U-turn operation according to the target U-turn path.
[0012] According to a second aspect of an embodiment of the present application, a U-turn path planning device is provided, comprising:
[0013] A determination module is configured to determine a U-turn target point when the U-turn operation is completed on a required driving path after the U-turn based on a minimum turning radius of the target vehicle when the target vehicle detects that the target vehicle needs to turn around;
[0014] The first expansion module is configured to perform point expansion in the preset expansion direction based on the minimum turning radius with the current position of the target vehicle as the parent node for each preset expansion direction, and determine whether a connection curve between a preset detection point in the expanded point and a U-turn target point collides with an obstacle;
[0015] The second expansion module is configured to determine the preset detection point as a termination node in a preset expansion direction if the connection curve does not collide with the obstacle, wherein the termination node refers to a node that is no longer used as a parent node for point expansion;
[0016] The third expansion module is configured to determine a point among the expanded points that meets a preset condition as a child node in a preset expansion direction if the connection curve collides with an obstacle, and continue to use the child node as a parent node and perform point expansion in the preset expansion direction based on a minimum turning radius when detecting that the heading difference between the child node and the U-turn target point is decreasing, until a terminal node in the preset expansion direction is determined; the preset condition is that the next expansion point of the current expansion point collides with the obstacle;
[0017] The determination module is configured to determine at least one alternative U-turn path based on the termination node, the subnode and the U-turn target point, determine a target U-turn path from the at least one alternative U-turn path, and control the target vehicle to perform a U-turn operation according to the target U-turn path.
[0018] According to a third aspect of an embodiment of the present application, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.
[0019] According to a fourth aspect of an embodiment of the present application, a readable storage medium is provided, which stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0020] Compared with the prior art, the embodiments of the present application have the following beneficial effects: when it is detected that the target vehicle needs to turn around, the turning target point when the turning operation is completed is determined on the required driving path after the turning according to the minimum turning radius of the target vehicle; for each preset extension direction, the current position of the target vehicle is used as the parent node, and the extension is performed point by point in the preset extension direction according to the minimum turning radius to obtain the extension point, and it is determined whether the connection curve between the preset detection point in the extension point and the turning target point collides with the collision object; if the connection curve does not collide with the obstacle, the preset detection point is determined as the termination node in the preset extension direction, wherein the termination node is no longer extended as the parent node; if the connection curve collides with the obstacle, the point in the extension point that meets the preset condition is determined as the child node in the preset extension direction, and when the heading difference between the child node and the turning target point shows a decreasing trend, the child node is continued to be used as the parent node, and point extension is performed in the preset extension direction according to the minimum turning radius until the termination node in the preset extension direction is determined, wherein the preset condition is that the next extension point of the current extension point collides with the obstacle. At least one alternative U-turn path is determined according to the termination node, the child node and the U-turn target point, and the target U-turn path is determined from the at least one alternative U-turn path, and the target vehicle is controlled to perform the U-turn operation according to the target U-turn path. In this way, the present embodiment always adopts the minimum turning radius for planning when planning the target U-turn path, so that the target vehicle can smoothly perform the U-turn operation on a relatively narrow path, saving space occupation, and the U-turn action is personified; by connecting the termination node determined by the curve without collision with the obstacle and the extended child node that meets the preset conditions, the target vehicle reduces unnecessary kneading operations during the U-turn operation; when the heading difference between the child node and the U-turn target point shows a decreasing trend, the child node is continued to be used as the parent node for expansion, which can reduce the total number of expansion points that need to be expanded, save the time and resource consumption of calculation, and improve the U-turn efficiency of the target vehicle. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art 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 paying any creative work.
[0022] Figure 1 It is a flowchart of a U-turn path planning method provided in an embodiment of the present application;
[0023] Figure 2 It is a schematic diagram of a scenario of each preset expansion direction provided in an embodiment of the present application;
[0024] Figure 3 This is a schematic diagram of a scenario in which a connection curve does not collide with an obstacle, provided in an embodiment of the present application;
[0025] Figure 4 is a schematic diagram of a scenario in which a connection curve collides with an obstacle provided in an embodiment of the present application;
[0026] Figure 5 is an exemplary alternative U-turn path obtained by point expansion in other preset expansion directions;
[0027] Figure 6 is a schematic diagram of a node tree formed by point expansion provided in an embodiment of the present application;
[0028] Figure 7 It is a schematic diagram of a scenario in which a target vehicle is detected to need to turn around, provided by an embodiment of the present application;
[0029] Figure 8 This is a schematic diagram of a scenario for determining a U-turn target point provided by an embodiment of the present application;
[0030] Fig. 9 This is a schematic diagram of a scenario of performing point expansion according to a preset expansion direction provided by an embodiment of the present application;
[0031] Fig.10 is in accordance with Fig. 9 A schematic diagram of a scene of a part of a preset extension path obtained by point extension using the provided point extension method;
[0032] Fig.11 is Fig.10 Based on Fig. 9 The point expansion method provided is for nodes A schematic diagram of a scene of a preset extension path obtained by point expansion;
[0033] Fig.12It is a schematic diagram of a scenario in which an increasing trend of a heading difference between a subnode and a U-turn target point is detected, provided in an embodiment of the present application;
[0034] Fig.13 It is a flowchart of another method for U-turn path planning provided by an embodiment of the present application;
[0035] Fig.14 is a schematic diagram of a U-turn path planning device provided in an embodiment of the present application;
[0036] Fig.15 It is a schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0037] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0038] A U-turn path planning method and device according to an embodiment of the present application will be described in detail below with reference to the accompanying drawings.
[0039] In autonomous driving technology, a U-turn path can be planned by moving the target vehicle forward. However, a U-turn path in which the target vehicle can make a U-turn by reversing is not considered, and a multi-lane application scenario is required, which places high demands on the application scenario of this method.
[0040] You can also roughly plan the U-turn path through graph search path planning methods, such as the Hybrid A* algorithm, and then optimize the path through quadratic programming. However, the graph search path planning method requires searching for many nodes, resulting in high time complexity and space complexity. The overall smoothness of the planned U-turn path is poor, and optimization algorithms such as quadratic programming are required for back-end optimization processing, which greatly increases the calculation time and has low U-turn efficiency.
[0041] A U-turn path can also be obtained by splicing multiple arc paths with a limited number of segments. A limited number of arc paths in the multiple arc paths play the actual U-turn function, but their applicability to narrow road scenes is poor.
[0042] Based on the above problems, the present application determines the terminal node or child node in each preset extension direction by taking the current position of the target vehicle as the parent node for each preset extension direction, performing point expansion in the preset extension direction according to the minimum turning radius, and judging whether the connection curve between the preset detection point at the extension point and the U-turn target point collides with the obstacle, thereby determining the terminal node or child node in each preset extension direction, and then determining the terminal node in each preset extension direction, determining the U-turn path, and using the minimum turning radius in the process of planning the alternative U-turn path, so that the target vehicle can smoothly perform a U-turn operation on a relatively narrow path. The child nodes in the alternative U-turn path are child nodes determined when the heading difference between the U-turn target points of the child nodes shows a decreasing trend, thereby reducing the total number of extension points that need to be expanded, saving calculation time and resource consumption, and further, determining the target U-turn path in the alternative U-turn path can improve the U-turn efficiency of the target vehicle and save energy loss.
[0043] The technical solution provided in the embodiment of the present application can be used in an autonomous driving system. When the target vehicle needs to perform a U-turn operation, the U-turn path planning can be completed through the autonomous driving system. The U-turn path planning method is widely applicable and can be applied to wider or narrower driving environments, thereby improving the user's driving experience of driving the target vehicle.
[0044] Figure 1 1 is a flow chart of a U-turn path planning method provided in an embodiment of the present application. The U-turn path planning method can be executed by a cloud or vehicle controller. Figure 1 As shown, the U-turn path planning method includes the following steps:
[0045] S101, when it is detected that the target vehicle needs to turn around, determining a turning target point when the turning operation is completed on the required driving path after the turning based on the minimum turning radius of the target vehicle;
[0046] S102, for each preset extension direction, taking the current position of the target vehicle as the parent node, based on the minimum turning radius, performing point extension in the preset extension direction, and determining whether a connection curve between a preset detection point in the extension point and the U-turn target point collides with an obstacle;
[0047] S103, if the connection curve does not collide with the obstacle, determining the preset detection point as the end node in the preset extension direction;
[0048] Among them, the terminal node is no longer used as a parent node for point expansion.
[0049] S104, if the connection curve collides with the obstacle, the point that meets the preset conditions among the extension points is determined as a child node in the preset extension direction, and when it is detected that the heading difference between the child node and the U-turn target point is decreasing, the child node is continued to be used as the parent node, and point extension is performed in the preset extension direction based on the minimum turning radius until the end node in the preset extension direction is determined;
[0050] The preset condition is that the next extension point of the current extension point collides with the obstacle.
[0051] S105, determining at least one candidate U-turn path based on the termination node, the child node and the U-turn target point, determining a target U-turn path from the at least one candidate U-turn path, and controlling the target vehicle to perform a U-turn operation according to the target U-turn path.
[0052] In an embodiment of the present application, specifically, when it is detected that the target vehicle needs to turn around, the minimum turning radius of the target vehicle is obtained, wherein the minimum turning radius is the radius of the turn with the target vehicle as the center when the target vehicle turns the steering wheel angle to the maximum angle, and the steering wheel angle includes the angle corresponding to turning left and the angle corresponding to turning right.
[0053] In addition, according to the minimum turning radius of the target vehicle, the U-turn target point when the U-turn operation is completed is determined on the path required to travel after the U-turn. The U-turn target point can be used as a reference for whether the target vehicle has successfully turned around. Since the path required to travel after the U-turn is determined, when the target vehicle is detected to have traveled to the U-turn target point, it means that the target vehicle has successfully turned around. Among them, the information of the U-turn target point includes the position information and heading angle of the U-turn target point. The position information may include a horizontal coordinate and a vertical coordinate. When the driving path of the target vehicle is relatively wide, it can be determined whether the U-turn operation is successfully completed based on whether the target vehicle travels to the horizontal coordinate of the U-turn target point and is consistent with the heading angle of the U-turn target point.
[0054] In addition, after determining the U-turn target point, the path from the target vehicle to the target U-turn point can be planned. In this process, the present embodiment can obtain the current position of the target vehicle, determine the current position of the target vehicle as the parent node for each preset extension direction, and expand point by point in the preset extension direction according to the minimum turning radius.
[0055] Among them, the preset extension path can be determined by combining the preset extension direction with the minimum turning radius, that is, the preset extension path is determined by the steering direction of the steering wheel, the gear position of the target vehicle and the minimum turning radius, the steering direction of the steering wheel includes turning left and turning right, and the gear position of the target vehicle includes forward gear and reverse gear. That is, with the minimum turning radius as the radius and the parent node as the starting point, an arc is made. When the gear position of the target vehicle is the forward gear and the steering direction of the steering wheel is turning left, the preset extension path of the left front direction is obtained. By analogy, the preset extension paths of the left rear direction, the right front direction and the right rear direction can be obtained.
[0056] For example, Figure 2 is a schematic diagram of a scenario of each preset extension direction provided in an embodiment of the present application, such as Figure 2 As shown, R represents the minimum turning radius of the target vehicle. represents the parent node of the current position of the target vehicle, and O represents the center of the circle corresponding to the minimum turning radius. Assuming that the vehicle's driving direction is the front as a reference, the preset expansion directions include the left front direction, the left rear direction, the right front direction, and the right rear direction. The child node obtained by expanding the point in the left front direction can be named , the child nodes obtained by expanding to the right can be named , the child nodes obtained by expanding to the left and back can be named , the child nodes obtained by expanding to the right and back can be named Each preset expansion direction is obtained by drawing a circle with the parent node as the starting point and the minimum turning radius as the radius.
[0057] in, Indicates the node number, that is, the current node is the jth node in the i-th layer of the node tree. Here, the layer can be understood as the depth, that is, is the jth node at the i-th depth of the tree structure. The values of i and j are integers starting from 0. At this time, the current position of the target vehicle is identified as the parent node .also, Indicates the point that extends to the right and back based on the i-th layer. The subscript ( ) is the value of i in the previous layer, and the subscript ( ) is the value of j in the previous layer; for example, suppose the node in the previous layer is , then when expanding to the right and back, the current layer node is represented as According to the above rules, the node's expansion depth and expansion direction can be known through the node's identification. The node naming rules in other directions are the same as above and will not be repeated here.
[0058] In addition, when performing point expansion in each preset expansion direction, the expansion can be performed point by point along the preset expansion direction according to the preset expansion distance. It should be noted that the preset expansion distance is negatively correlated with the computational complexity and energy consumption of the target vehicle, that is, the larger the preset expansion distance, the smaller the computational complexity and energy consumption of the target vehicle.
[0059] In addition, during the process of point expansion in the preset expansion direction, it is necessary to determine whether the connection curve between the preset detection point in the expansion point and the U-turn target point collides with an obstacle. Among them, the preset detection point is an expansion point with a preset value interval, and the preset value can be 0, 1, 2, 3, etc., which is not specifically limited here, but it should be noted that the preset value is negatively correlated with the calculation complexity and the energy consumption of determining the alternative U-turn path, that is, the larger the preset value, the smaller the calculation complexity, and the smaller the energy consumption when generating the alternative U-turn path. In addition, it should be noted that whether the connection curve between the preset detection point and the U-turn target point collides with an obstacle, the obstacle here mainly refers to the curb of the lane.
[0060] The connection curve can be a Dubins curve. If the connection curve between the preset detection point and the U-turn target point does not collide with the obstacle, it means that the vehicle can safely drive from the preset detection point to the U-turn target point, and no further point expansion is required; if a collision occurs, it means that the vehicle cannot safely drive from the current preset detection point to the U-turn target point, and further point expansion is required. In this way, whether the connection curve between the preset detection point and the U-turn target point collides with the obstacle is used as a condition for path planning, so that alternative U-turn paths can be generated in multiple preset extension directions, and the actions that can be completed in the forward and reverse gears of the target vehicle in all directions are considered more comprehensively, and possible alternative U-turn paths are more effectively covered. At the same time, the driving safety of the target vehicle is guaranteed by collision detection of whether there is a collision with an obstacle.
[0061] In addition, if the connecting curve does not collide with the obstacle, the preset detection point will be determined as the end node of the current preset extension direction, and the end node will no longer be used as a parent node for further point expansion, which means that the safe path segment to reach the U-turn target point in the preset extension direction has been determined, and will not affect the point expansion of other preset extension directions, so that an alternative U-turn path can be determined based on the end node.
[0062] In addition, if the connection curve collides with an obstacle, the point that meets the preset conditions among the extension points is determined as a sub-node in the preset extension direction, where the preset condition is that the next extension point of the current extension point will collide with the obstacle, which means that the current extension point is the last extension point that can ensure driving safety before the collision. In this way, each of the determined sub-nodes is achieved to have a point that will not collide with the obstacle, ensuring the safety of performing a U-turn operation along the path connected by the node.
[0063] Continuing with the above example, when the child node is determined, check whether the heading difference between the child node and the U-turn target point is decreasing. If it is decreasing, continue to use the child node as the parent node and perform point expansion in each preset expansion direction according to the minimum turning radius until the end node in each preset expansion direction is determined. Of course, if it is detected that there is no end node in a preset expansion direction when performing point expansion in each preset expansion direction with the child node as the parent node (for example, the distance between the child node and the road curb is less than the preset distance, or the connection curve between the child node and the U-turn target point is a preset distance), the end node in the preset expansion direction is determined. When the point in the expansion direction that is least likely to collide is found, the connection curve between the subnode and the U-turn target point collides with an obstacle), the subnode is the last node, and point expansion is also stopped at the subnode; that is, in each preset expansion direction, except for the case where the heading difference between the subnode and the U-turn target point is not decreasing, it is necessary to expand to obtain the termination node or determine that there is no termination node in the preset expansion direction, so as to screen the first termination node whose connection curve with the U-turn target point does not collide with the obstacle, so that the alternative U-turn path can be formed according to each subnode and termination node. Since the subnodes whose heading difference between the subnode and the U-turn target point is not decreasing are excluded, the number of point expansions is greatly reduced, the calculation time is reduced, and the planning efficiency of the alternative U-turn path is improved. In addition, the subnode will not collide with the obstacle, and the connection curve between the termination node and the U-turn target point will not collide with the obstacle, which ensures the safety of the alternative U-turn path.
[0064] For example, Figure 3 is a schematic diagram of a scenario in which a connection curve does not collide with an obstacle, provided in an embodiment of the present application. Figure 4 is a schematic diagram of a scenario in which a connection curve collides with an obstacle provided by an embodiment of the present application. Figure 3 and Figure 4 As shown in the figure, the horizontal solid line with a directional arrow indicates the planned path for autonomous driving, and the arrow indicates the indicated driving direction corresponding to the planned path for autonomous driving. The current driving direction of the vehicle is opposite to the indicated driving direction corresponding to the planned path for autonomous driving. When planning the path, Represents the parent node, and Represents the child node on the current alternative U-turn path. It indicates the turning target point, and the straight lines on the upper and lower sides indicate the curb of the driving road.
[0065] like Figure 3 and Figure 4 As shown, assuming that the child node At the same time, it is a preset detection point, and you can try to connect it through the Dubins curve and the turning point, Figure 3 The portion of the Dubins curve shown does not collide with an obstacle. Determined to is the terminal node to the right of the parent node, and , , The path formed by the U-turn target point is taken as an alternative U-turn path. Among them, except that the end node and the U-turn target point are connected by the Dubins curve, other nodes are connected by extension points, that is, the connection curve between the end node and the U-turn target point is the Dubins curve, except that the connection curve between the end node and the U-turn target point is an arc.
[0066] Figure 4 Shown If the Dubins curve between the turning point and the target point collides with an obstacle, Continue to expand the parent node in the right rear direction, determine the points that meet the preset conditions among the expansion points as child nodes in the expansion direction, and when it is monitored that the heading difference between the child node and the U-turn target point is decreasing, continue to use the child node as the parent node, and expand the points in each preset expansion direction according to the minimum turning radius until the terminal node in the preset expansion direction is determined.
[0067] Furthermore, it should be noted that while determining the termination node corresponding to a preset extension direction, point extension is continued in other preset extension directions to determine the child nodes of other preset extension directions and generate other candidate U-turn paths.
[0068] For example, Figure 5 As shown in FIG. , it is an exemplary alternative U-turn path obtained by performing point expansion in other preset expansion directions at the same time, such as Figure 5 As shown, is the original parent node, So It is the child node after the parent node expands toward the right rear direction. So It is the child node after the parent node expands toward the left front direction. So is the child node of the parent node extending toward the right rear direction, assuming If they are preset detection points in the extension direction at the same time, they will be connected in order. , , , and , and obtain an alternative U-turn path.
[0069] In addition, at least one alternative U-turn path is generated according to the terminal node, the subnodes and the U-turn target point, and a target U-turn path is determined among the alternative U-turn paths. The target vehicle is controlled to perform the U-turn operation according to the selected target U-turn path to ensure that the target vehicle can complete the U-turn task safely and efficiently.
[0070] When at least one alternative U-turn path is generated based on the termination node, child nodes and U-turn target point, the path can be backtracked based on the termination node to determine the child nodes corresponding to the path from the termination node to the parent node of the vehicle's current position, and the path consisting of the U-turn target point, the termination node and the child nodes corresponding to the path can be determined as the alternative path. For example, Figure 6 is a schematic diagram of an alternative U-turn path provided in an embodiment of the present application, such as Figure 6 As shown, is the original parent node, , , and is the child node of the parent node, , , and For As a child node of the parent node, There is a termination node on the path of the parent node. Backtrack according to the termination node and convert the turn target point, the termination node, , and At the same time, other child nodes continue to perform point expansion and collision detection until the end node corresponding to the preset expansion direction is found, and then backtracking is performed according to the end node to obtain the alternative path.
[0071] Furthermore, changes in the surrounding environment of the target vehicle may be monitored when performing a U-turn operation according to the target U-turn path, so that the target U-turn path or the U-turn operation may be adjusted in real time when necessary.
[0072] According to the technical solution provided in the embodiment of the present application, the minimum turning radius can always be used for planning when planning the target U-turn path, so that the target vehicle can smoothly perform the U-turn operation on a relatively narrow path, and the U-turn operation is humanized; by connecting the terminal node determined by the curve without collision with the obstacle and the expanded child node that meets the preset conditions, unnecessary maneuvering operations are reduced in the process of the target vehicle performing the U-turn operation; when the heading difference between the child node and the U-turn target point shows a decreasing trend, continuing to expand with the child node as the parent node can reduce the total number of expansion points that need to be expanded, saving calculation time and resource consumption, and further, determining the target U-turn path in the alternative U-turn path can improve the U-turn efficiency of the target vehicle and save energy loss.
[0073] In some embodiments, detecting that the target vehicle needs to turn around includes:
[0074] Obtain the current driving direction of the target vehicle and the indicated driving direction of the autonomous driving planned path;
[0075] determining the angular difference between the current direction of travel and the indicated direction of travel;
[0076] When the angle difference is greater than a preset angle threshold, it is determined that the target vehicle needs to turn around.
[0077] Specifically, in daily driving scenarios, it is often the case that the current road is not the desired road and a U-turn is required, such as Figure 7 As shown, the two double horizontal lines represent the curb of the road, the direction indicated by the solid arrow is the direction indicated by the navigation, and the vehicle currently has an incorrect road selection, and is traveling in the direction indicated by the vehicle's dotted arrow. At this time, it is necessary to turn around to the direction indicated by the solid arrow.
[0078] In this embodiment, the current driving direction of the target vehicle can be determined through the video stream captured by the camera of the target vehicle or the driving data of the target vehicle. At the same time, the indicated driving direction corresponding to the current position of the target vehicle is determined according to the autonomous driving planned path in the autonomous driving system.
[0079] Furthermore, the current driving direction can also be determined according to the heading angle included in the positioning information of the target vehicle, and the indicated driving direction of the autonomous driving planned path can be determined according to the heading angle included in the autonomous driving planned path.
[0080] In addition, the heading angle corresponding to the current driving direction and the heading angle corresponding to the autonomous driving planned path can be compared to obtain the angle difference between the current driving direction and the indicated driving direction, so as to judge whether the current driving direction deviates from the indicated driving direction based on the angle difference, and then judge whether the target vehicle needs to turn around.
[0081] In addition, when the angle difference is greater than the preset angle threshold, it is determined that there is a significant deviation between the current driving direction of the target vehicle and the indicated driving direction of the autonomous driving planned path, indicating that the target vehicle needs to turn around, and the target turning path is planned according to the current position of the target vehicle, the minimum turning radius, the preset extension direction, etc. For example, the preset angle threshold can be 160° (degrees, angle units), or a value that does not exceed 180° and can represent almost opposite directions.
[0082] In addition, when the angle difference is not greater than the preset angle threshold, it indicates that the target vehicle may have a certain degree of yaw, but there is no need to turn around, and the target turning path is not planned.
[0083] For example, Figure 7 As shown, the horizontal solid line with a directional arrow indicates the planned path for autonomous driving, and the arrow indicates the indicated driving direction corresponding to the planned path for autonomous driving. At this time, the current driving direction of the target vehicle is the direction indicated by the horizontal dotted line. When the following formula is satisfied, it is determined that the angle difference between the current driving direction and the indicated driving direction is greater than the preset angle threshold:
[0084] ;
[0085] in, is the inverse trigonometric function of cosine, represents the vector indicating the direction of travel, A vector representing the current direction of travel, Indicates the preset angle threshold, It represents the angular difference between the current driving direction and the indicated driving direction. Due to the characteristics of the inverse cosine trigonometric function, that is, the inverse cosine trigonometric function is monotonically decreasing in the interval [0, π], the angle value and the numerical value of the preset angle threshold can be converted to each other, and a numerical value can determine a unique angle value.
[0086] According to the technical solution provided in the embodiment of the present application, it is possible to determine whether the target vehicle needs to perform a U-turn operation based on the angular difference between the current driving direction of the target vehicle and the indicated driving direction of the autonomous driving planned path, and set the conditions for whether the target vehicle needs to perform a U-turn operation, thereby avoiding the problem of waste of resources caused by planning a U-turn path at any time, and being able to further plan the U-turn path, thereby improving the flexibility of the autonomous driving system.
[0087] In some embodiments, the information corresponding to the U-turn target point includes the position information and the heading angle of the U-turn target point; determining the U-turn target point when the U-turn operation is completed on the required driving path after the U-turn based on the minimum turning radius includes:
[0088] The automatic driving planned path of the target vehicle at the current moment is determined as the required driving path after the U-turn, and the driving direction of the automatic driving planned path is determined as the heading angle of the required driving path after the U-turn;
[0089] Determine the projection point of the rear axle center point of the target vehicle on the required driving path after the U-turn;
[0090] The product of the minimum turning radius and a preset turning coefficient is determined as the target turning distance, wherein the preset turning coefficient is greater than 0;
[0091] The projection point is translated along the heading angle direction of the required driving path after the U-turn by the target U-turn distance to obtain the position information of the U-turn target point.
[0092] Specifically, the U-turn target point is a specific location that the target vehicle's autonomous driving system expects to reach when performing a U-turn operation. The U-turn target point dynamically determined by combining multiple factors such as the target vehicle's position, heading angle, and minimum turning radius can ensure that the target vehicle can successfully complete the U-turn operation, and can also ensure the safety and efficiency of the target vehicle during the U-turn operation. The information corresponding to the U-turn target point includes the position information and heading angle of the U-turn target point. The heading angle of the U-turn target point can ensure that the target vehicle's driving direction after the target vehicle completes the U-turn operation is the direction of the autonomous driving planned path. In the autonomous driving system, the U-turn target point is issued by the business layer or determined by the decision module.
[0093] The target vehicle's current automated driving planned path is determined as the path required to be driven after the U-turn, and the driving direction of the automated driving planned path is used as the heading angle of the path required after the U-turn, thereby ensuring that the target vehicle continues to drive along the heading angle after completing the U-turn operation.
[0094] In addition, the current position, posture and relative position information of the target vehicle's rear axle center point are used to determine the vertical projection point of the rear axle center point on the required driving path after the U-turn. The rear axle center point of the target vehicle can be positioned on the autonomous driving planned path, thereby more accurately determining the U-turn target point.
[0095] In addition, the product of the minimum turning radius of the target vehicle and the preset turning coefficient is determined as the target turning distance, wherein the preset turning coefficient is greater than 0. The preset turning coefficient can be determined based on multiple factors such as the vehicle type, tire characteristics, road conditions, etc. of the target vehicle, and is used to adjust the target U-turn distance, so as to take into account restrictions such as road conditions when the target vehicle performs a U-turn operation.
[0096] In addition, the projection point is translated along the heading angle direction of the required driving path after the U-turn by the target turning distance, and the resulting point is the position of the U-turn target point, which can ensure that the target vehicle can successfully complete the U-turn operation and at the same time ensure that the driving direction of the target vehicle after the U-turn meets the requirements of the autonomous driving planning path.
[0097] For example, Figure 8 Schematic diagram of a scenario for determining a U-turn target point provided by an embodiment of the present application. Figure 8 As shown in the figure, the horizontal solid line with a directional arrow represents the planned path for autonomous driving, and the arrow represents the indicated driving direction corresponding to the planned path for autonomous driving. The center point of the rear axle of the target vehicle is projected onto the required driving path to obtain the projection point. The following formula is used to determine the turning target point according to the preset turning coefficient and the minimum turning radius, that is, the position marked by the asterisk on the planned path for autonomous driving. express:
[0098] ;
[0099] in, Indicates the target turning distance, Indicates the preset turning coefficient, Indicates the minimum turning radius.
[0100] According to the technical solution provided in the embodiment of the present application, the position information and heading angle of the U-turn target point can be accurately and efficiently determined, the U-turn path planning can be safely completed according to the U-turn target point, and then the target vehicle can perform the U-turn operation with safety guaranteed.
[0101] In some embodiments, for each preset expansion direction, taking the current position of the target vehicle as the parent node, point expansion is performed in the preset expansion direction based on the minimum turning radius, including:
[0102] Taking the parent node as the starting point and the minimum turning radius as the radius, expand in the preset expansion direction according to the preset expansion distance to obtain the horizontal coordinate, vertical coordinate and heading angle of each expansion point in the preset expansion direction; the preset expansion directions include the left front direction, the right front direction, the left rear direction and the right rear direction;
[0103] The position coordinate information of each expansion point and the heading angle of each expansion point are expressed by the following formula:
[0104] ;
[0105] ;
[0106] ;
[0107] in, Indicates is the horizontal coordinate of the kth extension point counted at the counting starting point, Indicates the i+1th point as the parent node in the preset extension direction identified by j. Indicates is the horizontal coordinate of the k-1th extension point counted when counting the starting point, Indicates the preset extension distance. Indicates is the cosine value of the heading angle of the k-1th extension point counted at the counting starting point; i and j are both greater than or equal to 0;
[0108] Indicates is the ordinate of the kth extension point counted when counting the starting point, Indicates is the ordinate of the k-1th extension point counted when counting the starting point, Indicates is the sine value of the heading angle of the k-1th extension point counted from the counting starting point;
[0109] Indicates is the heading angle of the kth extension point counted from the counting starting point, Indicates is the heading angle of the k-1th extension point counted from the counting starting point, and R represents the minimum turning radius.
[0110] Specifically, the preset extension path from the parent node to the child node is composed of a series of extension points, with the parent node as the starting point and the minimum turning radius as the radius. Point extension is performed in each preset extension direction according to the preset extension distance to obtain the horizontal coordinate, vertical coordinate and heading angle of each extension point in each preset extension direction. Point extension is performed in each preset extension direction, which can more comprehensively cover all U-turn paths of the current target vehicle, and thus provide a target U-turn path with the least consumption and the most suitable for the current driving environment.
[0111] It should be noted that when i is 0, it indicates that the current position of the vehicle is the first parent node.
[0112] For example, the preset expansion directions include the left front direction, the right front direction, the left rear direction and the right rear direction. According to the preset expansion distance, with the parent node as the starting point and the minimum turning radius as the radius, expansion is performed in the left front direction, the right front direction, the left rear direction and the right rear direction respectively to obtain the corresponding expansion points in the left front direction, the right front direction, the left rear direction and the right rear direction respectively.
[0113] For example, Fig. 9Schematic diagram of a scenario in which point expansion is performed according to a preset expansion direction, provided in an embodiment of the present application. Fig. 9 As shown, Indicates the node number, that is, the current node is the point in the preset expansion direction identified by j at the i-th layer in the node tree. express The label of the previous node, that is, the node is the i-1th layer in the node tree The point in the preset extension direction is identified. Here, the layer can be understood as the depth, that is, The node in the preset expansion direction identified by j at the i-th depth of the tree structure, where the values of i and j are integers starting from 0;
[0114] Indicates the first extension point of the parent node in the current preset extension direction. Indicates the second extension point of the parent node in the current preset extension direction, and so on. Indicates the n+1th extension point of the parent node in the current preset extension direction, where the value of n is an integer starting from 0.
[0115] like Fig. 9 As shown, assuming the extension point If a collision occurs, the point expansion in the current preset expansion direction can be stopped and the expansion point As a child node, each expansion point includes the horizontal coordinate, vertical coordinate and heading angle of the current expansion point.
[0116] In addition, in each preset expansion direction of the parent node, Fig. 9 The point expansion is performed in the manner shown, until a termination node or a child node appears in the preset expansion direction, and the child node is determined as the parent node and the point expansion of the above steps is repeated again.
[0117] For example, Fig.10 is in accordance with Fig. 9 A schematic diagram of a scene of some preset extension paths obtained by point expansion using the provided point expansion method, such as Fig.10 As shown, the rear axle center of the target vehicle corresponds to the parent node , the parent node is expanded in each preset expansion direction to generate four child nodes, the labels of the child nodes are , , , ,The path from the parent node to each child node is composed of multiple extension points. Fig.10 The horizontal solid line with an arrow on it indicates the planned path for autonomous driving. The direction of the arrow is the heading angle of the planned path for autonomous driving. The asterisk on the horizontal solid line indicates the turning target point. Fig.10The vehicle posture of the target vehicle at each node is also included.
[0118] For example, Fig.11 is Fig.10 Based on Fig. 9 The point expansion method provided is for nodes A schematic diagram of a scene with a preset expansion direction obtained by point expansion. Fig.11 As shown, As the parent node, point expansion is performed in each preset expansion direction (the left front direction, right front direction, left rear direction, and right rear direction when the vehicle is traveling in the forward direction) to generate four child nodes. The labels of the child nodes are , , and ,The path from the parent node to each child node is composed of multiple extension points. Fig.11 The horizontal solid line with an arrow on it indicates the planned path for autonomous driving. The direction of the arrow is the heading angle of the planned path for autonomous driving. The asterisk on the horizontal solid line indicates the turning target point. Fig.11 The vehicle posture of the target vehicle at each node is also included.
[0119] In addition, when performing actual point expansion operations, , , They need to be used as parent nodes respectively to perform point expansion in each preset expansion direction, which will not be described in detail here.
[0120] According to the technical solution provided in the embodiment of the present application, point expansion can be performed in each preset expansion direction according to the minimum turning radius of the target vehicle, so that the determined sub-nodes can eliminate the risk of collision between the target vehicle and obstacles, thereby ensuring the safety of the target vehicle when performing a U-turn operation.
[0121] In some embodiments, after determining all the extension points that meet the preset conditions as child nodes in the preset extension direction, the method further includes:
[0122] When it is detected that the heading difference between the child node and the U-turn target point is increasing, the child node and all extension points between the child node and the previous child node are deleted;
[0123] The heading difference between the subnode and the turn target point is detected to be increasing, including:
[0124] Calculate the difference between the driving angle corresponding to the child node and the driving angle corresponding to the previous child node, where the driving angle corresponding to any child node is the angle between the heading of the child node and the heading of the U-turn target point;
[0125] If the difference is greater than zero, it is determined that the heading difference between the child node and the U-turn target point is increasing.
[0126] Specifically, after all the extension points that meet the preset conditions are determined as sub-nodes in the preset extension direction, the changing trend of the heading difference between the sub-node and the U-turn target point is detected, so as to maintain and reduce the heading difference with the U-turn target point, improve the planning efficiency of the U-turn path, reduce the number of extension points, and thus reduce the calculation time.
[0127] In addition, the angle between the tangent line obtained with the subnode as the tangent point and the autonomous driving planned path is determined as the driving angle corresponding to the current subnode. At the same time, the driving angle corresponding to the previous subnode is calculated, and the difference between the driving angle of the current subnode and the driving angle of the previous subnode is determined as the heading difference between the subnode and the turning target point.
[0128] In addition, when the driving angle corresponding to the previous node is smaller than the driving angle corresponding to the current subnode, it is determined that the heading difference between the subnode and the U-turn target point is increasing, indicating that the current subnode is further away from the heading of the U-turn target point relative to the previous subnode, further indicating that the subnode corresponding to the current preset expansion direction is not an efficiency-saving choice, and the current subnode is deleted, and all generated expansion points between the current subnode and the previous subnode are deleted at the same time.
[0129] In addition, when the driving angle corresponding to the previous node is greater than the driving angle corresponding to the current child node, and it is determined that the heading difference between the child node and the U-turn target point is decreasing, the current child node continues to be used as the parent node, and point expansion is performed in the preset expansion direction according to the minimum turning radius until the terminal node in the preset expansion direction is determined.
[0130] For example, Fig.12 is a schematic diagram of a scenario in which an increasing trend of the heading difference between a subnode and a U-turn target point is detected, provided in an embodiment of the present application. Fig.12 As shown, is the parent node, It is the first child node in the current preset expansion direction. So It is a child node obtained by expanding the parent node. The horizontal line with an arrow indicates the planned path for autonomous driving. The direction of the arrow indicates the driving direction. The asterisk on the planned path for autonomous driving indicates the turning target point. The driving angle between the turning point and the target point is recorded as , The driving angle between the turning point and the target point is recorded as ,Depend on Fig.12 It can be seen that ,express The driving angle between the U-turn target point and If the driving angle (i.e., heading difference) between the turning point and the turning target point increases, delete arrive All extension points between and .
[0131] In addition, if , then keep as well as All the expansion points between them. The decreasing trend of heading difference can be expressed by mathematical expression:
[0132] ;
[0133] in, Indicates the driving angle between the current node and the turning target point. It indicates the driving angle between the previous node and the turning target point. Otherwise, it indicates that the heading difference is increasing.
[0134] In addition, the above process can be called pruning processing, and when point expansion is performed in each preset expansion direction to determine the child node, the child node is pruned.
[0135] According to the technical solution provided in the embodiment of the present application, the number of extension points and nodes can be greatly reduced, thereby reducing the calculation time, improving the efficiency of planning the U-turn path, and being able to plan the U-turn path more efficiently and accurately.
[0136] In some embodiments, determining a target U-turn path from at least one candidate U-turn path includes:
[0137] Determine the cost of each alternative U-turn path;
[0138] The alternative U-turn path corresponding to the minimum value among the cost values is determined as the target U-turn path.
[0139] Specifically, each terminal node is backtracked to determine each child node corresponding to each terminal node, and the current terminal node, all child nodes corresponding to the current terminal node, the parent node and the U-turn target point are used as an alternative U-turn path. Since there may be multiple terminal nodes, there may also be multiple alternative U-turn paths, that is, the number of alternative U-turn paths corresponds to the number of terminal nodes.
[0140] In addition, in order to evaluate the pros and cons of each alternative U-turn path, the cost value of each alternative U-turn path is determined. The cost value can be determined based on multiple factors, including: the total distance of the alternative U-turn path, the total time required to complete the U-turn operation, the safety of the alternative U-turn path, the comfort of the alternative U-turn path, the gear switching frequency of the target vehicle, etc., and the factors affecting the cost value and the corresponding weights can be set by oneself, and the cost value of each alternative U-turn path is obtained by weighted summing up the factors.
[0141] In addition, the cost values of all alternative U-turn paths are compared, and the alternative U-turn path corresponding to the minimum cost value is determined as the target U-turn path, so that the best choice under current conditions can be made among multiple alternative U-turn paths, thereby improving U-turn efficiency and reducing energy consumption.
[0142] Furthermore, the target vehicle is controlled to perform a U-turn operation according to the target U-turn path. At the same time, the automatic driving system can continuously monitor the changes in the driving environment during the actual driving process of the target vehicle, and adjust the target U-turn path when necessary.
[0143] According to the technical solution provided in the embodiment of the present application, the alternative U-turn path with the smallest cost is selected as the target U-turn path, thereby improving the U-turn efficiency of the target vehicle.
[0144] In some embodiments, determining the cost of each candidate U-turn path includes:
[0145] For a target node in a node set corresponding to an alternative U-turn path, a length cost value and a gear shift cost value of the target node are determined; wherein the node set includes a terminal node corresponding to the alternative U-turn path, a parent node taken by the current position of the target vehicle, and all child nodes between the terminal node and the parent node taken by tracing back to the current position of the target vehicle; the target node is any node in the node set;
[0146] Calculate the sum of the cost value of the previous node of the target node, the length cost value of the target node, and the shift cost value, and determine the sum as the cost value of the target node;
[0147] Based on the cost value of the target node, the sum of the cost values of all the nodes in the node set is calculated, and the sum of the cost values is determined as the cost value of the candidate U-turn path.
[0148] Specifically, the node set is a set of nodes constituting the alternative U-turn path, which are connected in sequence to form a complete alternative U-turn path from the current position of the target vehicle (i.e., the parent node) through the terminal node of the alternative U-turn path to the U-turn target point. The node set includes the terminal node corresponding to the alternative U-turn path, the parent node of the current position of the target vehicle, and all child nodes from the terminal node back to the parent node of the current position of the target vehicle. The target node is any node in the node set, and the cost value corresponding to the node needs to be calculated.
[0149] According to the target node in the node set corresponding to the alternative U-turn path, the length cost and the gear shift cost of the target node are determined, wherein the shorter the distance between the target node and its directly adjacent nodes is, the smaller the length cost is; the gear shift cost reflects the number of times and the gear shift complexity required for the target vehicle to shift gears when executing the alternative U-turn path. In some cases, frequent gear shifting will increase the fuel consumption, wear and driving difficulty of the target vehicle, so the fewer the gear shifting times, the smaller the gear shift cost is. In addition, the gear shift cost can also be determined based on factors such as speed change, acceleration, and the difference between the current gear and the target gear of the target vehicle.
[0150] In addition, the cost value of the previous node of the target node, the length cost value of the target node and the sum of the gear shift cost value are determined as the cost value of the target node, which can be dynamically planned to ensure that the alternative turning paths corresponding to the minimum cost value from the parent node to any target node can be tracked and calculated.
[0151] In addition, after determining the cost of each node in the node set, the total cost of the alternative U-turn path is the sum of the cost values of all nodes in the node set. The sum of the cost values reflects the total cost required to execute the alternative U-turn path, which includes comprehensive factors in multiple dimensions, thereby determining the target U-turn path.
[0152] According to the technical solution provided in the embodiment of the present application, the sum of the cost values of all nodes in the node set is determined according to the cost value of the target node, so as to determine the cost value of the alternative U-turn path corresponding to the node set. The minimum cost value can be determined among the cost values of the alternative U-turn paths, and then the alternative U-turn path corresponding to the minimum cost value is determined as the target U-turn path. The sum takes into account the energy loss and the number of gear shifts of the target vehicle, thereby improving the U-turn efficiency.
[0153] In some embodiments, determining the length cost value and the gear shift cost value of the target node includes:
[0154] The length cost value of the target node is determined by the following formula based on the preset length cost coefficient and the horizontal and vertical coordinates corresponding to each extension point between the previous node of the target node and the target node. The length cost coefficient includes the forward gear length cost coefficient and the reverse gear length cost coefficient:
[0155] ;
[0156] in, Indicates the length cost of the target node, when the gear position of the target vehicle is forward gear Indicates the forward gear length cost coefficient. When the target vehicle is in reverse gear represents the reverse gear length cost coefficient, Indicates the number of extension points of all extension points between the previous node of the target node and the target node. Indicates the horizontal coordinate of the kth extension point counted when the previous node of the target node is used as the counting starting point. It represents the horizontal coordinate of the k+1th node counted when the previous node of the target node is used as the counting starting point. It represents the ordinate of the kth extension point counted when the previous node of the target node is used as the counting starting point. Indicates the ordinate of the k+1th extension point counted when the previous node of the target node is used as the counting starting point;
[0157] The gear shift cost value of the target node is determined by the following formula based on the gear information of the target vehicle at the node before the target node, the gear information of the target vehicle at the target node and the preset gear shift cost coefficient:
[0158] ;
[0159] in, represents the gear shift cost of the target node, represents the gear shift cost coefficient, Indicates the gear information corresponding to the target vehicle at the target node, Indicates the gear information corresponding to the target vehicle at the node before the target node.
[0160] Specifically, the length cost value is an indicator to measure the length of the path from the previous node of the target node to the target node, and is determined according to the length cost coefficient corresponding to the different characteristics of the vehicle when driving in different gears and the distance between two adjacent expansion points.
[0161] Among them, the pre-set length cost coefficient includes the length cost coefficient corresponding to the forward gear and the length cost coefficient corresponding to the reverse gear. The length cost coefficient corresponding to the reverse gear can be set to be greater than the length cost coefficient corresponding to the forward gear. For example, the length cost coefficient corresponding to the reverse gear is set to 0.6, and the length cost coefficient corresponding to the forward gear is set to 0.4.
[0162] In addition, the gear shift cost value reflects an indicator of the gear shift operation cost of the target vehicle between different nodes, and can be set according to the number of gear shifts and the type of gear shift. For example, by comparing the gear information at the target node and the previous node, it is determined whether a gear shift operation has occurred. If a gear shift operation has occurred, the corresponding gear shift cost coefficient can be found according to the gear shift type and directly assigned to the gear shift cost value of the target node.
[0163] For example, the target vehicle gear at the target node is the reverse gear, while the gear at the previous node is the forward gear. Assuming that the cost coefficient from the forward gear to the reverse gear is 2, the gear shift cost value is 2.
[0164] According to the technical solution provided in the embodiment of the present application, by comprehensively considering the length cost value and the gear shift cost value, a standard for comprehensively evaluating the cost values of different alternative U-turn paths can be provided, thereby determining the optimal alternative U-turn path as the target U-turn path.
[0165] Fig.13 Another method for U-turn path planning provided by the embodiment of the present application is as follows: Fig.13 As shown, according to the current position of the target vehicle and the planned path of the automatic driving, it is determined whether a U-turn is required. If so, the U-turn target point is obtained, and the point is expanded according to each preset expansion direction to obtain each expansion point (i.e. Fig. 9 For each extension point in the list), perform collision detection on the next extension point. If a collision occurs, use the current extension point as a child node. If no collision occurs, continue to determine the extension point.
[0166] Determine whether the heading angle between the current child node and the U-turn target point and the heading angle between the previous child node and the U-turn target point are increasing. If so, perform a pruning operation on the current child node, that is, remove the current child node and each expansion point corresponding to the current child node and stop expanding. If not, include the child node in the child node set.
[0167] At the same time, the extension point and the U-turn target point as the preset detection point are connected in the connection method of the Dubins curve. If a collision occurs on the connection curve, the point is expanded in the above manner. If no collision occurs on the connection curve, the point is used as the termination node, and the child nodes and parent nodes included in the termination node are traced back to generate an alternative U-turn path. The cost value of each alternative U-turn path is determined, and the alternative U-turn path with the smallest cost value is determined as the target U-turn path.
[0168] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0169] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.
[0170] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0171] Fig.14 Schematic diagram of a U-turn path planning device provided in an embodiment of the present application. Fig.14 As shown, the U-turn path planning device includes: a determination module 1401, a first expansion module 1402, a second expansion module 1403, a third expansion module 1404, and an execution module 1405, wherein:
[0172] The determination module 1401 is configured to determine a U-turn target point when the U-turn operation is completed on the required driving path after the U-turn based on the minimum turning radius of the target vehicle when the target vehicle detects that the target vehicle needs to turn around;
[0173] The first expansion module 1402 is configured to perform point expansion in the preset expansion direction based on the minimum turning radius with the current position of the target vehicle as the parent node for each preset expansion direction, and determine whether a connection curve between a preset detection point in the expanded point and the U-turn target point collides with an obstacle;
[0174] The second expansion module 1403 is configured to determine the preset detection point as a termination node in a preset expansion direction if the connection curve does not collide with the obstacle, wherein the termination node refers to a node that is no longer used as a parent node for point expansion;
[0175] The third expansion module 1404 is configured to determine a point among the expanded points that meets a preset condition as a child node in a preset expansion direction if the connection curve collides with an obstacle, and continue to use the child node as a parent node and perform point expansion in the preset expansion direction based on a minimum turning radius when detecting that the heading difference between the child node and the U-turn target point is decreasing, until a terminal node in the preset expansion direction is determined; the preset condition is that the next expansion point of the current expansion point collides with the obstacle;
[0176] The execution module 1405 is configured to determine at least one alternative U-turn path based on the termination node, the child node and the U-turn target point, determine a target U-turn path from the at least one alternative U-turn path, and control the target vehicle to perform a U-turn operation according to the target U-turn path.
[0177] In some embodiments, the determination module 1401 is configured to: obtain the current driving direction of the target vehicle and the indicated driving direction of the autonomous driving planned path; determine the angle difference between the current driving direction and the indicated driving direction; when the angle difference is greater than a preset angle threshold, it is determined that the target vehicle is detected and needs to turn around.
[0178] In some embodiments, the information corresponding to the U-turn target point includes the position information and heading angle of the U-turn target point; the determination module 1401 is configured to: determine the automatic driving planned path of the target vehicle at the current moment as the required driving path after the U-turn, and determine the driving direction of the automatic driving planned path as the heading angle of the required driving path after the U-turn; determine the projection point of the rear axle center point of the target vehicle on the required driving path after the U-turn; determine the product of the minimum turning radius and the preset turning coefficient as the target U-turn distance, wherein the preset turning coefficient is greater than 0; translate the projection point along the heading angle direction of the required driving path after the U-turn by the target U-turn distance to obtain the position information of the U-turn target point.
[0179] In some embodiments, the first expansion module 1402 is configured to: take the parent node as the starting point, the minimum turning radius as the radius, and perform point expansion in a preset expansion direction according to a preset expansion distance to obtain the horizontal coordinate, vertical coordinate and heading angle of each expansion point in the preset expansion direction; the preset expansion direction includes the left front direction, the right front direction, the left rear direction and the right rear direction; wherein the position coordinate information of each expansion point and the heading angle of each expansion point are expressed by the following formula:
[0180] ;
[0181] ;
[0182] ;
[0183] in, Indicates is the horizontal coordinate of the kth extension point counted at the counting starting point, Indicates the i+1th point as the parent node in the preset extension direction identified by j. Indicates is the horizontal coordinate of the k-1th extension point counted when counting the starting point, Indicates the preset extension distance. Indicates is the cosine value of the heading angle of the k-1th extension point counted at the counting starting point; i and j are both greater than or equal to 0;
[0184] Indicates is the ordinate of the kth extension point counted when counting the starting point, Indicates is the ordinate of the k-1th extension point counted when counting the starting point, Indicates is the sine value of the heading angle of the k-1th extension point counted from the counting starting point;
[0185] Indicates is the heading angle of the kth extension point counted from the counting starting point, Indicates is the heading angle of the k-1th extension point counted from the counting starting point, and R represents the minimum turning radius.
[0186] In some embodiments, after determining the points that meet the preset conditions among all the extension points as child nodes in the preset extension direction, the third module 1404 is further configured to:
[0187] When it is detected that the heading difference between the child node and the U-turn target point is increasing, the child node and all extension points between the child node and the previous child node are deleted;
[0188] The heading difference between the subnode and the turn target point is detected to be increasing, including:
[0189] Calculate the difference between the driving angle corresponding to the subnode and the driving angle corresponding to the previous subnode, where the driving angle corresponding to any subnode is the angle between the heading of the subnode and the heading of the U-turn target point; if the difference is greater than zero, it is determined that the heading difference between the subnode and the U-turn target point is increasing.
[0190] In some embodiments, the execution module 1405 is configured to: determine the cost value of each candidate U-turn path; and determine the candidate U-turn path corresponding to the minimum value among the cost values as the target U-turn path.
[0191] In some embodiments, the execution module 1405 is configured to:
[0192] For the target node in the node set corresponding to the alternative U-turn path, determine the length cost value and the gear shift cost value of the target node; wherein the node set includes the terminal node corresponding to the alternative U-turn path, the parent node of the current position of the target vehicle, and all child nodes between the terminal node and the parent node traced back to the current position of the target vehicle; the target node is any node in the node set; calculate the sum of the cost value of the previous node of the target node, the length cost value of the target node and the gear shift cost value, and determine the sum as the cost value of the target node; based on the cost value of the target node, calculate the sum of the cost values of all the nodes in the node set, and determine the sum of the cost values as the cost value of the alternative U-turn path.
[0193] In some embodiments, the execution module 1405 is configured to:
[0194] The length cost value of the target node is determined by the following formula based on the preset length cost coefficient and the horizontal and vertical coordinates corresponding to each extension point between the previous node of the target node and the target node. The length cost coefficient includes the forward gear length cost coefficient and the reverse gear length cost coefficient:
[0195] ;
[0196] in, Indicates the length cost of the target node, when the gear position of the target vehicle is forward gear Indicates the forward gear length cost coefficient. When the target vehicle is in reverse gear represents the reverse gear length cost coefficient, Indicates the number of extension points of all extension points between the previous node of the target node and the target node. Indicates the horizontal coordinate of the kth extension point counted when the previous node of the target node is used as the counting starting point. It represents the horizontal coordinate of the k+1th node counted when the previous node of the target node is used as the counting starting point. It represents the ordinate of the kth extension point counted when the previous node of the target node is used as the counting starting point. Indicates the ordinate of the k+1th extension point counted when the previous node of the target node is used as the counting starting point;
[0197] The gear shift cost value of the target node is determined by the following formula based on the gear information of the target vehicle at the node before the target node, the gear information of the target vehicle at the target node and the preset gear shift cost coefficient:
[0198] ;
[0199] in, represents the gear shift cost of the target node, represents the gear shift cost coefficient, Indicates the gear information corresponding to the target vehicle at the target node, Indicates the gear information corresponding to the target vehicle at the node before the target node.
[0200] Fig.15 Schematic diagram of an electronic device 15 provided in an embodiment of the present application. Fig.15 As shown, the electronic device 15 of this embodiment includes: a processor 1501, a memory 1502, and a computer program 1503 stored in the memory 1502 and executable on the processor 1501. When the processor 1501 executes the computer program 1503, the steps in the above-mentioned method embodiments are implemented. Alternatively, when the processor 1501 executes the computer program 1503, the functions of the modules / units in the above-mentioned device embodiments are implemented.
[0201] The electronic device 15 may be a desktop computer, a notebook, a PDA, a cloud server, or other electronic device. The electronic device 15 may include, but is not limited to, a processor 1501 and a memory 1502. Those skilled in the art will appreciate that Fig.15 The electronic device 15 is merely an example and does not limit the electronic device 15 , and may include more or less components than those shown in the figure, or different components.
[0202] The processor 1501 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
[0203] The memory 1502 may be an internal storage unit of the electronic device 15, for example, a hard disk or memory of the electronic device 15. The memory 1502 may also be an external storage device of the electronic device 15, for example, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card (FlashCard), etc. equipped on the electronic device 15. The memory 1502 may also include both an internal storage unit of the electronic device 15 and an external storage device. The memory 1502 is used to store computer programs and other programs and data required by the electronic device.
[0204] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units.
[0205] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium (e.g., a readable storage medium). Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. The computer program may include computer program code, which may be in source code form, object code form, executable file or some intermediate form. The readable storage medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc.
[0206] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A U-turn path planning method, characterized in that: include: In the case where it is detected that the target vehicle needs to turn around, determining a turning target point when the turning operation is completed on the required driving path after the turning based on the minimum turning radius of the target vehicle; For each preset extension direction, taking the current position of the target vehicle as the parent node, based on the minimum turning radius, point extension is performed in the preset extension direction, and it is determined whether a connection curve between a preset detection point in the extension point and the U-turn target point collides with an obstacle; If the connection curve does not collide with the obstacle, the preset detection point is determined as the end node in the preset extension direction, wherein the end node refers to a node that is no longer used as a parent node for point extension; If the connection curve collides with an obstacle, all the points that meet the preset conditions among the extension points are determined as child nodes in the preset extension direction, and when it is detected that the heading difference between the child node and the U-turn target point is decreasing, the child node is continued to be used as the parent node, and point extension is performed in the preset extension direction based on the minimum turning radius until the end node in the preset extension direction is determined; the preset condition is that the next extension point of the current extension point collides with the obstacle; At least one candidate U-turn path is determined based on the termination node, the subnode and the U-turn target point, a target U-turn path is determined from the at least one candidate U-turn path, and the target vehicle is controlled to perform a U-turn operation according to the target U-turn path.
2. The method according to claim 1, characterized in that The detecting that the target vehicle needs to turn around includes: Obtaining the current driving direction of the target vehicle and the indicated driving direction of the autonomous driving planned path; determining an angular difference between the current driving direction and the indicated driving direction; When the angle difference is greater than a preset angle threshold, it is determined that the target vehicle needs to turn around.
3. The method according to claim 1, characterized in that: The information corresponding to the U-turn target point includes the position information and the heading angle of the U-turn target point; The determining of a U-turn target point when the U-turn operation is completed on the required driving path after the U-turn based on the minimum turning radius includes: Determine the current automatic driving planned path of the target vehicle as the required driving path after the U-turn, and determine the driving direction of the automatic driving planned path as the heading angle of the required driving path after the U-turn; Determine the projection point of the rear axle center point of the target vehicle on the required driving path after the U-turn; Determine the target U-turn distance by multiplying the minimum turning radius by a preset turning coefficient, wherein the preset turning coefficient is greater than 0; The projection point is translated by the target turning distance along the heading angle direction of the required driving path after the turning to obtain the position information of the turning target point.
4. The method according to claim 1, characterized in that For each preset expansion direction, taking the current position of the target vehicle as the parent node and performing point expansion in the preset expansion direction based on the minimum turning radius, includes: Taking the parent node as the starting point and the minimum turning radius as the radius, point expansion is performed in a preset expansion direction according to a preset expansion distance to obtain the horizontal coordinate, vertical coordinate and heading angle of each expansion point in the preset expansion direction; the preset expansion direction includes a left front direction, a right front direction, a left rear direction and a right rear direction; The position coordinate information of each expansion point and the heading angle of each expansion point are expressed by the following formula: ; ; ; in, Indicates is the horizontal coordinate of the kth extension point counted at the counting starting point, Indicates the i+1th point as the parent node in the preset extension direction identified by j. Indicates is the horizontal coordinate of the k-1th extension point counted when counting the starting point, represents the preset extension distance, Indicates is the cosine value of the heading angle of the k-1th extension point counted at the counting starting point; i and j are both greater than or equal to 0; Indicates is the ordinate of the kth extension point counted when counting the starting point, Indicates is the ordinate of the k-1th extension point counted when counting the starting point, Indicates is the sine value of the heading angle of the k-1th extension point counted from the counting starting point; Indicates is the heading angle of the kth extension point counted from the counting starting point, Indicates is the heading angle of the k-1th extension point counted when counting the starting point, and R represents the minimum turning radius.
5. The method according to claim 1, characterized in that After determining all the extension points that meet the preset conditions as child nodes in the preset extension direction, the method further includes: When it is detected that the heading difference between the subnode and the U-turn target point is increasing, deleting the subnode and all extension points between the subnode and the previous subnode; The detecting that the heading difference between the subnode and the U-turn target point is increasing includes: Calculate the difference between the driving angle corresponding to the subnode and the driving angle corresponding to the previous subnode, wherein the driving angle corresponding to any subnode is the angle between the heading of the subnode and the heading of the U-turn target point; If the difference is greater than zero, it is determined that the heading difference between the child node and the U-turn target point is increasing.
6. The method according to claim 1, characterized in that The determining a target U-turn path from the at least one candidate U-turn path comprises: Determining a cost value of each of the alternative U-turn paths; The candidate U-turn path corresponding to the minimum value among the cost values is determined as the target U-turn path.
7. The method according to claim 6, characterized in that The determining of the cost value of each candidate U-turn path includes: For a target node in the node set corresponding to the alternative U-turn path, determine the length cost value and the gear shift cost value of the target node; wherein the node set includes the end node corresponding to the alternative U-turn path, the parent node of the current position of the target vehicle, and all child nodes between the end node and the parent node of the current position of the target vehicle; the target node is any node in the node set; Calculate the sum of the cost value of the previous node of the target node, the length cost value of the target node, and the shift cost value, and determine the sum as the cost value of the target node; Based on the cost value of the target node, the sum of the cost values of all the nodes in the node set is calculated, and the sum of the cost values is determined as the cost value of the candidate U-turn path.
8. The method according to claim 7, characterized in that The determining of the length cost value and the gear shift cost value of the target node includes: The length cost value of the target node is determined by the following formula based on the preset length cost coefficient and the horizontal coordinates and vertical coordinates corresponding to each extension point from the previous node of the target node to the target node, wherein the length cost coefficient includes the forward gear length cost coefficient and the reverse gear length cost coefficient: ; in, represents the length cost value of the target node, when the gear position of the target vehicle is the forward gear represents the forward gear length cost coefficient, when the gear position of the target vehicle is the reverse gear represents the reverse gear length cost coefficient, represents the number of extension points of all extension points between the previous node of the target node and the target node, Indicates the horizontal coordinate of the kth extension point counted when the previous node of the target node is used as the counting starting point. It represents the horizontal coordinate of the k+1th node counted when the previous node of the target node is used as the counting starting point. It represents the ordinate of the kth extension point counted when the previous node of the target node is used as the counting starting point. Indicates the ordinate of the k+1th extension point counted when the previous node of the target node is used as the counting starting point; The gear shift cost value of the target node is determined by the following formula based on the gear information of the target vehicle at the node before the target node, the gear information of the target vehicle at the target node and the preset gear shift cost coefficient: ; in, represents the gear shift cost value of the target node, represents the gear shift cost coefficient, represents the gear information corresponding to the target vehicle at the target node, Indicates the gear information corresponding to the target vehicle at the node before the target node.
9. A U-turn path planning device, characterized in that: include: A determination module is configured to determine a U-turn target point when the U-turn operation is completed on a required driving path after the U-turn based on a minimum turning radius of the target vehicle when the target vehicle detects that the target vehicle needs to turn around; The first expansion module is configured to perform point expansion in the preset expansion direction based on the minimum turning radius with the current position of the target vehicle as the parent node for each preset expansion direction, and determine whether a connection curve between a preset detection point in the expansion point and the U-turn target point collides with an obstacle; A second expansion module is configured to determine the preset detection point as a termination node in the preset expansion direction if the connection curve does not collide with the obstacle, wherein the termination node refers to a node that is no longer used as a parent node for point expansion; The third expansion module is configured to determine a point among the expanded points that meets a preset condition as a child node in a preset expansion direction if the connection curve collides with an obstacle, and continue to use the child node as a parent node and perform point expansion in the preset expansion direction based on the minimum turning radius when detecting that the heading difference between the child node and the U-turn target point is decreasing, until a terminal node in the preset expansion direction is determined; the preset condition is that the next expansion point of the current expansion point collides with an obstacle; The execution module is configured to determine at least one alternative U-turn path based on the termination node, the subnode and the U-turn target point, determine a target U-turn path from the at least one alternative U-turn path, and control the target vehicle to perform a U-turn operation according to the target U-turn path.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.
