CN112697161A - AGV path planning method, storage medium and terminal - Google Patents
AGV path planning method, storage medium and terminal Download PDFInfo
- Publication number
- CN112697161A CN112697161A CN202011473192.XA CN202011473192A CN112697161A CN 112697161 A CN112697161 A CN 112697161A CN 202011473192 A CN202011473192 A CN 202011473192A CN 112697161 A CN112697161 A CN 112697161A
- Authority
- CN
- China
- Prior art keywords
- node
- linked list
- point
- path planning
- planning method
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 36
- 238000004422 calculation algorithm Methods 0.000 claims abstract description 22
- 230000009191 jumping Effects 0.000 claims abstract description 18
- 238000004590 computer program Methods 0.000 claims description 10
- 238000010586 diagram Methods 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000009792 diffusion process Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000010355 oscillation Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/26—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
- G01C21/34—Route searching; Route guidance
- G01C21/3446—Details of route searching algorithms, e.g. Dijkstra, A*, arc-flags, using precalculated routes
Landscapes
- Engineering & Computer Science (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Automation & Control Theory (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention relates to an AGV path planning method, a storage medium and a terminal, wherein the method comprises the following steps: s1: acquiring a map, and setting vertex angles of obstacles in the map as jumping points; s2: carrying out path searching by utilizing an improved A-x algorithm, and in the path searching process, if an expansion point comprises a jumping point, moving the expansion point by one unit in the oblique direction of the jumping point; s3: fitting the found path to obtain a fitting route; s4: and planning the AGV path by using the fitted route. Compared with the prior art, the method can reduce the calculated amount, improve the operation speed of the algorithm and realize the path planning quickly and effectively.
Description
Technical Field
The invention relates to the field of path planning, in particular to an AGV path planning method, a storage medium and a terminal.
Background
The path planning method is various, various methods are infinite, and various path planning algorithms are applied to the path planning of the AGV. For path planning of a known environment, the existing technologies include path planning of an artificial potential field method, Dijkstra algorithm and bfs (break First search) algorithm. The manual potential field method guides the AGV to reach the terminal point through the resultant force of the gravitational field and the repulsive field. The Dijkstra algorithm searches the periphery continuously by blindly diffusing until the target point is searched. The best-first-search (BFS) algorithm modifies the path by moving towards the target point when an obstacle appears in the direction of travel.
In a traditional algorithm, an artificial potential field method generates oscillation on a path between obstacles, the stability of the path is poor, and under a complex U-shaped scene, a local minimum value may exist, so that search is stopped and even a target point cannot be reached. The Dijkstra algorithm expands outwards in sequence through diffusion, the calculation amount is large, the requirement on hardware configuration is high, and the path searching time is long. The best-first-search (BFS) algorithm is not a blind search, selects the closest point to the target point, and continuously leads to the target point, which is shorter than Dijkstra algorithm in inter-route but has redundant paths.
The A-algorithm is the combination of the Dijkstra algorithm and the BFS algorithm, the defects of the Dijkstra algorithm and the BFS algorithm can be overcome, the A-algorithm continuously moves to a target point by continuously searching the node with the minimum cost value in a path, and the calculated amount is increased when the path is complex.
Disclosure of Invention
The present invention is directed to provide an AGV path planning method, a storage medium and a terminal, which overcome the above-mentioned drawbacks of the prior art.
The purpose of the invention can be realized by the following technical scheme:
an AGV path planning method comprises the following steps:
s1: acquiring a map, and setting vertex angles of obstacles in the map as jumping points;
s2: carrying out path searching by utilizing an improved A-x algorithm, and in the path searching process, if an expansion point comprises a jumping point, moving the expansion point by one unit in the oblique direction of the jumping point;
s3: fitting the found path to obtain a fitting route;
s4: and planning the AGV path by using the fitted route.
S2 is realized by an OPEN linked list and a CLOESD linked list, and S2 comprises:
s21: creating an OPEN linked list and a CLOSED linked list, putting a starting point into the OPEN linked list, and putting a jumping point into the CLOSED linked list;
s22: calculating the total cost of the nodes in the OPEN linked list, taking the node with the minimum total cost as a father node, and searching an expansion point of the node with the minimum total cost;
s23: putting the node with the minimum total cost into the CLOSED linked list, judging whether the expansion point comprises the node in the CLOSED linked list, if so, moving the expansion point to one unit in the oblique direction of the node in the CLOSED linked list, and executing S24, otherwise, executing S24;
s24: and putting the extension points into an OPEN linked list, and executing S22 until a termination condition is met.
The total cost f (n) is expressed as:
f(n)=g(n)+h(n)
where g (n) is the path cost from the starting point to node n, and h (n) is the estimated cost from node n to the destination point.
The expression of g (n) is as follows:
where g (n-1) is the cost value from the origin to the parent of node n, xcurrentIs the abscissa, x, of node nfatherAbscissa of parent node of node n, ycurrentIs the ordinate, y, of node nfatherIs the ordinate of the parent node of node n.
The expression of h (n) is:
wherein x isgoalIs the abscissa, y, of the target nodegoalIs the ordinate, x, of the target nodecurrentIs the abscissa, y, of the node ncurrentIs the ordinate of node n.
The total cost is calculated based on euclidean distance.
In S3, when fitting the found path, it is checked whether there is an obstacle between the head and the tail of any adjacent three nodes, and if not, the intermediate node is removed.
In S3, a bezier curve is used for fitting.
A computer-readable storage medium, in which a computer program is stored, which, when loaded and executed by a processor, implements the AGV path planning method.
A terminal, comprising: a processor and a memory; wherein,
the memory is used for storing a computer program;
the processor is used for loading and executing the computer program so as to enable the terminal to execute the AGV path planning method.
Compared with the prior art, the invention has the following advantages:
(1) the vertex angle of the obstacle is taken as the jumping point of the path planning, the jumping point can provide space for the path fitting, the collision between the AGV trolley and the obstacle can be avoided, meanwhile, a large amount of unnecessary OPEN linked list and CLOSED linked list in the A-star algorithm are reduced, the operation speed of the algorithm is improved, the target point can be found quickly and effectively, and therefore the path planning is achieved.
(2) When the found path is fitted, whether an obstacle exists between the head node and the tail node in any three adjacent nodes is checked, if not, the middle node is removed, and the length of the running path is favorably reduced.
(3) The Bezier curve is adopted for fitting, and the path is smoothed, so that the time required by static steering can be reduced, and the trolley can run more stably.
Drawings
FIG. 1 is a flow chart of the present invention;
FIG. 2 is a schematic diagram of the path planning of the present invention;
FIG. 3 is a schematic diagram of the skip point identification of the present invention;
FIG. 4 is a schematic diagram of a fitting route according to the present invention.
Detailed Description
The invention is described in detail below with reference to the figures and specific embodiments. The present embodiment is implemented on the premise of the technical solution of the present invention, and a detailed implementation manner and a specific operation process are given, but the scope of the present invention is not limited to the following embodiments.
Examples
The embodiment provides an AGV path planning method, as shown in fig. 1, the method includes the following steps:
s1: acquiring a map, and setting vertex angles of obstacles in the map as jumping points;
s2: carrying out path searching by utilizing an improved A-x algorithm, and in the path searching process, if an expansion point comprises a jumping point, moving the expansion point by one unit in the oblique direction of the jumping point;
s3: fitting the found path to obtain a fitting route;
s4: and planning the AGV path by using the fitted route.
Specifically, the method comprises the following steps:
in S1, the map is processed first to find a qualified skip point around the obstacle.
S2 is realized by an OPEN linked list and a CLOESD linked list, and S2 comprises:
s21: creating an OPEN linked list and a CLOSED linked list, initializing a starting point and a target point, putting the starting point into the OPEN linked list, and putting a jump point into the CLOSED linked list; the path cost g (n) of the starting point is 0.
S22: calculating the total cost of the nodes in the OPEN linked list, taking the node with the minimum total cost as a father node, and searching an expansion point of the node with the minimum total cost;
s23: putting the node with the minimum total cost into the CLOSED linked list, judging whether the expansion point comprises the node in the CLOSED linked list, if so, moving the expansion point to one unit in the oblique direction of the node in the CLOSED linked list, and executing S24, otherwise, executing S24;
s24: and (4) putting the extension points into an OPEN linked list, and executing S22 until a termination condition is met, wherein the termination condition can be as follows: and the node with the minimum total cost is the target point. After the target point is reached, backtracking finds all father nodes, and finally all the father nodes are connected, namely the shortest path.
The total cost f (n) is expressed as:
f(n)=g(n)+h(n)
where g (n) is the path cost from the starting point to node n, and h (n) is the estimated cost from node n to the destination point.
The expression of g (n) is as follows:
where g (n-1) is the cost value from the origin to the parent of node n, xcurrentIs the abscissa, x, of node nfatherAbscissa of parent node of node n, ycurrentIs the ordinate, y, of node nfatherIs the ordinate of the parent node of node n.
The expression of h (n) is:
wherein x isgoalIs the abscissa, y, of the target nodegoalIs the ordinate, x, of the target nodecurrentIs the abscissa, y, of the node ncurrentIs the ordinate of node n.
The total cost is calculated based on euclidean distance.
In S3, when the found path is fitted, whether an obstacle exists between the head node and the tail node of any three adjacent nodes is checked, if not, the middle node is removed, multiple rounds of checking are carried out until no redundant node exists, and finally the remaining nodes are fitted by adopting a Bezier curve.
In fig. 2, the extension points are searched in four directions, i.e., up, down, left and right, from the starting point, when the jumping point is reached, the search is stopped, then the grid is moved in an oblique direction, and then the extension points are continuously searched in eight directions, i.e., horizontally and vertically.
In fig. 3, b2 is a simulated obstacle, and the squares where a1, a2 and b1 are located are freely movable square points. Considering the volume of the AGV car and the safety distance, a1 is set as a trip point, leaving a certain safety distance.
In fig. 4, the nodes are processed by the bezier curve, so that the path is smoother, the trolley runs more stably in actual running, and the time required for stationary steering is reduced.
The AGV path planning method of this embodiment has the following priority: and taking the volume of the AGV trolley in the actual situation into consideration, and taking the top angle of the obstacle as a jumping point of the path planning. The collision between the AGV trolley and the obstacle can be avoided, a space can be provided for the optimization of the Bezier path curve, and the obstacle in the path is avoided.
The present embodiment provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is loaded and executed by a processor, the AGV path planning method is implemented.
The present embodiment further provides a terminal, including: a processor and a memory; wherein,
the memory is used for storing a computer program;
the processor is used for loading and executing the computer program so as to enable the terminal to execute the AGV path planning method.
Claims (10)
1. An AGV path planning method is characterized by comprising the following steps:
s1: acquiring a map, and setting vertex angles of obstacles in the map as jumping points;
s2: carrying out path searching by utilizing an improved A-x algorithm, and in the path searching process, if an expansion point comprises a jumping point, moving the expansion point by one unit in the oblique direction of the jumping point;
s3: fitting the found path to obtain a fitting route;
s4: and planning the AGV path by using the fitted route.
2. The AGV path planning method of claim 1, wherein S2 is implemented by an OPEN linked list and a CLOESD linked list, and S2 comprises:
s21: creating an OPEN linked list and a CLOSED linked list, putting a starting point into the OPEN linked list, and putting a jumping point into the CLOSED linked list;
s22: calculating the total cost of the nodes in the OPEN linked list, taking the node with the minimum total cost as a father node, and searching an expansion point of the node with the minimum total cost;
s23: putting the node with the minimum total cost into the CLOSED linked list, judging whether the expansion point comprises the node in the CLOSED linked list, if so, moving the expansion point to one unit in the oblique direction of the node in the CLOSED linked list, and executing S24, otherwise, executing S24;
s24: and putting the extension points into an OPEN linked list, and executing S22 until a termination condition is met.
3. The AGV path planning method according to claim 2, wherein the total cost f (n) is expressed as:
f(n)=g(n)+h(n)
where g (n) is the path cost from the starting point to node n, and h (n) is the estimated cost from node n to the destination point.
4. The AGV path planning method according to claim 3, wherein the expression of g (n) is:
where g (n-1) is the cost value from the origin to the parent of node n, xcurrentIs the abscissa, x, of node nfatherAbscissa of parent node of node n, ycurrentIs the ordinate, y, of node nfatherIs the ordinate of the parent node of node n.
6. The AGV path planning method according to claim 2, wherein the total cost is calculated based on euclidean distance.
7. The AGV path planning method according to claim 1, wherein in step S3, when matching the found path, checking whether there is an obstacle between the first and the last nodes of any adjacent three nodes, and if not, removing the middle node.
8. The AGV path planning method of claim 1, wherein in step S3, a Bezier curve is used for fitting.
9. A computer-readable storage medium, in which a computer program is stored which, when loaded and executed by a processor, carries out a method for AGV path planning according to any one of claims 1-8.
10. A terminal, comprising: a processor and a memory; wherein,
the memory is used for storing a computer program;
the processor is configured to load and execute the computer program to make the terminal execute the AGV path planning method according to any one of claims 1-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011473192.XA CN112697161A (en) | 2020-12-15 | 2020-12-15 | AGV path planning method, storage medium and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011473192.XA CN112697161A (en) | 2020-12-15 | 2020-12-15 | AGV path planning method, storage medium and terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112697161A true CN112697161A (en) | 2021-04-23 |
Family
ID=75508045
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011473192.XA Pending CN112697161A (en) | 2020-12-15 | 2020-12-15 | AGV path planning method, storage medium and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112697161A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113917915A (en) * | 2021-08-09 | 2022-01-11 | 天津理工大学 | Route planning device and method based on ROS mobile robot |
CN114200939A (en) * | 2021-12-10 | 2022-03-18 | 江苏集萃智能制造技术研究所有限公司 | Robot anti-collision path planning method |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180106628A1 (en) * | 2015-05-04 | 2018-04-19 | Commissariat A L'energie Atomique Et Aux Energies Alternatives | Method, computer program and system for controlling a movement of a moving agent within a networked environment |
CN108489501A (en) * | 2018-03-16 | 2018-09-04 | 深圳冰川网络股份有限公司 | A kind of fast path searching algorithm based on intelligent cut-through |
CN109974725A (en) * | 2017-12-28 | 2019-07-05 | 北京三快在线科技有限公司 | A kind of road network topology construction method, guidance path calculation method and device |
CN110319837A (en) * | 2019-07-09 | 2019-10-11 | 北方工业大学 | Indoor complex condition path planning method for service robot |
CN110975288A (en) * | 2019-11-20 | 2020-04-10 | 中国人民解放军国防科技大学 | Geometric container data compression method and system based on jumping point path search |
CN111811514A (en) * | 2020-07-03 | 2020-10-23 | 大连海事大学 | Path planning method based on regular hexagon grid jumping point search algorithm |
-
2020
- 2020-12-15 CN CN202011473192.XA patent/CN112697161A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180106628A1 (en) * | 2015-05-04 | 2018-04-19 | Commissariat A L'energie Atomique Et Aux Energies Alternatives | Method, computer program and system for controlling a movement of a moving agent within a networked environment |
CN109974725A (en) * | 2017-12-28 | 2019-07-05 | 北京三快在线科技有限公司 | A kind of road network topology construction method, guidance path calculation method and device |
CN108489501A (en) * | 2018-03-16 | 2018-09-04 | 深圳冰川网络股份有限公司 | A kind of fast path searching algorithm based on intelligent cut-through |
CN110319837A (en) * | 2019-07-09 | 2019-10-11 | 北方工业大学 | Indoor complex condition path planning method for service robot |
CN110975288A (en) * | 2019-11-20 | 2020-04-10 | 中国人民解放军国防科技大学 | Geometric container data compression method and system based on jumping point path search |
CN111811514A (en) * | 2020-07-03 | 2020-10-23 | 大连海事大学 | Path planning method based on regular hexagon grid jumping point search algorithm |
Non-Patent Citations (1)
Title |
---|
吴飞龙等: "融合改进A*和动态窗口法的AGV动态路径规划", 《科学技术与工程》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113917915A (en) * | 2021-08-09 | 2022-01-11 | 天津理工大学 | Route planning device and method based on ROS mobile robot |
CN114200939A (en) * | 2021-12-10 | 2022-03-18 | 江苏集萃智能制造技术研究所有限公司 | Robot anti-collision path planning method |
CN114200939B (en) * | 2021-12-10 | 2024-02-27 | 江苏集萃智能制造技术研究所有限公司 | Robot anti-collision path planning method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109764886B (en) | Path planning method | |
CN112697161A (en) | AGV path planning method, storage medium and terminal | |
CN111811514B (en) | Path planning method based on regular hexagon grid jump point search algorithm | |
CN108444490B (en) | Robot path planning method based on depth fusion of visible view and A-x algorithm | |
CN113485369A (en) | Indoor mobile robot path planning and path optimization method for improving A-x algorithm | |
CN110220528A (en) | A kind of two-way dynamic path planning method of automatic Pilot unmanned vehicle based on A star algorithm | |
CN112947489B (en) | Method and device for planning collision-free path of welding robot in complex environment | |
CN109341698B (en) | Path selection method and device for mobile robot | |
CN113485360B (en) | AGV robot path planning method and system based on improved search algorithm | |
CN112783169A (en) | Path planning method and device and computer readable storage medium | |
CN113124891B (en) | Driving path planning method and related device | |
CN114721401A (en) | Efficient path planning method based on improved A-algorithm | |
CN114428499A (en) | Astar and DWA algorithm fused mobile trolley path planning method | |
CN115167474A (en) | Mobile robot path planning optimization method | |
CN114115271A (en) | Robot path planning method and system for improving RRT | |
CN115167398A (en) | Unmanned ship path planning method based on improved A star algorithm | |
CN115562290A (en) | Robot path planning method based on A-star penalty control optimization algorithm | |
CN115570566A (en) | Robot obstacle avoidance path planning method for improving APF-RRT algorithm | |
CN113188555A (en) | Mobile robot path planning method | |
CN114237302B (en) | Three-dimensional real-time RRT route planning method based on rolling time domain | |
CN113932812A (en) | Path planning method and device, electronic equipment and storage medium | |
CN116499487B (en) | Vehicle path planning method, device, equipment and medium | |
CN110975288B (en) | Geometric container data compression method and system based on jump point path search | |
CN116878527A (en) | Hybrid path planning method and device based on improved adaptive window algorithm | |
CN116734877A (en) | Robot dynamic obstacle avoidance method based on improved A-algorithm and dynamic window method |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210423 |