An AGV online path planning method for automated terminals

Through the improved A* algorithm and distributed trajectory planning method, the real-time and congestion conflict problems of AGV path planning in automated terminals are solved, and efficient and safe transportation in large-scale AGV systems is achieved.

CN115494810BActive Publication Date: 2024-09-06NORTHWESTERN POLYTECHNICAL UNIV
View PDF 4 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In automated terminals, existing AGV path planning methods are difficult to make real-time, globally optimal decisions in a very short time, and commonly used algorithms cannot effectively avoid vehicle congestion and conflict deadlock problems, especially in large-scale AGV systems.

Method used

The improved A* algorithm combined with the distributed trajectory planning method is used to dynamically adjust the AGV's path planning by updating the electronic map's load and expected traffic area divisions in real time to avoid conflicts and deadlocks, and improve transportation efficiency.

Benefits of technology

It realizes the reduction of lane changes and turns in large-scale AGV systems, reduces the risk of road congestion, ensures conflict-free and deadlock-free AGV traffic, and improves transportation efficiency and the system's real-time decision-making capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115494810B
    Figure CN115494810B
Patent Text Reader

Abstract

The present invention discloses an AGV online path planning method for an automated terminal, comprising: using an improved A * The algorithm allocates the optimal route and updates the electronic map load; when the position changes, the expected passage area of ​​each AGV within the preset threshold is calculated; AGVs with overlapping expected passage areas are divided into a cluster; the control distributed system independently calculates the reserved path table of each AGV for each cluster; for each cluster, when it is determined that any AGV in it travels to the preset distance value from the end point of the current path according to the corresponding reserved path table, it is determined whether the next path conflicts with the current path of the remaining AGVs in the cluster; if so, a stop passage instruction is issued to the AGV; if not, a next path permission passage instruction is issued to the AGV. The path planning of the large-scale AGV system of the present invention in the automated terminal can reduce lane changes and vehicle congestion, and avoid vehicle conflicts and deadlocks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the fields of AGV scheduling, AGV control, path planning, navigation and intelligent transportation, and specifically relates to an AGV online path planning method for an automated terminal. Background Art

[0002] As a hub for trade exchanges and cargo transportation, ports are a key component of maritime transport. At present, traditional manually operated terminals account for more than 98% of container terminals in ports around the world. In recent years, with the rapid increase in the volume of shipping container business, there are new requirements for port loading and unloading speed, and automated container terminals (abbreviated as automated terminals) have emerged.

[0003] Compared with traditional terminals, the most prominent feature of automated terminals is that the entire process of shore container loading and unloading, horizontal container transportation, and yard container loading and unloading has been intelligently operated, thereby improving the work efficiency of the terminal and alleviating the throughput pressure. Most automated ports use AGV (Automated Guided Vehicle) as a horizontal transport vehicle to complete the transportation of containers from the shore to the yard. AGVs are generally controlled by a central control system to move forward, turn, and move backward. The central control system calculates and allocates the optimal route for the AGV, and the AGV drives along the planned route. The efficiency and safety of AGV operations are crucial to improving the throughput and competitiveness of terminals. With the continuous growth of port throughput and the continuous expansion of terminal scale, automated terminals need to deploy more AGVs to ensure transportation efficiency.

[0004] AGV path planning is the core issue in the entire horizontal transportation operation process. Usually, in order to facilitate the precise control of AGV, it is first necessary to model the physical environment of the AGV transportation network inside the automated terminal. The purpose is to abstract the physical information in the environment into data that can be processed by the algorithm and build an electronic map for path planning. Key information includes AGV drivable lanes, nodes in the road network, lane weights, etc. Among them, AGV drivable lanes are abstracted as a set of edges, and their intersections are nodes, also called logical points. The horizontal transportation network of small and medium-sized automated terminals can be composed of tens of thousands of connected edges between logical points.

[0005] Based on the electronic map, the path planning of AGV first conducts route planning and completes the search for the optimal route. AGV route planning refers to using optimization algorithms to find an optimal solution or a route close to the optimal solution from the starting point to the end point in the electronic map abstracted from the physical environment based on certain optimization goals (such as shortest running time, shortest driving route, minimum vehicle driving cost, etc.), so that the AGV can subsequently travel according to the found optimal route. Currently, the commonly used route planning methods mainly include the shortest path algorithms based on graph theory, such as breadth-first search, depth-first search, Floyd algorithm, Dijkstra algorithm, and A * Algorithms, including heuristic algorithms based on intelligent bionics, such as ant colony algorithms, particle swarm algorithms, and genetic algorithms, as well as Q-Leaning algorithms and neural network algorithms based on artificial intelligence. However, for the route planning problem, the decision-making process of the automated terminal needs to be highly real-time. Most of the commonly used route planning methods cannot make better decisions in a very short time, among which A * Although the algorithm has fast search capabilities, it takes the shortest distance or fastest time as the optimization goal, and it is difficult to find the global optimal planning solution from the perspective of actual vehicle driving; although some other algorithms take into account the impact of AGV lane changes and turns on transportation efficiency when solving the optimal route, they do not consider the problem of low global vehicle transportation efficiency caused by large-scale AGV vehicle congestion.

[0006] After the AGV obtains the optimal route, it is also necessary to plan a barrier-free passage plan. This is because in actual applications, the working environment of the AGV changes dynamically, and it is usually difficult to drive from the starting point to the end point of the planned route without interruption, otherwise conflicts and deadlocks are likely to occur. Therefore, in addition to ensuring that the route is optimal, the path planning research for AGV also requires coordinated regulation of the driving process of multiple AGVs in the system to prevent conflicts or deadlocks. At present, the commonly used deadlock prevention methods include reserved area method, time window method, Petri grid method and traffic control method. Among them, the time window method and Petri grid method to achieve deadlock prevention in the AGV driving process rely on the accurate prediction of the AGV driving process. When the AGV is inconsistent with the planned process due to failure, slow start or long waiting time in the middle, the overall passage plan needs to be re-completed, otherwise it is likely to cause conflict deadlocks. Therefore, it is often used for small warehouse handling AGVs where conflict deadlocks can be easily resolved in a short time, but not for large container transport AGVs. Although the traffic control method can solve common conflicts, it often causes many vehicles to wait for a long time when multiple AGV routes overlap in large-scale AGV path planning problems, which can easily lead to traffic paralysis. In contrast, the reserved path table method based on reserved area division has better performance in ensuring the safety of AGV driving, but the algorithm usually has very high computational complexity, and the computational time increases exponentially with the increase in the number of AGVs. Therefore, it is not suitable for automated terminal horizontal transportation systems with extremely high real-time requirements.

[0007] Therefore, for large-scale AGV systems in automated terminals with extremely high requirements for real-time decision-making, how to plan the optimal route for each AGV to reduce lane changes and avoid vehicle congestion, and avoid conflicts and deadlocks during AGV driving is an urgent problem to be solved in this field. Summary of the invention

[0008] In order to solve the above problems in the prior art, an embodiment of the present invention provides an AGV online path planning method for an automated terminal, which is applied to the central control system of the automated terminal. The specific technical solution is as follows:

[0009] For each AGV that has been assigned a transportation task, the improved A * The algorithm allocates the optimal route for the AGV; and updates the load of the electronic map of the automated terminal according to the optimal route allocated to the AGV; wherein the improved A *The algorithm is based on the load on each edge in the current electronic map, and an evaluation function that adds the turning time cost of the two adjacent edges, the load balancing cost, and the conflict and deadlock prevention cost. The optimal route calculation is achieved based on the evaluation function value of the edge. The load on an edge represents the number of AGVs that have been planned and have not yet passed on the edge in the electronic map according to the optimal route assigned to each AGV.

[0010] When any of the positions of the AGVs changes, the estimated passage area of ​​each AGV within a preset threshold is calculated based on the current electronic map, the optimal route of each AGV, and the current position of each AGV during the driving process along the optimal route; and the AGVs with overlapping estimated passage areas are divided into one cluster, thereby obtaining multiple divided clusters;

[0011] The control distributed system performs independent calculations on each divided cluster to obtain a reserved path table for each AGV in each current cluster; wherein the reserved path table for each AGV includes multiple paths divided from the local route corresponding to its expected passage area, and each path is a minimum edge set for a continuous travel;

[0012] For each cluster, when it is determined that any AGV in the cluster has traveled to a preset distance value from the end point of the current path according to the corresponding reserved path table, it is determined whether the next path of the AGV conflicts with the current paths of the other AGVs in the cluster;

[0013] If so, a stop command is issued to the AGV; if not, a next path permission command is issued to the AGV; wherein, during the AGV driving process, the central control system receives feedback from each AGV on the passed edges in its optimal route, and updates the load in the electronic map in real time.

[0014] In one embodiment of the present invention, the load updating of the electronic map of the automated terminal according to the optimal route assigned to the AGV includes:

[0015] In the electronic map of the automated terminal, the load on the edge involved in the optimal route assigned to the AGV is increased by one; wherein the edge involved in the optimal route assigned to the AGV includes a pass edge and a conflict edge;

[0016] Accordingly, the central control system receives feedback from each AGV on the traveled edges in its optimal route during the AGV driving process, and updates the load in the electronic map in real time, including:

[0017] The central control system reduces the load quantity on each passed edge and related conflicting edges in the current electronic map according to the number of AGVs that feedback the passed edge for each received passed edge.

[0018] In one embodiment of the present invention, for any AGV that has been assigned a transportation task, the improved A * The process of the algorithm assigning the optimal route to the AGV includes:

[0019] Step a1, obtaining the starting point b and the end point c of the AGV's transportation task, as well as the load on each edge in the current electronic map;

[0020] Step a2: for the first iteration, obtain the OpenList and ClosedList which are empty sets, set the starting point b as the parent node of the first iteration, and execute step a3;

[0021] Step a3, find the reachable edge set A starting from the parent node of the current iteration;

[0022] Step a4, for each edge a in the reachable edge set A, using a preset evaluation function calculation formula to calculate its current evaluation function value F(a);

[0023] Step a5, based on the relationship between the edge a and the current OpenList and ClosedList, and the comparison relationship between the current F(a) of the edge a and the original evaluation function value, update the List belonging to the edge a;

[0024] Step a6, determining whether each edge a in the reachable edge set A has completed the List attribution update; if not, executing step a4; if yes, executing step a7;

[0025] Step a7, determine whether the current OpenList is empty; if so, execute step a8; if not, execute step a9;

[0026] Step a8, determining that there is no optimal route for the transportation task of the AGV;

[0027] Step a9, transfer the edge with the smallest evaluation function value F(a) in the current OpenList to the current ClosedList, and execute step a10;

[0028] Step a10, determine the last edge a in the current ClosedList * Is the end point of the process c? If yes, go to step a11; if no, go to step a12;

[0029] Step a11: According to the information recorded in the current ClosedList, determine a shortest route from the starting point b to the end point c as the optimal route for the AGV;

[0030] Step a12: add the last edge a in the current ClosedList *The end point is used as the parent node of the next iteration and step a3 is executed.

[0031] In one embodiment of the present invention, the updating of the List belonging of the edge a based on the belonging relationship between the edge a and the current OpenList and ClosedList, and the comparison relationship between the current F(a) of the edge a and the original evaluation function value, includes:

[0032] If the edge a is not in either the current OpenList or ClosedList, add the current (a, F(a)) to the current OpenList;

[0033] If the edge a is in the current OpenList but not in the current ClosedList, determine whether the current evaluation function value F(a) is less than the original evaluation function value of the edge a in the current OpenList; if so, use the current (a, F(a)) to update the original information of the edge a in the current OpenList; if not, keep the original information of the edge a in the current OpenList unchanged;

[0034] If the edge a is in the current ClosedList but not in the current OpenList, determine whether the current evaluation function value F(a) is less than the original evaluation function value of the edge a in the current ClosedList; if so, delete the information of the edge a in the current ClosedList and add the current (a, F(a)) to the current OpenList; if not, keep the original information of the edge a in the current ClosedList unchanged, and keep the current OpenList unchanged.

[0035] In one embodiment of the present invention, the preset evaluation function calculation formula includes:

[0036] F(e)=T v (e)+T r (e)+T l (e)+T c (e)+T n (e)

[0037] Where F(e) represents the evaluation function value calculated for the detected edge e; T v (e) represents the time cost of normal driving; T r (e) represents the turning time cost between two adjacent sides; T l (e) represents the balancing load cost; T c (e) represents the cost of preventing conflict and deadlock; T n (e) represents the estimated travel time to the end point of the mission; where:

[0038]

[0039] Among them, e i =e 0 ,...e represents the edges of the AGV traveling along the optimal route, e 0 is the starting edge, e is the detection edge; t v (e i ) indicates that the AGV is on a single edge e i The length of time it takes to travel on

[0040]

[0041] Among them, t r (e i-1 , e i ) represents the adjacent sides e i-1 and e i The turning time cost between i-1 ) and θ(e i ) respectively represent the arc angles of the two adjacent sides and the horizontal direction; Abs[θ(e i )-θ(e i-1 )] means to find the absolute value of the arc; L means the turning radius;

[0042]

[0043] Among them, t l (e i ) represents each edge e i The load cost; B2 represents the congestion time coefficient; σ(e i ) represents edge e i The amount of load currently occupied and not yet released;

[0044]

[0045] Among them, t c (e i ) represents each edge e i The cost of preventing conflict and deadlock; e k Represents edge e i Conflicts(e i ) represents edge e i The conflict edge set; B3 represents the conflict time coefficient;

[0046]

[0047] Among them, δ represents the uniform driving speed of the AGV; x(t) and y(t) represent the horizontal and vertical coordinates of the end point of the AGV task end edge t; x2(e) and y2(e) represent the horizontal and vertical coordinates of the end point of the detection edge e; AGV tasks include transportation tasks.

[0048] In one embodiment of the present invention, the preset threshold includes a preset time threshold or a preset distance threshold; wherein, the preset distance threshold is at least 10 times the number of sides corresponding to the shortest stopping distance of the AGV; the shortest stopping distance of the AGV represents the shortest distance required for the AGV to completely stop when traveling at maximum speed.

[0049] In one embodiment of the present invention, the AGVs whose expected passage areas overlap are divided into one cluster, and the divided multiple clusters are obtained, including:

[0050] In the process of traversing all the current AGVs in sequence, for each traversed AGV, determine whether there are repeated edges in the expected passage area between the AGV and each other AGV; if so, divide the two into the same cluster, otherwise, divide the two into their respective corresponding clusters; and obtain multiple divided clusters after the completion of the sequential traversal of all the current AGVs.

[0051] In one embodiment of the present invention, obtaining the reserved path table of each AGV in each current cluster includes:

[0052] For any current cluster, the priority sequence corresponding to all AGVs in the cluster is determined, and according to the priority sequence, the reserved path table of each AGV in the current cluster is calculated in sequence using the reserved area division method.

[0053] In one embodiment of the present invention, for any AGV, the process of calculating the reserved path table using the reserved area division method includes:

[0054] Step b1, obtain the target edge set (e1, e2, ..., e M-1 , e M ) and the current colored path deadlock detection map of the cluster; and set an initially empty reserved path table for the AGV;

[0055] Step b2, for the current reservation of the AGV, obtain the current reserved area, and use the previous edge of the current reserved area as the reserved edge; wherein, for the first reservation, the target edge set is M As a reserved area, the previous edge e M-1 As a reserved edge;

[0056] Step b3, using the color path deadlock detection method to detect whether the current reservation request of the AGV and the currently determined reservation plan have a deadlock; if not, execute step b4; if yes, execute step b8; wherein, the current reservation request of the AGV is composed of the reserved edges and reserved areas determined by the current reservation of the AGV; the currently determined reservation plan includes the reservation path table determined by each AGV in the cluster where the AGV is currently located; wherein, for the first reservation of the first AGV, the currently determined reservation plan is empty;

[0057] Step b4, recording the current reservation request of the AGV in the reserved path table of the AGV and the current color path deadlock detection map;

[0058] Step b5, determining whether the first edge e1 in the target edge set has been determined as a reserved edge and recorded in the reserved path table of the AGV and the current color path deadlock detection map; if not, executing step b6; if yes, executing step b7;

[0059] Step b6, using the reserved edge in the current reservation request of the AGV as the reserved area in the next reservation, and returning to step b2;

[0060] Step b7, stop calculation and obtain the reserved path table of the AGV;

[0061] Step b8, move the current reserved edge forward by one edge so that the reserved area is expanded forward by one edge, update the current reservation request, and execute step b3.

[0062] In one embodiment of the present invention, the colored path deadlock detection method is used to detect whether a deadlock occurs between the current reservation request of the AGV and the currently determined reservation solution, including:

[0063] Step c1, for the current reservation request of the AGV (reserved edge q and reserved area S), set the reserved edge q as the root node and as the parent node of the first iteration, and execute step c2;

[0064] Step c2, check in turn whether the reachable child nodes found by all parent nodes meet the requirement: keep the color C not included from the root node q to the child node pj and there is no colored path with repeated colors; if so, execute step c3; if not, execute step c4, indicating that there is no colored path from the reserved edge q to the edge s∈S in the reserved area S, then it is determined that the current reservation request of the AGV and the currently determined reservation scheme do not produce a deadlock; wherein, before the AGV, the corresponding colored path deadlock detection map specifies a different color for each AGV whose trajectory planning has been completed, C pjIndicates the color of the route Pj where the AGV is located in the color path deadlock detection diagram;

[0065] Step c3: If the color of the edge connecting the found reachable child node to its parent node is not C pj , and is different from other colors in the color path from the root node q to the parent node of the reachable child node, determine whether the connected edge is an edge in the reserved area S; if not, execute step c5, use the reachable child node as the parent node of the next iteration, and execute step c2; if so, execute step c6, find a color path from the reserved edge q to the edge s∈S in the reserved area S, then determine that the current reservation request of the AGV is deadlocked with the currently determined reservation plan.

[0066] In one embodiment of the present invention, the step of determining whether the next path of the AGV conflicts with the current paths of other AGVs in the cluster includes:

[0067] Determine whether each edge in the edge set corresponding to the next path of the AGV is in the edge set corresponding to the current path of any other AGV in the cluster;

[0068] If so, it is determined that the next path of the AGV conflicts with the current paths of the other AGVs in the cluster. Otherwise, it is determined that the next path of the AGV does not conflict with the current paths of the other AGVs in the cluster.

[0069] In one embodiment of the present invention, after issuing a next path stop instruction to the AGV, the method further includes:

[0070] In response to the timing request of the AGV, it is determined again whether the next path of the AGV conflicts with the current paths of the other AGVs in the cluster, and a corresponding instruction is issued to the AGV according to the determination result.

[0071] In order to effectively improve the road congestion, vehicle conflict and deadlock problems faced by large-scale AGV cluster transportation scenarios in automated terminals. The embodiment of the present invention proposes a two-stage decision framework and designs an AGV online path planning method for automated terminals, which decomposes the original path planning problem into two closely related sub-problems: online line planning and distributed trajectory planning. In the first stage, the real-time load on each lane in the horizontal transportation network, as well as the turning time cost, load balancing cost and conflict and deadlock prevention cost on both sides are considered, and an improved A *The algorithm online calculates the optimal route from the starting point to the end point for AGVs to perform tasks such as transportation, balances the traffic in the road network, reduces lane changes and turns, and reduces the risk of road congestion and deadlock. In the second stage, a distributed trajectory planning method is proposed. When the position changes, based on the real-time status of the AGV, the estimated travel area of ​​each AGV within the preset threshold is calculated, and multiple AGVs are dynamically divided into multiple independent clusters. The reserved path table of each AGV is independently calculated in the cluster using a distributed computing method to plan the AGV reserved path. When the AGV in the cluster travels along the trajectory in the reserved path table to a point close to the end of the current path, the AGV is given an instruction on whether it can continue to pass by judging whether the next path of the AGV conflicts with the current path of the other AGVs in the cluster. This ensures that the AGVs in the cluster can pass without conflict or deadlock. In addition, in the second stage, the AGVs were split into multiple clusters according to their real-time spatial positions, which reduced the number of AGVs involved in trajectory planning and the length of routes, thereby reducing computational complexity. Moreover, since the clusters are far apart in space, the trajectory planning within each cluster will not affect the travel of other AGVs. Distributed improvements are achieved through cluster management, and independent computing tasks can be deployed on different computing resources for calculation, thereby improving computing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0072] Figure 1 A schematic diagram of points, edges and conflicting edges of a weighted directed connected graph corresponding to a road network in an embodiment of the present invention;

[0073] Figure 2 A schematic diagram of a flow chart of an AGV online path planning method for an automated terminal provided by an embodiment of the present invention;

[0074] Figure 3 The improved A provided in the embodiment of the present invention * A flowchart of the algorithm;

[0075] Figure 4 (a) and Figure 4 (b) are examples of cluster division at a certain moment in an embodiment of the present invention;

[0076] Figure 5 A schematic diagram for understanding the estimated traffic area according to an embodiment of the present invention;

[0077] Figure 6 A schematic diagram of a flow chart of calculating a reserved path table using a reserved area division method for any AGV according to an embodiment of the present invention;

[0078] Figure 7 A schematic diagram of color path deadlock detection according to an embodiment of the present invention;

[0079] Figure 8A schematic diagram of a process flow of a color path deadlock detection method according to an embodiment of the present invention;

[0080] Fig. 9 This is a deadlock example diagram in an example of a reserved area division method used in an embodiment of the present invention;

[0081] Fig.10 A schematic diagram of initialization deadlock detection in an example of a reserved area division method used in an embodiment of the present invention;

[0082] Figure 11(a) to Figure 11(d) A schematic diagram of a deadlock detection graph updating process in an example of a reserved area division method according to an embodiment of the present invention;

[0083] Fig.12 A schematic diagram of a large-scale electronic map in an experiment of an embodiment of the present invention;

[0084] Fig.13 This is a result diagram showing the influence of the turning time factor on the number of straight side selections and the mean value of the turning arc of a single route in the experiment of the embodiment of the present invention;

[0085] Fig.14 This is a result diagram of the effect of load settings on the average load and maximum load of a single line in an experiment of an embodiment of the present invention;

[0086] Fig.15 This is a graph showing the effect of load settings on the average load and maximum load of a conflict edge set on a single line in an experiment of an embodiment of the present invention. DETAILED DESCRIPTION

[0087] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0088] In order to facilitate understanding of the solutions of the embodiments of the present invention, the scenario problems and inventive concepts involved in the embodiments of the present invention are first introduced briefly.

[0089] The existing AGV path planning problems can be divided into two categories according to the research objectives. One category aims to find the optimal route from the starting point to the end point, and does not consider the problems that may occur in the operation links such as vehicle conflicts and deadlocks during the search process; the other category aims to find the optimal operation plan from the starting point to the end point under the condition of ensuring no conflicts and no deadlocks. In order to distinguish, the embodiments of the present invention use route planning and trajectory planning to name these two types of problems.

[0090] In the real environment of the automated terminal, the road network can be abstracted as a weighted directed connected graph G = (V, E), where the point v∈V represents the vehicle control logic point in the road network, referred to as the logic point, and the edge e∈E represents the vehicle driving road between the connected points, referred to as the connected edge. Generally, in order to achieve fine control of AGV, the logic points can be deployed in an array at equal intervals of 4 meters. Taking into account the actual driving trajectory of the vehicle, the connected edges between the logic points in the embodiment of the present invention can be in various forms such as straight lines, curves, and S-bends, and the length is known. Since the physical size of the AGV is large and the body will sweep a certain area when turning, in order to ensure the safety of the AGV operation and avoid physical conflicts, such as Figure 1 As shown in FIG. 1 , each edge in the weighted directed connected graph corresponding to the road network in the embodiment of the present invention defines a corresponding conflict edge set conflicts(e), that is, when an AGV occupies edge e, all related conflict edges will be occupied at the same time to prevent other vehicles from entering the area, such as Figure 1 As shown, the gray rectangle represents an AGV, and the bold edge represents its conflict edge.

[0091] As the number of AGVs running in the system continues to increase, the existence of conflicting edge sets makes it easier for AGVs to have inter-vehicle conflicts and deadlocks while performing tasks such as transportation, thus affecting the efficiency of horizontal transportation operations. Common conflicts can be quickly resolved by simple avoidance or parking and waiting between AGVs, while deadlocks caused by cyclic waiting need to be handled in advance during the planning of AGV driving trajectories to avoid deadlocks. In response to the above possible conflicts and deadlocks, it is necessary to reasonably schedule and control the AGV driving process so that the AGV can drive to the destination safely, efficiently, and orderly.

[0092] The inventors have found that as the scale of the terminal expands, distributing the traffic flow to multiple routes in a balanced manner can disperse the AGV positions to a wider area, thereby reducing the probability of conflicts and deadlocks between AGVs in local areas. Therefore, the decision-making system will no longer design the complete driving path planning of AGV from the starting point to the end point from a global perspective as in the traditional method, but will first consider distributing the traffic flow to multiple routes from the perspective of trunk line planning to reduce AGV congestion in local areas, and then from the perspective of AGV operation trajectory, according to the real-time position and route of each AGV, plan detailed driving trajectories for AGVs with potential conflicts within a certain range to ensure that there are no collisions or deadlocks during the AGV's travel. Based on this concept, in order to plan the optimal route for each AGV in order to reduce lane changes and turns, avoid vehicle congestion, etc., and avoid conflicts and deadlocks during the driving process of the AGV for the large-scale AGV system of the automated terminal with extremely high real-time decision-making requirements, the embodiment of the present invention considers reducing the complexity of the algorithm from a structural perspective to meet the real-time decision-making requirements of the large-scale horizontal transportation system without sacrificing operating efficiency and safety. Finally, a two-stage decision framework is designed based on the real-time operating status of the AGV, and the path planning process is divided into two closely related decision problems: (1) route planning problem; (2) trajectory planning problem. Correspondingly, an AGV online path planning method for an automated terminal is provided, which is applied to the central control system of the automated terminal.

[0093] In short, in the two-stage decision framework of the embodiment of the present invention, the first stage takes balancing the traffic flow as the main goal, updates the network load online and calculates the optimal route of the AGV, thus realizing a route planning method; based on the route design in the first stage, the second stage dynamically divides the AGV into clusters based on the real-time status of the system, and designs conflict-free and deadlock-free running trajectories for the AGVs in the cluster, while realizing distributed computing of multiple clusters, thus realizing a trajectory planning method.

[0094] The following is a detailed description of the AGV online path planning method for an automated terminal corresponding to the two-stage decision framework of an embodiment of the present invention. Figure 2 As shown, the method may include the following steps:

[0095] S1, for each AGV that has been assigned a transportation task, use the improved A * The algorithm allocates the optimal route for the AGV; and the electronic map of the automated terminal is updated with load according to the optimal route allocated to the AGV.

[0096] In the embodiment of the present invention, a series of transport tasks for the AGV cluster of the automated terminal are generated online over time and assigned to the designated AGV by the scheduling system. The transport tasks received by each AGV will be arranged to form its transport task queue, where each transport task contains information such as the task start point, task end point, and task generation time. The task start point indicates the current position of the AGV, and the task start point and task end point both correspond to logical points in the road network. For each transport task of the AGV, the improved A * The algorithm assigns the optimal route to the AGV. Once the AGV is assigned the optimal route, it will travel from the mission start point to the mission end point as planned based on the structure of the road network and the optimal route, and the corresponding transportation mission is considered completed.

[0097] In the embodiment of the present invention, the transportation task is assigned to each AGV of the automated terminal, which can be realized by using the existing technology, and the specific method is not limited here. Similarly, the modeling method of the electronic map can also be realized based on the existing technology, which is not described here.

[0098] It should be noted that the tasks performed by each AGV that has been assigned a transportation task in the embodiment of the present invention are not limited to transportation tasks, but also include empty vehicle moving tasks. It can be understood that the empty vehicle moving task is to reach the starting point of the transportation task to be performed from the current position, so as to perform the transportation task. For example, from the current position A, the empty vehicle moves to position B, and transports the goods at position B to position C, so as to complete the transportation task from position B to position C. Therefore, for each AGV that has been assigned a transportation task, whether the task to be performed is a transportation task or an empty vehicle moving task, the improved A * The algorithm assigns the optimal route to the AGV.

[0099] The purpose of S1 is to complete the route planning problem of the first stage of the embodiment of the present invention. According to the starting point and end point of the transportation task, an operation route is designed for the AGV in the weighted directed connected graph. The optimization goal is to calculate a route for the AGV based on the real-time status of the road network, which avoids road congestion, reduces lane changes and turns, and has the shortest possible driving time, so as to achieve traffic balance on the road network.

[0100] Traditional A * The principle of the algorithm is to use the estimated distance to the end point as the evaluation function, and to find a relatively better path by searching less node information, thereby improving the search efficiency. * The algorithm optimizes for the shortest distance, which can lead to excessive vehicle turns and traffic jams.

[0101] The embodiment of the present invention proposes an improved A * In short, the improved A *The algorithm is based on the load on each edge in the current electronic map, as well as an evaluation function that adds the turning time cost of the two adjacent edges, the load balancing cost, and the conflict and deadlock prevention cost. The optimal route calculation is achieved based on the evaluation function value of the edge.

[0102] Specifically, improved A * The algorithm uses edges as decision-making units for route planning. First, according to information such as lane length, vehicle speed, and vehicle braking performance, the normal travel time of AGV on each edge e and the turning time on adjacent lanes are calculated, and corresponding weights are assigned to the edges in the weighted directed connected graph. * The original optimization goal of the algorithm of the shortest distance is converted into the shortest time; secondly, in order to achieve the purpose of dispersing traffic, the embodiment of the present invention introduces the concept of real-time load on the edge. Among them, the load on an edge represents the number of AGVs that have been planned and have not yet passed on the edge in the electronic map according to the optimal route assigned to each AGV. In addition, as the AGV is assigned the optimal route and in the real-time operation process according to the optimal route, the embodiment of the present invention continuously updates the real-time load on the edge. Specifically, the central control system not only updates the load of the electronic map of the automated terminal according to the optimal route assigned to the AGV, but also, after the AGV starts to travel, the central control system receives feedback from each AGV on the passed edges in its optimal route during the AGV's travel, and updates the load in the electronic map in real time. The content of the load update will be explained in detail later.

[0103] The following uses the transport task as an example to explain the improved A * algorithm.

[0104] Among them, compared with the traditional A * Algorithm, Improved A * The algorithm improves the evaluation function of detecting edge e by adding the turning time cost of the two adjacent edges, the load balancing cost, and the conflict and deadlock prevention cost. The calculation formula of the preset evaluation function includes:

[0105] F(e)=T v (e)+T r (e)+T l (e)+T c (e)+T n (e)

[0106] Where F(e) represents the evaluation function value calculated for the detected edge e; T v (e) represents the time cost of normal driving; T r (e) represents the turning time cost between two adjacent sides; T l (e) represents the balancing load cost; T c (e) represents the cost of preventing conflict and deadlock; Tn (e) indicates the estimated travel time to the destination of the task. The following are the details:

[0107] ①Time cost of normal driving T v (e)

[0108]

[0109] Among them, the time cost of normal driving is T v (e) represents the sum of the normal driving time costs of the vehicle from the starting edge of the vehicle’s current task to the detection edge; i =e 0 ,...e represents the edges of the AGV traveling along the optimal route, e 0 is the starting edge, e is the detection edge; t v (e i ) indicates that the AGV is on a single edge e i The travel time on the edge represents the normal travel time cost on a single edge, which can be obtained by dividing the length of the single edge by the vehicle's travel speed.

[0110] ② Turning time cost T between two adjacent sides r (e)

[0111] The turning time cost T of the two adjacent sides r (e) represents the sum of the vehicle turning time costs from the starting edge of the vehicle's current task to the detection edge; the time it takes for the AGV to pass through each lane at normal speed is fixed and known, and the turning time caused by the acceleration and deceleration of the vehicle when changing lanes and turning is related to the turning angle and turning radius, and can be determined by multiplying the turning arc length by the turning time coefficient B1.

[0112]

[0113] Among them, t r (e i-1 , e i ) represents the adjacent sides e i-1 and e i The turning time cost between θ and e is θ; B1 represents the turning time coefficient, and the value should be selected according to the situation; θ(e i-1 ) and θ(e i ) respectively represent the arc angles of the two adjacent sides and the horizontal direction; Abs[θ(e i )-θ(e i-1 )] represents the absolute value of the arc; L represents the turning radius, which can be set according to the turning scenario. In the embodiment of the present invention, L is set to one quarter of the length of the AGV vehicle.

[0114] Among them, θ(e i ) and θ(e i-1 ) is determined by the following formula:

[0115] θ(e i )=arctan((y2(e i )-y1(e i )) / (x2(e i )-x1(e i )))*π / 180

[0116] Among them, x1(e i )、y1(e i ) represents edge e i The horizontal and vertical coordinates of the starting point, x2(e i )、y2(e i ) represents edge e i The horizontal and vertical coordinates of the end point.

[0117] ③Balanced load cost T l (e)

[0118]

[0119] Among them, the balancing load cost T l (e) represents the sum of the load costs of each edge from the starting edge of the vehicle's current task to the detection edge;

[0120] t l (e i ) represents each edge e i The load cost is determined by the real-time load on the edge and the travel time t v (e i ) is determined; B2 represents the congestion time coefficient, and the value is selected reasonably according to the situation; σ(e i ) represents edge e i The load currently occupied and not released on the edge is the real-time load on the edge. As more lines need to pass through the same edge, each edge is more likely to have queues and congestion. The travel time t v (e i ) will increase significantly.

[0121] ④Preventing conflict and deadlock cost T c (e)

[0122]

[0123] Among them, the cost of preventing conflict deadlock is T c (e) represents the sum of the conflict prevention deadlock costs corresponding to each edge from the starting edge of the vehicle's current task to the detection edge. c (e i ) represents each edge e iThe cost of preventing conflict deadlock is determined by the real-time load and normal travel time of the conflicting edge corresponding to the edge; k Represents edge e i Conflicts(e i ) represents edge e i The set of conflicting edges; B3 represents the conflict time coefficient, and the value should be selected reasonably according to the situation.

[0124] ⑤ Estimated travel time to the destination of the mission T n (e)

[0125] Since the AGV can flexibly travel between logical points during driving, its movement is not limited to the eight directions of front, back, left, right, left front, left back, right front, and right back. In an optional implementation, the Euclidean distance is used to calculate the estimated travel time between the current detection edge e and the task end edge t:

[0126]

[0127] Among them, δ represents the uniform driving speed of the AGV; x(t) and y(t) represent the horizontal and vertical coordinates of the end point of the AGV task end edge t;

[0128] x2(e) and y2(e) represent the horizontal and vertical coordinates of the end point of the detection edge e; AGV tasks include transportation tasks. i and k involved in the formula are both natural numbers.

[0129] Take the transport task as an example, see Figure 3 In an optional embodiment, for any AGV that has been assigned a transportation task, the improved A * The process of the algorithm assigning the optimal route to the AGV may include the following steps:

[0130] Step a1, obtaining the starting point b and the end point c of the AGV's transportation task, as well as the load on each edge in the current electronic map;

[0131] Step a2: for the first iteration, obtain the OpenList and ClosedList which are empty sets, set the starting point b as the parent node of the first iteration, and execute step a3;

[0132] Among them, OpenList and ClosedList represent two lists to be maintained. For specific concepts, please refer to the traditional A * The algorithm is understood and will not be explained in detail here.

[0133] Step a3, find the reachable edge set A starting from the parent node of the current iteration;

[0134] For the first iteration, the "parent node of the current iteration" is the starting point b; for the "parent node of the current iteration" in each iteration after the first iteration, please refer to the relevant instructions of the subsequent step a12.

[0135] A reachable edge is an edge connected to the starting point. For more information, see Related Technical Understanding.

[0136] Step a4, for each edge a in the reachable edge set A, use a preset evaluation function calculation formula to calculate its current evaluation function value F(a);

[0137] Among them, the preset evaluation function calculation formula please refer to the relevant description above.

[0138] Step a5, based on the relationship between the edge a and the current OpenList and ClosedList, and the comparison relationship between the current F(a) of the edge a and the original evaluation function value, update the List belonging to the edge a;

[0139] In an optional implementation manner, step a5 includes:

[0140] 1) If the edge a is not in either the current OpenList or ClosedList, add the current (a, F(a)) to the current OpenList.

[0141] Specifically, it is possible to first determine whether the edge a is not in either the current OpenList or the ClosedList; if so, then add the current (a, F(a)) to the current OpenList, and step a5 ends. If not, then continue to determine whether the edge a is in the current OpenList but not in the current ClosedList.

[0142] 2) If the edge a is in the current OpenList but not in the current ClosedList, determine whether the current evaluation function value F(a) is less than the original evaluation function value of the edge a in the current OpenList; if so, use the current (a, F(a)) to update the original information of the edge a in the current OpenList; if not, keep the original information of the edge a in the current OpenList unchanged.

[0143] Specifically, determine whether the edge a is in the current OpenList but not in the current ClosedList. If not, it means that the edge a is in the current ClosedList but not in the current OpenList, and then proceed as in 3). If the edge a is in the current OpenList but not in the current ClosedList, continue to determine whether the current evaluation function value F(a) is less than the original evaluation function value of the edge a in the current OpenList; if so, use the current (a, F(a)) to update the original information of the edge a in the current OpenList; at this time, step a5 ends. If not, maintain the original information of the edge a in the current OpenList unchanged; at this time, step a5 ends.

[0144] 3) If the edge a is in the current ClosedList but not in the current OpenList, determine whether the current evaluation function value F(a) is less than the original evaluation function value of the edge a in the current ClosedList; if so, delete the information of the edge a in the current ClosedList and add the current (a, F(a)) to the current OpenList; if not, keep the original information of the edge a in the current ClosedList unchanged, and keep the current OpenList unchanged.

[0145] Specifically, in this case, after the two judgment results are executed in the corresponding manner of 3), step a5 ends.

[0146] Step a6, determine whether each edge a in the reachable edge set A has completed the List attribution update; if not, execute step a4; if yes, execute step a7;

[0147] Specifically, steps a4 to a5 are to traverse each edge a in the reachable edge set A to complete the List attribution update, and step a7 is executed after all traversals are completed.

[0148] Step a7, determine whether the current OpenList is empty; if so, execute step a8; if not, execute step a9;

[0149] Step a8, determining that there is no optimal route for the transportation task of the AGV;

[0150] Step a9, transfer the edge with the smallest evaluation function value F(a) in the current OpenList to the current ClosedList, and execute step a10;

[0151] Step a10, determine the last edge a in the current ClosedList *Is the end point of the process c? If yes, go to step a11; if no, go to step a12;

[0152] Step a11: According to the information recorded in the current ClosedList, determine a shortest route from the starting point b to the end point c as the optimal route for the AGV;

[0153] Step a12: add the last edge a in the current ClosedList * The end point is used as the parent node of the next iteration and step a3 is executed.

[0154] In the AGV route planning, the embodiment of the present invention considers the real-time load of the dynamic changes on the lanes of the horizontal transport network and * The algorithm's optimization goal of shortest driving time includes factors such as balancing the traffic flow in the road network, reducing lane changes and turns, and considering the impact of traffic on the conflicting edges. This can reduce the probability of conflict and deadlock in AGV clusters during the route planning stage, and calculate an optimal route for the AGV that avoids road congestion, reduces lane changes and turns, and has the shortest possible driving time.

[0155] The following is a summary of the contents of load update.

[0156] For each AGV, after the AGV is assigned the optimal route, the electronic map of the automated terminal is updated according to the optimal route assigned to the AGV, including:

[0157] In the electronic map of the automated terminal, increase the load on the edge involved in the optimal route to which the AGV is assigned by one.

[0158] The edges involved in the optimal route assigned to the AGV include pass edges and conflict edges. Pass edges are edges that the AGV will pass through in sequence; conflict edges are adjacent edges that are physically restricted due to the passage of the AGV.

[0159] As mentioned above, in order to achieve the purpose of dispersing traffic flow, the embodiment of the present invention introduces the concept of real-time load, recording the number of AGVs that have been planned and have not passed on the road at each moment. * After the algorithm plans the optimal route, the load is increased by one on each edge involved in the optimal route.

[0160] Since the subsequent AGVs need to travel according to the assigned optimal route, in order to accurately plan the routes and trajectories of each AGV, in addition to the load update after the optimal route is assigned, real-time load updates are also required during the AGV driving process. Accordingly, during the AGV driving process, the central control system receives feedback from each AGV on the traveled edges in its optimal route and updates the load in the electronic map in real time, including:

[0161] For each received passed edge, the central control system reduces the load quantity on the passed edge and related conflicting edges in the current electronic map according to the number of AGVs that feedback the passed edge.

[0162] That is to say, when the AGV passes and leaves an edge while traveling along the optimal route, it will feed back the passed edge to the central control system, which will reduce the load on the passed edge and its related conflicting edges in the electronic map by one to release the load on the corresponding edge.

[0163] In an optional implementation, each AGV can immediately provide feedback to the central control system when passing through and leaving an edge; of course, each AGV can also provide feedback to the central control system on the edges it has passed within a period of time at a fixed frequency, such as every 5 seconds, which is all reasonable.

[0164] S2, when any of the positions of the AGVs changes, based on the current electronic map, the optimal route of each AGV and the current position of each AGV during the driving process along the optimal route, the estimated passage area of ​​each AGV within the preset threshold is calculated; and the AGVs with overlapping estimated passage areas are divided into one cluster, thereby obtaining multiple divided clusters;

[0165] In order to facilitate understanding of the trajectory planning method of the second stage corresponding to embodiments S2 to S6 of the present invention, the inventive concept and scheme of this stage are first briefly described.

[0166] After the AGV receives the optimal route assigned by the central control system, it will travel along its optimal route, and the edges it will pass through and the corresponding conflicting edges are known. From the static perspective of the optimal route, there may be more overlaps and conflicts between the operating routes of each AGV. The traditional centralized deadlock prevention algorithm starts from the overall optimal route and calculates the anti-collision and anti-deadlock scheme for the entire route of all AGVs in the system. However, due to the large horizontal transportation area of ​​the automated terminal, this method not only has the problems of high computational complexity and long calculation time, but also after a long period of driving, the AGV is often easy to deviate from the plan. The inventor analyzed and found that in actual operation, many AGVs may be far apart, which means that there will be no overlap and conflict between the edges of these AGVs in the short term. Therefore, from a spatial perspective, it is meaningless to calculate the deadlock prevention route for AGVs that are far away. Therefore, the inventor designed the second-stage trajectory planning method based on this conclusion. Specifically, during the AGV driving process, the driving trajectory is continuously designed for the AGV according to the real-time status of the system. In order to improve the decision-making efficiency of the system, a dynamic clustering method is first proposed to divide all AGVs in the system into multiple independent clusters in time and space; then, a deadlock-free trajectory planning scheme is independently calculated for the AGVs in each cluster using distributed computing, specifically using the reserved area division method and the color path deadlock detection method. It can not only reduce the computational complexity and calculation time, but also achieve more accurate decisions in local areas. Unlike the route planning in the first stage, the trajectory planning in the second stage is to divide the reserved area according to the logical edges on the known route, so that the AGV can travel in sections according to the reserved area according to the instructions, thereby ensuring that there will be no conflicts and deadlocks in the driving process of each AGV.

[0167] In S2, the embodiment of the present invention introduces the concept of an expected passage area. Specifically, based on the current position of the AGV at the moment of position change, the passage area of ​​the AGV within a preset threshold in the future is predicted. If the passage areas of the AGVs overlap, it means that these AGVs may form conflicts and deadlocks in the future driving process. Therefore, the AGVs with overlapping expected passage areas are classified as a cluster.

