Robot obstacle avoidance path planning method based on improved dung beetle algorithm

By using Bernoulli chaos mapping and adaptive factors in the dung beetle algorithm, combined with the Levy flight strategy, the position update formula of the dung beetle algorithm is improved, which solves the problem that the dung beetle algorithm is prone to falling into local optimality and too many path inflection points in robot path planning. problem, achieving more efficient path planning and energy saving.

CN118533174APending Publication Date: 2024-08-23BAOJI UNIV OF ARTS & SCI
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410556648.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-07
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

The dung beetle algorithm is prone to falling into local optimal solutions in robot path planning, and there are too many inflection points in the path, resulting in increased energy consumption and low search efficiency.

Method used

Bernoulli chaotic mapping is introduced to initialize the dung beetle position, and adaptive factors are added to balance global and local search capabilities. Combined with Levy flight strategy and dynamic weight coefficients, the position update formula of the dung beetle algorithm is improved to jump out of the local optimal solution.

Benefits of technology

It improves the convergence speed and solution accuracy of the dung beetle algorithm, reduces redundant turning points of the path, enhances global and local exploration capabilities, and achieves more efficient path planning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118533174A
    Figure CN118533174A
Patent Text Reader

Abstract

The invention discloses a robot obstacle avoidance path planning method based on an improved dung beetle algorithm, and the method comprises the following steps: S1, obtaining the working environment information of a robot, building a grid map, setting the position of an obstacle, and marking the positions of a starting point and a destination; s2, establishing a fitness function, and converting a path optimization problem into a problem of solving a minimum value of the fitness function; s3, retrieving free grid positions of the grid map, randomly selecting free grids, and generating an initial path; and S4, performing global path planning by using an improved dung beetle algorithm, detecting and avoiding obstacles within a specified distance, reducing redundant inflection points, and generating an optimal path. According to the robot obstacle avoidance path planning method based on the improved dung beetle algorithm, the dung beetle population is distributed in the search space, the improved strategy of the adaptive factor, the Levy flight mechanism and the dynamic weight coefficient is introduced, the global and local exploration ability is balanced, meanwhile, part of individuals can be diffused to the wider search space, and the robot obstacle avoidance path planning method based on the improved dung beetle algorithm is achieved. Therefore, a local optimal solution is prevented at the initial stage of iteration.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of two-dimensional path planning, and in particular to a robot obstacle avoidance path planning method based on an improved dung beetle algorithm. Background Art

[0002] In recent years, the robot industry has developed rapidly. As it can assist or even replace humans in completing dangerous, heavy and complex tasks, it has been widely used in industrial manufacturing, equipment maintenance and other fields. Path planning is an important performance indicator of a robot, which refers to its ability to move from the starting position to the target position without collision and safely. Good dynamic obstacle avoidance and path planning capabilities are the key to a robot's ability to complete tasks safely and efficiently in complex environments.

[0003] For a long time, many scholars have been committed to developing efficient and reliable path planning solutions. The most commonly used robot global path planning algorithms are divided into three types: graph search-based, sampling-based, and swarm intelligence-based. Among them, the graph search-based methods include: Depth First Search (DFS), Breadth-First Search (BFS), Dijkstra, A*, and D* algorithms; sampling-based path planning includes: Probabilistic Road Map (PRM) and Rapidly-exploring Random Trees (RRT); swarm intelligence algorithms such as Particle Swarm Optimization (PSO), Ant Colony Optimization (ACO) and Sparrow Search Algorithm (SSA) are simple and flexible, and have been widely used in path planning problems, achieving good results.

[0004] Although the existing global path planning algorithms all have their own characteristics, they are prone to falling into local optimality and uncertain results in practical applications, and cannot quickly and effectively formulate a collision-free path from the starting point to the target point. The dung beetle algorithm is a heuristic optimization algorithm based on the behavior of dung beetles in nature, proposed by Jianka Xue and Bo Shen at the end of 2022. The algorithm designs five different position update rules based on the five behaviors of dung beetles: rolling, dancing, reproduction, foraging, and stealing. It can quickly find the optimal solution and has certain advantages in solving complex problems. In addition, when global search and efficient convergence are required, its performance is better than many other swarm intelligence optimization algorithms. However, the effects of different algorithms vary in different environments. There are the following difficulties in solving robot path planning problems using the dung beetle algorithm:

[0005] 1. Disadvantages of the dung beetle algorithm: The dung beetle algorithm itself is prone to fall into a local optimal solution, resulting in path planning failure;

[0006] 2. Obstacle avoidance and navigation: Ability to avoid obstacles around the robot’s working environment and navigate effectively;

[0007] 3. Path turning points: There are too many turning points in the robot’s walking path, which increases the robot’s energy consumption.

[0008] Invention CN202310505652.X proposes a robot path planning method, which only uses the basic dung beetle algorithm for the robot's path planning, and does not take into account the uneven random distribution of population initialization and the defects that the foraging and stealing dung beetle position update formulas are prone to fall into local optimal solutions. Invention CN202311843773.1 proposes a robot path planning framework method that improves the dung beetle algorithm and integrates the DWA algorithm. It considers multiple objectives based on fuel economy, safety and comfort, improves the fitness function of the dung beetle algorithm, and combines it with the DWA dynamic window algorithm for robot path planning. However, in this dung beetle improved algorithm, the problem of the foraging dung beetle's easily limited search range is not solved. At the same time, in order to achieve the combination of global and local, the introduced DWA algorithm also increases the computational complexity and complexity of the robot path planning. Invention CN202311843773.1 and invention CN202311397925.X both proposed different improvement strategies for foraging and position updating of thief dung beetles, which were applied to path planning of drones and unmanned boats respectively. However, invention CN202311843773.1 did not improve the initialization of the dung beetle population. After testing, the Chebyshev chaos strategy used in invention CN202311397925.X showed that the dung beetle population was prone to gather around the upper and lower boundaries of the search space, resulting in low utilization of the entire search space by dung beetles, and the algorithm converged too slowly or failed to find the optimal solution.

[0009] Based on this, the present invention proposes a new improved dung beetle optimizer algorithm (DBO) for solving the path planning of avoiding obstacles during the robot's self-walking process. The algorithm first uses Bernoulli chaotic mapping to initialize the position of dung beetles, so that the entire dung beetle population is evenly distributed on the grid map, improving the convergence speed and solution accuracy of the algorithm; secondly, an adaptive factor is added to balance the global and local search capabilities of DBO; finally, the Levy flight strategy and dynamic weight coefficient are introduced to jump out of the local optimal solution in time. The algorithm can improve the convergence speed and optimization effect of DBO, reduce the redundant turning points of the walking path, and have both global and local exploration capabilities. Summary of the invention

[0010] To solve the above technical problems, the present invention aims to provide a robot obstacle avoidance path planning method based on an improved dung beetle algorithm which has the advantages of fast convergence, easy implementation, strong global and local search capabilities and reduced redundant turning points.

[0011] The present invention provides a robot obstacle avoidance path planning method based on an improved dung beetle algorithm, comprising the following steps:

[0012] S1: Obtain the robot's working environment information, build a grid map, set the location of obstacles, and mark the starting point and destination locations;

[0013] S2: Establish a fitness function and transform the path optimization problem into a problem of solving the minimum value of the fitness function;

[0014] S3: Retrieve the free grid positions of the grid map, randomly select the free grids, and generate the initial path;

[0015] S4: Use the improved dung beetle algorithm for global path planning, detect and avoid obstacles within the specified distance, reduce redundant turning points, and generate the optimal path.

[0016] Preferably, in S1, in order to facilitate discrete representation and navigation, a grid-based method is adopted to divide the environment into grids of the same size; in a given two-dimensional path planning problem, the environment is mapped into a square area of ​​size N×N, and the grid size N depends on the accuracy required by the path planning problem.

[0017] Preferably, the size of the robot is taken smaller than the size of the cell in the grid, so that its own rotational dynamics are not considered; the starting position is taken as the lower left corner, representing the grid position (1, 1), the destination is fixed to (N, N), and the robot environment is converted into a two-dimensional matrix. Each position (x, y) in the grid has two possible values: 0 for an idle cell and 1 for an occupied cell, for example, a free grid is 0 and an obstacle is 1.

[0018] Preferably, in S2, the distance between any adjacent grids i and j of the robot movement is expressed as formula (1):

[0019]

[0020] In the formula, x and y are grid coordinate information. If the grid is of unit length, the value of formula (1) is 1 or

[0021] Then the fitness function of the robot path planning problem is formula (2):

[0022]

[0023] Preferably, in S3, the rows where the starting point and the destination are located are removed to obtain the remaining number of map rows dim as the robot's range of change, and the positions of the free grids in the range are scanned to form a matrix ID. The initial path is generated by randomly selecting the free grids in the ID.

[0024] Preferably, in S4, the improved dung beetle algorithm specifically includes:

[0025] Set the population size pop, the number of individuals of rolling dung beetles, dancing dung beetles, breeding dung beetles, foraging dung beetles and thief dung beetles, and the maximum number of iterations Tmax;

[0026] In the population initialization stage, the Bernoulli mapping improvement method is introduced to make the initial distribution of the population more uniform; Bernoulli mapping is a type of chaotic mapping and is often used to generate chaotic sequences. It has the characteristics of nonlinearity, ergodicity, and randomness. In the field of optimization, replacing random numbers to initialize the population will affect the entire process of the algorithm, and at the same time, it can obtain a better optimization effect than random numbers; the mathematical expression of Bernoulli mapping can be expressed as formula (3):

[0027]

[0028] In the formula, z k is the current value of the kth generation chaotic sequence, k is the number of chaotic iterations, and λ is the control parameter. The initial value and control parameter of the chaotic sequence have an important influence on the generation of the chaotic sequence. It is found through experiments that better ergodicity can be obtained when λ is near 0.5. Therefore, the control parameter of the present invention is selected as 0.497, and the initial value is set to a uniform random number in the interval (0, 1).

[0029] Compared with the related art, the robot obstacle avoidance path planning method with an improved dung beetle algorithm provided by the present invention has the following beneficial effects:

[0030] 1. Global search capability: By evenly distributing the dung beetle population in the search space, introducing adaptive factors, Levy flight mechanism and improved strategies of dynamic weight coefficients, the global and local exploration capabilities are balanced, and some individuals can be spread to a wider search space to prevent falling into the local optimal solution in the early stages of iteration. It has the characteristics of strong robustness and high solution efficiency, which can help the robot find the global optimal solution in a complex environment.

[0031] 2. Local search capability: 5 types of dung beetles are refined to simulate the rolling, dancing, breeding, foraging and stealing behaviors among dung beetles, ensuring the detailed exploration of nearby areas by the population. It has the characteristics of fast convergence speed and can help the robot generate highly adaptable local paths.

[0032] 3. Reduce redundant turning points: This algorithm can reduce redundant turning points, help the robot find the shortest path, improve the quality and performance of the path, thereby reducing the energy loss of the robot's frequent turning and improving the efficiency of self-walking. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 It is a flow chart of the robot obstacle avoidance path planning method of the improved dung beetle algorithm of the present invention;

[0034] Figure 2 It is a schematic diagram of the environment map grid modeling;

[0035] Figure 3 It is the distribution graph and histogram generated by Bernoulli mapping, Chebyshev mapping, Logistic mapping and Sine mapping under 2000 iterations;

[0036] Figure 4a It is the path map planned by the IDBO algorithm;

[0037] Figure 4b It is the fitness curve of IDBO algorithm after 50 iterations;

[0038] Figure 4c It is the path map planned by the DBO algorithm;

[0039] Figure 4d It is the fitness curve of 50 iterations of DBO algorithm;

[0040] Figure 4e It is the path diagram planned by the PSO algorithm;

[0041] Figure 4f It is the fitness curve of 50 iterations of PSO algorithm;

[0042] Figure 4g It is the path graph planned by the SSA algorithm;

[0043] Figure 4h It is the fitness curve of 50 iterations of SSA algorithm. DETAILED DESCRIPTION

[0044] The following is combined with Figure 1 To Attachment Figure 4h The present invention is further described with reference to the accompanying drawings and embodiments.

[0045] The object of the present invention is to provide a robot obstacle avoidance path planning method based on an improved dung beetle algorithm, comprising the following steps:

[0046] S1: Obtain the robot's working environment information, build a grid map, set the location of obstacles, and mark the starting point and destination locations;

[0047] S2: Establish a fitness function and transform the path optimization problem into a problem of solving the minimum value of the fitness function;

[0048] S3: Retrieve the free grid positions of the grid map, randomly select the free grids, and generate the initial path;

[0049] S4: Use the improved dung beetle algorithm for global path planning, detect and avoid obstacles within the specified distance, reduce redundant turning points, and generate the optimal path.

[0050] In S1, in order to facilitate discrete representation and navigation, a grid-based method is adopted to divide the environment into grids of the same size; in a given two-dimensional path planning problem, the environment is mapped into a square area of ​​size N×N, and the grid size N depends on the accuracy required by the path planning problem.

[0051] In the grid, the size of the robot is taken smaller than the size of the cell, so that its own rotational dynamics are not considered; the starting position is taken as the lower left corner, representing the grid position (1, 1), and the destination is fixed to (N, N), such as Figure 2 As shown, in Figure 2 The robot environment is converted into a two-dimensional matrix, and each position (x, y) in the grid has two possible values: an idle cell is 0 and an occupied cell is 1, for example, a free grid is 0 and an obstacle is 1. A suitable solution is to plan a path from the starting point to the destination through all free grids.

[0052] In S2, the distance between any adjacent grids i and j of the robot movement is expressed as (1):

[0053]

[0054] In the formula, x and y are grid coordinate information. If the grid is of unit length, the value of formula (1) is 1 or

[0055] Then the fitness function of the robot path planning problem is formula (2):

[0056]

[0057] In S3, the rows where the starting point and the destination are located are removed to obtain the remaining number of map rows dim, which is used as the robot's range of change. The positions of the free grids in the range are scanned to form a matrix ID. The initial path is generated by randomly selecting the free grids in the ID.

[0058] In S4, the improved dung beetle algorithm specifically includes:

[0059] Set the population size pop, the number of individuals of rolling dung beetles, dancing dung beetles, breeding dung beetles, foraging dung beetles and thief dung beetles, and the maximum number of iterations Tmax;

[0060] The traditional dung beetle optimization algorithm uses a random number generation method to initialize the population position during the population initialization stage, which leads to uneven positions of dung beetles in the population and fails to traverse all positions in the environment, resulting in poor global optimization effect and low convergence speed.

[0061] In the population initialization stage, the Bernoulli mapping improvement method is introduced to make the initial distribution of the population more uniform; Bernoulli mapping is a type of chaotic mapping and is often used to generate chaotic sequences. It has the characteristics of nonlinearity, ergodicity, and randomness. In the field of optimization, replacing random numbers to initialize the population will affect the entire process of the algorithm, and at the same time, it can obtain a better optimization effect than random numbers; the mathematical expression of Bernoulli mapping can be expressed as formula (3):

[0062]

[0063] In the formula, z k is the current value of the kth generation chaotic sequence, k is the number of chaotic iterations, and λ is the control parameter. The initial value and control parameter of the chaotic sequence have an important influence on the generation of the chaotic sequence. It is found through experiments that better ergodicity can be obtained when λ is near 0.5. Therefore, the control parameter of the present invention is selected as 0.497, and the initial value is set to a uniform random number in the interval (0, 1).

[0064] (1) Mathematical model of the position update of the rolling dung beetle

[0065] Dung beetles are common insects in nature that feed on animal feces. The intensity of the light source affects the movement path of the dung beetle, and its position update formula in the search space is as follows (4):

[0066] x i (t+1)=x i (t)+α×k×x i (t-1)+b×Δx

[0067] Δx=|x i (t) -X ω | (4)

[0068] In the formula, t is the current iteration number, x i (t) represents the position information of the i-th dung beetle at the t-th iteration; α is the natural coefficient; k is the deflection coefficient in the range of (0, 0.2); b is a constant in the range of (0, 1); X ω represents the global worst position, and Δx is used to simulate the change of light intensity.

[0069] (2) Mathematical model of the dancing dung beetle's position update

[0070] When dung beetles encounter obstacles and cannot move, they will reposition themselves and immediately continue to roll the dung ball after obtaining a new route. The position update formula is as follows (5):

[0071] x i (t+1)=x i (t)+tan(θ)|x i (t)-x i (t-1)| (5)

[0072] where θ is the deflection angle in the range of [0, θ]; |xi(t)-xi(t-1)| is the difference between the t-th and t-1-th iterations of the i-th dung beetle, so the position update of the dung beetle is closely related to the current and historical information.

[0073] (3) Mathematical model of position update of breeding dung beetles

[0074] After the dung beetle transports the dung ball to a safe location and hides it, the female dung beetle lays eggs in the dung ball. First, a boundary area is set to limit the female dung beetle's egg-laying area. Each female dung beetle only lays one egg in each iteration. The egg position update formula is as follows (6):

[0075] B i (t+1)=X * +b1×(B i (t)-Lb * )+b2×(B i (t)-Ub * )

[0076] Lb * =max(X * ×(1-R),Lb)

[0077] Ub * =min(X * ×(1-R),Ub) (6)

[0078] Where X* represents the current local optimal position; Lb * and Ub * Respectively represent the lower and upper limits of the spawning area; R = 1-t / T max , T max represents the maximum number of iterations, Lb and Ub are the lower and upper limits of the optimization problem respectively; B i (t) is the position information of the i-th egg ball at the t-th iteration; b1 and b2 are two independent random vectors of size 1×D; D is the dimension of the optimization problem.

[0079] (4) Improved mathematical model of position updating of foraging dung beetles

[0080] Some mature dung beetles will come out from underground to look for food, and it is necessary to establish an optimal foraging area to guide the dung beetles to forage. The boundary definition of the optimal foraging area and the position update formula of the dung beetles are as follows (7):

[0081] x i (t+1)=x i (t)+C1×(x i (t)-Lb b )+C2×(x i (t)-Ub b )

[0082] Lb b =max(X b ×(1-R),Lb)

[0083] Ub b =min(X b ×(1+R),Ub) (7)

[0084] Where, X b is the global optimal position; Lb b and Ub b They represent the lower and upper limits of the optimal foraging area respectively; C1 represents a random number that obeys a normal distribution; C2 is a random vector in the range of (0, 1).

[0085] Since foraging dung beetles will update their positions according to the current optimal solutions of individuals and groups, once the solution falls into the local optimum, the entire population will easily enter a stagnant state. In order to improve this problem and balance the global and local search capabilities, adaptive factors k and c are introduced. The randomness of the k value is conducive to foraging dung beetles jumping out of the local optimal solution, thereby improving the speed and efficiency of local search. The c value is adaptive with the number of iterations, so that the algorithm can search for the best solution within a floating range, reducing the probability of foraging dung beetles falling into the local optimal solution, as shown in the following formula (8):

[0086]

[0087] In formula (8), t is the current iteration number, T max is the maximum number of iterations.

[0088] The improved foraging dung beetle position update formula is as follows (9):

[0089] x i (t+1)=exp(c×k)×cos(2π×c)×x i (t)+C1×(x i (t)-Lbb )+C2×(x i (t)-Ub b )(9)

[0090] (5) Improved mathematical model for position updating of dung beetles

[0091] Some dung beetles, called thief beetles, steal dung balls from other dung beetles. The theft occurs in the best foraging locations. b , and the position update formula of the stealing dung beetle is as follows (10):

[0092] x i (t+1)=X b +S×g×(|x i (t)-X * |+|x i (t)-X b |) (10)

[0093] Where g is a random vector of size 1×D following a normal distribution, and S is a constant.

[0094] However, this position update formula can easily cause the dung beetle to approach the global optimal path at the beginning of the iteration. The search range is insufficient, and once it falls into the local optimal solution, it cannot jump out.

[0095] To solve this problem, the Levy flight strategy was combined with the dynamic weight coefficient to improve the position update formula of the thief dung beetle.

[0096] Levy flight is a type of random walk, the number of steps is determined by the step length and the jump has no characteristic length scale, which is more conducive to the thief dung beetle to search the free grid in the map more widely. The Levy flight mechanism can be described as formula (11):

[0097]

[0098] In formula (7), s is the step size scaling factor, which can be used to control the search range; u and σ are random numbers between 0 and 1, both of which obey the normal distribution, and σ is calculated by formula (12).

[0099]

[0100] Where β is a constant value fixed to 1.5, and Γ(x) is the Gamma function.

[0101] The improved dynamic weight coefficient is shown in formula (13):

[0102]

[0103] In the early stage of iteration, the weight coefficient takes a larger value, thereby promoting global search; in the later stage of iteration, the weight coefficient will adaptively become smaller, thereby promoting local search and accelerating the convergence of the algorithm.

[0104] After introducing Levy flight and dynamic weight, the position update formula of dung beetle stealing behavior is as follows:

[0105] x i (t+1)=Levy·X b +S×g×(|x i (t)-X * |+|x i (t)-ω·X b |) (14)

[0106] According to the above five dung beetle position update strategies, the optimal obstacle avoidance distance is found. When the maximum number of iterations is reached, the optimal parameters are output, that is, the optimal solution to the problem, and the algorithm terminates.

[0107] Furthermore, in S4, the path planning related performance (shortest path length, average path, average number of iterations, average running time and number of inflection points) of the improved dung beetle algorithm is compared with the working results of the three algorithms of DBO, PSO and SSA to verify the superiority of this algorithm.

[0108] Further, the embodiments of the present application are as follows:

[0109] Step S1: Obtain robot working environment information and establish a grid map environment model;

[0110] To verify the feasibility of the improved dung beetle algorithm (IDBO) in path planning, a 15x15 grid map was established, the obstacle ratio was set to 20%, the starting point was (1, 1), and the destination was (15, 15). At the same time, the same map environment was used in the DBO, PSO and SSA algorithms. In MatlabR2020b, the relevant algorithms were run with the same parameters: the population size was 50, the maximum number of iterations was 100, and each algorithm was run independently 20 times. The robot started from the initial position marked with a circle in the lower left corner and approached the destination marked with a rectangle in the upper right corner.

[0111] Step S2: Establish a fitness function and transform the path optimization problem into a problem of solving the minimum value of the fitness function;

[0112] Construct the Path matrix, with the first column storing the ordinate of the selected free grid position and the second column storing the abscissa. Use the for loop to superimpose each path distance to form a fitness function, as shown in the following formula (15):

[0113]

[0114] Where fx is the current path length.

[0115] Step S3: Retrieve the free grid positions of the grid map, randomly select the free grids, and generate an initial path;

[0116] Step S4: Use the improved dung beetle algorithm to perform global path planning and generate the optimal path;

[0117] Use equation (3) to perform chaos initialization and generate the initial position of the population. Set the population size of dung beetles (pop), the proportion of five types of dung beetles, including rolling, dancing, breeding, foraging and stealing, the dimension of variable parameters (D), the maximum number of iterations (T max ) and lower limit (Lb) and upper limit (Ub).

[0118] Calculate the fitness of each dung beetle and sort them to find the positions of the dung beetles with the best and worst fitness.

[0119] Pop dung beetles were grouped to perform ball rolling, dancing, reproduction, foraging and stealing behaviors.

[0120] The positions of the rolling ball and dancing dung beetles are updated respectively by equations (4) and (5). The boundary areas of the breeding dung beetles for laying eggs and foraging and the thief dung beetles for exploration are dynamically set by equations (6) and (7), and the position of the breeding dung beetles is updated. The positions of the foraging and thief dung beetles are updated respectively by equations (9) and (14).

[0121] When each dung beetle completes its behavior, the fitness is updated.

[0122] Update individual optimal values ​​and global optimal values, and then generate a path.

[0123] By comparing the performance of four optimization algorithms, IDBO, DBO, PSO and SSA, in path planning in the same grid map environment, the superiority of the proposed algorithm is verified.

[0124] The map environment is also used in the DBO, SSA and PSO algorithms respectively. In the following experiments, the relevant algorithms are run with the same parameters: the population size is 50, the maximum number of iterations is 50, and each algorithm is run 20 times independently. The robot starts from the initial position marked by the circle in the lower left corner and approaches the destination marked by the rectangle in the upper right corner. The experiment is implemented in MatlabR2020b.

[0125] Optimal path: BestScore = min(fitness)(16)

[0126] Average Path:

[0127] Average number of iterations:

[0128] Average Run Time:

[0129] Average number of inflection points:

[0130] The performance comparison of the improved algorithm with other algorithms includes: comparing the shortest path length, average path, average number of iterations, average running time and average number of inflection points of the improved DBO algorithm and other algorithms under the same environment. Figure 4a - Figure 4h And as shown in Table 1.

