A smooth path planning method for autonomous driving agricultural machinery based on Hybrid A* algorithm

Through the Hybrid A* algorithm and the heuristic function of the Reeds-Shepp curve length, the problem of mainly straight lines in agricultural machinery automatic driving is solved, and a smooth path with radius constraints is generated, which improves the efficiency and quality of agricultural machinery operations and reduces unnecessary Mileage.

CN114815845BActive Publication Date: 2024-09-06SHANDONG COMP SCI CENTNAT SUPERCOMP CENT IN JINAN +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210507227.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-10
Publication Date
2024-09-06
Estimated Expiration
2042-05-10

AI Technical Summary

Technical Problem

At present, automatic driving of agricultural machinery is mainly based on straight lines, and it is difficult to effectively plan paths around irregular farmland boundaries and field obstacles. In particular, it is difficult to plan U-turn paths, resulting in an increase in unnecessary driving mileage and low efficiency.

Method used

The automatic driving agricultural machinery smooth path planning method based on the Hybrid A* algorithm is used to generate a smooth path with radius constraints through the multi-objective cost function and the heuristic function of the Reeds-Shepp curve length to ensure the optimal path planning of agricultural machinery operations and reduce unnecessary errors. Required mileage.

Benefits of technology

It effectively improves the efficiency and quality of agricultural machinery operations, ensures the continuous smoothness of the path, reduces deceleration and then acceleration during steering and reversing, and reduces unnecessary driving mileage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114815845B
    Figure CN114815845B
Patent Text Reader

Abstract

The present invention relates to the technical field of automatic driving of agricultural machinery, and discloses a method based on Hybrid A * The algorithm's method for smooth path planning of autonomous driving agricultural machinery can ensure that the steering angle of the agricultural machinery meets the constraint of the minimum turning radius through the yaw angle information added in Step 4, achieving the effect of planning a smooth path with non-complete constraints. A smooth path with non-complete constraints can be planned. By adding the heuristic function h(n) in Step 2, it can be ensured that the path planning is always carried out in the direction of the end point, reducing unnecessary mileage. Through the multi-objective cost function g(n) in Step 2, it can be ensured that the agricultural machinery drives in a straight line as much as possible, effectively reducing the steering and U-turn process of deceleration and re-acceleration, and achieving the effect of effectively improving the operating efficiency of autonomous driving agricultural machinery.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of automatic driving of agricultural machinery, and in particular to a method based on Hybrid A * Smooth path planning method for autonomous driving agricultural machinery based on algorithm. Background Art

[0002] Agricultural machinery autonomous driving technology is widely used in agricultural production processes such as tillage, transplanting, harvesting, fertilization, and pesticide application. The optimal operation path of agricultural machinery is planned according to the distribution of farmland boundaries and field obstacles, which can optimize operation quality, improve operation efficiency, and reduce input costs. Subject to the dynamic constraints of the Ackerman structure, the current agricultural machinery autonomous driving is mainly based on straight lines. However, the farmland environment is complex, most of which have irregular boundaries and there may be obstacles such as trees and distribution rooms in the field. Autonomous driving agricultural machinery needs to bypass obstacles and quickly return to the original operation path. In addition, turning around in the field is also a difficulty in path planning.

[0003] In view of the above problems, combined with the actual situation of farmland in my country, the present invention seeks the best path curve for different scenarios of field operation (obstacle avoidance, steering, U-turn, lane change, etc.), plans the optimal path for agricultural machinery operation, and reduces unnecessary mileage. As the automatic driving of agricultural machinery is mainly based on straight lines, the present invention designs a smooth path planning method based on hybrid A*, which can plan the optimal smooth path for different operation scenarios, effectively improve the efficiency of agricultural machinery operation, and reduce unnecessary mileage. Summary of the invention

[0004] The present invention provides a hybrid A-based automatic driving system to solve the problems of irregular farmland boundaries, obstacles in the field, difficulty in U-turn path planning, and the current automatic driving of agricultural machinery mainly in straight lines. * The algorithm's smooth path planning method for autonomous driving agricultural machinery can plan a smooth path with radius constraints, reduce unnecessary mileage, and effectively improve the operating efficiency and quality of agricultural machinery.