[0168] In an optional implementation manner, the preset threshold includes a preset time threshold or a preset distance threshold.

[0169] Among them, the preset time threshold can be selected according to demand, for example, it can be 1 minute, 5 minutes, etc. In an optional implementation, the preset distance threshold is at least 10 times the number of sides corresponding to the shortest stopping distance of the AGV; of course, in the embodiment of the present invention, the preset distance threshold is a multiple of the number of sides corresponding to the shortest stopping distance of the AGV and is not limited to 10, and can be reasonably set according to demand. The shortest stopping distance of the AGV represents the shortest distance required for the AGV to stop completely when traveling at the maximum speed. It can be understood that the shortest stopping distance is expressed as a length. Since the length of each side in the road network of the embodiment of the present invention is known, the shortest stopping distance can be represented by the number of sides, such as 5 sides, etc. Therefore, the preset distance threshold can represent the number of sides.

[0170] When any of the AGV positions changes, the estimated passage area of ​​each AGV within the preset threshold is calculated based on the current electronic map, the optimal route of each AGV, and the current position of each AGV during the driving process along the optimal route. Specifically, for each AGV, according to the position of the AGV at that moment and the edge set represented by the optimal route, the edge set involved in the future driving area of ​​the AGV within the preset threshold is calculated to obtain the estimated passage area. Therefore, the estimated passage area is represented as an edge set, which includes not only the passage edge but also the corresponding conflict edge.

[0171] Regarding the process of determining the expected passage area, for example, for a preset time threshold, the length that the AGV can travel within the preset time threshold can be calculated based on the driving speed of the AGV; and the number of edges that can be traveled within the preset time threshold can be calculated based on the known lengths of each edge in the road network. Then, based on the position of the AGV at this moment and the edge set represented by the optimal route, the edges that the AGV will travel to within the preset time threshold in the future from this moment and the corresponding conflicting edges are determined, so that the set of these edges constitutes the expected passage area. For another example, for the preset distance threshold, since it is represented as an edge number, compared with the preset time threshold, the edges that the AGV will travel to within the preset distance threshold from this moment and the corresponding conflicting edges can be directly determined based on the position of the AGV at this moment and the edge set represented by the optimal route, so that the set of these edges constitutes the expected passage area.

[0172] After the estimated passage areas of all AGVs at a certain moment are obtained, in an optional implementation manner, AGVs with overlapping estimated passage areas are divided into one cluster, and multiple clusters are obtained, including:

[0173] In the process of traversing all the current AGVs in sequence, for each traversed AGV, determine whether there are repeated edges in the expected passage area between the AGV and each other AGV; if so, divide the two into the same cluster, otherwise, divide the two into their respective corresponding clusters; and obtain multiple divided clusters after the completion of the sequential traversal of all the current AGVs.

[0174] Specifically, the cluster division process can be as follows: for the AGVs running in the system, starting from i=1, check whether there are repeated edges between the ith AGV and the expected passage area of ​​each of the remaining AGVs, and add the AGVs with repeated edges with the expected passage area of ​​the ith AGV to the cluster where the ith AGV is located; then i is added by one and the above process is repeated until all AGVs have been divided into a certain cluster, and multiple clusters are obtained. Among them, i is a natural number greater than 0. Each divided cluster can represent all AGVs in the cluster in the form of a vehicle list.

[0175] See also Figure 4 (a) and Figure 4 (b) Two examples of cluster division at a certain moment are given for understanding. Figure 4 (a) and Figure 4 In (b), the expected passage area of ​​each AGV is represented by a polyline consisting of points and lines. The gray lines represent the expected passage area. If there are repeated edges in the expected passage area, the polyline has an intersection. Figure 4 At the corresponding time (a), since there are duplicate edges in the expected passage areas of AGV1 and AGV2, both are classified into cluster 1, while since there are no duplicate edges between the expected passage area of ​​AGV3 and AGV1~AGV2, AGV3 is classified into a separate cluster 2. Figure 4 At the corresponding moment (b), since there are repeated edges in the expected passage areas of AGV1 to AGV3, the three are divided into the same cluster 1.

[0176] It is understandable that the cluster division in the embodiment of the present invention is performed dynamically and is triggered by the change of the AGV position. Even after the cluster division, as long as the AGV changes position again, the cluster division needs to be performed again. At the same time, it is understandable that as the AGV travels, the load in the electronic map and the expected passage area of ​​the AGV change in real time at different times.

[0177] S3, controlling the distributed system to independently calculate each divided cluster to obtain a reserved path table of each AGV in each current cluster.

[0178] After each cluster division, it is necessary to calculate the driving trajectory of the internal members of each cluster. The embodiment of the present invention deploys independent cluster computing tasks to different processors using a distributed system. In this way, distributed computing can shorten the decision time and improve the decision efficiency of the system.

[0179] The reserved path table of each AGV includes multiple paths divided from the local route corresponding to its expected passage area, and each path is the minimum edge set for a continuous travel.

[0180] Since the expected passage area of ​​an AGV represents the set of edges involved in the future travel of the AGV within a preset threshold at the moment of calculation. It can be understood that, relative to the complete optimal route of the AGV, the expected passage area is a local route, which contains multiple edges of the road network and corresponding conflicting edges. The reserved path table indicates that the multiple edges contained in the expected passage area are divided into multiple segments, that is, multiple reserved areas. Each segment represents a path, and each path is the minimum set of edges for a continuous drive. A continuous drive means that the AGV can travel normally without stopping. A path may contain one or more edges in the road network, which needs to be calculated specifically according to the situation of each AGV. For more information about the expected passage area of ​​AGV, please refer to Figure 5 Understand, where the rectangle represents the AGV, and the trajectory of each AGV is planned as multiple expected passage areas, which are divided by diagonal lines.

[0181] In an optional implementation manner, obtaining a reserved path table of each AGV in each current cluster includes:

[0182] For any current cluster, determine the priority sequence corresponding to all AGVs in the cluster, and calculate the reserved path table of each AGV in the current cluster in turn according to the priority sequence using the reserved area division method.

[0183] Among them, when it is necessary to perform reserved area division, the reserved area division method is performed in sequence from the first AGV to the last AGV in the order of the priority sequence to obtain the reserved path table of each AGV. The basis for determining the priority sequence corresponding to all AGVs in the cluster can be attribute information that characterizes the urgency or importance of the AGV transportation task. For example, all AGVs in the cluster are sorted from high to low according to the urgency to obtain a priority sequence. Of course, the method of determining the priority sequence may not be limited to the above.

[0184] The embodiment of the present invention proposes a local deadlock-free trajectory planning method based on a reserved path table for independent clusters, which takes into account the spatial scope of the cluster and the dynamic changes of members. The main idea of ​​this method is to execute the reserved area division method for each AGV line in the cluster in turn, and record each group of determined AGV reservation information on the deadlock detection map. In the subsequent calculation process, the color path deadlock detection method is used to determine whether the new reservation request constitutes a deadlock with the determined reservation information. If a deadlock is constituted, the reservation request is changed until there is no deadlock, and the group of reservation requests is confirmed and recorded on the deadlock detection map.

[0185] In an optional implementation, see Figure 6 ,For any AGV, the process of calculating the reserved path table using the reserved area division method includes:

[0186] Step b1, obtain the target edge set (e1, e2, ..., e M-1 , e M ) and the current colored path deadlock detection map of the cluster; and set an initially empty reserved path table for the AGV;

[0187] The current colored path deadlock detection graph of the cluster may have recorded the reservation request records of the remaining AGVs in the cluster. In order to facilitate understanding of the solution, the colored path deadlock detection method and the colored path deadlock detection graph are briefly introduced here.

[0188] The main function of the colored path deadlock detection method is to avoid potential deadlock when reserving paths. D =(V D ,E D ), node v D ∈V D represents an edge e∈E in a directed graph G, where edge e D Represents the relationship between two edges in the directed graph G. Assume that the AGV is currently on edge e1∈E and needs to reserve edge e2∈E, call e D =(e1,e2)∈E D exists, and is reflected in G D The top edge has a specific color representing the AGV, that is, each color represents a reservation request for an AGV line. Figure 7 The colored path deadlock detection diagram shown in FIG. 1 is a schematic diagram of a deadlock detection diagram. The colored path refers to the deadlock detection diagram G. D There is a path on the network, where each edge has a different color. Since each color represents a reservation request from a specific AGV, a colored circular path indicates that a group of AGVs are cyclically requesting to reserve the corresponding edge. In the worst case, the corresponding AGV happens to be located on the edge of the corresponding color, and each AGV is requesting to reserve an edge that has been occupied by other AGVs, thus forming a deadlock. In order to avoid deadlock, when making decisions on reserved area division, it is detected whether a group of new reservation requests form a colored ring with the confirmed reservation requests, so as to determine whether the AGV is deadlocked with other AGVs. If a deadlock is about to occur, the current reservation request will not be feasible, and the reservation path table needs to be adjusted by changing the length of the reservation request to achieve deadlock-free reserved area division.

[0189] Step b2: for the current reservation of the AGV, obtain the current reserved area, and use the previous edge of the current reserved area as the reserved edge;

[0190] Among them, for the first reservation, the target edge set is M As a reserved area, the previous edge e M-1 As a reserved edge.

[0191] Step b3, using the color path deadlock detection method to detect whether the current reservation request of the AGV and the currently determined reservation plan are deadlocked; if not, execute step b4; if so, execute step b8;

[0192] Among them, the current reservation request of the AGV is composed of the reserved edges and reserved areas determined by the current reservation of the AGV; the currently determined reservation plan includes the reserved path table determined by each AGV in the cluster where the AGV is currently located; for the first reservation, the currently determined reservation plan is empty.

[0193] Step b4, recording the current reservation request of the AGV in the reserved path table of the AGV and the current color path deadlock detection map;

[0194] Step b5, determining whether the first edge e1 in the target edge set has been determined as a reserved edge and recorded in the reserved path table of the AGV and the current color path deadlock detection map; if not, executing step b6; if yes, executing step b7;

[0195] Step b6, using the reserved edge in the current reservation request of the AGV as the reserved area in the next reservation, and returning to step b2;

[0196] Step b7, stop calculation and obtain the reserved path table of the AGV;

[0197] Step b8, move the current reserved edge forward by one edge, so that the reserved area is expanded forward by one edge, update the current reservation request, and execute step b3.

[0198] It should be noted that for step b8, assuming that the current reserved edge is e x , moving one edge forward makes the reserved area expand one edge forward, which means moving one edge forward from edge e x Move forward to edge e x-1 .

[0199] Among them, see Figure 8 For step b3, a color path deadlock detection method is used to detect whether the current reservation request of the AGV and the currently determined reservation scheme are deadlocked, including:

[0200] Step c1, for the current reservation request of the AGV (reserved edge q and reserved area S), set the reserved edge q as the root node and as the parent node of the first iteration, and execute step c2;

