Real-time obstacle avoidance path planning method, system, device and medium

Through the bidirectional RRT algorithm and cost function strategy, in the path planning of driverless mining trucks, the problems of long path planning and uncontrollable heading are solved, achieving more efficient path planning and better execution.

CN114764249BActive Publication Date: 2024-09-10XI'AN UNIVERSITY OF ARCHITECTURE AND TECHNOLOGY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210454092.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-27
Publication Date
2024-09-10
Estimated Expiration
2042-04-27

AI Technical Summary

Technical Problem

For unmanned mining trucks, in the complex road environment of mining areas, the existing path planning method takes a long time and the heading to the target point is uncontrollable, making the path planning results poor in executability.

Method used

The bidirectional RRT algorithm is used to initialize random tree A and random tree B, and use the preset cost function and variable step search strategy to search for paths within the drivable area of ​​the autonomous vehicle until random tree A and random tree B meet, generating Real-time obstacle avoidance path from starting point to end point.

Benefits of technology

It improves the speed and course controllability of path planning, ensures the execution and trajectory smoothness of path planning results, and reduces calculation difficulty.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114764249B
    Figure CN114764249B
Patent Text Reader

Abstract

The present invention discloses a real-time obstacle avoidance path planning method, system, device and medium. The method comprises: determining a drivable area of ​​an autonomous driving vehicle according to a planning starting point and a planning end point; initializing a random tree A with the planning starting point and initializing a random tree B with the planning end point; in the drivable area of ​​the autonomous driving vehicle, using a preset bidirectional RRT algorithm, searching the random tree A and the random tree B respectively until a new node x of the random tree A is found. A The new node x of the random tree B B Satisfy the preset connection requirements, that is, random tree A meets random tree B; the new node x of random tree A A The new node x of the random tree B B The present invention plans a path from the planning starting point to the planning end point for the autonomous driving vehicle through a dual-tree search strategy, thereby ensuring the controllability of the heading to the target point and achieving better execution of the path planning result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of unmanned vehicle driving, and in particular relates to a real-time obstacle avoidance path planning method, system, equipment and medium. Background Art

[0002] When unmanned mining trucks are operating autonomously, rockfalls often occur due to the complex road environment in the mining area. Therefore, real-time obstacle avoidance path planning for unmanned mining trucks has become one of the urgent problems to be solved. At present, most of them use the traditional rapid-exploring random tree algorithm (Rapidly-exploring random tree, RRT) for path planning, which has the problems of long time consumption, uncontrollable heading to the target point, and poor executableness of path planning results. Summary of the invention

[0003] In response to the technical problems existing in the prior art, the present invention provides a real-time obstacle avoidance path planning method, system, device and medium to solve the technical problems that the existing path planning process is time-consuming, the heading to the target point is uncontrollable, and the executable nature of the path planning results is poor.

[0004] In order to achieve the above object, the technical solution adopted by the present invention is:

[0005] The present invention provides a real-time obstacle avoidance path planning method, comprising:

[0006] Determine the drivable area of ​​the autonomous driving vehicle based on the planned starting point and the planned end point;

[0007] Initialize random tree A with the planning starting point, and initialize random tree B with the planning end point;

[0008] In the drivable area of ​​the autonomous driving vehicle, the random tree A and the random tree B are searched respectively using the preset bidirectional RRT algorithm until the new node x of the random tree A is A The new node x of the random tree B B The preset connection requirements are met, that is, random tree A meets random tree B;

[0009] The new node x of the random tree A A The new node x of the random tree B B Connect and generate a path from the planned starting point to the planned end point, that is, obtain the real-time obstacle avoidance path planning result.

[0010] Furthermore, the process of determining the drivable area of ​​the autonomous driving vehicle according to the planning starting point and the planning end point is as follows:

[0011] Obtain the roadside coordinates of both sides of the road between the planned starting point and the planned end point, and use the roadside coordinates of the planned starting point and the roadside coordinates of the planned end point as diagonal lines to form a rectangular area;

[0012] Dividing the rectangular area into a plurality of grids with a preset fixed length;

[0013] Take the four corners of each grid as the positioning points and filter out all the positioning points within the road;

[0014] The area formed by all the positioning points on the road is used as the drivable area for the autonomous driving vehicle.

[0015] Furthermore, the process of initializing random tree A with the planning starting point and initializing random tree B with the planning end point is as follows:

[0016] The planning starting point is taken as the root node of random tree A, and the planning end point is taken as the root node of random tree B.

[0017] Furthermore, within the drivable area of ​​the autonomous driving vehicle, the random tree A and the random tree B are searched respectively using a preset bidirectional RRT algorithm until a new node x of the random tree A is found. A The new node x of the random tree B B The process of meeting random tree A and random tree B to meet the preset connection requirements is as follows:

[0018] (1) Searching the random tree A:

[0019] In the drivable area of ​​the autonomous driving vehicle, a sampling point x is randomly generated. rand ;

[0020] According to the preset cost function, search on the random tree A to get the node x nearest ; Wherein, the node x nearest To minimize the value of the preset cost function, and the node x nearest To the sampling point x rand The turning angle is less than the maximum allowable turning angle θ max ;

[0021] Along node x nearest With sampling point x rand In the direction of the connection, expand the maximum growth step length L max , get node x new ;

[0022] For node x new With node x nearest performing obstacle detection between the two front wheels of the autonomous driving vehicle and the boundary of the drivable area of ​​the autonomous driving vehicle;