[0005] The technical solution of the present invention to solve the technical problem is:

[0006] A hybrid A * The algorithm-based smooth path planning method for autonomous driving agricultural machinery includes the following steps:

[0007] Step 1: Create and initialize the Open list and Close list, and get the starting point n s The position coordinates and yaw angle and end point n t The position coordinates and yaw angle of the starting point n s Put it in the Open list;

[0008] Step 2: Determine whether the Open list is empty. If the Open list is empty, the algorithm ends and the result is that there is no feasible path to the end coordinates in the map. If the Open list is not empty, take out the node n with the lowest comprehensive priority value f(n) in the Open list. * Put it in the Close list and delete the node in the Open list;

[0009] The calculation formula of the comprehensive priority value f(n) is:

[0010] f(n)=g(n)+h(n) (I)

[0011] In formula (I), f(n) is the comprehensive priority value of node n, g(n) is the multi-objective cost function from the starting point to node n, and h(n) is the heuristic function from node n to the end point;

[0012]

[0013] In formula (II), ω yaw is the cost weight of the path search steering angle, ω cur is the cost weight of path search curvature, ω bck is the cost weight of path search reversing, ω dst is the cost weight of the path search distance, steer is the steering angle cost, cur is the curvature cost, back is the reverse path length cost, and dist is the forward path length cost;

[0014] h(n) is the length of the Reeds-Shepp curve from node n to the end point;

[0015] Step 3: Determine node n * Whether it is the end point, that is, whether the yaw angle and distance from the end point coordinates are within the given threshold range. It can be set according to the accuracy requirements of the actual operation. The general threshold range is 5° for yaw angle error and 2 meters for distance error. If it is, the algorithm ends and a feasible smooth path from the starting point to the end point is successfully found in the map. All nodes in the Close list are connected according to the position coordinates and yaw angle information to form a feasible smooth path; otherwise, proceed to the next step;

[0016] Step 4: Take node n * As the center point through hybrid A * The algorithm expands the child nodes and obtains n * A number of child nodes of the parent node;

[0017] Among them, through hybrid A *The attribute form of node n in the algorithm's child node expansion is as follows:

[0018] n=(x,y,θ,g(n),f(n),*n p )

[0019] Where (x, y) represents the position coordinates of node n, θ represents the yaw angle of node n, g(n) is the multi-objective cost function from the starting point to node n, f(n) is the comprehensive priority value of node n, *n p Represents a pointer to the parent node;

[0020] Step 5: Determine one of the child nodes n c Is it in the Close list? If the position coordinates and yaw angle are the same, they are the same node, and the child node n c Perform obstacle collision detection. If the child node n c If it is in the Close list or touches an obstacle, skip the child node and do not process it; otherwise, proceed to the next step;

[0021] Step 6: Determine the child node n c Is it in the Open list? If not, it means that the child node n c If it has not been traversed yet, add it to the Open list; if it is in, it means that the child node n has been traversed. c , at this time, it is necessary to determine the child node n c The current multi-objective cost function g(n c ) is less than the previously calculated multi-objective cost function g(n c ), if it is less than the previously calculated multi-objective cost function g(n c ), store node n in the Open list c The comprehensive priority value f(n) is updated, otherwise no processing is performed; the same operation is performed on other child nodes;

[0022] Step 7: Perform Step 5 and Step 6 on the other child nodes obtained in Step 4 in sequence until all the child nodes in Step 4 are processed once and then proceed to the next step;

[0023] Step8: Loop through Step2 to Step7 until the corresponding judgment condition in Step2 or Step3 is met, that is, a feasible smooth path is found or no feasible path is found, and the algorithm ends.

[0024] like Figure 2 As shown, the attribute of node n is (x n ,y n ,θ n ), the attribute of the next node m of node n is (x m ,ym ,θ m ), the calculation method of the Reeds-Shepp curve length between node n and node m is:

