CN114995391B - 4-order B spline curve path planning method for improving A-algorithm - Google Patents

4-order B spline curve path planning method for improving A-algorithm Download PDF

Info

Publication number
CN114995391B
CN114995391B CN202210507621.3A CN202210507621A CN114995391B CN 114995391 B CN114995391 B CN 114995391B CN 202210507621 A CN202210507621 A CN 202210507621A CN 114995391 B CN114995391 B CN 114995391B
Authority
CN
China
Prior art keywords
path
spline curve
algorithm
node
point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210507621.3A
Other languages
Chinese (zh)
Other versions
CN114995391A (en
Inventor
李伟民
王雷
蔡劲草
邹阿威
李凡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Anhui Polytechnic University
Original Assignee
Anhui Polytechnic University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Anhui Polytechnic University filed Critical Anhui Polytechnic University
Priority to CN202210507621.3A priority Critical patent/CN114995391B/en
Publication of CN114995391A publication Critical patent/CN114995391A/en
Application granted granted Critical
Publication of CN114995391B publication Critical patent/CN114995391B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/02Control of position or course in two dimensions
    • G05D1/021Control of position or course in two dimensions specially adapted to land vehicles
    • G05D1/0212Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory
    • G05D1/0221Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory involving a learning process
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Feedback Control In General (AREA)
  • Manipulator (AREA)

Abstract

The invention relates to a 4-order B spline curve path planning method for improving an A-algorithm, which comprises the following steps: s1, creating a robot work environment map by adopting a grid method, and defining a starting point and a target point; s2, searching an environment shortest path by adopting an A-algorithm, S3, performing B spline curve processing on the obtained path, and adopting a quasi-uniform B spline curve: the two end nodes have a repetition degree k+1, the middle node is not a decreasing sequence, such as u= {0,0,0,1,2,3,4,5,5,5}, and the quasi-uniform B-spline curve retains the properties of the bezier curve at the two end points: the tangent line of the spline curve at the end point is the connecting line of the two end points of the reciprocal, and a new path is obtained through a B spline curve method. The method has the advantages that the method is improved based on the A-algorithm, and the method can obtain the global optimal solution and simultaneously obtain the local optimal solution by combining the B-spline curve method, so that the path distance is shortened, and the smoothness of the path is improved.

Description

4-order B spline curve path planning method for improving A-gram algorithm
Technical Field
The invention relates to the technical field of path planning, in particular to a 4-order B spline path planning method for improving an A-algorithm.
Background
The path planning technology is an important component in the field of mobile robot research, and is mainly aimed at searching an optimal or suboptimal safe collision-free path from a starting position node to a target position node according to a certain criterion (such as shortest path, least position inflection point, shortest time, etc.) in an environment with obstacles.
The development of the path planning technology marks the intelligent level of the robot to a certain extent, and the advantages and disadvantages of the path planning method directly influence the path planning effect.
At present, many expert scholars at home and abroad are devoted to the research of path planning algorithms, and common optimization algorithms mainly comprise an artificial potential field method, an immune algorithm, an ant colony algorithm, a neural network, a particle swarm algorithm, a genetic algorithm and the like. The algorithm A combines a greedy algorithm and a Dijkstra algorithm, and is a heuristic search algorithm. The algorithm A is a direct searching method which is most effective in solving the shortest path in a static road network, is also the most effective algorithm for solving a plurality of searching problems, and is widely applied to indoor robot path searching, game animation path searching and the like.
Disclosure of Invention
The invention aims to provide a 4-order B spline curve path planning method for improving an A-algorithm, which is used for obtaining a path by combining the A-algorithm of a global path planning algorithm and the B-spline curve method of a local path planning algorithm, so that the path smoothing effect is improved, and the distance value obtained by the traditional A-algorithm is reduced.
The technical scheme adopted for solving the technical problems is as follows:
a4-order B spline curve path planning method for improving an A-algorithm comprises the following steps:
s1, creating a robot work environment map by adopting a grid method, and defining a starting point and a target point;
s2, searching an environment shortest path by adopting an A-algorithm, wherein the A-algorithm comprises the following steps of:
s21, adding a starting point into an open list;
s22, repeating the following steps:
s221, traversing open list, searching a node with the minimum F value, taking the node as a node to be processed currently, and then moving the node to close list, wherein F=G+H, G represents the moving overhead from an initial position A to a specified grid to be detected along a generated path, and H specifies the estimated moving overhead from the grid to be detected to a target node B;
s222, checking 8 adjacent squares of the current square one by one, if the current square is unreachable or is in a close list, ignoring the current square, otherwise, performing the following operation:
s2221, if it is not in the open list, add it to the open list and set the current pane as its parent;
s2222, if it is already in open list, checking if this path (i.e. it arrives there via the current square) is more recent, if so, setting its parent as the current square, and recalculating its G and F values;
s223, stopping searching when the following conditions are met:
s2231, adding the endpoint to the open list, where the path has been found, or,
s2232, searching for the end point fails, and the open list is empty, at which time there is no path;
s23, starting from the end point, each square moves along the father node until reaching the start point to form a path;
s3, performing B spline curve processing on the obtained path:
s31, setting a path coordinate point obtained by an A-algorithm as P 0 ,P 1 ,P 2 ,…,P n A total of n+1 control points, which are used for defining the trend and the limit range of the spline curve, and the definition of the k-order B spline curve is as follows:
wherein B is i,k (u) is the ith k-th order B-spline basis function, and the control point P i Correspondingly, k is more than or equal to 1; u is an argument;
s32, the basis function has the following Deboolean-Cox recursion formula:
s33, adopting a quasi-uniform B spline curve: the two end nodes have a repetition degree k+1, the middle node is not a decreasing sequence, such as u= {0,0,0,1,2,3,4,5,5,5}, and the quasi-uniform B-spline curve retains the properties of the bezier curve at the two end points: the tangent line of the spline curve at the end points is the connecting line of the two end points of the reciprocal;
s34, obtaining a new path through a B spline curve method.
The method has the advantages that the method is improved based on the A-algorithm, and the method can obtain the global optimal solution and simultaneously obtain the local optimal solution by combining the B-spline curve method, so that the path distance is shortened, and the smoothness of the path is improved.
Drawings
The invention is further illustrated by the following examples in conjunction with the accompanying drawings:
FIG. 1 is a schematic flow chart of the present invention;
FIG. 2 is a schematic view of the direction of movement of the robot of the present invention;
fig. 3 is a conventional a-algorithm optimizing path diagram;
FIG. 4 is a modified A-algorithm optimizing path diagram;
FIG. 5 is a graph of path comparisons derived from two algorithms;
FIG. 6 is a schematic diagram of a search route of others improving the algorithm A in another grid environment;
FIG. 7 is a schematic view of the optimizing route of the method of the present invention in another grid environment.
Detailed Description
As shown in fig. 1, the method for planning a 4-order B spline curve path for improving an a-algorithm provided by the invention comprises the following steps:
s1, creating a robot work environment map by adopting a grid method, and defining a starting point and a target point;
s2, searching an environment shortest path by adopting an A-algorithm, wherein the A-algorithm comprises the following steps of:
s21, dividing the area to be searched into square lattices. This is the first step in finding the path, simplifying the search area. This particular approach simplifies our search area into a 2-dimensional array. Each entry of the array represents a trellis whose state is walkable or non-walkable. The shortest path from a to B is found by using the algorithm a, and the side length of each square is 10, i.e. the moving overhead in the vertical and horizontal directions is 10. The diagonal movement overhead is therefore approximately equal to 14.
S22, starting from a starting point A, adding the starting point A into an open list (open list) formed by squares, wherein the open list is like a shopping list. The lattice in the Open list may or may not be along the way. It can be seen as a list to be checked. Looking at the 8 tiles adjacent to A, add the walkable or reachable tiles to the open list. And set the starting point a as the parent node of these squares. A is then removed from the Open List and added to the Close List, each square in the Close List is not of interest.
S23, next, selecting a square adjacent to the starting point A from the open list. F values of nodes in the Open List are compared, where f=g+h. G represents the movement overhead from the initial position a along the generated path to the designated grid to be detected. H is a heuristic function and is also known as a heuristic, since it is uncertain what obstacles will appear in front before finding the unique path, an algorithm for calculating H is used, specifically determined according to the actual scenario. In the simplified model, H is the conventional Manhattan distance (Manhattan Distance), i.e., the sum of the distances taken in the transverse and longitudinal directions. And finding that the F value of one node on the side A is minimum after comparison. Select it as the current processing node and delete this point from the Open List, move to the Close List.
S24, judging 8 grids around the node, and if the 8 grids cannot pass through (such as a wall, water or other illegal terrains) or are already in a Close List, neglecting. Otherwise, the following steps are executed:
s241, if the neighboring grid of the current processing node is already in the Open List, it is checked whether this path is better, i.e. it is calculated whether the grid reached via the current processing node has a smaller G value. If not, do nothing. Conversely, if the G value is smaller, the parent node of that box is set as the current processing node (the box we selected), and then the F and G values of that box are recalculated.
S242, if the neighboring lattice of the current processing node is not in the Open List, it is added, and its parent node is set as the node.
S24, repeating the process until the end point is added to the open list.
S25, starting from the end point, moving along the arrow toward the parent node until returning to the start point, which is the path obtained by the a-algorithm.
S3, performing B spline curve processing on the obtained path:
s31, setting a path coordinate point obtained by an A-algorithm as P 0 ,P 1 ,P 2 ,…,P n A total of n+1 control points, which are used for defining the trend and the limit range of the spline curve, and the definition of the k-order B spline curve is as follows:
wherein B is i,k (u) is the ith k-th order B-spline basis function, and the control point P i Correspondingly, k is more than or equal to 1; u is an argument.
S32, the basis function has the following Deboolean-Cox recursion formula:
s33, adopting a quasi-uniform B spline curve: the order k is chosen to be 4, the two end nodes have a repetition degree k+1, and the middle node has a non-decreasing sequence, such as U= {0,0,0,1,2,3,4,5,5,5}. The quasi-uniform B-spline retains the properties of the bezier curve at both endpoints: the tangent line of the spline curve at the end point is the connecting line of the two end points of the reciprocal.
S34, obtaining a new path through a B spline curve method.
The effect of the invention can be further illustrated by the following simulation experiments:
to verify the correctness and rationality of the method, matlab language programming is used to simulate the algorithm under a 20×20 grid environment model and compare it with the conventional a-algorithm.
To further verify the superiority of the improved algorithm proposed by the present invention, the present invention was compared with another conventional a-algorithm, using random generation of obstacles on a 20 x 20 grid map, and comparing the calculated path lengths.
As can be seen from fig. 3, the conventional a-algorithm needs a path 15.31 to reach the end point, and as can be seen from fig. 4, the modified a-algorithm needs only a path 14.81 to reach the end point, which is different for different maps and different start-end position differences.
By contrast simulation it can be concluded that: the path planning using the improved a-algorithm of the present invention is significantly better than the conventional a-algorithm. And the A-algorithm provided by the invention is smoother in the aspect of path optimization than the traditional A-algorithm.
To further verify the stability of the improved algorithm proposed by the present invention, the present invention was compared with another improved algorithm a, which is an improved algorithm a described in journal "computer simulation", pages 313 to 317, p.38, p.313 to 317, p.38, robot movement path optimization simulation based on the improved algorithm a ", of the journal, and was simulated using the method of the present invention under the grid environment condition of 20×20 described in the article.
As can be seen from fig. 6, the algorithm a modified by others requires 20.06 to reach the endpoint; as can be seen from fig. 7, the method of the present invention only requires 18.06 to reach the endpoint.
By contrast simulation it can be concluded that: the path planning efficiency of the improved A-algorithm is obviously superior to that of the traditional A-algorithm. The improved A-algorithm provided by the invention has faster evolution than the traditional A-algorithm and the improved A-algorithm of other people, which shows that the improved A-algorithm provided by the invention has high stability in the aspect of path optimization.
The above description is only a partial example of the invention and is not intended to limit the invention in any way; any person skilled in the art can make many possible variations and modifications to the technical solution of the present invention or modifications to equivalent embodiments using the methods and technical contents disclosed above, without departing from the scope of the technical solution of the present invention. Therefore, any simple modification, equivalent substitution, equivalent variation and modification of the above embodiments according to the technical substance of the present invention, which do not depart from the technical solution of the present invention, still fall within the scope of the technical solution of the present invention.

Claims (1)

1. A4-order B spline curve path planning method for improving an A-algorithm comprises the following steps:
s1, creating a robot work environment map by adopting a grid method, and defining a starting point and a target point;
s2, searching an environment shortest path by adopting an A-algorithm, wherein the A-algorithm comprises the following steps of:
s21, adding a starting point into an open list;
s22, repeating the following steps:
s221, traversing open list, searching a node with the minimum F value, taking the node as a node to be processed currently, and then moving the node to close list, wherein F=G+H, G represents the moving overhead from an initial position A to a specified grid to be detected along a generated path, and H specifies the estimated moving overhead from the grid to be detected to a target node B;
s222, checking 8 adjacent squares of the current square one by one, if the current square is unreachable or is in a close list, ignoring the current square, otherwise, performing the following operation:
s2221, if it is not in the open list, add it to the open list and set the current pane as its parent;
s2222, if it is already in open list, checking if this path is closer, if so, setting its parent as the current pane, and recalculating its G and F values;
s223, stopping searching when the following conditions are met:
s2231, adding the endpoint to the open list, where the path has been found, or,
s2232, searching for the end point fails, and the open list is empty, at which time there is no path;
s23, starting from the end point, each square moves along the father node until reaching the start point to form a path;
s3, performing B spline curve processing on the obtained path:
s31, setting a path coordinate point obtained by an A-algorithm as P 0 ,P 1 ,P 2 ,…,P n A total of n+1 control points, which are used for defining the trend and the limit range of the spline curve, and the definition of the k-order B spline curve is as follows:
wherein B is i,k (u) is the ith k-th order B-spline basis function, and the control point P i Correspondingly, k is more than or equal to 1; u is an argument;
s32, the basis function has the following Deboolean-Cox recursion formula:
s33, adopting a quasi-uniform B spline curve: the two end nodes have a repetition degree k+1, the middle node is in a non-decreasing sequence, and the quasi-uniform B spline curve retains the properties of the Bezier curve at the two end points: the tangent line of the spline curve at the end points is the connecting line of the two end points of the reciprocal;
s34, obtaining a new path through a B spline curve method.
CN202210507621.3A 2022-05-10 2022-05-10 4-order B spline curve path planning method for improving A-algorithm Active CN114995391B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210507621.3A CN114995391B (en) 2022-05-10 2022-05-10 4-order B spline curve path planning method for improving A-algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210507621.3A CN114995391B (en) 2022-05-10 2022-05-10 4-order B spline curve path planning method for improving A-algorithm

Publications (2)

Publication Number Publication Date
CN114995391A CN114995391A (en) 2022-09-02
CN114995391B true CN114995391B (en) 2024-04-09

Family

ID=83025654

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210507621.3A Active CN114995391B (en) 2022-05-10 2022-05-10 4-order B spline curve path planning method for improving A-algorithm

Country Status (1)

Country Link
CN (1) CN114995391B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101063302B1 (en) * 2010-10-05 2011-09-07 국방과학연구소 Control apparatus and method for autonomous navigation of unmanned ground vehicle
CN106647754A (en) * 2016-12-20 2017-05-10 安徽农业大学 Path planning method for orchard tracked robot
CN110275526A (en) * 2019-05-16 2019-09-24 贵州大学 A kind of method for planning path for mobile robot based on improved adaptive GA-IAGA
CN112327876A (en) * 2020-11-21 2021-02-05 安徽工程大学 Robot path planning method based on terminal distance index
CN114200931A (en) * 2021-12-01 2022-03-18 浙江大学 Mobile robot path smoothing method based on B-spline curve optimization

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101063302B1 (en) * 2010-10-05 2011-09-07 국방과학연구소 Control apparatus and method for autonomous navigation of unmanned ground vehicle
CN106647754A (en) * 2016-12-20 2017-05-10 安徽农业大学 Path planning method for orchard tracked robot
CN110275526A (en) * 2019-05-16 2019-09-24 贵州大学 A kind of method for planning path for mobile robot based on improved adaptive GA-IAGA
CN112327876A (en) * 2020-11-21 2021-02-05 安徽工程大学 Robot path planning method based on terminal distance index
CN114200931A (en) * 2021-12-01 2022-03-18 浙江大学 Mobile robot path smoothing method based on B-spline curve optimization

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Research on Robot Global Path Planning Based on Improved A-star Ant Colony Algorithm;Xing Lan et al.;《IAEAC》;20211231;第613-617页 *
基于A*改进算法的机器人移动路径优化仿真;韩学行 等;《计算机仿真》;20210228;第38卷(第2期);第313-317页 *
基于终距指数的机器人路径规划方法研究;李东东 等;《云南大学学报(自然科学版)》;20211228;第505-514页 *

Also Published As

Publication number Publication date
CN114995391A (en) 2022-09-02

Similar Documents

Publication Publication Date Title
CN107990903B (en) Indoor AGV path planning method based on improved A-x algorithm
CN107272679B (en) Path planning method based on improved ant colony algorithm
CN109945873B (en) Hybrid path planning method for indoor mobile robot motion control
CN106225788B (en) The robot path planning method of ant group algorithm is expanded based on path
CN111811514B (en) Path planning method based on regular hexagon grid jump point search algorithm
CN109116841B (en) Path planning smooth optimization method based on ant colony algorithm
CN108444490B (en) Robot path planning method based on depth fusion of visible view and A-x algorithm
CN110231824B (en) Intelligent agent path planning method based on straight line deviation method
CN112068588A (en) Unmanned aerial vehicle trajectory generation method based on flight corridor and Bezier curve
CN105527964B (en) A kind of robot path planning method
CN111323016A (en) Mobile robot path planning method based on self-adaptive ant colony algorithm
CN110160546A (en) A kind of method for planning path for mobile robot
CN112327856B (en) Robot path planning method based on improved A-star algorithm
CN113467456A (en) Path planning method for specific target search in unknown environment
CN109213169A (en) The paths planning method of mobile robot
CN110095122A (en) A kind of method for planning path for mobile robot based on improvement ant group algorithm
CN107607120A (en) Based on the unmanned plane dynamic route planning method for improving the sparse A* algorithms of reparation formula Anytime
CN107357295B (en) Path searching method and chip based on grid map and robot
CN113359718B (en) Method and equipment for fusing global path planning and local path planning of mobile robot
CN112327876B (en) Robot path planning method based on terminal distance index
CN113189988B (en) Autonomous path planning method based on Harris algorithm and RRT algorithm composition
CN114675649A (en) Indoor mobile robot path planning method fusing improved A and DWA algorithm
CN113867368A (en) Robot path planning method based on improved gull algorithm
CN107544502A (en) A kind of Planning of Mobile Robot under known environment
Yi et al. Research on path planning for mobile robot based on ACO

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant