Full-coverage path planning method based on fusion of ant colony algorithm and element decomposition method

By combining the ant colony algorithm and the unit decomposition method to optimize path planning, the problem that traditional methods cannot achieve full coverage traversal cleaning is solved, and efficient and energy-saving autonomous vehicle path planning is achieved.

CN118623901AInactive Publication Date: 2024-09-10NANTONG UNIV
View PDF 0 Cites 6 Cited by

Patent Information

Application Number
CN202410655055.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-24
Publication Date
2024-09-10
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The traditional point-to-point global path planning method cannot achieve full coverage traversal cleaning of roads or squares in the park. The unit decomposition method is too detailed in concave areas, resulting in high repeated cleaning rates and frequent turns, which affects the movement speed of autonomous vehicles.

Method used

A fusion method based on the ant colony algorithm and the unit decomposition method is adopted, and the improved cost function and depth-first search algorithm are used to optimize path planning, reduce the number of turns and detours, and improve the convergence speed and search capabilities through the improved ant colony algorithm.

Benefits of technology

It achieves more efficient full-coverage path planning, reduces path redundancy and power consumption, and improves the cleaning efficiency and movement speed of autonomous vehicles in the park.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118623901A
    Figure CN118623901A
Patent Text Reader

Abstract

The invention provides a full-coverage path planning method based on fusion of an ant colony algorithm and a unit decomposition method, which is applied to an unmanned sweeping vehicle for completing a sweeping task in a park and comprises the following steps of: firstly, converting a point cloud scanned by a laser radar into a two-dimensional grid map; dividing the grid map into a plurality of sub-regions based on an improved unit decomposition method, introducing a turning cost function to determine an optimal traversal path during round-trip traversal in the sub-regions, and determining a traversal sequence among the regions by using a depth-first algorithm; and finally, connecting the sub-regions according to the determined sequence by using an improved ant colony algorithm to complete all traversal, and carrying out comparative verification of related experiments. Experimental results show that the improved full-coverage traversal method can greatly reduce the repetition rate and the turning times, improve the convergence speed and the search capability, shorten the path length and reduce the energy consumption, so that the unmanned sweeper can complete sweeping work more efficiently in an energy-saving manner.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of full coverage path planning for autonomous driving, and specifically is a full coverage path planning method based on the fusion of ant colony algorithm and unit decomposition method. Background Art

[0002] Path planning technology is a research field that has attracted much attention in recent years under the background of the development of mobile robots and vehicle technologies. It plays a vital role in improving the operating efficiency of mobile robots and has gradually penetrated into all walks of life. Path planning technology can be divided into two types according to the characteristics of the required path: point-to-point planning and full coverage planning. The traditional point-to-point global path planning method can only be applied to autonomous driving and logistics transportation between cars. It cannot cover and traverse the roads or squares in a park, and can only achieve the optimal planning between two points. The unit decomposition method, one of the classic traversal methods, also has the problem of too detailed division of concave areas, resulting in high repeated cleaning rate and frequent turns. In practical applications, too many turns of autonomous driving vehicles will affect their moving speed and require additional energy consumption and time. Therefore, this paper proposes a full coverage traversal method that combines an improved ant colony algorithm, a depth-first search (DFS) algorithm and a unit decomposition method. Summary of the invention

[0003] In view of the above-mentioned deficiencies of the prior art, the present invention proposes a full coverage path planning method based on the fusion of ant colony algorithm and unit decomposition method, which comprises the following steps:

[0004] Step 1) first convert the point cloud map obtained by the laser radar on the unmanned sweeping vehicle into a two-dimensional grid map;

[0005] Step 2) After the starting point and the target point are given in the grid map, it is divided into several sub-areas using the improved unit decomposition method;

[0006] Step 3) Propose a cost function that converts the number of turns and turns into path length, and use this function to reasonably perform arched round trip traversal in each unit sub-area;

[0007] Step 4) Use the depth-first algorithm to calculate the optimal traversal order between regions, and set the point closest to the end point of the traversal of the previous region as the traversal starting point of the next region, and the remaining node as the traversal end point, and so on;