[0201] Step c2, check all the reachable child nodes found by the parent node in turn to see if there is a child node that meets the following requirements: there is a path from the root node q to the child node that does not contain color C pj and there is no colored path with repeated colors; if so, execute step c3; if not, execute step c4, indicating that there is no colored path from the reserved edge q to the edge s∈S in the reserved area S, then it is determined that the current reservation request of the AGV and the currently determined reservation scheme do not produce a deadlock; wherein, before the AGV, the corresponding colored path deadlock detection map specifies a different color for each AGV whose trajectory planning has been completed, C pj Indicates the color of the route Pj where the AGV is located in the color path deadlock detection diagram;

[0202] Step c3: If the color of the edge connecting the found reachable child node to its parent node is not C pj , and is different from other colors in the color path from the root node q to the parent node of the reachable child node, determine whether the connected edge is an edge in the reserved area S; if not, execute step c5, use the reachable child node as the parent node of the next iteration, and execute step c2; if so, execute step c6, find a color path from the reserved edge q to the edge s∈S in the reserved area S, then determine that the current reservation request of the AGV is deadlocked with the currently determined reservation plan.

[0203] The following is an example of the process of calculating the reserved path table of each AGV in the current cluster using the reserved area division method. Fig. 9 As shown, the route of AGV1 is P1 = (e2, e5), P2 = (e5, e7), P3 = (e7, e4), P4 = (e9, e4, e2), assuming that red represents AGV1, orange represents AGV2, yellow represents AGV3, and green represents AGV4. Taking this common situation where four AGVs are prone to loop waiting as an example, without considering the conflicting edge relationship in the graph, the steps of detecting deadlock, preventing deadlock and dividing the reserved area in the order of AGV numbers from small to large may include:

[0204] ① Initialize the colored path deadlock detection graph G D =(V D ,E D ),like Fig.10 shown.

[0205] ② Calculate the reserved path table for transport vehicle 1 and try to make e2 reserve e5, that is, the reserved area in the current reservation request is e5 and the reserved edge is e2; check G D The node reflected by the reserved edge e2 To G D The node reflected in the reserved area e5 Is there a colored path between them that is not using red? Obviously not, then confirm the reservation information of P1 (that is, e2 is used as the reserved request edge and e5 is reserved as the reserved area) use To represent this group of reservation requests and add them to the deadlock detection graph G D Up, G D Updated to Figure 11(a);

[0206] ③ Calculate the reserved path table for transport vehicle 2 and try to make e5 reserve e7, that is, the reserved area in the current reservation request is e7 and the reserved edge is e5; check G D The node reflected by the reserved edge e5 To G D The node reflected in the reserved area e7 Is there a colored path between them that is not using orange? Obviously not, then confirm the reservation information of P2 (that is, e5 is used as the reserved request edge and e7 is reserved as the reserved area) use To represent the group reservation request and add it to G D Up, G D Updated to Figure 11(b);

[0207] ④ Calculate the reserved path table for transport vehicle 3 and try to make e7 reserve e4, that is, the reserved area in the current reservation request is e4 and the reserved edge is e7; check G D The node reflected by the reserved edge e7 To G D The node reflected in the reserved area e4 Is there a colored path between them that is not using yellow? Obviously not, then confirm the reservation information of P3 (that is, e7 is used as the reserved request edge and e4 is reserved as the reserved area) use To represent the group reservation request and add it to G D Up, G D Updated to Figure 11(c);

[0208] ⑤ Calculate the reserved path table for transport vehicle 4 and try to make e4 reserve e2, that is, the reserved area in the current reservation request is e2 and the reserved edge is e4; check G D The node reflected by the reserved edge e4 To G DThe nodes reflected in the reserved area e2 Is there a colored path without green? Obviously, e2-e5-e7-e4 is a colored path without green. Therefore, once e4 is made to reserve e2, the four transport vehicles will fall into a deadlock state of circular waiting. It is necessary to move e4 upward along P4 and make e9 reserve e2 and e4. That is, after the modification, the reserved area in the current reservation request is e2 and e4, and the reserved edge is e9. Check G D The node reflected by the reserved edge e9 to Between and to Is there a colored path between them? Obviously not, then confirm the current P4 reservation information use and To represent the group reservation request and add it to G D Up, G D Updated to Figure 11(d).

[0209] It should be additionally explained that the parameter subscripts i, k, M, etc. used to represent the sequence numbers in the embodiments of the present invention are all natural numbers.

[0210] S4, for each cluster, when it is determined that the distance between any AGV in the cluster and the end point of the current path reaches a preset distance value according to the corresponding reserved path table, determine whether the next path of the AGV conflicts with the current paths of the other AGVs in the cluster.

[0211] Among them, the preset distance value is greater than or equal to the shortest parking distance of the AGV.

[0212] In an optional implementation manner, determining whether the next path of the AGV conflicts with the current paths of other AGVs in the cluster includes:

[0213] Determine whether each edge in the edge set corresponding to the next path of the AGV is in the edge set corresponding to the current path of any other AGV in the cluster;

[0214] If so, it is determined that the next path of the AGV conflicts with the current paths of the other AGVs in the cluster. Otherwise, it is determined that the next path of the AGV does not conflict with the current paths of the other AGVs in the cluster.

[0215] As before, each path in the reserved path table of the AGV may include one or more edges in the road network, including corresponding conflicting edges, so the next path of the AGV corresponds to an edge set. Similarly, the current path of each of the remaining AGVs in the cluster also corresponds to an edge set according to the corresponding reserved path table. If there are duplicate edges in the edge set corresponding to the next path of the AGV and the edge set corresponding to the current path of any other AGV in the cluster, it is determined that the next path of the AGV conflicts with the current path of the remaining AGVs in the cluster; otherwise, it is determined that the next path of the AGV does not conflict with the current path of the remaining AGVs in the cluster.

[0216] If so, execute S5 to issue a stop instruction to the AGV.

[0217] Specifically, after receiving the stop instruction, the AGV will stop before the starting point of the next path, that is, it will not enter the next path, so as to avoid conflict with other AGVs appearing on the next path.

[0218] If not, execute S6 to issue a next path pass instruction to the AGV.

[0219] Specifically, the AGV enters the next path after receiving the next path passage permission instruction, which means that the AGV will not conflict with other AGVs on the next path and can pass directly.

[0220] Therefore, it can be seen that each AGV uses a reserved path table that is updated in real time to travel in a controlled manner in the form of multiple sub-paths. Intuitively, when the AGV is traveling according to the reserved path table at each moment, it will not directly pass through each path, but will receive relevant instructions from the central control system on whether it can continue to pass when approaching the end of the path. If the AGV does not receive a stop instruction, it will continue to pass along the next path in the reserved path table. If the AGV receives a stop instruction, it will stop and wait. Therefore, the central control system can avoid conflicts or deadlocks among the AGVs on related paths by controlling whether each AGV in the cluster stops on the path.

[0221] In an optional implementation manner, after issuing a next path stop instruction to the AGV, the method further includes:

[0222] In response to the timing request of the AGV, it is determined again whether the next path of the AGV conflicts with the current paths of the other AGVs in the cluster, and a corresponding instruction is issued to the AGV according to the determination result.

[0223] Specifically, after receiving the stop command, the AGV will stop before the starting point of the next path. In order to continue to complete the transportation task, the AGV can send a request to the central control system at a certain frequency to inquire whether the next path is passable. After receiving the request from the AGV, the central control system needs to judge again whether the next path of the AGV conflicts with the current path of the other AGVs in the cluster according to the judgment method in S4. If there is a conflict, the stop command is sent to the AGV again; if there is no conflict, the next path permission command is sent to the AGV.

[0224] In order to effectively improve the road congestion, vehicle conflict and deadlock problems faced by large-scale AGV cluster transportation scenarios in automated terminals. The embodiment of the present invention proposes a two-stage decision framework and designs an AGV online path planning method for automated terminals, which decomposes the original path planning problem into two closely related sub-problems: online line planning and distributed trajectory planning. In the first stage, the real-time load on each lane in the horizontal transportation network, as well as the turning time cost, load balancing cost and conflict and deadlock prevention cost on both sides are considered, and an improved A * The algorithm online calculates the optimal route from the starting point to the end point for AGVs to perform tasks such as transportation, balances the traffic in the road network, reduces lane changes and turns, and reduces the risk of road congestion and deadlock. In the second stage, a distributed trajectory planning method is proposed. When the position changes, based on the real-time status of the AGV, the estimated travel area of ​​each AGV within the preset threshold is calculated, and multiple AGVs are dynamically divided into multiple independent clusters. The reserved path table of each AGV is independently calculated in the cluster using a distributed computing method to plan the AGV reserved path. When the AGV in the cluster travels along the trajectory in the reserved path table to a point close to the end of the current path, the AGV is given an instruction on whether it can continue to pass by judging whether the next path of the AGV conflicts with the current path of the other AGVs in the cluster. This ensures that the AGVs in the cluster can pass without conflict or deadlock. In addition, in the second stage, the AGVs were split into multiple clusters according to their real-time spatial positions, which reduced the number of AGVs involved in trajectory planning and the length of routes, thereby reducing computational complexity. Moreover, since the clusters are far apart in space, the trajectory planning within each cluster will not affect the travel of other AGVs. Distributed improvements are achieved through cluster management, and independent computing tasks can be deployed on different computing resources for calculation, thereby improving computing efficiency.

[0225] The simulation experiment results show that the method of the embodiment of the present invention can solve the online path planning problem of a larger AGV cluster while effectively improving road congestion and ensuring that there is no conflict or deadlock in the entire driving process; at the same time, online optimization can better deal with the uncertain factors in the AGV driving process, and the use of distributed computing has higher computing efficiency, making large-scale application of AGV in complex industrial scenarios possible.

[0226] In order to verify the effect of the solution of the embodiment of the present invention, the results of the simulation experiment are analyzed and explained below.

[0227] 1. Experimental design

[0228] After the automated terminal is built, debugged and put into use, it will maintain 24-hour continuous operation. Therefore, it is difficult for terminal operating companies to directly deploy new algorithms or new strategies to test their impact on actual production. To this end, the embodiment of the present invention experimentally built a simulation platform that can simulate the driving of AGVs in a horizontal transportation network with a high degree of approximation. The simulation platform can simulate the generation and assignment of transportation tasks, as well as the control of AGVs (such as acceleration, deceleration, constant speed driving, turning, etc.). Combined with the decision-making framework proposed in the embodiment of the present invention, the simulation platform realizes the simulation and optimal scheduling of large-scale AGV clusters, which is suitable for verifying the feasibility and performance of the two-stage framework and algorithm.

[0229] The experiment of the embodiment of the present invention is based on the real dock layout, and a small-scale scene containing 269 logical points, 914 edges and corresponding conflicting edges is generated for algorithm testing. Subsequently, a real dock with a shoreline length of 1 km and a dock depth of about 400 meters is used as a blueprint, and a large-scale electronic map containing 2250 logical points and 10064 edges is established based on the actual construction plan. Fig.12 As shown, Fig.12 This is a schematic diagram of a large-scale electronic map in the experiment of the embodiment of the present invention. The algorithm and simulation are programmed in C# language under Visual Studio 2019 environment. All case tests are completed on a desktop computer equipped with an 8-core 2.30GHz Intel i7 processor and 16GB memory, and the operating system is Windows 10 64-bit.