[0025] The coordinates of the center of the circle around which the right turn is made at node n are:

[0026] (O x , O y )=(x n +sinθ n ,y n -cosθ n ) (III)

[0027] In formula (III), O x , O y are the horizontal and vertical coordinates of the center of the circle around which the right turn is made at node n, respectively. n is the horizontal coordinate of node n, y n is the ordinate of node n, θ n is the yaw angle of node n;

[0028] The coordinates of the center of the circle around which the left turn is made at node m are:

[0029] (O x ′,O y ′)=(x m -sinθ m ,y m +cosθ m ) (IV)

[0030] In formula (III), O′ x , O′ y are the horizontal and vertical coordinates of the center of the circle around which the right turn is made at node m, respectively. m is the horizontal coordinate of node m, y m is the ordinate of node m, θ m is the yaw angle of node m;

[0031] The Euclidean distance between the centers of two circle center coordinates is:

[0032]

[0033] In formula (V), |OO′| is the Euclidean distance between the center of the circle around which a right turn is made at node n and the center of the circle around which a right turn is made at node m;

[0034] The coordinates of the tangent point w1 are:

[0035]

[0036] α=arccos(2R / |OO′|) (VII)

[0037] In formulas (VI) and (VII), R is the minimum turning radius of the autonomous agricultural machinery; w 1x is the horizontal coordinate of the tangent point w1, w 1y is the ordinate of the tangent point w1;

[0038] The coordinates of the tangent point w2 are:

[0039]

[0040] In formula (VIII), R is the minimum turning radius of the autonomous agricultural machinery; w 2x is the horizontal coordinate of the tangent point w2, w 2y is the ordinate of the tangent point w2;

[0041] The yaw angle of the line connecting the tangent points w1 and w2 is:

[0042]

[0043] The length of the Reeds-Shepp curve between node n and node m is:

[0044]

[0045] In formula (X), l is the length of the Reeds-Shepp curve between node n and node m; l R is the length of the right turn at node n, l S is the length of the straight line between the tangent points w1 and w2, l L is the length of the left turn at node m.

[0046] The effects provided in the content of the invention are only the effects of the embodiments, not all the effects of the invention. One of the above technical solutions has the following advantages or beneficial effects:

[0047] (1) The present invention proposes a method based on Hybrid A *The algorithm's smooth path planning method for autonomous driving agricultural machinery focuses on the problems of irregular farmland boundaries, obstacles in the field, difficult U-turn path planning, and the current straight-line-based autonomous driving of agricultural machinery. The yaw angle information added in Step 4 can ensure that the steering angle of the agricultural machinery meets the constraint of the minimum turning radius, achieving the effect of planning a smooth path with non-complete constraints. By adding the heuristic function h(n) in Step 2, it can ensure that the path planning is always carried out in the direction of the destination, reducing unnecessary mileage. The multi-objective cost function g(n) in Step 2 can ensure that the agricultural machinery travels in a straight line as much as possible, effectively reducing the steering and U-turn process of deceleration and re-acceleration, and achieving the effect of effectively improving the operating efficiency of autonomous driving agricultural machinery.

[0048] (2) In view of the actual situation that most farmlands in my country are irregular in shape and there are obstacles in the fields, the present invention proposes a multi-objective cost function that comprehensively considers the additional costs such as the yaw angle, curvature, reversing and path length of the autonomous driving agricultural machinery, and generates a comprehensive priority value based on the heuristic function of the Reeds-Shepp curve length. This can ensure that the generated path is continuous and smooth, keeps driving in a straight line as much as possible, and avoids sudden turns and reversing. The smooth path curves of different scenarios such as steering, U-turn, and obstacle avoidance are also evaluated. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 It is a flow chart of the algorithm operation of the present invention;

[0050] Figure 2 A * Algorithms and Hybrid A * Schematic diagram of algorithm node expansion;

[0051] Figure 3 The following is a schematic diagram of the Reeds-Shepp curve of example nodes n and m;