[0023] If the node x new With node x nearest If there are no obstacles between the two front wheels of the autonomous driving vehicle and the boundary of the drivable area of ​​the autonomous driving vehicle, node x will be added. new To the random tree A, that is, node x new is the new node x of the random tree A A ;

[0024] If the node x new With node x nearest If there is an obstacle between the two front wheels of the autonomous driving vehicle and the boundary of the drivable area of ​​the autonomous driving vehicle is not collided, the grid length of the drivable area of ​​the autonomous driving vehicle is used as the decrement amount, and the decrement is gradually reduced until the new node x new With node x nearest There are no obstacles between them, and then the new node x new Will be added to the random tree A, that is, the new node x new is the new node x of the random tree A A ;

[0025] (2) According to the above search operation on the random tree A, the random tree B is searched until the random tree B grows to the new node x B ;

[0026] (3) Determine the new node x of the random tree A A The new node x of the random tree B B Whether the preset connection requirements are met, if so, the new node x of the random tree A is A The new node x of the random tree B B The algorithm terminates when random tree A meets random tree B. Otherwise, the algorithm returns to step (1) and step (2) to continue expanding random tree A and random tree B respectively until the new node x of random tree A is A The new node x of the random tree B B Meet the preset connection requirements.

[0027] Furthermore, the preset cost function is:

[0028]

[0029] Among them, D f is the sampling point x rand Euclidean distance to a node on random tree A or random tree B; From the parent node to the sampling point x rand The heading change; D g is the sampling point x randThe total sum of the Euclidean distances along the branches back to the root node after passing through the parent node; α1 is a parameter; a2 is a parameter; β is the weight of the total distance of the generated path.

[0030] Furthermore, the process of performing collision detection between the two front wheels of the autonomous driving vehicle and the boundary of the drivable area of ​​the autonomous driving vehicle is as follows:

[0031] According to the random number generation strategy, the left front wheel coordinates (x left ,y left );

[0032] According to the width w of the autonomous vehicle and the direction θ of the vehicle j , calculate the right front wheel coordinates of the autonomous driving vehicle; wherein the right front wheel coordinates (x right ,y right )for:

[0033]

[0034] Obtaining the coordinates of the road edge parallel to the right front wheel of the autonomous driving vehicle;

[0035] Based on the coordinates of the road edge parallel to the right front wheel of the autonomous driving vehicle and the coordinates of the right front wheel of the autonomous driving vehicle, it is determined whether the right front wheel of the autonomous driving vehicle collides with the road edge, that is, the collision detection result of the two front wheels of the autonomous driving vehicle and the boundary of the drivable area of ​​the autonomous driving vehicle is obtained.

[0036] Furthermore, the preset connection requirements are as follows:

[0037] New node x of random tree A A To the new node x of the random tree B B The distance is less than the maximum growth step length L max ;

[0038] New node x of random tree A A The new node x A The angle between the parent node and the new node x of the random tree A A To the new node x of the random tree B B The absolute value of the angle difference is less than the maximum allowable turning angle θ max ;

[0039] New node x of random tree B B To the new node x B The angle between the parent node and the new node x of the random tree A A To the new node x of the random tree B B The absolute value of the angle difference is less than the maximum allowable turning angle θ max ;

[0040] New node x of random tree A A To the new node x of the random tree B B On the path, neither the left front wheel nor the right front wheel of the autonomous driving vehicle collides with the boundary of the drivable area of ​​the autonomous driving vehicle.

[0041] The present invention also provides a real-time obstacle avoidance path planning system, comprising:

[0042] The feasible domain module is used to determine the drivable area of ​​the autonomous driving vehicle based on the planned starting point and the planned end point;

[0043] The random tree module is used to initialize the random tree A with the planning starting point and initialize the random tree B with the planning end point;

[0044] The search module is used to search the random tree A and the random tree B respectively in the drivable area of ​​the autonomous driving vehicle by using a preset bidirectional RRT algorithm until a new node x of the random tree A is found. A The new node x of the random tree B B The preset connection requirements are met, that is, random tree A meets random tree B;

[0045] Path module, used to add new nodes x to the random tree A A The new node x of the random tree B B Connect and generate a path from the planned starting point to the planned end point, that is, obtain the real-time obstacle avoidance path planning result.

[0046] The present invention also provides a vehicle for real-time obstacle avoidance path planning, comprising:

[0047] Memory for storing computer programs;

[0048] A processor is used to implement the steps of the real-time obstacle avoidance path planning method when executing the computer program.

[0049] The present invention also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of the real-time obstacle avoidance path planning method are implemented.

[0050] Compared with the prior art, the present invention has the following beneficial effects:

[0051] The present invention provides a real-time obstacle avoidance path planning method and system. According to a planning starting point and a planning end point, a drivable area of ​​an autonomous driving vehicle is determined, and a random tree A and a random tree B are constructed. Through a dual-tree search strategy, a path from a planning starting point to a planning end point is planned for the autonomous driving vehicle, thereby ensuring the controllability of a heading to a target point, and the execution of the path planning result is better. By introducing a cost function strategy, a variable step search strategy, and a trunk stop growth strategy into the dual-tree search strategy, the calculation difficulty of the dual-tree path planning is reduced, and the planning speed is improved on the basis of meeting the trajectory smoothness requirement. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 It is a flow chart of the real-time obstacle avoidance path planning method of the present invention;

[0053] Figure 2 A schematic diagram of a drivable area of ​​an autonomous driving vehicle in an embodiment;