[0230] The experiment is divided into two parts. First, the improved A *The impact of the algorithm on the route selection results and vehicle operation efficiency. Afterwards, the performance improvement of the distributed trajectory planning algorithm compared to the centralized one, as well as the effectiveness of the two-stage decision framework and algorithm in large-scale scenarios, were verified. In order to test the performance of the algorithm, the simulation simulated the characteristics of the transportation tasks appearing on the shore or in the yard in the actual scenario. All test schemes generated AGV transportation tasks by randomly generating the starting point and the end point at the boundary of the map. The generation time was subject to a certain time interval, and all AGVs in the system accepted and executed the transportation tasks in turn.

[0231] (II) Improved A * Verification analysis of the algorithm

[0232] This experiment first explores the improved A without considering the AGV's driving trajectory. * The impact of the algorithm on route selection; secondly, combined with the AGV simulation platform, combined with the vehicle driving process to study the improved A * The impact of algorithms on vehicle driving efficiency.

[0233] (1) Improved A * Impact of Algorithms on Route Selection

[0234] This experiment first conducts experiments in small-scale scenarios, generating five groups of random examples for route planning at the experimental scales of 10, 50, 100, 150 and 200 AGVs. To explore the influence of turning time coefficient B1 (B1 takes 0 and 0.3, B2 and B3 take 0), congestion time coefficient B2 (B2 takes 0 and 0.3, B1 and B3 take 0), and conflict time coefficient B3 (B3 takes 0 and 0.3, B1 and B2 take 0.3) on route planning. Among them, the single edge load mean is only averaged for the edges used by vehicles (ie, AGVs), and its value is equal to the sum of the loads on all edges in the road network divided by the number of edges used by vehicles.

[0235] The experimental results of the influence of turning time coefficient B1 on route planning are as follows: Fig.13 shown. Fig.13 The influence of the turning time factor on the number of straight-line selections and the average turning arc of a single line in the experiment of the embodiment of the present invention is shown in FIG. * The number of times the algorithm selects straight edges is increased by more than 2 times on average compared to the standard algorithm, which means that when selecting routes, the improved A * The algorithm tends to give priority to the straight side. At the same time, the improved algorithm significantly reduces the mean value of the turning arc, which means that vehicles try to avoid large-angle lane changes and turns when choosing routes. However, when the number of vehicles increases, the above indicators do not change significantly.

[0236] The experimental results of the influence of load and conflict edge set load setting on line planning are as follows Fig.14 and Fig.15 As shown. Fig.14 It can be seen that the improved A affected by the congestion time coefficient B2 * The algorithm can significantly reduce the average and maximum loads on a single line, and the improvement effect becomes better as the number of vehicles increases. Fig.15 It shows that the improved A affected by the conflict time coefficient B3 * The algorithm can reduce the average load and maximum load of the conflicting edge set associated with a single line to a certain extent, and the improvement effect increases slightly with the increase in the number of vehicles. Among them, under the scale of 200 vehicles, the load setting improves the average load of a single line by 44.52%, and the conflicting edge set load setting improves the average load of a single line by 11.24%. The above results mean that the improved A * When selecting routes, the algorithm disperses the traffic flow onto more alternative routes, reducing the number of times vehicles are arranged on the same edge or conflicting edges, which is beneficial to reducing the probability of congestion and conflict during subsequent vehicle operation, thereby improving the solution efficiency of the trajectory planning algorithm.

[0237] (2) Improved A * Impact of algorithms on vehicle operating efficiency

[0238] Combining the AGV simulation platform and the vehicle dynamic driving process, this experiment explores the improved A * The algorithm is used to calculate the impact of online route planning on AGV transportation efficiency, and the traditional A * The improved A * The values ​​of the turning time coefficient B1, congestion time coefficient B2, and conflict time coefficient B3 in the algorithm are all set to 0.3. The experiment was conducted in a small-scale scenario, and the case scale was set to 10, 30, 50, 75, and 100 AGVs respectively. The experimental settings and results are shown in Table 1:

[0239] Table 1A * Algorithm and Improved A * Algorithm Performance Comparison

[0240]

[0241] The experimental results show that the improved A *The algorithm reduces lane changes, uses dynamic loads to disperse traffic, and considers the load of conflicting edge sets to reduce the probability of deadlock, which is beneficial to shortening the average single AGV running time and the total task completion time, and improves the operating efficiency of a single AGV and the AGV system as a whole. Among them, with the increase in the number of AGVs, the improvement rate of the average AGV driving time has a trend of gradually increasing. Under the experimental scale of 100 vehicles, the improvement rate is as high as 9.6%, indicating that when the number of AGVs is large, the number of vehicle turns is large, and the congestion and conflict phenomenon is more serious. Reducing turns, dispersing traffic, and reducing congestion and conflict are more helpful to improve the efficiency of AGV system operation, which also shows that the embodiment of the present invention improves A * The necessity of algorithm objective optimization.

[0242] 3. Verification and Analysis of Distributed Trajectory Planning Algorithm

[0243] In order to explore the effectiveness of the algorithm, this experiment was first carried out based on a small-scale scenario to compare the performance of centralized and distributed trajectory planning algorithms. In the range of 10 to 100 AGVs, the time interval Δt for the algorithm to check the status update was set to 1 second, and the preset time threshold was set to 140 seconds for numerical experiments; then, in a large-scale scenario, the effectiveness of the algorithm was tested when the number of AGVs was between 100 and 500.

[0244] (1) Performance comparison between centralized and distributed trajectory planning algorithms

[0245] First, the experiment used centralized and distributed algorithms to solve the deadlock-free trajectory planning of AGVs, respectively, and conducted experiments on the case scale of 10, 20, 30, 50, 75, and 100 AGVs. Among them, the centralized decision-making method treats all AGVs in the system as a cluster when a new task is generated, and calculates the deadlock-free estimated travel plan for the entire length of the route from the starting point to the end point.

[0246] The experiment selected 7 evaluation indicators as shown in Table 2. Among them, the number of deadlock-free traffic plan decisions indicates the number of times the trajectory planning algorithm is executed, and also indicates the number of cluster changes or updates; the mean and maximum decision time indicate the mean and maximum duration of each cluster executing the trajectory planning algorithm, which represents the time efficiency of the algorithm; the average reserved length and maximum length of the line indicate the average length and maximum length of the reserved path table segments during the entire driving process of all vehicles. The smaller the value, the shorter the probability and time of waiting for the vehicle during driving. The experimental results are shown in Table 2.

[0247] Table 2 Comparison of centralized and distributed decision-making performance

[0248]

[0249]

[0250] From the experimental results, it can be seen that the centralized trajectory planning algorithm can only handle the deadlock prevention problem of AGVs below 20 vehicles under the current map scale, while the distributed trajectory planning algorithm can normally calculate the deadlock prevention problem under the experimental scale of 10 to 100 AGVs, which verifies the effectiveness of the distributed trajectory planning algorithm designed in the embodiment of the present invention. Moreover, according to the experimental results, it can be known that the distributed trajectory planning algorithm is conducive to reducing the average running time of AGV, shortening the time to complete all tasks, reducing the average single decision time, and reducing the average reserved length and maximum length of the line. Under the experimental scale of 10 and 20 AGVs, the average improvement rate of the average driving time of AGV is about 20%; the average improvement rate of the time to complete all tasks is 16.46% and 37.21% respectively; the average improvement rate of the decision time is 76.22% and 83.04%. The experimental results show that the centralized deadlock-free scheme is too conservative, resulting in more waiting time, and the distributed algorithm can effectively improve transportation efficiency; cluster management of vehicles and decentralized computing tasks can speed up decision-making efficiency. At the same time, it should be noted that the distributed trajectory planning algorithm has a large number of decision-making times, so in actual application, it relies on the central control system to be equipped with more computing resources to achieve distributed computing.

[0251] (2) Verification of the effectiveness of distributed trajectory planning algorithms in large-scale scenarios

[0252] As the scale of automated terminals continues to expand, in order to verify the practicality and effectiveness of the two-stage algorithm designed in the embodiment of the present invention for large-scale AGV systems, the embodiment of the present invention simulates the actual horizontal layout of the terminal, designs a horizontal transportation network with 2250 logical points and 10064 connecting edges, and tests random examples with a scale of 100, 200, 300, and 500 AGVs. The experimental results are shown in Table 3.

[0253] Table 3 Test results of large-scale AGV transportation system

[0254]

[0255]

[0256] The experimental results show that all vehicles can reach the end of the task, indicating that the AGV can ensure no conflict and no deadlock during driving. The results show that the decision framework and corresponding algorithm proposed in the embodiment of the present invention can solve the problem of route planning and safe transportation of 100 to 500 AGVs in large-scale automated terminal scenarios. The average single decision time is at the level of 0.001 seconds, and the maximum decision time is also within seconds. This verifies the effectiveness of the decision framework and optimization algorithm studied in the embodiment of the present invention, and also shows that the algorithm of the embodiment of the present invention can meet the requirements of real-time decision-making when dealing with the path planning problem of large-scale AGV systems. It should be noted that when the scale of the map is large and the starting and ending positions of the task are randomly generated, indicators such as average driving time and total task completion time will be greatly affected.

[0257] It should be noted that Figure 13 to Figure 15 A * The algorithm is abbreviated as A * , Improved A * The algorithm is abbreviated as Improved A * .

[0258] In summary, through a large number of numerical experiments, it can be known that the improved A of the first stage of the embodiment of the present invention * The algorithm can achieve the route optimization goals of reducing lane changes, dispersing traffic on the road network, and balancing conflicting side loads; the distributed trajectory planning method in the second stage can significantly shorten the decision-making time required for vehicle trajectory planning, overcoming the problem that traditional trajectory planning algorithms cannot be applied to large-scale AGV systems. The experimental results show that the method proposed in the embodiment of the present invention can ensure that 100 to 500 AGVs can run without deadlock, safely and efficiently, and the average calculation time of the algorithm is at the level of 0.001 seconds, with high computing efficiency.

[0259] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims

1. An AGV online path planning method for an automated terminal, characterized in that: A central control system applied to an automated terminal, the method comprising: For each AGV that has been assigned a transportation task, the improved A * The algorithm allocates the optimal route for the AGV; and updates the load of the electronic map of the automated terminal according to the optimal route allocated to the AGV; wherein the improved A * The algorithm is based on the load on each edge in the current electronic map, and an evaluation function that adds the turning time cost of the two adjacent edges, the load balancing cost, and the conflict and deadlock prevention cost. The optimal route calculation is achieved based on the evaluation function value of the edge. The load on an edge represents the number of AGVs that have been planned and have not yet passed on the edge in the electronic map according to the optimal route assigned to each AGV. When any of the positions of the AGVs changes, the estimated passage area of ​​each AGV within a preset threshold is calculated based on the current electronic map, the optimal route of each AGV, and the current position of each AGV during the driving process along the optimal route; and the AGVs with overlapping estimated passage areas are divided into one cluster, thereby obtaining multiple divided clusters; The control distributed system performs independent calculations on each divided cluster to obtain a reserved path table for each AGV in each current cluster; wherein the reserved path table for each AGV includes multiple paths divided from the local route corresponding to its expected passage area, and each path is a minimum edge set for a continuous travel; For each cluster, when it is determined that any AGV in the cluster has traveled to a preset distance value from the end point of the current path according to the corresponding reserved path table, it is determined whether the next path of the AGV conflicts with the current paths of the other AGVs in the cluster; If so, a stop command is issued to the AGV; if not, a next path permission command is issued to the AGV; wherein, during the AGV driving process, the central control system receives feedback from each AGV on the passed edges in its optimal route, and updates the load in the electronic map in real time.