[0052] Figure 4 A left turn path diagram at the end of the land generated according to the present invention;

[0053] Figure 5 A right turn path diagram generated according to the present invention;

[0054] Figure 6 A left turn path diagram for crossing obstacles in a field generated according to the present invention;

[0055] Figure 7 A right turn path diagram for crossing obstacles in a field generated according to the present invention;

[0056] Figure 8 A path diagram for field crossing left obstacle operation generated according to the present invention;

[0057] Fig. 9A path diagram for field crossing right obstacle operation generated according to the present invention;

[0058] Fig.10 A path map for turning left in a field generated according to the present invention;

[0059] Fig.11 A path map for turning right in a field generated according to the present invention; DETAILED DESCRIPTION

[0060] In order to clearly illustrate the technical features of the present solution, the present invention is described in detail below through specific implementation methods and in conjunction with the accompanying drawings. The disclosure below provides many different embodiments or examples for realizing different structures of the present invention. In order to simplify the disclosure of the present invention, the components and settings of specific examples are described below. In addition, the present invention may repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed. It should be noted that the components illustrated in the accompanying drawings are not necessarily drawn to scale. The present invention omits the description of known components and processing techniques and processes to avoid unnecessary limitations on the present invention.

[0061] A hybrid A * The algorithm-based smooth path planning method for autonomous driving agricultural machinery includes the following steps:

[0062] Step 1: Create and initialize the Open list and Close list, and get the starting point n s The position coordinates and yaw angle and end point n t The position coordinates and yaw angle of the starting point n s Put it in the Open list;

[0063] Step 2: Determine whether the Open list is empty. If the Open list is empty, the algorithm ends and the result is that there is no feasible path to the end coordinates in the map. If the Open list is not empty, take out the node n with the lowest comprehensive priority value f(n) in the Open list. * Put it in the Close list and delete the node in the Open list;

[0064] The calculation formula of the comprehensive priority value f(n) is:

[0065] f(n)=g(n)+h(n) (I)

[0066] In formula (I), f(n) is the comprehensive priority value of node n, g(n) is the multi-objective cost function from the starting point to node n, and h(n) is the heuristic function from node n to the end point;

[0067]

[0068] In formula (II), ω yaw is the cost weight of the path search steering angle, ω cur is the cost weight of path search curvature, ω bck is the cost weight of path search reversing, ω dst is the cost weight of the path search distance, steer is the steering angle cost, cur is the curvature cost, back is the reverse path length cost, and dist is the forward path length cost;

[0069] h(n) is the length of the Reeds-Shepp curve from node n to the end point;

[0070] The method for calculating the length of the Reeds-Shepp curve between two nodes is a conventional technique in the art, and is described below with an example. Figure 2 As shown, the attribute of node n is (x n ,y n ,θ n ), the attribute of the next node m of node n is (x m ,y m ,θ m ), the calculation method of the Reeds-Shepp curve length between node n and node m is:

[0071] The coordinates of the center of the circle around which the right turn is made at node n are:

[0072] (O x , O y )=(x n +sinθ n ,y n -cosθ n ) (III)

[0073] In formula (III), O x , O y are the horizontal and vertical coordinates of the center of the circle around which the right turn is made at node n, respectively. n is the horizontal coordinate of node n, y n is the ordinate of node n, θ n is the yaw angle of node n;

[0074] The coordinates of the center of the circle around which the left turn is made at node m are:

[0075] (O x ′,O y ′)=(x m -sinθ m ,y m +cosθ m) (IV)

[0076] In formula (III), O′ x , O′ y are the horizontal and vertical coordinates of the center of the circle around which the right turn is made at node m, respectively. m is the horizontal coordinate of node m, y m is the ordinate of node m, θ m is the yaw angle of node m;

[0077] The Euclidean distance between the centers of two circle center coordinates is:

[0078]

[0079] In formula (V), |OO′| is the Euclidean distance between the center of the circle around which a right turn is made at node n and the center of the circle around which a right turn is made at node m;