[0054] Figure 3 It is a schematic diagram of the result of the double-tree quick search in the embodiment. DETAILED DESCRIPTION

[0055] In order to make the technical problems, technical solutions and beneficial effects solved by the present invention more clearly understood, the present invention is further described in detail in the following specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0056] The present invention provides a real-time obstacle avoidance path planning method, comprising the following steps:

[0057] Step 1: Determine the drivable area of ​​the autonomous driving vehicle according to the planned starting point and the planned end point; the process of determining the drivable area of ​​the autonomous driving vehicle is as follows:

[0058] Step 11: Obtain the roadside coordinates of both sides of the road between the planned starting point and the planned end point, and use the roadside coordinates of the planned starting point and the roadside coordinates of the planned end point as diagonal lines to form a rectangular area.

[0059] Step 12: Divide the rectangular area into a plurality of grids with a preset fixed length.

[0060] Step 13: Using the four corners of each grid as positioning points, filter out all positioning points within the road; wherein the road is the road between the planned starting point and the planned end point.

[0061] Step 14: The area formed by all the positioning points on the road is used as the drivable area of ​​the autonomous driving vehicle.

[0062] Step 2: Initialize random tree A with the planning starting point, and initialize random tree B with the planning end point; wherein, the planning starting point is used as the root node of random tree A, and the planning end point is used as the root node of random tree B.

[0063] Step 3: In the drivable area of ​​the autonomous driving vehicle, the random tree A and the random tree B are searched respectively using the preset bidirectional RRT algorithm until the new node x of the random tree A is A The new node x of the random tree B B The preset connection requirements are met, that is, random tree A meets random tree B.

[0064] The process of searching the random tree A and the random tree B using the preset bidirectional RRT algorithm is as follows:

[0065] (1) Searching the random tree A:

[0066] In the drivable area of ​​the autonomous driving vehicle, a sampling point x is randomly generated. rand .

[0067] According to the preset cost function, search on the random tree A to get the node x nearest ; Wherein, the node x nearest To minimize the value of the preset cost function, and the node x nearest To the sampling point x rand The turning angle is less than the maximum allowable turning angle θ max ; Wherein, the preset cost function is:

[0068]

[0069] Among them, D f is the sampling point x rand Euclidean distance to a node on random tree A or random tree B; From the parent node to the sampling point x rand The heading change; D g is the sampling point x rand The total sum of the Euclidean distances along the branches back to the root node after passing through the parent node; α1 is a parameter so that the node is excluded in the process of traversing to find the parent node; a2 is a parameter. The choice of a2 determines the smoothness and speed of the generated path. The larger a2 is, the smoother the generated path is, but the slower the speed of the generated path is; β is the weight of the total distance of the generated path.

[0070] Along node x nearest With sampling point x rand In the direction of the connection, expand the maximum growth step length L max , get node x new .

[0071] For node x new With node x nearest Obstacle detection is performed between the two front wheels of the autonomous driving vehicle and the boundary of the drivable area of ​​the autonomous driving vehicle; wherein the collision detection process is specifically as follows:

[0072] According to the random number generation strategy, the left front wheel coordinates (x left ,y left );

[0073] According to the width w of the autonomous vehicle and the direction θ of the vehicle j , calculate the right front wheel coordinates of the autonomous driving vehicle; wherein the right front wheel coordinates (x right ,y right )for:

[0074]

[0075] Obtaining the coordinates of the road edge parallel to the right front wheel of the autonomous driving vehicle;

[0076] Based on the coordinates of the road edge parallel to the right front wheel of the autonomous driving vehicle and the coordinates of the right front wheel of the autonomous driving vehicle, it is determined whether the right front wheel of the autonomous driving vehicle collides with the road edge, that is, the collision detection result of the two front wheels of the autonomous driving vehicle and the boundary of the drivable area of ​​the autonomous driving vehicle is obtained.

[0077] If the node x new With node x nearest If there are no obstacles between the two front wheels of the autonomous driving vehicle and the boundary of the drivable area of ​​the autonomous driving vehicle, node x will be added. new To the random tree A, that is, node x new is the new node x of the random tree A A ;

[0078] If the node x new With node x nearest If there is an obstacle between the two front wheels of the autonomous driving vehicle and the boundary of the drivable area of ​​the autonomous driving vehicle is not collided, the grid length of the drivable area of ​​the autonomous driving vehicle is used as the decrement amount, and the decrement is gradually reduced until the new node x new With node x nearest There are no obstacles between them, and then the new node x new Will be added to the random tree A, that is, the new node x new is the new node x of the random tree A A ;

[0079] (2) According to the above search operation on the random tree A, the random tree B is searched until the random tree B grows to the new node x B ;

[0080] (3) Determine the new node x of the random tree A A The new node x of the random tree B B Whether the preset connection requirements are met, if so, the new node x of the random tree A is A The new node x of the random tree B B The algorithm terminates when random tree A meets random tree B. Otherwise, the algorithm returns to step (1) and step (2) to continue expanding random tree A and random tree B respectively until the new node x of random tree A is A The new node x of the random tree B B Meet the preset connection requirements.

[0081] The preset connection requirements are as follows:

[0082] New node x of random tree A A To the new node x of the random tree B B The distance is less than the maximum growth step length L max ;

[0083] New node x of random tree A A The new node x A The angle between the parent node and the new node x of the random tree A A To the new node x of the random tree B B The absolute value of the angle difference is less than the maximum allowable turning angle θ max ;