[0008] Step 5) Propose an improved ant colony algorithm to improve the convergence speed and search ability, and connect the end point of the previous area and the starting point of the next area using the optimization algorithm;

[0009] Step 6) Experimentally verify the rationality of the proposed full coverage path planning algorithm and verify it by comparing experimental data.

[0010] Furthermore, in step 1), after rasterizing the point cloud data sampled by the lidar, some reasonable assumptions are made about the raster map: obstacles are represented by black grids to distinguish them from the available parts, and these grids are numbered from top to bottom and from left to right and represented by the set B = {1, 2, ...}. In order to identify obstacles, black grid cells are represented by 1 and white grid cells are represented by 0. Its working environment is represented by an M*N binary matrix. The path of the unmanned sweeper can be represented as L = {(x1, y1), ..., (x i ,y i ),...,(x t-1 ,y t-1 ),(x t ,y t )} The starting point is (x1,y1) and the end point is (x t ,y t ). If you change the grid coordinates (x i ,y i ) is replaced by l i , i=1,...,t-1,t, then the path can be represented by the number of grids L={l1,...,l i ,...,l t-1 ,l t}composition.

[0011] Furthermore, in the step 2), the improved unit decomposition method is used to divide the area into several sub-areas. The principle of traditional unit decomposition is to decompose all concave polygons into several convex polygons in a static known environment, and then plan the paths within the convex polygons respectively, and finally plan the transfer connection paths between the units. Although the path length can be optimized in this way, it will lead to overly detailed decomposition, too many turns and detours, making it difficult to achieve overall optimization. In fact, many concave polygons can still be used for path planning and optimization. Therefore, the present invention improves it as follows: For concave polygons with a set of parallel line paths that can be completely covered, it will not be decomposed, thereby reducing the number of decomposition units. The original path planning of multiple adjacent units will reduce the number of turns and detours, and the connecting path will also be shortened.

[0012] Furthermore, in step 3), a cost function is proposed to convert the number of turns and turns into path length, and the function is used to reasonably perform arcuate round trip traversal in each unit sub-area. By converting the number of turns and turns into moving distance, the multi-objective optimization method is converted into a single-objective optimization method, and then the cost function is obtained as shown in formula (1):

[0013] COST=C t *N t +C r *Nr +L in +L link (1)

[0014] Among them C t is the turning cost coefficient, N t is the number of turns, C r is the turning cost coefficient, N r is the number of turns, L in is the sum of the path lengths of the n units after decomposition, and the path length of each unit is L in (i) Calculated according to Euclidean distance, as shown in formula (2):

[0015]

[0016] L link (i) represents the length of the transmission path between n units, which is calculated as shown in formula (3):

[0017]

[0018] Suppose the transmission path is a set T = {t ij |i,j=1,2,3,…,n and i≠j}, represents the access path sequence between units, where i and j represent unit numbers, t is composed of m directed line segments, and the transmission path is the sum of multiple transmission paths t ij ={τ 01 ,τ 12 ,τ 23 ,…,τ (m-1)m}, all turns and steering times are combined and converted into turning costs.

[0019] Furthermore, in the step 4), the depth-first algorithm is used to calculate the optimal traversal order between the areas, and the point closest to the traversal end point of the previous area is set as the traversal starting point of the next area, and the remaining node is the traversal end point, and so on. The method for determining the connection order of the present invention is to treat the sub-areas divided in step 2) as separate individuals, and the distance between the base points of the two areas as the cost distance between the two, and then convert it into a graph traversal problem to solve. DFS is a classic method for solving graph traversal problems. Generally, the next traversal node is selected in sequence according to the size of the node number. If the workspace is large and there are many sub-areas, the traversal order planned by the algorithm is often not the shortest path. For the proportion of the connecting section in the entire full coverage task, it is obviously unreasonable to spend a large path cost. In order to solve this problem, the traditional DFS algorithm is preprocessed to obtain an improved DFS algorithm combined with the cost function in step 2) to solve the graph traversal problem. The specific operations are as follows:

[0020] 1) First find all the untraversed nodes adjacent to the specified node;

[0021] 2) Calculate the sum of the path lengths from each of the above nodes to other untraversed nodes respectively;

[0022] 3) Select the node with the smallest value as the next traversal node.

[0023] Furthermore, in step 5), an improved ant colony algorithm is proposed to improve the convergence speed and search capability, and the end point of the previous area and the starting point of the next area are connected by the optimization algorithm, with a total of four improvements.

[0024] First, a new method of non-uniform distribution of initial pheromones is proposed. In the initial stage of the traditional ant colony algorithm, the initial pheromones of the paths between grids are evenly distributed. In this way, without the guidance of differential pheromones, the search is blind, the quality of the solution is low, and the convergence speed is slow. Therefore, the pheromone matrix T is used to represent the pheromone distribution in the grid map B, as shown in formula (4):

[0025]

[0026] Where T b ∈T; θ1 is a constant greater than 1; A is the set of all grid numbers between the starting grid number and the ending grid number, that is, A={min{g start ,g end},min{g start ,g end}+1,...,max{g start ,g end}, if g start =1,g end =50, then A = {1,2,…,50}. According to the zero point theorem, the number of information fragments between the starting point and the end point is slightly higher than that of other places. This simple initial distribution of pheromones has the advantages of reducing the blindness of ant colony search and shortening the path search time, while not increasing the complexity of the algorithm.

[0027] Next, a method of using direction information as heuristic information for node transfer is proposed to solve the path planning problem with obstacles. In the traditional ant colony algorithm, the probability of selecting the next node by spinning the roulette wheel causes great blindness. Therefore, the present invention proposes to use direction information as heuristic information for node transfer. The probability is shown in formula (5):

[0028]

[0029] in

[0030] in is the probability that the lth ant chooses the next node i+1 from the current node i; is the pheromone value between two nodes i and i+1; is the distance heuristic function, which is the inverse of the Euclidean distance between two points, as shown in formula (6); α is the pheromone heuristic factor, which indicates the relative importance of pheromone concentration when ants choose the next node. The larger its value, the greater the possibility that ants will choose the path they have walked before, and the randomness of the search path will be weakened. The smaller its value, the smaller the search range of the ant colony will be, and it is easy to fall into the local optimum. The value range is [0,5]; β is the expected heuristic factor, which indicates the importance of the distance between the current node and the next node. The larger its value, the greater the role of the heuristic function in the transfer, that is, the ants will transfer to the nodes with a shorter distance at a higher rate, and the ant colony will be more likely to choose a local shorter path. At this time, the convergence speed of the algorithm is accelerated, but the randomness is not high, and it is easy to get the local relative optimum. The value range is [0,5]; allowed(b) is the point that ants can walk outside the taboo table, that is, the set of all nodes connected to node i and not passed by ant b; θ2 is a constant slightly less than 1; is the introduced directional information factor, and the formula is as follows:

[0031]

[0032] Where γ is the distance from the current node li to the next node l i+1 The number of directions in the same direction as the end point l: γ = 0, 1, 2; θ3 is a constant slightly greater than 1.

[0033] Then, when updating the pheromone, the wolf group distribution principle is adopted to update the pheromone in a cycle, find the best local path and the worst performing ant on this local path, and reduce the concentration of pheromone released by it. Update the pheromone concentration of each path according to the following three equations.

[0034]

[0035]

[0036]

[0037] in, is the pheromone update part from l to li+1 in the kth round. θ4 is a constant, and the maximum value of the pheromone in the iteration process is set to τ max , p(k) is the pheromone volatility coefficient: 0 <p(k)<1。

[0038] Finally, a new dynamic pheromone attenuation coefficient is proposed to avoid falling into the local optimal solution and reduce the search time of the algorithm to find the optimal path, where θ5 is a constant less than 1, and the formula is as follows:

[0039]

[0040] Furthermore, in step 6), the rationality of the proposed full coverage path planning algorithm is experimentally verified and verified by comparing experimental data. The specific steps are as follows:

[0041] Build an experimental platform. We rasterize the point cloud map collected by the lidar and import it into MATLAB for simulation comparison experiments to verify the feasibility and superiority of the algorithm. The designed full coverage path planning algorithm was simulated in MATLAB (R2020a) and Intel Core CPU i5-12490H.

[0042] Parameter setting. Since the unmanned sweeper is also responsible for cleaning while moving, the travel speed will not be too fast, about 0.8m / s. Relevant experiments show that the cost of each turn can be converted into 0.45 meters, and the time cost of turning direction is about 0.49 meters. In order to simplify the solution of the optimization problem, the conversion coefficients are c t = 0.45 m / rev and c r =0.49 m / rev. The specific value of this coefficient can be adjusted according to different unmanned sweeping vehicles.

[0043] Analyze the problem. Set the same starting point and end point, compare the algorithm results before and after optimization in the same grid map environment, and analyze the rationality and advantages of the present invention based on the total path length, number of turns, number of units, and repetition rate. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0045] Figure 1 It is a flowchart of the full coverage traversal algorithm of the present invention.

[0046] Figure 2 (a) is a schematic diagram of the traditional unit decomposition method, and (b) is a schematic diagram of the improved unit decomposition method of the present invention.

[0047] Figure 3 The comparative experimental diagram of the ant colony algorithm on a 20×20 grid map, where (a) is the simulation route map, (b) is the iteration curve of the traditional ant colony algorithm, (c) is the iteration curve of the improved algorithm, and (d) is the comparison diagram of the average path length of the two algorithms.

[0048] Figure 4 The comparative experimental diagram of the ant colony algorithm on a 30×30 grid map, where (a) is the simulation route map, (b) is the iteration curve of the traditional ant colony algorithm, (c) is the iteration curve of the improved algorithm, and (d) is the comparison diagram of the average path length of the two algorithms.

[0049] Figure 5 (a) is the path traversal of the traditional unit decomposition method, and (b) is the path traversal of the improved unit decomposition method. DETAILED DESCRIPTION

[0050] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with a specific implementation method. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present invention. The technical method of the present invention will be further described in detail below in conjunction with the accompanying drawings of the specification.

[0051] The present invention provides a new full-coverage path planning method for unmanned sweepers that clean the park. Step 1) First, after rasterizing the point cloud data sampled by the laser radar on the unmanned sweeper, make certain settings on the grid map: obstacles are represented by black grids to distinguish them from the available parts, and these grids are numbered from top to bottom and from left to right, and represented by the set B = {1, 2, ...}. In order to identify obstacles, black grid cells are represented by 1, white grid cells are represented by 0, and their working environment is represented by an M*N binary matrix. The path of the unmanned sweeper can be represented as L = {(x1, y1),…, (x i ,y i ),...,(x t-1 ,y t-1 ),(x t ,y t )}, the starting point is (x1,y1), and the end point coordinates are (x t ,y t ). If you change the grid coordinates (x i ,y i ) is replaced by l i , i=1,...,t-1,t, then the path can be represented by the number of grids L={l1,...,l i ,...,l t-1 ,l t}composition.

[0052] Furthermore, in the step 2), the improved unit decomposition method is used to divide the area into several sub-areas. The principle of traditional unit decomposition is to decompose all concave polygons into several convex polygons in a static known environment, and then plan the paths within the convex polygons respectively, and finally plan the transfer connection paths between the units. Although this can optimize the path length, it will lead to overly detailed decomposition, too many turns, too many detours, and it is difficult to achieve overall optimization. In fact, many concave polygons can still be used for path planning and optimization. Therefore, the present invention improves it as follows: For a concave polygon with a set of parallel line paths that can be completely covered, it will not be decomposed, thereby reducing the number of decomposition units. Figure 2 As shown, the three units in Figure (a) are changed to one unit in Figure (b). The path planning of the original multiple adjacent units also reduces the number of turns and detours, and the connecting path is also significantly shortened.

[0053] Furthermore, in step 3), a cost function is proposed to convert the number of turns and turns into path length, and the function is used to calculate the reasonable arcuate round trip traversal in each unit sub-area. By converting the number of turns and turns into moving distance, the multi-objective optimization method is converted into a single-objective optimization method, and then the cost function is obtained as shown in formula (1):

[0054] COST=C t *N t +C r *N r +L in +L link (1)

[0055] Among them C t is the turning cost coefficient, N t is the number of turns, C r is the turning cost coefficient, N r is the number of turns, L in is the sum of the path lengths of the n units after decomposition, and the path length of each unit is L in (i) Calculated according to Euclidean distance, as shown in formula (2):

[0056]

[0057] L link (i) represents the length of the transmission path between n units, which is calculated as shown in formula (3):

[0058]

[0059] Suppose the transmission path is a set T = {t ij|i,j=1,2,3,…,n and i≠j}, represents the access path sequence between units, where i and j represent unit numbers, t is composed of m directed line segments, and the transmission path is the sum of multiple transmission paths t ij ={τ 01 ,τ 12 ,τ 23 ,…,τ (m-1)m}, all turns and steering times are combined and converted into turning costs. Since the unmanned sweeper is also responsible for cleaning while moving, the travel speed will not be too fast, about 0.8m / s. Relevant experiments show that the cost of each turn can be converted into 0.45 meters, and the time cost of turning direction is about 0.49 meters. In order to simplify the solution of the optimization problem, the conversion coefficients are c t = 0.45 m / rev and c r = 0.49 m / rev. The specific value of this coefficient can be adjusted according to different unmanned sweeping vehicles. Figure 2 As shown, the number of turns is shortened from 21 in (a) to 14 in (b), and the calculated cost value is also shortened from 81.55 in (a) to 78.59 in (b). It can be seen that the unit decomposition planning of the present invention is more reasonable and superior.

[0060] Furthermore, in the step 4), the depth-first algorithm is used to calculate the optimal traversal order between the areas, and the point closest to the traversal end point of the previous area is set as the traversal starting point of the next area, and the remaining node is the traversal end point, and so on. The method for determining the connection order of the present invention is to treat the sub-areas divided in step 2) as separate individuals, and the distance between the base points of the two areas as the cost distance between the two, and then convert it into a graph traversal problem to solve. DFS is a classic method for solving graph traversal problems. Generally, the next traversal node is selected in sequence according to the size of the node number. If the workspace is large and there are many sub-areas, the traversal order planned by the algorithm is often not the shortest path. For the proportion of the connecting section in the entire full coverage task, it is obviously unreasonable to spend a large path cost. In order to solve this problem, the traditional DFS algorithm is preprocessed to obtain an improved DFS algorithm combined with the cost function in step 2) to solve the graph traversal problem. The specific operations are as follows:

[0061] 1) First find all the untraversed nodes adjacent to the specified node;

[0062] 2) Calculate the sum of the path lengths from each of the above nodes to other untraversed nodes respectively;

[0063] 3) Select the node with the smallest value as the next traversal node.

[0064] Furthermore, in step 5), an improved ant colony algorithm is proposed to improve the convergence speed and search ability. The end point of the previous area and the starting point of the next area are connected according to the traversal order obtained by the DFS algorithm using the optimization algorithm. There are four improvements to the traditional ant colony algorithm:

[0065] First, a new method of non-uniform distribution of initial pheromone is proposed. In the initial stage of the traditional ant colony algorithm, the initial pheromone distribution of each grid path is uniform, which is a constant value c0. In this way, without the guidance of differential pheromone, the search is blind, the quality of the solution is low, and the convergence speed is slow. Therefore, the initial value of pheromone in grid B is represented by element T, €T, and the pheromone distribution is described by matrix T, where element T, €T is shown in formula (4):

[0066]

[0067] Where A is the set of all numbers between 1 and 1, that is, A = {min{11,1},min{11,1}+1,...,max{11,1}}, formula (4) means that the number of information fragments between the starting point and the end point is slightly higher than other information. This simple initial distribution of pheromones has the advantages of reducing the blindness of ant colony search and shortening the path search time, while not increasing the complexity of the algorithm.