[0080] The coordinates of the tangent point w1 are:

[0081]

[0082] α=arccos(2R / |OO′|) (VII)

[0083] In formulas (VI) and (VII), R is the minimum turning radius of the autonomous agricultural machinery; w 1x is the horizontal coordinate of the tangent point w1, w 1y is the ordinate of the tangent point w1;

[0084] The coordinates of the tangent point w2 are:

[0085]

[0086] In formula (VIII), R is the minimum turning radius of the autonomous agricultural machinery; w 2x is the horizontal coordinate of the tangent point w2, w 2y is the ordinate of the tangent point w2;

[0087] The yaw angle of the line connecting the tangent points w1 and w2 is:

[0088]

[0089] The length of the Reeds-Shepp curve between node n and node m is:

[0090]

[0091] In formula (X), l is the length of the Reeds-Shepp curve between node n and node m; l R is the length of the right turn at node n, l Sis the length of the straight line between the tangent points w1 and w2, l L is the length of the left turn at node m.

[0092] Step 3: Determine node n * Whether it is the end point, that is, whether the yaw angle and distance from the end point coordinates are within the given threshold range. It can be set according to the accuracy requirements of the actual operation. The general threshold range is 5° for yaw angle error and 2 meters for distance error. If it is, the algorithm ends and a feasible smooth path from the starting point to the end point is successfully found in the map. All nodes in the Close list are connected according to the position coordinates and yaw angle information to form a feasible smooth path; otherwise, proceed to the next step;

[0093] Step 4: Take node n * As the center point through hybridA * The algorithm expands the child nodes and obtains n * A number of child nodes of the parent node;

[0094] Among them, through hybrid A * The attribute form of node n in the algorithm's child node expansion is as follows:

[0095] n=(x,y,θ,g(n),f(n),*n p )

[0096] Where (x, y) represents the position coordinates of node n, θ represents the yaw angle of node n, g(n) is the multi-objective cost function from the starting point to node n, f(n) is the comprehensive priority value of node n, *n p Represents a pointer to the parent node;

[0097] A * Algorithms and Hybrid A * The algorithm can be extended as follows Figure 1 As shown, A * The algorithm is a graph search method that is the most effective in solving the shortest path in a grid map. It will expand the eight nodes around the current node grid as child nodes. However, the resulting path is not smooth and the curvature is discontinuous, which does not meet the actual movement needs of autonomous agricultural machinery. In hybrid A * In the algorithm, node expansion is subject to curvature constraints and steering constraints. The resulting path is smooth and has continuous curvature, which can meet the application requirements of autonomous driving agricultural machinery.

[0098] Step 5: Determine one of the child nodes n c Is it in the Close list? If the position coordinates and yaw angle are the same, they are the same node, and the child node n c Perform obstacle collision detection. If the child node nc If it is in the Close list or touches an obstacle, skip the child node and do not process it; otherwise, proceed to the next step;

[0099] Step 6: Determine the child node n c Is it in the Open list? If not, it means that the child node n c If it has not been traversed yet, add it to the Open list; if it is in, it means that the child node n has been traversed. c , at this time, it is necessary to determine the child node n c The current multi-objective cost function g(n c ) is less than the previously calculated multi-objective cost function g(n c ), if it is less than the previously calculated multi-objective cost function g(n c ), store node n in the Open list c The comprehensive priority value f(n) is updated, otherwise no processing is performed; the same operation is performed on other child nodes;

[0100] Step 7: Perform Step 5 and Step 6 on the other child nodes obtained in Step 4 in sequence until all the child nodes in Step 4 are processed once and then proceed to the next step;

[0101] Step8: Loop through Step2 to Step7 until the corresponding judgment condition in Step2 or Step3 is met, that is, a feasible smooth path is found or no feasible path is found, and the algorithm ends.

[0102] like Figure 4-11 As shown, it is a schematic diagram of a smooth path generated according to the present invention. It can be seen from the figure that the present invention can ensure that the generated path is continuous and smooth, and try to maintain straight driving and avoid sudden steering and reversing.