[0084] New node x of random tree B B To the new node x B The angle between the parent node and the new node x of the random tree A A To the new node x of the random tree B B The absolute value of the angle difference is less than the maximum allowable turning angle θ max ;

[0085] New node x of random tree A A To the new node x of the random tree B B On the path, neither the left front wheel nor the right front wheel of the autonomous driving vehicle collides with the boundary of the drivable area of ​​the autonomous driving vehicle.

[0086] Step 4: Randomize the new node x of tree A A The new node x of the random tree B B Connect and generate a path from the planned starting point to the planned end point, that is, obtain the real-time obstacle avoidance path planning result.

[0087] The real-time obstacle avoidance path planning method described in the present invention determines the drivable area of ​​the autonomous driving vehicle according to the planning starting point and the planning end point, and constructs a random tree A and a random tree B. Through a dual-tree search strategy, a path from the planning starting point to the planning end point is planned for the autonomous driving vehicle, thereby ensuring the controllability of the heading to the target point, and the path planning result has better execution performance. By introducing a cost function strategy, a variable step size search strategy and a trunk stop growth strategy into the dual-tree search strategy, the calculation difficulty of the dual-tree path planning is reduced, and the planning speed is improved on the basis of meeting the trajectory smoothness requirements.

[0088] The present invention also provides a real-time obstacle avoidance path planning system, including a feasible domain module, a random tree module, a search module and a path module; the feasible domain module is used to determine the drivable area of ​​the autonomous driving vehicle according to the planning starting point and the planning end point; the random tree module is used to initialize the random tree A with the planning starting point and initialize the random tree B with the planning end point; the search module is used to search the random tree A and the random tree B respectively in the drivable area of ​​the autonomous driving vehicle by using a preset bidirectional RRT algorithm until a new node x of the random tree A is found. A The new node x of the random tree B B Meet the preset connection requirements, that is, random tree A meets random tree B; path module is used to connect the new node x of random tree A A The new node x of the random tree B B Connect and generate a path from the planned starting point to the planned end point, that is, obtain the real-time obstacle avoidance path planning result.

[0089] The present invention also provides a real-time obstacle avoidance path planning device, comprising: a memory for storing a computer program; a processor for implementing the steps of the real-time obstacle avoidance path planning method when executing the computer program.

[0090] When the processor executes the computer program, the steps of the real-time obstacle avoidance path planning method are implemented, for example: determining a drivable area of ​​the autonomous driving vehicle according to a planning starting point and a planning end point; initializing a random tree A with the planning starting point and initializing a random tree B with the planning end point; and searching the random tree A and the random tree B respectively within the drivable area of ​​the autonomous driving vehicle using a preset bidirectional RRT algorithm until a new node x of the random tree A is found. A The new node x of the random tree B B Satisfy the preset connection requirements, that is, random tree A meets random tree B; the new node x of random tree A A The new node x of the random tree B B Connect and generate a path from the planned starting point to the planned end point, that is, obtain the real-time obstacle avoidance path planning result.

[0091] Alternatively, when the processor executes the computer program, the functions of each module in the above system are implemented, for example: a feasible domain module, used to determine the drivable area of ​​the autonomous driving vehicle according to the planning starting point and the planning end point; a random tree module, used to initialize the random tree A with the planning starting point and initialize the random tree B with the planning end point; a search module, used to search the random tree A and the random tree B respectively in the drivable area of ​​the autonomous driving vehicle using a preset bidirectional RRT algorithm until a new node x of the random tree A is found. A The new node x of the random tree B B Meet the preset connection requirements, that is, random tree A meets random tree B; path module is used to connect the new node x of random tree A A The new node x of the random tree B B Connect and generate a path from the planned starting point to the planned end point, that is, obtain the real-time obstacle avoidance path planning result.

[0092] Exemplarily, the computer program can be divided into one or more modules / units, and the one or more modules / units are stored in the memory and executed by the processor to complete the present invention. The one or more modules / units can be a series of computer program instruction segments that can complete preset functions, and the instruction segments are used to describe the execution process of the computer program in the real-time obstacle avoidance path planning device. For example, the computer program can be divided into a feasible domain module, a random tree module, a search module and a path module, and the specific functions of each module are as follows: a feasible domain module, which is used to determine the drivable area of ​​the autonomous driving vehicle according to the planning starting point and the planning end point; a random tree module, which is used to initialize the random tree A with the planning starting point and the random tree B with the planning end point; a search module, which is used to search the random tree A and the random tree B respectively in the drivable area of ​​the autonomous driving vehicle using a preset bidirectional RRT algorithm until the new node x of the random tree A is found. A The new node x of the random tree B B Meet the preset connection requirements, that is, random tree A meets random tree B; path module is used to connect the new node x of random tree A A The new node x of the random tree B B Connect and generate a path from the planned starting point to the planned end point, that is, obtain the real-time obstacle avoidance path planning result.

[0093] The real-time obstacle avoidance path planning device can be a computing device such as a desktop computer, a notebook, a PDA, and a cloud server. The real-time obstacle avoidance path planning device may include, but is not limited to, a processor and a memory. Those skilled in the art will appreciate that the above are merely examples of real-time obstacle avoidance path planning devices and do not constitute a limitation on real-time obstacle avoidance path planning devices. More components than the above may be included, or certain components may be combined, or different components may be included. For example, the real-time obstacle avoidance path planning device may also include input and output devices, network access devices, buses, etc.