[0068] Next, a method of using direction information as heuristic information for node transfer is proposed to solve the path planning problem with obstacles. In the traditional ant colony algorithm, the probability of selecting the next node by spinning the roulette wheel causes great blindness. Therefore, the present invention proposes to use direction information as heuristic information for node transfer. The probability is shown in formula (5):

[0069]

[0070] in

[0071] Among them, α is the pheromone heuristic factor, which indicates the relative importance of pheromone concentration when ants choose the next node. The larger its value, the greater the possibility that ants will choose the path they have walked before, and the randomness of the search path will be weakened. The smaller its value, the smaller the search range of the ant colony will be, and it is easy to fall into the local optimum. The value range is [0,5]; β is the expected heuristic factor, which indicates the importance of the distance between the current node and the next node. The larger its value, the greater the role of the heuristic function in the transfer, that is, the ants will transfer to the nodes with a shorter distance at a greater rate, and the ant colony will be more likely to choose a local shorter path. At this time, the convergence speed of the algorithm is accelerated, but the randomness is not high, and it is easy to get the local relative optimum. The value range is [0,5]. Allowed(b) is the point that ants can walk outside the taboo table, that is, the set of all nodes connected to node i and not passed by ant b, and θ2 is a constant slightly less than 1. is the introduced directional information factor, and the formula is as follows:

[0072]

[0073] Where γ is the node l i To the next node l i+1 The number of directions in the same direction as the end point l: γ = 0, 1, 2. θ3 is a constant slightly greater than 1.

[0074] Then, when updating the pheromone, the wolf group distribution principle is adopted to update the pheromone in a cycle, find the best local path and the worst performing ant on this local path, and reduce the concentration of pheromone released by it. Update the pheromone concentration of each path according to the following three equations.

[0075]

[0076]

[0077]

[0078] in, is the number from l to l in round k i+1 θ4 is a constant, and the maximum value of pheromone during the iteration is set to τ max , p(k) is the pheromone volatility coefficient: 0 <p(k)<1。

[0079] Finally, a new dynamic pheromone attenuation coefficient is proposed to avoid falling into the local optimal solution and reduce the search time of the algorithm to find the optimal path, where θ5 is a constant less than 1, and the formula is as follows:

[0080]

[0081] The above four improvements are integrated into the traditional ant colony algorithm. The detailed steps are as follows: the first step is to distribute the initial pheromone unevenly and construct the pheromone matrix T' according to formula (4); the second step is to place R ants at the starting point of each round in the Kth round; the third step is to start sending a round of ants. Each ant selects a node according to the roulette method. The probability of each point is calculated by formulas (8), (9), and (10); the fourth step is to send the next round of ants and repeat steps 3) and 4) until the iteration ends; the fifth step is to record the shortest path of each round and then draw the shortest path length curve of each round; the sixth step is to compare the shortest paths of all ants and finally output the current optimal path to achieve the optimal point-to-point planning.

[0082] Furthermore, in step 6), the rationality of the proposed full coverage path planning algorithm is experimentally verified and verified by comparing experimental data. The specific steps are as follows:

[0083] (1) Build an experimental platform. The point cloud map collected by the lidar is rasterized and imported into MATLAB for simulation and comparison experiments to verify the feasibility and superiority of the algorithm. The designed full coverage path planning algorithm was simulated in MATLAB (R2020a) and Intel Core CPU i5-12490H.

[0084] (2) Parameter setting. First, we verify the convergence and optimization capabilities of the improved ant colony algorithm. The simulation environment is set to a 20×20 grid map. The length of each unit is 1. The starting point is the upper left corner of the grid (0.5, 19.5), and the end point is the lower right corner (19.5, 0.5). The experimental results are as follows: Figure 3 As shown; then set the simulation environment to a 30×30 grid map, and the length of each unit is 1. The starting point is set to (0.5, 39.5) and the end point is set to (39.5, 0.5). The experimental results are shown in Figure 4 Finally, the total fusion full coverage traversal path planning method of the present invention is verified. The simulation environment is set to a 22×25 road type grid map. The length of each unit is 1, the starting point is set to (20.5, 24.5), and the end point is also set to (20.5, 24.5). The experimental results of completing the full map traversal are shown in Figure 5 shown.