[0131] Table 1 Comparison of experimental results of 15x 15 map

[0132]

[0133] As can be seen from the table above, the improved dung beetle algorithm is compared with the optimal path values ​​of the three algorithms DBO, PSO, and SSA. The path is 7.8% shorter than that of other algorithms. In terms of the number of turns, the improved algorithm reduces the redundant turning points in path planning, the path is flatter, and the robot's ability loss is reduced. The above five parameters are evaluated comprehensively, and all have a slight advantage. Based on the above results, it can be clearly seen that the improved dung beetle algorithm can provide the best path and is superior to other optimization algorithms.

[0134] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A robot obstacle avoidance path planning method based on an improved dung beetle algorithm, characterized in that: The steps include: S1: Obtain the robot's working environment information, build a grid map, set the location of obstacles, and mark the starting point and destination locations; S2: Establish a fitness function and transform the path optimization problem into a problem of solving the minimum value of the fitness function; S3: Retrieve the free grid positions of the grid map, randomly select the free grids, and generate the initial path; S4: Use the improved dung beetle algorithm for global path planning, detect and avoid obstacles within the specified distance, reduce redundant turning points, and generate the optimal path.

2. The robot obstacle avoidance path planning method based on the improved dung beetle algorithm according to claim 1 is characterized in that: In S1, in order to facilitate discrete representation and navigation, a grid-based method is adopted to divide the environment into grids of the same size; in a given two-dimensional path planning problem, the environment is mapped into a square area of ​​size N×N, and the grid size N depends on the accuracy required by the path planning problem.

3. The robot obstacle avoidance path planning method based on the improved dung beetle algorithm according to claim 2 is characterized in that: The size of the robot is taken smaller than the size of the cell in the grid, so as not to consider its own rotational dynamics; the starting position is taken as the lower left corner, representing the grid position (1, 1), the destination is fixed to (N, N), and the robot environment is converted into a two-dimensional matrix. Each position (x, y) in the grid has two possible values: 0 for an idle cell and 1 for an occupied cell, for example, a free grid is 0 and an obstacle is 1.

4. The robot obstacle avoidance path planning method based on the improved dung beetle algorithm according to claim 3 is characterized in that: In S2, the distance between any adjacent grids i and j of the robot movement is expressed as (1): In the formula, x and y are grid coordinate information. If the grid is of unit length, the value of formula (1) is 1 or Then the fitness function of the robot path planning problem is formula (2):

5. The robot obstacle avoidance path planning method based on the improved dung beetle algorithm according to claim 4 is characterized in that: In S3, the rows where the starting point and the destination are located are removed to obtain the remaining number of map rows dim, which is used as the robot's range of change. The positions of the free grids in the range are scanned to form a matrix ID. The initial path is generated by randomly selecting the free grids in the ID.

6. The robot obstacle avoidance path planning method based on the improved dung beetle algorithm according to claim 5, characterized in that: In S4, the improved dung beetle algorithm specifically includes: Set the population size pop, the number of individuals of rolling dung beetles, dancing dung beetles, breeding dung beetles, foraging dung beetles and thief dung beetles, and the maximum number of iterations Tmax; In the population initialization stage, the Bernoulli mapping improvement method is introduced to make the initial distribution of the population more uniform; Bernoulli mapping is a type of chaotic mapping and is often used to generate chaotic sequences. It has the characteristics of nonlinearity, ergodicity, and randomness. In the field of optimization, replacing random numbers to initialize the population will affect the entire process of the algorithm, and at the same time, it can obtain a better optimization effect than random numbers; the mathematical expression of Bernoulli mapping can be expressed as formula (3): In the formula, z k is the current value of the kth generation chaotic sequence, k is the number of chaotic iterations, and λ is the control parameter. The initial value and control parameter of the chaotic sequence have an important influence on the generation of the chaotic sequence. It is found through experiments that better ergodicity can be obtained when λ is near 0.

5. Therefore, the control parameter of the present invention is selected as 0.497, and the initial value is set to a uniform random number in the interval (0, 1).

Citation Information

Cited By

  • Distance map generation method and distance map-based de-trapping method

    CN118730122A

  • Unmanned aerial vehicle path planning method in mountain environment

    CN119803466A