[0094] The processor 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. The general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. The processor is the control center of the real-time obstacle avoidance path planning device, and uses various interfaces and lines to connect the various parts of the entire real-time obstacle avoidance path planning device.

[0095] The memory can be used to store the computer program and / or module, and the processor implements various functions of the real-time obstacle avoidance path planning device by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory.

[0096] The memory may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SmartMediaCard, SMC), a secure digital (SecureDigital, SD) card, a flash card (FlashCard), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0097] The present invention also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of the real-time obstacle avoidance path planning method are implemented.

[0098] If the modules / units integrated in the real-time obstacle avoidance path planning system are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium.

[0099] Based on this understanding, the present invention implements all or part of the processes in the above-mentioned real-time obstacle avoidance path planning method, and can also be completed by instructing related hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and when the computer program is executed by the processor, the steps of the above-mentioned real-time obstacle avoidance path planning method can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or preset intermediate form, etc.

[0100] The computer-readable storage medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal and software distribution medium, etc.

[0101] It should be noted that the content contained in the computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable storage media do not include electrical carrier signals and telecommunication signals.

[0102] Example

[0103] Take the obstacle avoidance path planning process of an autonomous vehicle on a mining road as an example.

[0104] As attached Figure 1 As shown, this embodiment 1 provides a real-time obstacle avoidance path planning method, which specifically includes the following steps:

[0105] Step 1: Determine the drivable area of ​​the autonomous driving vehicle according to the planned starting point and the planned end point; the process of determining the drivable area of ​​the autonomous driving vehicle is as follows:

[0106] Step 11: Obtain the roadside coordinates on both sides of the road between the planned starting point and the planned end point, and use the roadside coordinates of the planned starting point and the roadside coordinates of the planned end point as diagonal lines to form a rectangular area; wherein the process of obtaining the roadside coordinates on both sides of the road is specifically as follows:

[0107] Obtain the distance from the vehicle to the left side of the road, and then determine the coordinates of the left side of the road (X 0i ,Y 0i ), (i=0,1,…m), the coordinates of the right edge are (X 1j ,Y 1j ),(j=0,1,…n).

[0108] The process of forming the rectangular area is as follows: the minimum coordinates (x min ,y min ) as the starting point, the maximum coordinate (x max ,y max ) as the end point, and the minimum coordinate (x min ,y min ) as the coordinates of one of the corners of the rectangle, the maximum coordinate (x max ,y max ) as the coordinates of the diagonal of the minimum coordinate, thus obtaining the rectangular area.

[0109] Step 12: Divide the rectangular area into a plurality of grids with a preset fixed length; wherein the grid is a square, the side length of the grid is S, and the side length S of the grid is greater than or equal to the measurement length A; wherein the measurement length A is to obtain the coordinates of the road edges on both sides of the road between the planned starting point and the planned end point, and measure once every measurement length A.

[0110] Step 13: Using the four corners of each grid as positioning points, all positioning points in the road are screened out; wherein the road is the road between the planned starting point and the planned end point; wherein the process of screening out all positioning points in the road is as follows:

[0111] Set the site to P s (x s ,y s ), find the nearest point P on the left edge 0near (x 0near ,y 0near ) and the coordinates P of the next point in the direction of motion 0near+1 (x 0near+1 ,y 0near+1 ), find the nearest point P on the right side of the road 1near (x 1near ,y 1near ) and the coordinates P of the next point in the direction of motion1near+1 (x 1near+1 ,y 1near+1 );

[0112] According to the vector calculation method η=(x near -x s )×(y near+1 -y s )-(y near -y s )×(x near+1 -x s );

[0113] When η is positive, the coordinate P s Located in vector P near →P near+1 When η is negative, the coordinate P s Located in vector P near →P near+1 on the right.

[0114] Substitute the coordinates of the nearest point and the next point on the left and right sides of the road into η, and we get η left and η right When η left is negative and η right When it is positive, it means that the point is between the two sides of the road edge and is inside the road;

[0115] where x near ,y near They are: the horizontal and vertical coordinates of the nearest point along one side of the road, x near+1 ,y near+1 They are: the coordinates and ordinate of the next point on one side of the track along the direction of movement of the nearest point.

[0116] Step 14: The area formed by all the positioning points on the road is used as the drivable area of ​​the autonomous driving vehicle. Specifically, after screening all the positioning points on the road, the relationship between the vehicle width and the safety distance and the closest distance from each positioning point to the road edge is determined in turn, D min ≥W T / 2+D safe , where D min is the shortest distance from the current positioning point to the road edge, W T is the width of the autonomous vehicle, D safe is a safe distance, and the positioning points that do not satisfy the above relationship are eliminated; in this embodiment, the drivable area of ​​the autonomous driving vehicle is as follows Figure 2 shown.

[0117] Step 2: Initialize random tree A with the planning starting point, and initialize random tree B with the planning end point; wherein, the planning starting point is used as the root node of random tree A, and the planning end point is used as the root node of random tree B.

[0118] Step 3: In the drivable area of ​​the autonomous driving vehicle, the random tree A and the random tree B are searched respectively using the preset bidirectional RRT algorithm until the new node x of the random tree A is A The new node x of the random tree B B The preset connection requirements are met, that is, random tree A meets random tree B.

[0119] The process of searching the random tree A and the random tree B using the preset bidirectional RRT algorithm is as follows:

[0120] (1) Searching the random tree A:

[0121] In the drivable area of ​​the autonomous driving vehicle, a sampling point x is randomly generated. rand .

