Multi-AGV path planning method based on warehousing characteristic factors and open algorithm library
By obtaining the warehousing characteristic factors, selecting an appropriate path planning algorithm and using a dynamic priority linked list, the problem of path planning failure and multi-AGV conflict caused by changes in the warehousing environment in the existing technology is solved, and the economic benefits of warehousing and the accuracy of path planning are improved. and real-time.
Patent Information
- Application Number
- CN202410952254.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-10-11
AI Technical Summary
In the existing technology, when the warehousing environment changes, the path planning algorithm may fail, resulting in reduced economic benefits of warehousing. In addition, conflicts occur frequently in multi-AGV path planning and lack adaptability and real-time performance.
By obtaining the warehousing characteristic factors of the heterogeneous warehousing environment, select the most matching path planning algorithm, perform multi-AGV path planning from the open algorithm library, and combine the path planning algorithm selection model and dynamic priority linked list to reduce conflicts and improve the efficiency of path planning. Accuracy and real-time.
It improves the accuracy and real-time performance of multi-AGV path planning in heterogeneous warehousing environments, reduces the environmental sensitivity of the path planning algorithm, improves the economic benefits of warehousing, and reduces AGV conflicts.
Smart Images

Figure CN118760184A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of intelligent warehousing, and in particular relates to a multi-AGV path planning method based on warehousing characteristic factors and an open algorithm library. Background Art
[0003] As an important link in the supply chain of the manufacturing industry, warehousing provides a safe, dry and appropriate environment to store and protect goods. More importantly, warehousing realizes the sorting and distribution of products, and provides a transit and sorting link, so that products can be sorted and distributed according to the requirements of the order. In warehousing, staff can classify, group and pack different products for subsequent distribution processes. At the same time, warehousing can also coordinate the logistics and transportation between supply chain links to ensure that products arrive at the destination on time. Therefore, as an intermediate link in the supply chain of the manufacturing industry, the turnover efficiency of warehousing not only affects the efficiency of downstream goods supply, but also affects the efficiency of upstream goods production. In traditional warehouse operations, manpower relies on numerous warehousing equipment to complete tasks, which often leads to high work intensity, low production efficiency and frequent errors in the logistics process. In contrast, modern logistics centers have entered the era of networking and informatization of logistics business. By using advanced tools such as expert systems and robotics technology, logistics centers can optimize cargo scheduling, path planning and operation control of automated guided vehicles (AGVs), and business management decisions. The goal is to promote the transformation of warehouse operations to automation and intelligence through modern computer technology.
[0004] The study of path planning problems has a long history. With the rise of warehouse AGVs, scholars at home and abroad have begun to study AGV path planning technology in warehouse environments, aiming to find a feasible path from the starting point to the end point for the AGV in a specific environment while avoiding collisions with static or dynamic obstacles in the warehouse.
[0005] The existing methods for solving the multi-AGV path planning problem in intelligent warehousing mainly include two aspects. One is to use traditional path planning algorithms (A*, Dijkstar algorithm, ant colony algorithm, etc.) combined with conflict resolution strategies, and the other is to use intelligent algorithms (genetic algorithms, reinforcement learning, etc.) to solve the multi-AGV path planning problem. The algorithms in these two aspects have environmental sensitivity issues. When the storage environment changes, the path planning algorithms involved may fail, thereby reducing the economic benefits of storage. Therefore, how to select a suitable path planning algorithm according to the specific storage environment is the key to improving the real-time performance and benefits of warehousing. Summary of the invention
[0006] In order to solve the above problems existing in the prior art, the present invention provides a multi-AGV path planning method based on warehouse characteristic factors and an open algorithm library.
[0007] The technical problem to be solved by the present invention is achieved through the following technical solutions:
[0008] The present invention provides a multi-AGV path planning method based on storage characteristic factors and an open algorithm library, comprising:
[0009] Acquire storage characteristic factors of the heterogeneous storage environment where the target AGV is located; the storage characteristic factors are used to characterize storage range parameters, shelf quantity, shelf size parameters, and AGV quantity in the heterogeneous storage environment;
[0010] Using a trained path planning algorithm selection model, according to the warehouse characteristic factors, select a path planning algorithm in a preset path planning algorithm library that best matches the target AGV; the preset path planning algorithm library includes a variety of path planning algorithms;
[0011] The target AGV performs its own path planning in the heterogeneous storage environment according to the selected best matching path planning algorithm.
[0012] Compared with the prior art, the present invention has the following beneficial effects:
[0013] The present invention models heterogeneous storage environments from different aspects, obtains storage characteristic factors for characterizing storage range parameters, shelf quantity, shelf size parameters, and AGV quantity, and provides accurate input for subsequent path planning algorithm selection models. The present invention realizes end-to-end selection of storage characteristic factors to path planning algorithms through the path planning algorithm selection model. According to the heterogeneous storage environment at this time, a suitable algorithm can be selected from an open path planning algorithm library for multi-AGV path planning, which can reduce multi-AGV conflicts while improving the accuracy and real-time performance of storage path planning, thereby improving economic benefits.
[0014] The present invention will be further described in detail below with reference to the accompanying drawings and specific implementation methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 It is a flowchart of a multi-AGV path planning method based on storage characteristic factors and an open algorithm library provided by an embodiment of the present invention;
[0016] Figure 2 It is a schematic diagram of a model structure and regularization processing principle of a path planning algorithm selection model provided by an embodiment of the present invention;
[0017] Figure 3It is a schematic diagram of an exemplary deadlock occurring in a pointing linked list provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0018] The present invention is further described in detail below with reference to specific embodiments, but the embodiments of the present invention are not limited thereto.
[0019] Figure 1 is a flow chart of a multi-AGV path planning method based on warehouse characteristic factors and an open algorithm library provided by an embodiment of the present invention, such as Figure 1 As shown, the method includes:
[0020] S101. Obtain storage characteristic factors of the heterogeneous storage environment where the target AGV is located; the storage characteristic factors are used to characterize storage range parameters, shelf quantity, shelf size parameters, and AGV quantity in the heterogeneous storage environment.
[0021] In the present invention, the storage characteristic factors of the heterogeneous storage environment include: the length H and width W of the heterogeneous storage environment, the number A of AGVs in the heterogeneous storage environment, the number M of shelves in the heterogeneous storage environment, the length Z of each shelf in the heterogeneous storage environment, and the length of each shelf in the heterogeneous storage environment. h and width Z w ; That is, δ = {H, W, A, M, Z h ,Z w}.
[0022] S102. Using the trained path planning algorithm selection model, according to the warehouse characteristic factors, select the path planning algorithm that best matches the target AGV in the preset path planning algorithm library; the preset path planning algorithm library includes a variety of path planning algorithms.
[0023] S103: The target AGV performs its own path planning in the heterogeneous warehousing environment according to the selected best matching path planning algorithm.
[0024] The present invention models heterogeneous storage environments from different aspects, obtains storage characteristic factors for characterizing storage range parameters, shelf quantity, shelf size parameters, and AGV quantity, and provides accurate input for subsequent path planning algorithm selection models. The present invention realizes end-to-end selection of storage characteristic factors to path planning algorithms through the path planning algorithm selection model. According to the heterogeneous storage environment at this time, a suitable algorithm can be selected from an open path planning algorithm library for multi-AGV path planning, which can reduce multi-AGV conflicts while improving the accuracy and real-time performance of storage path planning, thereby improving economic benefits.
[0025] In the present invention, the trained path planning algorithm selection model is obtained by training the initial path planning algorithm selection model using a preset training set and a cross entropy loss function. The path planning algorithm includes: an input layer L1, a warehouse characteristic factor feature extraction layer L2, a fully connected feature extraction layer L3, and a decision output layer L4. Exemplarily, the warehouse characteristic factor feature extraction layer L2 contains 32 neurons, the fully connected feature extraction layer L3 contains 128 neurons, and the decision output layer L4 contains 1 neuron.
[0026] Each training sample in the preset training set is a storage characteristic factor of a heterogeneous storage environment, and different training samples belong to different heterogeneous storage environments; the label of each training sample is the label of the path planning algorithm in the preset path planning algorithm library that best matches the AGV in the heterogeneous storage environment to which the training sample belongs. Exemplarily, the label of the path planning algorithm can be obtained by uniformly encoding all algorithms in the preset path planning algorithm library using the One-Hot encoding method; for example, when the preset path planning algorithm library contains two algorithms, after encoding, one algorithm is labeled 0 and the other algorithm is labeled 1.
[0027] Here, the path planning algorithm that best matches the AGV in the heterogeneous warehousing environment to which a training sample belongs is a path planning algorithm with the smallest total score F in the preset path planning algorithm library; the total score F is calculated based on the warehousing characteristic factors of the heterogeneous warehousing environment to which the training sample belongs, and the total score F is the weighted sum of the first indicator value F1, the second indicator value F2 and the third indicator value F3; the first indicator value F1 is the maximum value of the maximum driving distances of all AGVs in the heterogeneous warehousing environment to which the training sample belongs; the second indicator value F2 is the total number of position conflicts between different AGVs in the heterogeneous warehousing environment to which the training sample belongs; the third indicator value F3 is the total number of waiting times for AGVs in the heterogeneous warehousing environment to which the training sample belongs.
[0028] Here, the first index value F1 has a first preset weighting coefficient, the second index value F2 has a second preset weighting coefficient, and the third index value F3 has a third preset weighting coefficient, and the first preset weighting coefficient, the second preset weighting coefficient and the third preset weighting coefficient are all greater than 0 and less than 1. Exemplarily, in order to achieve the optimal choice of warehousing efficiency, it is necessary to transport the goods to the designated shelf or outbound center in the shortest possible time, that is, the first index value F1 is the most important of the three indicators, which can account for 50% of the final total evaluation; the second index value F2 can reduce the conflicts between multiple AGVs as much as possible, save computing resources and reduce the number of AGV conflict processing times, accounting for 35% of the final total evaluation; the third index value F3 can increase the smoothness of the AGV driving path as much as possible, reduce the looseness and falling of goods due to waiting for acceleration and deceleration, and can account for 15% of the final total evaluation. Therefore, the first preset weighting coefficient, the second preset weighting coefficient and the third preset weighting coefficient can be set to 0.5, 0.35 and 0.15 respectively. Therefore, the calculation formula of the total score value F is: F=0.5*F1+0.35*F2+0.15*F3.
[0029] Since the ultimate goal of the present invention is to maximize the economic benefits of warehousing, it is necessary to reduce the energy consumption of AGV in warehousing as much as possible. Therefore, the design indicators: minimizing the maximum driving distance of AGV, minimizing the number of AGV conflicts, and minimizing the number of AGV waiting times are used as the basis for the intelligent decision model to select the algorithm, so as to train the intelligent decision model and better select the algorithm from the open path planning algorithm library.
[0030] Specifically, the optimization for minimizing the maximum driving distance of AGV is shown in the following formula:
[0031] F'1=min(max(PL(A i )))i=1,2,3,…K;
[0032] The optimization for minimizing the number of AGV position conflicts is shown in the following formula:
[0033]
[0034] The optimization for minimizing the number of AGV waiting times is shown in the following formula:
[0035]
[0036] Where K represents the number of AGVs in a heterogeneous warehouse environment. i Indicates the AGV numbered i. PL(A i ) represents the actual transportation path length of AGV numbered i. max(PL(A i)) represents the maximum travel path length among all actual transport paths of AGV numbered i. i ) represents the number of times that AGV numbered i conflicts with other AGVs. i ) is the number of waiting actions (i.e., the number of waiting situations) that occur for the AGV numbered i.
[0037] By calculating the above index values F1, F2 and F3 of each algorithm according to the storage characteristic factors of a certain heterogeneous storage environment and then performing weighted summation to obtain the total score value F of the algorithm, and by comparing the F of different algorithms, the advantages and disadvantages of different algorithms for the certain heterogeneous storage environment can be obtained. Specifically, the calculation process of F1, F2 and F3 corresponding to each algorithm is: each time the algorithm is used to actually plan the actual path of each AGV in the certain heterogeneous storage environment, after obtaining the planned path, the length of the path traveled by each AGV in actual transportation, the number of times each AGV conflicts with other AGVs, and the number of times each AGV has a waiting action are statistically counted, and the F1, F2 and F3 corresponding to the algorithm can be obtained.
[0038] For example, when collecting the data set for the path planning algorithm selection model, the storage characteristic factors of the heterogeneous storage environment can be generated in a random manner, where the storage length H ranges from 10 to 100, the storage width W ranges from 10 to 100, the number of AGVs A ranges from 5 to 10, the number of shelves M ranges from 10 to 30, and the shelf specifications Z ranges from 10 to 30. h and Z w The value range is 2 to 4. For example, when the storage characteristic factor δ = {50, 50, 5, 20, 2, 3} indicates that the storage environment is 50*50, the number of AGVs is 5, the number of shelves is 20, and the shelf specifications are 2*3 (two rows and three columns). The total score of each algorithm in the preset path planning algorithm library is calculated by randomly generated storage characteristic factors, thereby calculating the total evaluation value F. The number of the algorithm with the smallest F value is used as the label of this storage characteristic factor, and this is used as a training data. Repeat this process until 10,000 training data are generated, and the data set collection is completed.
[0039] When training the path planning algorithm selection model, the data set can be divided into two parts: a training set and a test set in order to evaluate the performance and generalization ability of the model. The training set is used to train the path planning algorithm selection model, and the test set is used to evaluate the performance of the model. For example, 80% of the data set is divided into a training set and 20% is divided into a test set. And in order to more accurately evaluate the performance of the model, the K-fold cross-validation technique is used. The data set is divided into multiple mutually exclusive subsets, and then trained and evaluated multiple times. At the same time, in order to avoid the data learned by the intelligent decision-making model having sequential characteristics, the data set is shuffled to ensure the randomness of the data.
[0040] In the present invention, in order to enable the model to converge step by step during the training process, the cross entropy loss function is used to measure the difference between the model prediction results and the actual labels. By minimizing the loss function, the prediction results of the model can be made as close as possible to the provided labels, thereby improving the accuracy of the model. The cross entropy loss function is suitable for classification problems. In the present invention, the open path planning algorithm is actually selected based on the storage characteristic factors of the heterogeneous warehousing environment. Therefore, it can be regarded as a classification problem. The cross entropy loss function is used to measure the difference between two probability distributions. For each training sample, it sums or averages the cross entropy between the probability distribution of the model's output and the hot encoding of the actual label. In the present invention, the loss function formula used is as follows:
[0041] Loss=-(ylog(p)+(1-y)log(1-p));
[0042] Where y is the label of the training sample, and p is the number of the path planning algorithm predicted by the model. By using the above loss function to calculate the gradient and then perform the back propagation of the neural network, the parameters of the model can be continuously optimized.
[0043] In order to prevent the overfitting of the model, the regularization technology Dropout layer (i.e. regularization processing) can be used during the training of the model, such as Figure 2As shown in the figure, during the training process, for the L2 and L3 layers, the output values of some neurons can be set to 0 with a certain probability, that is, they are discarded, thereby reducing the complexity of the intelligent decision-making model, reducing the mutual dependence between neurons, and improving the generalization ability of the model. Specifically, the Dropout layer can randomly discard the output of some neurons with a probability of 0.5 in each training iteration, which means that in each iteration, the model is training different sub-networks, so the network cannot be overly dependent on certain specific neurons, thereby reducing the risk of overfitting, as shown in the following formula: y=M'⊙x"; where x" is the output of L2 and L3, M' is a two-dimensional mask matrix with the same shape as x", in M', 0 means that the data is discarded, 1 means that the data is retained, and y is the output of Dropout. It should be noted that in the test phase, Dropout will be turned off, that is, the values of the two-dimensional matrix mask are all set to 1, and the outputs of all neurons in the L2 and L3 layers are multiplied by the retention probability to keep the expected value of the output unchanged, so as to ensure that the behavior of the model during testing is similar to that during training, and no additional randomness is introduced.
[0044] In the present invention, the above S102 is implemented by the following steps:
[0045] S1021. Normalize the storage characteristic factor through the input layer L1 to obtain a normalized storage characteristic factor.
[0046] Since the warehouse feature factor contains data of different dimensions (for example, the warehouse scale feature and the AGV quantity feature can differ by 10 times), this will cause the neural network to converge slowly and be insensitive to small feature data. Therefore, the data of the warehouse feature factor is first normalized. For example, the input layer L1 can use Z-score normalization to convert the data of each dimension of the warehouse feature factor into normal distribution data with a mean of 0 and a standard deviation of 1. The specific normalization formula is as follows:
[0047]
[0048] Among them, x′ is the normalized data, x is the original data, mean(x) is the mean of data x, and std(x) is the standard deviation of data x. The mean of each dimension of the normalized warehouse characteristic factor is 0 and the standard deviation is 1, which can speed up the convergence of the intelligent decision-making model and eliminate the impact of differences between data on the model.
[0049] S1022. Process the normalized storage characteristic factor through the storage characteristic factor feature extraction layer L2 to extract the representation of the storage characteristic factor.
[0050] Specifically, the characterization of storage characteristic factors The expression is as follows:
[0051]
[0052] Among them, w2 and b2 are the trained learnable parameters of the warehouse feature factor feature extraction layer L2, is the normalized storage feature factor, and Relu(.) is the Relu activation function. It should be noted that the orthogonal matrix can be used to initialize the learnable parameters. The use of the positive matrix helps to reduce the change of the intelligent decision network gradient and improve the training efficiency of the network.
[0053] S1023. Process the representation of the warehouse feature factor through the fully connected feature extraction layer L3 to extract the deep features of the warehouse feature factor.
[0054] Specifically, the deep characteristics of the storage characteristic factors The expression is as follows:
[0055]
[0056] Among them, w3 and b3 are the trained learnable parameters of the fully connected feature extraction layer L3, and Relu(.) is the Relu activation function.
[0057] S1024. Process the deep features of the warehouse feature factors through the decision output layer L4, and output the label of the path planning algorithm that best matches the target AGV in the preset path planning algorithm library.
[0058] Specifically, the expression of the output out of the decision output layer L4 is as follows:
[0059]
[0060] Among them, w4 and b4 are the trained learnable parameters of the decision output layer L4, and Relu(.) is the Relu activation function.
[0061] The preset path planning algorithm library of the present invention is an open algorithm library, which may include a variety of different path planning algorithms, for example, the existing A* algorithm, the existing LSTM-PPO algorithm, etc. In some embodiments, the algorithm library also includes an improved A* algorithm.
[0062] In the present invention, when the preset path planning algorithm library includes the improved A* algorithm, and when the path planning algorithm that best matches the target AGV is the improved A* algorithm, the above S103 includes:
[0063] S1031. During the process of the target AGV performing its own path planning according to the improved A* algorithm, when selecting the m+1th position node from the surrounding position nodes of the mth position node, for each surrounding position node X of the mth position node m+1 , according to the surrounding location node X m+1 , the m-1th position node and the mth position node, and estimate the target AGV to move from the mth position node to the surrounding position node X m+1 When the driving direction needs to be changed, the estimated result is obtained; wherein the mth position node represents the current position node of the target AGV, and the m-1th position node represents the previous position node passed by the target AGV.
[0064] Here, the m-1th position node is the parent node of the mth position node.
[0065] For example, when the position coordinates of the mth position node are (x m ,y m ), the mth position node X m There are four surrounding position nodes, and the position coordinates of these four surrounding position nodes are (x m+1 ,y m )、(x m-1 ,y m )、(x m ,y m+1 )、(x m ,y m-1 ).
[0066] Here, according to the surrounding position node X m+1 , the m-1th position node and the mth position node. The collinearity theorem can be used to predict whether the target AGV will change its driving direction.
[0067] Specifically, S1031 is implemented by the following steps:
[0068] S1, for each surrounding position node X of the mth position node m+1 , calculate the surrounding position node X m+1 The y-coordinate m+1 and the ordinate y of the m-1th node m-1 The difference between the two gives the first difference (y m+1 -y m-1 ); and calculate the surrounding position node X m+1 The horizontal coordinate x m+1 and the horizontal coordinate x of the m-1th node m-1 The difference between the two gives the second difference (x m+1 -x m-1 ).
[0069] S2. Calculate the horizontal coordinate x of the mth position node m and the horizontal coordinate x of the m-1th node m-1 The difference between the two gives the third difference (x m -x m-1 );and calculate the ordinate y of the mth position node m and the ordinate y of the m-1th node m-1 The difference between the four values (y m -y m-1 ).
[0070] S3, calculate the product between the first difference and the third difference, and obtain a first product value (x m -x m-1 )(y m+1 -y m-1 ), and calculate the product between the second difference and the fourth difference to obtain a second product value (y m -y m-1 )(x m+1 -x m-1 ).
[0071] S4. When the first product value is equal to the second product value, that is, (x m -x m-1 )(y m+1 -y m-1 )=(y m -y m-1 )(x m+1 -x m-1 ), the target AGV is represented to move from the mth position node to the surrounding position node X m+1 There is no need to change the estimated result of the driving direction.
[0072] Here, when (x m -x m-1 )(y m+1 -y m-1 )=(y m -y m-1 )(x m+1 -x m-1 ), indicating that the target AGV moves from the mth location node to the surrounding location node X m+1 Go straight at this time.
[0073] S5. When the first product value is not equal to the second product value, it is obtained that the target AGV moves from the mth position node to the surrounding position node X. m+1 When the estimated result of the driving direction needs to be changed.
[0074] Here, when (xm -x m-1 )(y m+1 -y m-1 )≠(y m -y m-1 )(x m+1 -x m-1 ), it indicates that the target AGV moves from the mth location node to the surrounding location node X m+1 Need to turn.
[0075] S1032: When the estimation result indicates that there is no need to change the driving direction, the destination location node of the target AGV and the surrounding location node X are connected. m+1 The distance between the nodes is the surrounding position X. m+1 The estimated cost H(X m+1 ).
[0076] Specifically, S1032 is implemented by the following steps:
[0077] S11. When the estimation result indicates that there is no need to change the driving direction, calculate the distance dis between the mth location node and the destination location node.
[0078] Here, dis is the Euclidean distance between the mth location node and the destination location node.
[0079] S12: When the distance dis between the mth location node and the destination location node is greater than or equal to the preset distance threshold M, the destination location node and the surrounding location node x are connected. m+1 The Manhattan distance between the nodes X m+1 The estimated cost H(X m+1 ).
[0080] S13, when the distance dis between the mth location node and the destination location node is less than the preset distance threshold M, the destination location node and the surrounding location node x are connected. m+1 The Euclidean distance between the nodes X m+1 The estimated cost H(X m+1 ).
[0081] Here, when the estimated result indicates that there is no need to change the driving direction, x end and end Respectively represent the horizontal and vertical coordinates of the destination location node, x m+1 and m+1 Respectively represent the surrounding location node X m+1 The horizontal and vertical coordinates of .
[0082] Through steps S12 to S13, unnecessary detours of the AGV when approaching the target point can be reduced.
[0083] S1033: When the estimation result shows that the driving direction needs to be changed, the surrounding position node X is increased by presetting the steering correction coefficient k. m+1 The estimated cost H(X m+1 ).
[0084] Here, when the estimated results indicate that the driving direction needs to be changed,
[0085] In the present invention, in order to reduce the occurrence of AGV turning and ensure the smoothness of the path, a turning correction parameter k is added, so that when the AGV is expected to turn, a turning correction cost k is added. Here, k is a value greater than 0, and the value of k can be set according to actual needs, and the present invention does not limit this.
[0086] In some embodiments, when the preset path planning algorithm library includes an improved A* algorithm, and when the path planning algorithm that best matches the target AGV is the improved A* algorithm, the above S103 further includes:
[0087] S10. When the target AGV performs its own path planning according to the improved A* algorithm, a current AGV movement priority relationship table in the heterogeneous storage environment where the target AGV is located is obtained.
[0088] Here, the current AGV movement priority relationship table indicates the current movement order of each AGV in the heterogeneous warehouse environment.
[0089] S20, according to the current AGV movement priority relationship table and the current position nodes of all AGVs in the heterogeneous storage environment where the target AGV is located, determining the AGVs with placeholder conflicts when executing the current AGV movement priority relationship table.
[0090] Here, when the location node to which an AGV currently needs to move is occupied by another AGV, it means that a location conflict occurs between the two AGVs.
[0091] S30. When the target AGV is included in the AGVs with occupancy conflicts, a current pointing list of the target AGV is generated according to the order in which the occupancy conflicts occur, the AGVs with which the target AGV has occupancy conflicts, and the AGVs with which the target AGV has occupancy conflicts; the current pointing list is used to characterize the order in which the occupancy conflicts related to the target AGV occur and the AGVs.
[0092] For example, when the current pointing list of the target AGV is L(A1→A3→A4), it indicates that the occupancy conflict between A1 and A3 occurs first, and then the occupancy conflict between A3 and A4 occurs, that is, the position node that A1 is currently going to is occupied by A3, and the position node that A3 is currently going to is occupied by A4.
[0093] S40: Plan the path of the target AGV according to the current pointing linked list.
[0094] Specifically, when the current pointing linked list is a one-way linked list (for example, in the form of linked list L (A1→A3→A4)), it indicates that the current placeholder conflict related to the target AGV is a same-direction placeholder conflict. Then, according to the direction of the current pointing linked list, the movement priority of the AGV in the current pointing linked list is increased in sequence, and according to the new movement priority of the AGV in the current pointing linked list, the AGVs in the pointing linked list are moved in sequence until the target AGV completes the movement. After that, the original AGV movement priority relationship table is used to continue the path planning after the target AGV.
[0095] Specifically, when the pointing linked list contains a bidirectional linked list, it indicates that there is a bidirectional placeholder conflict in the placeholder conflict currently related to the target AGV (for example, the location node that AGV1 is currently going to is occupied by AGV2, and the location node that AGV2 is currently going to is occupied by AGV1), then starting from the last AGV in the pointing linked list, the path is re-planned for each AGV in turn so that the AGV after the re-planned path will not currently have a placeholder conflict, and then the original AGV movement priority relationship table is used to continue the path planning after the target AGV.
[0096] When performing multi-AGV path planning, AGV conflicts are inevitable. As a static path planning algorithm, the A* algorithm mainly focuses on the path search and planning of a single AGV. In a dynamic environment, multiple AGVs perform path planning at the same time, and multiple AGVs may try to occupy the same position or part of the path, thereby causing conflicts. Therefore, the A* algorithm cannot directly deal with multi-AGV conflicts. In order to solve such station conflict problems, the present invention uses the above-mentioned S10~S30 dynamic priority linked list conflict resolution strategy to assist the A* algorithm in successfully completing multi-AGV path planning.
[0097] In the present invention, after the current pointing list of the target AGV is calculated, there are two possibilities. The first is that at this time, there is only the AGV itself in the pointing list of the AGV, that is, the length of the list is equal to 1, which means that after the AGV takes action at this time, there will be no conflict with other AGVs, so there is no need to adjust the AGV priority, and the AGV can be executed in sequence according to the order of vehicle ID; the second is that the length of the pointing list of the AGV is greater than 1, indicating that the AGV will have a placeholder conflict with other AGVs. At this time, it is necessary to dynamically adjust the priority of the AGV according to the current pointing list of the AGV. That is, from the tail to the head of the pointing list, the priority of AGV execution decreases successively. In other words, the AGV at the tail of the pointing list has the highest priority and starts to execute the action first, followed by its subsequent AGV, until the target AGV completes the action, and the priority of each AGV is restored to the default priority, completing the conflict handling between AGVs.
[0098] The above situation is ideal. The conflict between AGVs is a same-direction position conflict. If a deadlock occurs in the linked list, for example, the next position of AGV1 is occupied by AGV2, and the next position of AGV2 is occupied by AGV1, Figure 3 In the case shown in the figure, the conflict cannot be resolved simply by dynamic priority. Therefore, the route needs to be replanned, that is, starting from the last AGV in the current pointing list of the target AGV, the route is replanned to actively give up the occupied position, thereby solving the conflict deadlock problem. According to the above method, all AGVs can plan a conflict-free path from the starting position to the end position.
[0099] The present invention has the following technical effects:
[0100] (1) The present invention extends the multi-AGV path planning problem in a single warehousing environment to the multi-AGV path planning problem in a heterogeneous warehousing environment, reducing the sensitivity of the path planning algorithm while improving economic applicability. At the same time, a path planning algorithm selection model is used to determine the algorithm to be used in the heterogeneous warehousing environment at this time, reducing multi-AGV conflicts while improving the economic benefits of warehousing. Through the path planning algorithm selection model, the end-to-end output of heterogeneous warehousing characteristic factors to the path planning algorithm is achieved, reducing the environmental sensitivity of the path planning algorithm and improving the economic benefits of warehousing.
[0101] (2) The present invention establishes an open path planning algorithm library, designs multi-AGV path planning algorithms for different heterogeneous warehousing environments, and has a certain degree of scalability, providing a basis for subsequent research on multi-AGV path planning in more complex heterogeneous warehousing environments. In the present invention, the current open path planning algorithm library can include a multi-AGV path planning algorithm based on improved A* and a multi-AGV path planning algorithm based on deep reinforcement learning, which can respectively cope with the path planning of multiple AGVs in small-scale warehousing and large-scale warehousing environments, reduce the sensitivity of the path planning algorithm, and provide a better solution for the multi-AGV path planning solution strategy in warehousing.
[0102] (3) Based on the A* algorithm, the present invention uses steering correction parameters to improve it, reduces unnecessary detours of AGVs, and introduces a dynamic priority linked list to resolve multi-AGV conflicts.
[0103] It should be noted that the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0104] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification.
[0105] In the specification, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude a plurality of components. Certain measures are recorded in different embodiments, but this does not mean that these measures cannot be combined to produce good effects.
[0106] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope of the present invention.
Claims
1. A multi-AGV path planning method based on warehouse characteristic factors and an open algorithm library, characterized in that: include: Obtain storage characteristic factors of the heterogeneous storage environment where the target AGV is located; The storage characteristic factors are used to characterize storage range parameters, shelf quantity, shelf size parameters and AGV quantity in the heterogeneous storage environment; Using a trained path planning algorithm selection model, according to the warehouse characteristic factors, select a path planning algorithm in a preset path planning algorithm library that best matches the target AGV; the preset path planning algorithm library includes a variety of path planning algorithms; The target AGV performs its own path planning in the heterogeneous storage environment according to the selected best matching path planning algorithm.
2. The multi-AGV path planning method based on warehouse characteristic factors and open algorithm library according to claim 1 is characterized in that: The trained path planning algorithm selection model includes: an input layer L1, a storage characteristic factor feature extraction layer L2, a fully connected feature extraction layer L3 and a decision output layer L4; the trained path planning algorithm selection model is used to select the path planning algorithm that best matches the target AGV in the preset path planning algorithm library according to the storage characteristic factor, including: Normalizing the storage characteristic factor through the input layer L1 to obtain a normalized storage characteristic factor; The normalized storage characteristic factor is processed by the storage characteristic factor feature extraction layer L2 to extract the representation of the storage characteristic factor; The representation of the storage feature factor is processed through the fully connected feature extraction layer L3 to extract the deep features of the storage feature factor; The deep features of the storage characteristic factors are processed through the decision output layer L4, and the label of the path planning algorithm that best matches the target AGV in the preset path planning algorithm library is output.
3. The multi-AGV path planning method based on warehouse characteristic factors and open algorithm library according to claim 1 is characterized in that: The trained path planning algorithm selection model is obtained by training an initial path planning algorithm selection model including an input layer L1, a storage feature factor feature extraction layer L2, a fully connected feature extraction layer L3 and a decision output layer L4 using a preset training set and a cross entropy loss function; Among them, each training sample in the preset training set is a storage characteristic factor of a heterogeneous storage environment, and different training samples belong to different heterogeneous storage environments; the label of each training sample is the label of the path planning algorithm in the preset path planning algorithm library that best matches the AGV in the heterogeneous storage environment to which the training sample belongs; and the path planning algorithm that best matches the AGV in the heterogeneous storage environment to which the training sample belongs is a path planning algorithm with the smallest total score value F in the preset path planning algorithm library; the total score value F is calculated based on the training sample. The total score value F is calculated based on the storage characteristic factors of the heterogeneous storage environment to which the sample belongs, and the total score value F is the weighted sum of the first index value F1, the second index value F2 and the third index value F3; the first index value F1 is the maximum value of the maximum driving distances of all AGVs in the heterogeneous storage environment to which the training sample belongs; the second index value F2 is the total number of position conflicts between different AGVs in the heterogeneous storage environment to which the training sample belongs; the third index value F3 is the total number of waiting times for AGVs in the heterogeneous storage environment to which the training sample belongs.
4. The multi-AGV path planning method based on warehouse characteristic factors and open algorithm library according to claim 1 is characterized in that: The storage characteristic factors of the heterogeneous storage environment include: the length H and width W of the heterogeneous storage environment, the number A of AGVs in the heterogeneous storage environment, the number M of shelves in the heterogeneous storage environment, the length Z of each shelf in the heterogeneous storage environment h and width Z w .
5. The multi-AGV path planning method based on warehouse characteristic factors and open algorithm library according to claim 1 is characterized in that: The preset path planning algorithm library includes an improved A* algorithm; when the path planning algorithm that best matches the target AGV is the improved A* algorithm, the target AGV performs its own path planning in the heterogeneous storage environment according to the selected best matching path planning algorithm, including: In the process of the target AGV performing its own path planning according to the improved A* algorithm, when selecting the m+1th position node from the surrounding position nodes of the mth position node, for each surrounding position node X of the mth position node m+1 , according to the surrounding location node X m+1 , the m-1th position node and the mth position node, and estimate that the target AGV moves from the mth position node to the surrounding position node X m+1 , whether it is necessary to change the driving direction, and obtain an estimated result; wherein the mth position node represents the current position node of the target AGV, and the m-1th position node represents the last position node passed by the target AGV; When the estimation result indicates that there is no need to change the driving direction, the destination location node of the target AGV and the surrounding location node X are connected. m+1 The distance between the nodes is the surrounding position X. m+1 The estimated cost H(X m+1 ); When the estimation result indicates that the driving direction needs to be changed, the steering correction coefficient k is preset to increase the surrounding position node X. m+1 The estimated cost H(X m+1 ).
6. The multi-AGV path planning method based on warehouse characteristic factors and open algorithm library according to claim 5 is characterized in that: Each position node has a horizontal coordinate and a vertical coordinate; for each surrounding position node X of the mth position node m+1 , according to the surrounding location node X m+1 , the m-1th position node and the mth position node, and estimate that the target AGV moves from the mth position node to the surrounding position node X m+1 When the vehicle is moving, whether it is necessary to change the driving direction, and obtain the estimated results, including: For each surrounding position node X of the mth position node m+1 , calculate the surrounding position node X m+1 The vertical coordinate y m+1 The ordinate y of the m-1th position node m-1 The difference between them is used to obtain the first difference; and the surrounding position node X is calculated. m+1 The horizontal coordinate x m+1 The horizontal coordinate x of the m-1th position node m-1 The difference between them is used to obtain the second difference; Calculate the horizontal coordinate x of the mth position node m The horizontal coordinate x of the m-1th position node m-1 The difference between them is used to obtain a third difference; and the ordinate y of the m-th position node is calculated. m The ordinate y of the m-1th position node m-1 The difference between them is used to obtain the fourth difference; Calculating the product between the first difference and the third difference to obtain a first product value, and calculating the product between the second difference and the fourth difference to obtain a second product value; When the first product value is equal to the second product value, it is obtained that the target AGV moves from the mth position node to the surrounding position node X. m+1 When , there is no need to change the estimated result of the driving direction; When the first product value is not equal to the second product value, it is obtained that the target AGV moves from the mth position node to the surrounding position node X. m+1 When the estimated result of the driving direction needs to be changed.
7. The multi-AGV path planning method based on warehouse characteristic factors and open algorithm library according to claim 5 is characterized in that: Each position node has a horizontal coordinate and a vertical coordinate; When the estimation result indicates that there is no need to change the driving direction, the H(X m+1 )=|x end -x m+1 |+|y end -y m+1 |; When the estimated result indicates that the driving direction needs to be changed, the H(X m+1 )=|x end -x m+1 |+|y end -y m+1 |+k; Among them, x end and end Respectively represent the horizontal and vertical coordinates of the destination location node, x m+1 and m+1 Respectively represent the surrounding location node X m+1 The horizontal and vertical coordinates of .
8. The multi-AGV path planning method based on warehouse characteristic factors and open algorithm library according to claim 5 is characterized in that: When the estimation result indicates that there is no need to change the driving direction, the destination location node of the target AGV and the surrounding location node X are connected. m+1 The distance between the nodes is the surrounding position X. m+1 The estimated cost H(X m+1 ),include: When the estimation result indicates that there is no need to change the driving direction, calculating the distance between the mth location node and the destination location node; When the distance between the mth location node and the destination location node is greater than or equal to a preset distance threshold M, the destination location node and the surrounding location node X are separated. m+1 The Manhattan distance between the nodes X m+1 The estimated cost H(X m+1 ); When the distance between the mth location node and the destination location node is less than the preset distance threshold M, the destination location node and the surrounding location node X are separated. m+1 The Euclidean distance between the nodes X m+1 The estimated cost H(X m+1 ).
9. The multi-AGV path planning method based on warehouse characteristic factors and an open algorithm library according to any one of claims 5 to 8, characterized in that: The target AGV performs its own path planning in the heterogeneous storage environment according to the selected best matching path planning algorithm, further comprising: In the process of the target AGV performing its own path planning according to the improved A* algorithm, obtaining a current AGV movement priority relationship table in the heterogeneous storage environment where the target AGV is located; According to the current AGV movement priority relationship table and the current position nodes of all AGVs in the heterogeneous storage environment where the target AGV is located, determining the AGVs with placeholder conflicts when executing the current AGV movement priority relationship table; When the target AGV is included in the AGVs with occupancy conflicts, a current pointing list of the target AGV is generated according to the order of occurrence of occupancy conflicts, the AGVs with which the target AGV has occupancy conflicts, and the AGVs with which the AGVs with which the target AGV has occupancy conflicts; the current pointing list is used to characterize the order of occurrence of occupancy conflicts related to the target AGV and the AGVs; The path planning of the target AGV is performed according to the current pointing linked list.
10. The multi-AGV path planning method based on warehouse characteristic factors and an open algorithm library according to claim 9, characterized in that: The path planning of the target AGV according to the current pointing linked list includes: When the current pointing linked list is a one-way linked list, indicating that the current placeholder conflict related to the target AGV is a same-direction placeholder conflict, then according to the direction of the current pointing linked list, the movement priority of the AGVs in the current pointing linked list is increased in sequence, and according to the new movement priority of the AGVs in the current pointing linked list, the AGVs in the pointing linked list are moved in sequence until the target AGV completes the movement, and then the original AGV movement priority relationship table is used to continue the path planning after the target AGV; When the pointing linked list contains a bidirectional linked list, it indicates that there is a bidirectional placeholder conflict in the placeholder conflict currently associated with the target AGV. Then, starting from the last AGV in the pointing linked list, the path is re-planned for each AGV in turn so that the AGV after the re-planned path will not currently have a placeholder conflict. Afterwards, the original AGV movement priority relationship table is used to continue the path planning after the target AGV.