[0103] Although the above describes the specific implementation mode of the invention in conjunction with the drawings, it is not intended to limit the scope of protection of the invention. Based on the technical solution of the present invention, various modifications or variations that can be made by those skilled in the art without creative work are still within the scope of protection of the present invention.

Claims

1. A method for smooth path planning of automatic driving agricultural machinery based on Hybrid A* algorithm, characterized in that: The following steps are involved: Step 1: Create and initialize the Open list and Close list, and get the starting point n s The position coordinates and yaw angle and end point n t The position coordinates and yaw angle of the starting point n s Put it in the Open list; Step 2: Determine whether the Open list is empty. If the Open list is empty, the algorithm ends and the result is that there is no feasible path to the end coordinates in the map; if the Open list is not empty, take out the node n with the lowest comprehensive priority value f(n) in the Open list. * Put it in the Close list and delete the node in the Open list; The calculation formula of the comprehensive priority value f(n) is: f(n)=g(n)+h(n) (I) In formula (I), f(n) is the comprehensive priority value of node n, g(n) is the multi-objective cost function from the starting point to node n, and h(n) is the heuristic function from node n to the end point; In formula (II), ω yaw is the cost weight of the path search steering angle, ω cur is the cost weight of the path search curvature, ω bck is the cost weight of path search reversing, ω dst is the cost weight of the path search distance, steer is the steering angle cost, cur is the curvature cost, back is the reverse path length cost, and dist is the forward path length cost; h(n) is the length of the Reeds-Shepp curve from node n to the end point; Step 3: Determine node n * Is it the end point? If so, the algorithm ends and all nodes in the Close list are connected according to the position coordinates and yaw angle information to form a feasible smooth path; otherwise, proceed to the next step; Step 4: Take node n * As the center point through hybrid A * The algorithm expands the child nodes and obtains n * A number of child nodes of the parent node; Step 5: Determine one of the child nodes n c Is it in the Close list, and for child node n c Perform obstacle collision detection. If the child node n c If it is in the Close list or touches an obstacle, skip the child node and do not process it; otherwise, proceed to the next step; Step 6: Determine the child node n c Is it in the Open list? If not, it means that the child node n c If it has not been traversed yet, add it to the Open list; if it is in, it means that the child node n has been traversed. c , at this time, it is necessary to determine the child node n c The current multi-objective cost function g(n c ) is less than the previously calculated multi-objective cost function g(n c ), if it is less than the previously calculated multi-objective cost function g(n c ), store node n in the Open list c The comprehensive priority value f(n) is updated, otherwise no processing is performed; the same operation is performed on other child nodes; Step 7: Perform Step 5 and Step 6 on the other child nodes obtained in Step 4 in sequence until all the child nodes in Step 4 are performed once and then proceed to the next step; Step8: Loop through Step2 to Step7 until the corresponding judgment condition in Step2 or Step3 is met, that is, a feasible smooth path is found or no feasible path is found, and the algorithm ends.

2. The method for smooth path planning of an automatic driving agricultural machinery based on the Hybrid A* algorithm as claimed in claim 1, characterized in that: If the position coordinates and yaw angles are the same, they are the same node.

3. The method for smooth path planning of automatic driving agricultural machinery based on Hybrid A* algorithm as claimed in claim 1, characterized in that: In step 3, determine node n * Whether it is the end point is determined by determining node n * Whether the yaw angle and distance to the end point are within the given threshold range.

4. The method for smooth path planning of an automatic driving agricultural machinery based on the Hybrid A* algorithm as claimed in claim 1, characterized in that: In step 4, through hybrid A * The attribute form of node n in the algorithm's child node expansion is as follows: n=(x,y,θ,g(n),f(n),*n p ) Among them, (x, y) represents the position coordinates of node n, θ represents the yaw angle of node n, g(n) is the multi-objective cost function from the starting point to node n, f(n) is the comprehensive priority value of node n, *n p Represents a pointer to the parent node.