[0122] According to the preset cost function, search on the random tree A to get the node x nearest ; Wherein, the node x nearest To minimize the value of the preset cost function, and the node x nearest To the sampling point x rand The turning angle is less than the maximum allowable turning angle θ max ; Wherein, the preset cost function is:

[0123]

[0124] Among them, D f is the sampling point x rand Euclidean distance to a node on random tree A or random tree B; From the parent node to the sampling point x rand The heading change; D g is the sampling point x rand The total sum of the Euclidean distances along the branches back to the root node after passing through the parent node; α1 is a parameter so that the node is excluded in the process of traversing to find the parent node; a2 is a parameter. The choice of a2 determines the smoothness and speed of the generated path. The larger a2 is, the smoother the generated path is, but the slower the speed of the generated path is; β is the weight of the total distance of the generated path.

[0125] In this embodiment, the random tree searches for the node with the minimum cost function, and the process of searching for the node with the minimum cost function in the tree does not necessarily start from the root node. In the initial search process, we stipulate that when the number of nodes is less than M, the process of searching for the node with the minimum cost function starts from the root node to ensure the high-speed expansion of the tree; when the number of nodes is greater than M, if the number of child nodes of a parent node J reaches the preset maximum value P, then the Nth child node in the tree corresponding to the parent node J is taken out. j The attributes of nodes, the next time you look for the cost function, start from N j Start looking.

[0126] Along node x nearest With sampling point x rand In the direction of the connection, expand the maximum growth step length L max , get node x new .

[0127] For node x new With node x nearest Obstacle detection is performed between the two front wheels of the autonomous driving vehicle and the boundary of the drivable area of ​​the autonomous driving vehicle; wherein the collision detection process is specifically as follows:

[0128] According to the random number generation strategy, the left front wheel coordinates (x left ,y left );

[0129] According to the width W of the autonomous driving vehicle and the vehicle's direction of travel θ j , calculate the right front wheel coordinates of the autonomous driving vehicle; wherein the right front wheel coordinates (x right ,y right )for:

[0130]

[0131] Obtaining the coordinates of the road edge parallel to the right front wheel of the autonomous driving vehicle;

[0132] Based on the coordinates of the road edge parallel to the right front wheel of the autonomous driving vehicle and the coordinates of the right front wheel of the autonomous driving vehicle, it is determined whether the right front wheel of the autonomous driving vehicle collides with the road edge, that is, the collision detection result of the two front wheels of the autonomous driving vehicle and the boundary of the drivable area of ​​the autonomous driving vehicle is obtained.

[0133] If the node x new With node x nearest If there are no obstacles between the two front wheels of the autonomous driving vehicle and the boundary of the drivable area of ​​the autonomous driving vehicle, node x will be added. newTo the random tree A, that is, node x new is the new node x of the random tree A A ;

[0134] If the node x new With node x nearest If there is an obstacle between the two front wheels of the autonomous driving vehicle and the boundary of the drivable area of ​​the autonomous driving vehicle is not collided, the grid length of the drivable area of ​​the autonomous driving vehicle is used as the decrement amount, and the decrement is gradually reduced until the new node x new With node x nearest There are no obstacles between them, and then the new node x new Will be added to the random tree A, that is, the new node x new is the new node x of the random tree A A ;

[0135] (2) According to the above search operation on the random tree A, the random tree B is searched until the random tree B grows to the new node x B ;

[0136] (3) Determine the new node x of the random tree A A The new node x of the random tree B B Whether the preset connection requirements are met, if so, the new node x of the random tree A is A The new node x of the random tree B B The algorithm terminates when random tree A meets random tree B. Otherwise, the algorithm returns to step (1) and step (2) to continue expanding random tree A and random tree B respectively until the new node x of random tree A is A The new node x of the random tree B B Meet the preset connection requirements.

[0137] The preset connection requirements are as follows:

[0138] New node x of random tree A A To the new node x of the random tree B B The distance is less than the maximum growth step length L max ;

[0139] New node x of random tree A A The new node x A The angle between the parent node and the new node x of the random tree A A To the new node x of the random tree B B The absolute value of the angle difference is less than the maximum allowable turning angle θ max ;

[0140] New node x of random tree B B To the new node x BThe angle between the parent node and the new node x of the random tree A A To the new node x of the random tree B B The absolute value of the angle difference is less than the maximum allowable turning angle θ max ;

[0141] New node x of random tree A A To the new node x of the random tree B B On the path, neither the left front wheel nor the right front wheel of the autonomous driving vehicle collides with the boundary of the drivable area of ​​the autonomous driving vehicle.

[0142] In this embodiment, the nodes on the random tree A and the random tree B have the following attributes: the cost function value val of the node; the left front wheel coordinate (x left ,y left ); coordinates of the right front wheel (x right ,y right );Distance to the starting point g ; This node is the node of the parent node; The angle from the parent node to this node θ j , counterclockwise is positive; this node is the Nth node generated by the tree j A node; the node is a pointer to the parent node.

[0143] Step 4: Randomize the new node x of tree A A The new node x of the random tree B B Connect and generate a path from the planning starting point to the planning end point, that is, obtain the real-time obstacle avoidance path planning result, as shown in the attached Figure 3 As shown; by recording the termination node x of the random tree A when growth stops A and the terminal node x of the random tree B B , get the information of the parent node through the pointer of the node pointing to the parent node, and keep looping until it reaches the root node, so as to get the path of a tree. Store the path obtained from growing the tree from the starting node in reverse order, and then merge it with the path obtained from growing the tree from the ending node to get a complete path.