2. The AGV online path planning method for an automated terminal according to claim 1, characterized in that: The load updating of the electronic map of the automated terminal according to the optimal route assigned to the AGV includes: In the electronic map of the automated terminal, the load on the edge involved in the optimal route assigned to the AGV is increased by one; wherein the edge involved in the optimal route assigned to the AGV includes a pass edge and a conflict edge; Accordingly, the central control system receives feedback from each AGV on the traveled edges in its optimal route during the AGV driving process, and updates the load in the electronic map in real time, including: The central control system reduces the load quantity on each passed edge and related conflicting edges in the current electronic map according to the number of AGVs that feedback the passed edge for each received passed edge.

3. The AGV online path planning method for an automated terminal according to claim 1 or 2, characterized in that: For any AGV that has been assigned a transportation task, use the improved A * The process of the algorithm assigning the optimal route to the AGV includes: Step a1, obtaining the starting point b and the end point c of the AGV's transportation task, as well as the load on each edge in the current electronic map; Step a2: for the first iteration, obtain the OpenList and ClosedList which are empty sets, set the starting point b as the parent node of the first iteration, and execute step a3; Step a3, find the reachable edge set A starting from the parent node of the current iteration; Step a4, for each edge a in the reachable edge set A, using a preset evaluation function calculation formula to calculate its current evaluation function value F(a); Step a5, based on the relationship between the edge a and the current OpenList and ClosedList, and the comparison relationship between the current F(a) of the edge a and the original evaluation function value, update the List belonging to the edge a; Step a6, determining whether each edge a in the reachable edge set A has completed the List attribution update; if not, executing step a4; if yes, executing step a7; Step a7, determine whether the current OpenList is empty; if so, execute step a8; if not, execute step a9; Step a8, determining that there is no optimal route for the transportation task of the AGV; Step a9, transfer the edge with the smallest evaluation function value F(a) in the current OpenList to the current ClosedList, and execute step a10; Step a10, determine the last edge a in the current ClosedList * Is the end point of the process c? If yes, go to step a11; if no, go to step a12; Step a11: According to the information recorded in the current ClosedList, determine a shortest route from the starting point b to the end point c as the optimal route for the AGV; Step a12: add the last edge a in the current ClosedList * The end point is used as the parent node of the next iteration and step a3 is executed.

4. The AGV online path planning method for an automated terminal according to claim 3 is characterized in that: The updating of the List belonging of the edge a based on the belonging relationship between the edge a and the current OpenList and ClosedList, and the comparison relationship between the current F(a) of the edge a and the original evaluation function value, includes: If the edge a is not in either the current OpenList or ClosedList, add the current (a, F(a)) to the current OpenList; If the edge a is in the current OpenList but not in the current ClosedList, determine whether the current evaluation function value F(a) is less than the original evaluation function value of the edge a in the current OpenList; if so, use the current (a, F(a)) to update the original information of the edge a in the current OpenList; if not, keep the original information of the edge a in the current OpenList unchanged; If the edge a is in the current ClosedList but not in the current OpenList, determine whether the current evaluation function value F(a) is less than the original evaluation function value of the edge a in the current ClosedList; if so, delete the information of the edge a in the current ClosedList and add the current (a, F(a)) to the current OpenList; if not, keep the original information of the edge a in the current ClosedList unchanged, and keep the current OpenList unchanged.

5. The AGV online path planning method for an automated terminal according to claim 3, characterized in that: The preset evaluation function calculation formula includes: F(e)=T v (e)+T r (e)+T l (e)+T c (e)+T n (e) Where F(e) represents the evaluation function value calculated for the detected edge e; T v (e) represents the time cost of normal driving; T r (e) represents the turning time cost between two adjacent sides; T l (e) represents the balancing load cost; T c (e) represents the cost of preventing conflict and deadlock; T n (e) represents the estimated travel time to the end point of the mission; where: Among them, e i =e 0 ,...e represents the edges of the AGV traveling along the optimal route, e 0 is the starting edge, e is the detection edge; t v (e i ) indicates that the AGV is on a single edge e i The length of time it takes to travel on Among them, t r (e i-1 , e i ) represents the adjacent sides e i-1 and e i The turning time cost between i-1 ) and θ(e i ) respectively represent the arc angles of the two adjacent sides and the horizontal direction; Abs[θ(e i )-θ(e i-1 )] means to find the absolute value of the arc; L means the turning radius; Among them, t l (e i ) represents each edge e i The load cost; B2 represents the congestion time coefficient; σ(e i ) represents edge e i The amount of load currently occupied and not yet released; Among them, t c (e i ) represents each edge e i The cost of preventing conflict and deadlock; e k Represents edge e i Conflicts(e i ) represents edge e i The conflict edge set; B3 represents the conflict time coefficient; Among them, δ represents the uniform driving speed of the AGV; x(t) and y(t) represent the horizontal and vertical coordinates of the end point of the AGV task end edge t; x2(e) and y2(e) represent the horizontal and vertical coordinates of the end point of the detection edge e; AGV tasks include transportation tasks.

6. The AGV online path planning method for an automated terminal according to claim 1, characterized in that: The preset threshold includes a preset time threshold or a preset distance threshold; wherein, the preset distance threshold is at least 10 times the number of sides corresponding to the AGV shortest stopping distance; the AGV shortest stopping distance represents the shortest distance required for the AGV to completely stop when traveling at maximum speed.

7. The AGV online path planning method for an automated terminal according to claim 1, characterized in that: The AGVs whose expected passage areas overlap are divided into one cluster, and multiple clusters are obtained, including: In the process of traversing all the current AGVs in sequence, for each traversed AGV, determine whether there are repeated edges in the expected passage area between the AGV and each other AGV; if so, divide the two into the same cluster, otherwise, divide the two into their respective corresponding clusters; and obtain multiple divided clusters after the completion of the sequential traversal of all the current AGVs.

8. The AGV online path planning method for an automated terminal according to claim 1 or 7, characterized in that: The method of obtaining the reserved path table of each AGV in each current cluster includes: For any current cluster, the priority sequence corresponding to all AGVs in the cluster is determined, and according to the priority sequence, the reserved path table of each AGV in the current cluster is calculated in sequence using the reserved area division method.

9. The AGV online path planning method for an automated terminal according to claim 8, characterized in that: For any AGV, the process of calculating the reserved path table using the reserved area division method includes: Step b1, obtain the target edge set (e1, e2, ..., e M-1 , e M ) and the current colored path deadlock detection map of the cluster; and set an initially empty reserved path table for the AGV; Step b2, for the current reservation of the AGV, obtain the current reserved area, and use the previous edge of the current reserved area as the reserved edge; wherein, for the first reservation, the target edge set is M As a reserved area, the previous edge e M-1 As a reserved edge; Step b3, using the color path deadlock detection method to detect whether the current reservation request of the AGV and the currently determined reservation plan have a deadlock; if not, execute step b4; if yes, execute step b8; wherein, the current reservation request of the AGV is composed of the reserved edges and reserved areas determined by the current reservation of the AGV; the currently determined reservation plan includes the reservation path table determined by each AGV in the cluster where the AGV is currently located; for the first reservation of the first AGV, the currently determined reservation plan is empty; Step b4, recording the current reservation request of the AGV in the reserved path table of the AGV and the current color path deadlock detection map; Step b5, determining whether the first edge e1 in the target edge set has been determined as a reserved edge and recorded in the reserved path table of the AGV and the current color path deadlock detection map; if not, executing step b6; if yes, executing step b7; Step b6, using the reserved edge in the current reservation request of the AGV as the reserved area in the next reservation, and returning to step b2; Step b7, stop calculation and obtain the reserved path table of the AGV; Step b8, move the current reserved edge forward by one edge, so that the reserved area is expanded forward by one edge, update the current reservation request, and execute step b3.

10. The AGV online path planning method for an automated terminal according to claim 9, characterized in that: The method of using a colored path deadlock detection method to detect whether a deadlock occurs between the current reservation request of the AGV and the currently determined reservation scheme, includes: Step c1, for the current reservation request of the AGV (reserved edge q and reserved area S), set the reserved edge q as the root node and as the parent node of the first iteration, and execute step c2; Step c2, check in turn whether the reachable child nodes found by all parent nodes meet the requirement: keep the color C not included from the root node q to the child node pj and there is no colored path with repeated colors; if so, execute step c3; if not, execute step c4, indicating that there is no colored path from the reserved edge q to the edge s∈S in the reserved area S, then it is determined that the current reservation request of the AGV and the currently determined reservation scheme do not produce a deadlock; wherein, before the AGV, the corresponding colored path deadlock detection map specifies a different color for each AGV whose trajectory planning has been completed, C pj Indicates the color of the route Pj where the AGV is located in the color path deadlock detection diagram; Step c3: If the color of the edge connecting the found reachable child node and its parent node is not C pj , and is different from other colors in the color path from the root node q to the parent node of the reachable child node, determine whether the connected edge is an edge in the reserved area S; if not, execute step c5, use the reachable child node as the parent node of the next iteration, and execute step c2; if so, execute step c6, find a color path from the reserved edge q to the edge s∈S in the reserved area S, then determine that the current reservation request of the AGV is deadlocked with the currently determined reservation plan.

11. The AGV online path planning method for an automated terminal according to claim 1 or 10, characterized in that: The determining whether the next path of the AGV conflicts with the current paths of other AGVs in the cluster includes: Determine whether each edge in the edge set corresponding to the next path of the AGV is in the edge set corresponding to the current path of any other AGV in the cluster; If so, it is determined that the next path of the AGV conflicts with the current paths of the other AGVs in the cluster. Otherwise, it is determined that the next path of the AGV does not conflict with the current paths of the other AGVs in the cluster.

12. The AGV online path planning method for an automated terminal according to claim 1, characterized in that: After issuing a next path stop instruction to the AGV, the method further includes: In response to the timing request of the AGV, it is determined again whether the next path of the AGV conflicts with the current paths of the other AGVs in the cluster, and a corresponding instruction is issued to the AGV according to the determination result.

Citation Information

Patent Citations

  • Task allocation and conflict-free path planning method for pull-type multi-AGV system

    CN111459108A

  • Multi-AGV multi-target path planning method based on improved genetic algorithm

    CN114911205A

  • An AGV system and a method of controlling an AGV system

    EP3591487A1

  • Automated guided vehicle control system and method thereof

    US20200183371A1