[0085] (3) Analyze the problems and results. Figure 3 and Figure 4 From the experimental results, it is not difficult to see that both the traditional ant colony algorithm and the optimized ant colony algorithm can find the global optimal path under the same environmental conditions. Figure 3 (b) The traditional ant colony algorithm shows that the shortest path length is 29.21 in the 49th iteration, while the improved Figure 3The enhancement method of (d) found it in the fifth iteration. Figure 4 (b) The optimal path is found in the 69th time. Figure 4 (c) The task was completed in the 9th iteration, which greatly saved time and energy consumption. The remaining (d) figure is the average value of the path iteration length, which is usually used to show the convergence ability of the algorithm. The improved algorithm is significantly higher than the traditional ant colony algorithm.

[0086] The final complete coverage path planning experiment is as follows Figure 5 As shown, it can be clearly seen that the number of sub-areas of the optimized unit decomposition method is reduced from 7 to 3, the number of turns is reduced from 28 to 20, and the path repetition rate is also reduced by nearly half. Therefore, the present invention greatly reduces path redundancy and power consumption, allowing the unmanned sweeper to be more efficient and energy-saving when completing coverage and cleaning tasks.

Claims

1. A full coverage path planning method based on the fusion of ant colony algorithm and unit decomposition method, It is characterized in that The following steps are involved: Step 1) first convert the point cloud scanned by the laser radar into a two-dimensional grid map; Step 2) after the starting point and the target point are given in the two-dimensional grid map, the two-dimensional grid map is divided into a plurality of sub-areas by using a unit decomposition method; Step 3) Performing a round trip traversal in each unit sub-area using a cost function that converts the number of turns and turns into path length; Step 4) Use the depth-first algorithm to calculate the optimal traversal order between regions, and set the point closest to the end point of the traversal of the previous region as the traversal starting point of the next region, and the remaining node as the traversal end point, and so on; Step 5) Use the ant colony algorithm to connect the sub-areas in the determined order to complete the entire traversal, and use the ant colony algorithm to connect the end point of the previous area and the starting point of the next area.

2. According to claim 1, a full coverage path planning method based on ant colony algorithm and unit decomposition method, It is characterized in that After rasterizing the point cloud data sampled by the laser radar in step 1), the following assumptions are made for the raster map: obstacles are represented by black grids to distinguish them from the available parts, and these grids are numbered from top to bottom and from left to right and represented by a set B = {1, 2, ...}; black grid cells are represented by 1, white grid cells are represented by 0, and the working environment is represented by an M*N binary matrix. The path of the unmanned sweeper is represented by L = {(x 1 ,y 1 ),…,(x i ,y i ),...,(x t-1 ,y t-1 ),(x t ,y t )}, the starting point is (x 1 ,y 1 ), the end point coordinate is (x t ,y t ); i ,y i ) is replaced by l i , i = 1, ..., t-1, t, then the path of the unmanned sweeper is represented by L = {l 1 ,...,l i ,...,l t-1 ,l t }.

3. According to claim 1, a full coverage path planning method based on ant colony algorithm and unit decomposition method, It is characterized in that In the step 2), the two-dimensional grid map is divided into a number of sub-areas using an improved unit decomposition method, and the specific steps include: selecting a concave polygon to be decomposed according to the boundary and obstacles of the two-dimensional grid map, and the concave polygon to be decomposed does not include a concave polygon with a set of parallel line paths that can be completely covered; decomposing the concave polygon to be decomposed into multiple convex polygons, planning the paths within the convex polygons respectively, and finally planning the transmission connection paths between the units.