[0144] The real-time obstacle avoidance path planning method, system, device and medium described in the present invention use an ultra-fast dual-tree RRT algorithm to ensure the heading problem of reaching the target point through a dual-tree strategy, and introduce a cost function to replace the traditional distance search condition. On the basis of meeting the trajectory smoothness requirements, the planning speed is improved, thereby meeting the real-time needs of unmanned mining trucks in obstacle avoidance path planning.

[0145] The above embodiment is only one of the implementation methods that can realize the technical solution of the present invention. The scope of protection claimed by the present invention is not limited only to this embodiment, but also includes changes, replacements and other implementation methods that can be easily thought of by any technician familiar with the technical field within the technical scope disclosed by the present invention.

Claims

1. A real-time obstacle avoidance path planning method, characterized in that: include: Determine the drivable area of ​​the autonomous driving vehicle based on the planned starting point and the planned end point; Initialize random tree A with the planning starting point, and initialize random tree B with the planning end point; In the drivable area of ​​the autonomous driving vehicle, the random tree A and the random tree B are searched respectively using the preset bidirectional RRT algorithm until the new node x of the random tree A is A The new node x of the random tree B B The preset connection requirements are met, that is, random tree A meets random tree B; The new node x of the random tree A A The new node x of the random tree B B Connect and generate a path from the planned starting point to the planned end point, that is, obtain the real-time obstacle avoidance path planning result; The process of determining the drivable area of ​​the autonomous driving vehicle based on the planning starting point and the planning end point is as follows: Obtain the roadside coordinates of both sides of the road between the planned starting point and the planned end point, and use the roadside coordinates of the planned starting point and the roadside coordinates of the planned end point as diagonal lines to form a rectangular area; Dividing the rectangular area into a plurality of grids with a preset fixed length; Take the four corners of each grid as the positioning points and filter out all the positioning points within the road; The area formed by all the positioning points on the road is used as the drivable area of ​​the autonomous driving vehicle; The process of initializing random tree A with the planning starting point and initializing random tree B with the planning end point is as follows: The planning starting point is the root node of random tree A, and the planning end point is the root node of random tree B; In the drivable area of ​​the autonomous driving vehicle, the random tree A and the random tree B are searched respectively using the preset bidirectional RRT algorithm until the new node x of the random tree A is A The new node x of the random tree B B The process of meeting random tree A and random tree B to meet the preset connection requirements is as follows: (1) Searching the random tree A: In the drivable area of ​​the autonomous driving vehicle, a sampling point x is randomly generated. rand ; According to the preset cost function, search on the random tree A to get the node x nearest ; Wherein, the node x nearest To minimize the value of the preset cost function, and the node x nearest To the sampling point x rand The turning angle is less than the maximum allowable turning angle θ max ; Along node x nearest With sampling point x rand In the direction of the connection, expand the maximum growth step length L max , get node x new ; For node x new With node x nearest performing obstacle detection between the two front wheels of the autonomous driving vehicle and the boundary of the drivable area of ​​the autonomous driving vehicle; If the node x new With node x nearest If there are no obstacles between the two front wheels of the autonomous driving vehicle and the boundary of the drivable area of ​​the autonomous driving vehicle, node x will be added. new To the random tree A, that is, node x new is the new node x of the random tree A A ; If the node x new With node x nearest If there is an obstacle between the two front wheels of the autonomous driving vehicle and the boundary of the drivable area of ​​the autonomous driving vehicle is not collided, the grid length of the drivable area of ​​the autonomous driving vehicle is used as the decrement amount, and the decrement is gradually reduced until the new node x new With node x nearest There are no obstacles between them, and then the new node x new Will be added to the random tree A, that is, the new node x new is the new node x of the random tree A A ; (2) According to the above search operation on the random tree A, the random tree B is searched until the random tree B grows to the new node x B ; (3) Determine the new node x of the random tree A A The new node x of the random tree B B Whether the preset connection requirements are met, if so, the new node x of the random tree A is A The new node x of the random tree B B The algorithm terminates when random tree A meets random tree B. Otherwise, the algorithm returns to step (1) and step (2) to continue expanding random tree A and random tree B respectively until the new node x of random tree A is A The new node x of the random tree B B Meet the preset connection requirements; The preset connection requirements are as follows: New node x of random tree A A To the new node x of the random tree B B The distance is less than the maximum growth step length L max ; New node x of random tree A A The new node x A The angle between the parent node and the new node x of the random tree A A To the new node x of the random tree B B The absolute value of the angle difference is less than the maximum allowable turning angle θ max ; New node x of random tree B B To the new node x B The angle between the parent node and the new node x of the random tree A A To the new node x of the random tree B B The absolute value of the angle difference is less than the maximum allowable turning angle θ max ; New node x of random tree A A To the new node x of the random tree B B On the path, neither the left front wheel nor the right front wheel of the autonomous driving vehicle collides with the boundary of the drivable area of ​​the autonomous driving vehicle.

2. A real-time obstacle avoidance path planning method according to claim 1, characterized in that: The preset cost function is: Among them, D f is the sampling point x rand Euclidean distance to the node on random tree A or random tree B; From the parent node to the sampling point x rand The heading change; D g is the sampling point x rand The total sum of the Euclidean distances along the branches back to the root node after passing through the parent node; α1 is a parameter; a2 is a parameter; β is the weight of the total distance of the generated path.