4. According to claim 1, a full coverage path planning method based on ant colony algorithm and unit decomposition method, It is characterized in that The specific steps of step 3) include: converting the number of turns and the number of turns into the moving distance, converting the multi-objective optimization method into a single-objective optimization method, and then obtaining the cost function as shown in formula (1): COST=C t *N t +C r *N r +L in +L link (1) Among them C t is the turning cost coefficient, N t is the number of turns, C r is the turning cost coefficient, N r is the number of turns, L in is the sum of the path lengths of the n units after decomposition, and the path length of each unit is L in (i) Calculated according to Euclidean distance, as shown in formula (2): L link (i) represents the length of the transmission path between n units, which is calculated as shown in formula (3): Suppose the transmission path is a set T = {t ij |i,j=1,2,3,…,n and i≠j}, represents the access path sequence between units, where i and j represent unit numbers, t is composed of m directed line segments, and the transmission path is the sum of multiple transmission paths t ij ={τ 01 ,τ 12 ,τ 23 ,…,τ (m-1)m }, all turns and steering times are combined and converted into turning costs.

5. According to claim 1, a full coverage path planning method based on ant colony algorithm and unit decomposition method, It is characterized in that The specific steps of step 4) include: treating the sub-regions divided in step 2) as separate individuals, and the distance between the base points of the two regions as the cost distance between the two, and then converting it into a graph traversal problem to solve; using the DFS algorithm to solve the graph traversal problem, the specific operations are as follows: 1) First find all the untraversed nodes adjacent to the specified node; 2) Calculate the sum of the path lengths from each of the above nodes to other untraversed nodes respectively; 3) Select the node with the smallest value as the next traversal node.

6. A full coverage path planning method based on ant colony algorithm and unit decomposition method according to claim 4, It is characterized in that In step 5), the ant colony algorithm adopts the initial pheromone non-uniform distribution method as shown in formula (4): Where T b ∈T;θ 1 is a constant greater than 1; A is the set of all numbers between the starting grid number and the ending grid number, that is, A = {min{g start ,g end },min{g start ,g end }+1,...,max{g start ,g end }; According to the zero-point theorem, the number of information fragments between the starting point and the end point is slightly higher than other places.

7. The full coverage path planning method based on ant colony algorithm and unit decomposition method according to claim 1, It is characterized in that In step 5), the ant colony algorithm uses the direction information as the heuristic information of node transfer to solve the path planning problem with obstacles. The probability is shown in formula (5): in in is the probability that the lth ant chooses the next node i+1 from the current node i; is the pheromone value between two nodes i and i+1; is the distance heuristic function, which is the inverse of the Euclidean distance between two points; α is the pheromone heuristic factor, which indicates the relative importance of pheromone concentration when ants choose the next node; β is the expected heuristic factor indicating the importance of the distance between the current node and the next node; allowed(b) is the point outside the taboo table that the ant can go to, that is, the set of all nodes connected to node i and not passed by ant b, θ 2 is a constant slightly less than 1; is the introduced directional information factor, and the formula is as follows: Where γ is the node l i To the next node l i+1 The number of directions in the same direction as the end point l: γ = 0, 1, 2; θ 3 is a constant slightly greater than 1.

8. The full coverage path planning method based on ant colony algorithm and unit decomposition method according to claim 1, It is characterized in that The dynamic pheromone attenuation coefficient used by the ant colony algorithm in step 5) is: Where ρ(k+1) is the pheromone volatility coefficient of the next node; θ 5 is a constant less than 1; ρ(k) is the pheromone volatility coefficient of the current node; ρ min It is a fixed value, which is the minimum volatile residue.

Citation Information

Cited By

  • A path planning optimization method, system and computer program product

    CN119756386A

  • Path planning method and system for cooperative operation of multiple environmental sanitation vehicle regions

    CN119958584A

  • Complex mining area full-coverage operation-oriented systematized path planning method

    CN120721091A

  • A systematic path planning method for full-coverage operation in complex mine

    CN120721091B

  • Computer vision unmanned obstacle recognition method based on ant colony algorithm

    CN120726603A