3. A real-time obstacle avoidance path planning method according to claim 1, characterized in that: The process of performing collision detection on the two front wheels of the autonomous driving vehicle and the boundary of the drivable area of ​​the autonomous driving vehicle is as follows: According to the random number generation strategy, the left front wheel coordinates (x left ,y left ); According to the width w of the autonomous vehicle and the direction θ of the vehicle j , calculate the right front wheel coordinates of the autonomous driving vehicle; wherein the right front wheel coordinates (x right ,y right )for: Obtaining the coordinates of the road edge parallel to the right front wheel of the autonomous driving vehicle; Based on the coordinates of the road edge parallel to the right front wheel of the autonomous driving vehicle and the coordinates of the right front wheel of the autonomous driving vehicle, it is determined whether the right front wheel of the autonomous driving vehicle collides with the road edge, that is, the collision detection result of the two front wheels of the autonomous driving vehicle and the boundary of the drivable area of ​​the autonomous driving vehicle is obtained.

4. A real-time obstacle avoidance path planning system, characterized in that: include: The feasible domain module is used to determine the drivable area of ​​the autonomous driving vehicle based on the planned starting point and the planned end point; The random tree module is used to initialize the random tree A with the planning starting point and initialize the random tree B with the planning end point; The search module is used to search the random tree A and the random tree B respectively in the drivable area of ​​the autonomous driving vehicle by using a preset bidirectional RRT algorithm until a new node x of the random tree A is found. A The new node x of the random tree B B The preset connection requirements are met, that is, random tree A meets random tree B; Path module, used to add new nodes x to the random tree A A The new node x of the random tree B B Connect and generate a path from the planned starting point to the planned end point, that is, obtain the real-time obstacle avoidance path planning result; The process of determining the drivable area of ​​the autonomous driving vehicle based on the planning starting point and the planning end point is as follows: Obtain the roadside coordinates of both sides of the road between the planned starting point and the planned end point, and use the roadside coordinates of the planned starting point and the roadside coordinates of the planned end point as diagonal lines to form a rectangular area; Dividing the rectangular area into a plurality of grids with a preset fixed length; Take the four corners of each grid as the positioning points and filter out all the positioning points within the road; The area formed by all the positioning points on the road is used as the drivable area of ​​the autonomous driving vehicle; The process of initializing random tree A with the planning starting point and initializing random tree B with the planning end point is as follows: The planning starting point is the root node of random tree A, and the planning end point is the root node of random tree B; In the drivable area of ​​the autonomous driving vehicle, the random tree A and the random tree B are searched respectively using the preset bidirectional RRT algorithm until the new node x of the random tree A is A The new node x of the random tree B B The process of meeting random tree A and random tree B to meet the preset connection requirements is as follows: (1) Searching the random tree A: In the drivable area of ​​the autonomous driving vehicle, a sampling point x is randomly generated. rand ; According to the preset cost function, search on the random tree A to get the node x nearest ; Wherein, the node x nearest To minimize the value of the preset cost function, and the node x nearest To the sampling point x rand The turning angle is less than the maximum allowable turning angle θ max ; Along node x nearest With sampling point x rand In the direction of the connection, expand the maximum growth step length L max , get node x new ; For node x new With node x nearest performing obstacle detection between the two front wheels of the autonomous driving vehicle and the boundary of the drivable area of ​​the autonomous driving vehicle; If the node x new With node x nearest If there are no obstacles between the two front wheels of the autonomous driving vehicle and the boundary of the drivable area of ​​the autonomous driving vehicle, node x will be added. new To the random tree A, that is, node x new is the new node x of the random tree A A ; If the node x new With node x nearest If there is an obstacle between the two front wheels of the autonomous driving vehicle and the boundary of the drivable area of ​​the autonomous driving vehicle is not collided, the grid length of the drivable area of ​​the autonomous driving vehicle is used as the decrement amount, and the decrement is gradually reduced until the new node x new With node x nearest There are no obstacles between them, and then the new node x new Will be added to the random tree A, that is, the new node x new is the new node x of the random tree A A ; (2) According to the above search operation on the random tree A, the random tree B is searched until the random tree B grows to the new node x B ; (3) Determine the new node x of the random tree A A The new node x of the random tree B B Whether the preset connection requirements are met, if so, the new node x of the random tree A is A The new node x of the random tree B B The algorithm terminates when random tree A meets random tree B. Otherwise, the algorithm returns to step (1) and step (2) to continue expanding random tree A and random tree B respectively until the new node x of random tree A is A The new node x of the random tree B B Meet the preset connection requirements; The preset connection requirements are as follows: New node x of random tree A A To the new node x of the random tree B B The distance is less than the maximum growth step length L max ; New node x of random tree A A The new node x A The angle between the parent node and the new node x of the random tree A A To the new node x of the random tree B B The absolute value of the angle difference is less than the maximum allowable turning angle θ max ; New node x of random tree B B To the new node x B The angle between the parent node and the new node x of the random tree A A To the new node x of the random tree B B The absolute value of the angle difference is less than the maximum allowable turning angle θ max ; New node x of random tree A A To the new node x of the random tree B B On the path, neither the left front wheel nor the right front wheel of the autonomous driving vehicle collides with the boundary of the drivable area of ​​the autonomous driving vehicle.

5. A vehicle with real-time obstacle avoidance path planning, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the real-time obstacle avoidance path planning method as described in any one of claims 1 to 3 when executing the computer program.

6. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the real-time obstacle avoidance path planning method as described in any one of claims 1 to 3 are implemented.