Wheeled mobile robot dynamic obstacle avoidance method based on parameter transfer learning
By improving the ant colony-dynamic window method, combined with parameter transfer learning and genetic algorithms, the problems of low efficiency and high energy consumption of traditional algorithms in multi-obstacle environments are solved, and efficient and autonomous obstacle avoidance of wheeled mobile robots in dynamic environments is achieved. .
Patent Information
- Application Number
- CN202410543915.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-06
- Publication Date
- 2024-08-23
AI Technical Summary
Traditional ant colony algorithm and dynamic window method are easy to fall into local optimal solutions in wheeled mobile robot path planning, have slow convergence speed, and cannot adaptively adjust parameters to cope with dynamic changes in multi-obstacle environments, resulting in low path planning efficiency and High energy consumption.
The improved ant colony-dynamic window method (IACO-DWA) based on parameter transfer learning is adopted, through repeated path counters, improved heuristic information rules, cubic polyline optimization and Floyd path smoothing, dynamic initial heading angle, energy consumption evaluation function and dynamic The obstacle avoidance evaluation sub-function is combined with the genetic algorithm to adaptively adjust the algorithm parameters to achieve autonomous obstacle avoidance.
It effectively avoids the deadlock and slow convergence problems of the ant colony algorithm in the trap map, reduces movement energy consumption, improves the efficiency and safety of path planning, enables the algorithm parameters to be adaptively adjusted according to the environment, and is suitable for a variety of dynamic scenarios. The wheeled mobile robot below avoids obstacles.
Smart Images

Figure CN118534896A
Abstract
Description
Technical Field
[0001] The invention belongs to the field of wheeled mobile robot path planning and relates to an autonomous obstacle avoidance method for a wheeled mobile robot in a dynamic obstacle environment. Background Art
[0002] Wheeled mobile robots often need to perform path planning to cope with various obstacles and environmental restrictions in various real-world application scenarios, such as home services, industrial production, transportation, and unknown environment detection. Therefore, it is of great practical significance to develop a path planning algorithm suitable for multi-obstacle environments to meet the needs of mobile obstacle avoidance. However, traditional path planning algorithms have certain limitations when dealing with multi-obstacle environments and face many challenges. It is necessary to propose a method to overcome the problems of large computational complexity of path planning algorithms, changes in dynamic environments, and adaptability of algorithm parameters, so as to achieve efficient mobile obstacle avoidance in multi-obstacle environments.
[0003] The Chinese patent with application number CN202310931271.8 proposes a mobile robot path planning method based on an improved adaptive ant colony algorithm, which can be used for global path planning of wheeled mobile robots. However, this method is mainly aimed at static scene path planning, and cannot meet the autonomous obstacle avoidance of robots in environments with dynamic obstacles or unknown static obstacles. The Chinese patent with application number CN202311406068.5 proposes an obstacle avoidance path planning method that integrates the artificial potential field method and D*Lite. The relevant parameters of its obstacle avoidance algorithm need to be manually adjusted according to factors such as map scale and environmental complexity in order to maximize the efficiency of the algorithm. It is impossible to achieve fully autonomous dynamic environment planning and obstacle avoidance.
[0004] The paper "Ant system: optimization by a colony of cooperating agents" published in "IEEE Transactions on Systems, Man, and Cybernetics, Part B (Cybernetics)" in 1996 proposed a heuristic optimization method that simulates the operation of ant colonies and named it the ant colony algorithm, which was later used for global path planning of robots in static scenes; then, in order to solve the problems of slow convergence speed and large amount of computation of traditional ant colony algorithms in large-scale path planning problems, the paper "D-Ants: Savings Based Ants divide and conquer the vehicle routing problem" published in "Computers & Operations Research" in 2004, Vol. 31, No. 4, decomposed the ant colony planning problem into several small problems based on the Savings function, thereby improving the efficiency and effectiveness of large-scale vehicle path planning. The paper "The dynamic window approach to collision avoidance" published in IEEE Robotics & Automation Magazine, Vol. 4, No. 1, 1997, proposed a feasible speed window selection strategy based on the robot kinematic model and named it the dynamic window method, which was used for robot local obstacle avoidance in scenes with moving obstacles; in addition, the paper "A new path planning strategy integrating improved ACO and DWA algorithms for mobile robots in dynamic environments" published in Mathematical Biosciences & Engineering, Vol. 21, No. 2, 2024, integrated the ant colony algorithm and the dynamic window method for robot path planning and obstacle avoidance. However, in the above studies, the relevant parameters of the path planning algorithm (such as the pheromone volatility coefficient of the ant colony algorithm, heuristic information, and the evaluation function multiplier of the dynamic window method) are manually set, and cannot be adjusted according to factors such as map scale and environmental complexity, and cannot always meet the most efficient wheeled mobile robot mobile obstacle avoidance. Summary of the invention
[0005] The following problems exist in the conventional ant colony algorithm and dynamic window method in the path planning of mobile robots in the prior art: first, the conventional ant colony algorithm is prone to fall into the local optimal solution and it is difficult to find the global optimal path, especially in the trap map; at the same time, the convergence speed is slow in large-scale maps, and the global path finding becomes worse with the accumulation of pheromones in the later stage; and the conventional ant colony algorithm generates a long path and many invalid corners. Similarly, the conventional dynamic window method has the problem of fixed initial heading and insufficient flexibility; in addition, the algorithm may ignore the length of the path when generating the path, resulting in a long path and high energy consumption of the robot; and the algorithm has poor ability to avoid moving obstacles. In addition, the relevant parameters of the ant colony and dynamic window methods (such as the pheromone volatility coefficient of the ant colony algorithm, heuristic information, and the evaluation function multiplier of the dynamic window method) are manually set, and cannot be adjusted according to factors such as map scale and environmental complexity, and cannot meet the most efficient mobile obstacle avoidance of wheeled mobile robots at any time. In view of the above problems, the present invention provides a mobile obstacle avoidance method for wheeled mobile robots based on parameter transfer learning, which can realize its autonomous obstacle avoidance in a multi-obstacle environment.
[0006] To achieve the above object, the present invention adopts the following technical solutions:
[0007] A dynamic obstacle avoidance method for a wheeled mobile robot based on parameter transfer learning. This method can achieve autonomous obstacle avoidance in a multi-obstacle environment. It is an improved ant colony-dynamic window method (IACO-DWA) based on parameter transfer learning. This method first avoids deadlock and accelerates ant colony convergence by improving the ant colony algorithm; secondly, it evaluates energy consumption and enhances dynamic obstacle avoidance performance based on the improved dynamic window method; finally, the key parameters of the path planning algorithm are transferred and adaptively adjusted to achieve autonomous obstacle avoidance. Specifically, the following steps are included:
[0008] Step 1: Improve the ant colony algorithm and set a repeated path counter. When the number of times the ant colony selects a node during the current node iteration exceeds the set threshold ξ max When , the ant colony returns to the previous node and re-performs the probabilistic transfer pathfinding to avoid deadlock under the trap map, as follows:
[0009] Step 1.1: Input the number of ants and the set of planned path nodes (x i ,y i ), initialize parameters and data structures;
[0010] Step 1.2: Set the iteration number threshold ξ max , initialize the pheromone matrix;
[0011] Step 1.3: Set the nearest node as the initial node, initialize the visited path list tabuList as the starting node, calculate the next node transfer probability for each ant, and update the node visit history record ξ = length(tabuList);
[0012] Step 1.4: Update the current node and the visited node list, and determine whether ξ=length(tabuList) and num(x i ,y i ), if ξ>ξ max , the path is considered deadlocked, and the ant colony returns to the previous node.
[0013] Step 2: Improve the ant colony heuristic information, allow the ant colony to ignore pheromones with a certain probability, and randomly select adjacent nodes to enhance the globality of the algorithm in the later stage and accelerate convergence. It can be specifically expressed as:
[0014]
[0015] in, is the probability criterion for the kth ant (k = 1, 2, ..., m) to transfer from node i to the next node j, τ ij (t) represents the pheromone concentration of path (i, j), η ij is the heuristic information, α and β are the parameters that determine the pheromone concentration and the importance of the heuristic information, respectively. represents the set of paths that the kth ant can choose when it is at position i. The paths that are not in the set have a probability of Ψ∈[0,1] is a value randomly generated at each node, ζ is a predefined random search probability value, and J i (t) is the set of barrier-free neighboring nodes when the kth ant is at node i.
[0016] Step 3: Introduce cubic polyline optimization and Floyd path smoothing algorithm to reduce the path length and the number of invalid corners generated by the ant colony, as follows:
[0017] Step 3.1: Perform cubic polynomial optimization on the global path generated by the ant colony. Fit the points on the original path with a cubic polynomial to obtain curve fitting points. Use the straight line segments between these fitting points to approximate the curve to form a polyline path. Optimize the polyline path and adjust the fitting points to minimize the error between the fitting points and the original curve fitting path.
[0018] Step 3.2: Further perform Floyd path smoothing on the path after the three-fold line optimization, convert the path into a grid representation, and introduce the Floyd algorithm to find the shortest path distance between each pair of points, and restore the smoothed path based on the grid matrix processed by the Floyd algorithm;
[0019] Obtain the global planning path through steps 1 to 3;
[0020] Step 4: Improve the dynamic window method and introduce a dynamic initial heading angle, allowing the robot to preview the next node and adjust the heading in place before starting to move, reducing invalid motion adjustments, which can be expressed as:
[0021]
[0022] Among them, (x n1 ,y n1 ) is the coordinate of the first key node planned by the ant colony algorithm, and (x0, y0) is the coordinate of the starting node;
[0023] Step 5: Establish a kinematic model of the wheeled mobile robot, and use it to establish the robot's motion energy consumption model, and add it to the evaluation function to make the robot more inclined to choose a path with lower energy consumption, as follows:
[0024] Step 5.1: Establish the kinematic model of the wheeled mobile robot, which can be expressed as:
[0025]
[0026] Among them, x, y, θ, v, ω are the robot's horizontal coordinate, vertical coordinate, heading angle, linear velocity, and angular velocity respectively; Δt is the algorithm sampling time, S t+Δt is the robot state at the next sampling time;
[0027] Step 5.2: Count the robot's motion energy consumption and add it to the evaluation function V cost As shown in the following formula:
[0028]
[0029]
[0030]
[0031] Where, formula (4) is the motor loss, η motor is the motor efficiency, P is the motor power, S P0P1 is the robot displacement during the sampling time; Equation (5) represents the rolling friction loss, μ is the rolling friction coefficient between the tire and the ground, m robot represents the mass of the robot, g is the value of gravity acceleration; Formula (6) represents the motion energy loss, I represents the moment of inertia of the robot;
[0032] Step 5.3: Assign the energy consumption evaluation index a weight c4 and add it to the evaluation function V of the dynamic window method cost In, it can be expressed as:
[0033]
[0034] Among them, heading(v,ω), dist(v,ω), vel(v,ω), ener(v,ω) are heading evaluation, obstacle distance evaluation, speed evaluation, and energy consumption evaluation indicators, respectively. c1, c2, c3, c4 are the weight values of the evaluation function, and σ represents the standardization process of the evaluation function. The improved evaluation function can make the robot more inclined to choose a path with lower energy consumption;
[0035] Step 6: Introduce the dynamic obstacle avoidance evaluation sub-function, use the sensors carried by the wheeled mobile robot to judge the risk of moving obstacles, and avoid the distance between the moving obstacles and the robot being less than the safe distance, as follows:
[0036] Step 6.1: Use sensors to determine the risk of moving obstacles and calculate the obstacle movement distance d obs , if d obs ≠0, the obstacle is judged to be moving, and the obstacle heading θ is further determined obs , to prevent the distance between the moving obstacle and the robot from being less than the safe distance, which can be expressed as:
[0037]
[0038]
[0039] Among them, (x obs ,y obs ) are the coordinates of the moving obstacle;
[0040] Step 6.2: Determine the coordinate set of the moving obstacle within the next sampling time nΔt (n=1, 2, 3…), which can be expressed as:
[0041]
[0042] Among them, x, y, θ, v, ω are the horizontal coordinate, vertical coordinate, heading angle, linear velocity, and angular velocity of the moving obstacle respectively; Δt is the algorithm sampling time, S t+Δt is the state of the moving obstacle at the next sampling time;
[0043] Step 6.3: Define the dynamic obstacle avoidance evaluation subfunction S d , S d The smaller it is, the greater the risk of collision with the moving obstacle in the next sampling time, and the robot will adjust the path accordingly, which can be expressed as:
[0044]
[0045] Where d is the estimated distance between the robot and the obstacle within the next sampling time nΔt, d safe is the predefined minimum safety distance, defined as the limit distance d min The sum of the half of the robot's wheelbase L;
[0046] Obtain the local obstacle avoidance path through steps 4 to 6;
[0047] Step 7: Transfer learning and adaptive adjustment of the key parameters of the improved ant colony-dynamic window method to meet the robot's autonomous obstacle avoidance in different operating environments, as follows:
[0048] Step 7.1: Divide the map into several smaller maps, according to the pheromone concentration τ provided by the ant colony algorithm ij (t) Determine the starting node i and the target node j of each sub-map after segmentation, and limit the trajectory planning to the sub-map;
[0049] Step 7.2: Use genetic algorithm (GA) to adjust the parameters x = [α, β, ρ, c1, c2, c3, c4] of the target domain T Optimization is performed, where α and β are parameters that determine the pheromone concentration and the importance of heuristic information, ρ is the pheromone volatility coefficient, and c1, c2, c3, and c4 are the weight values of the dynamic window method evaluation function;
[0050] Step 7.3: Determine the fitness function f(x i ), to evaluate the function V cost (As shown in formula (7)) Minimum is the optimization goal, and the evaluation function matrix V is mapped to each element of the parameter matrix x, then the fitness function can be expressed as:
[0051]
[0052] Among them, k is the weighting parameter, n is the number of data, x' i Calculate the results for the algorithm;
[0053] Step 7.4: Select individuals, sum the fitness of all individuals in the population to sum, and obtain the relative fitness p of the individual k , which can be expressed as:
[0054]
[0055]
[0056] Generate a random number Ψ in [0,1] and use this value as the probability of the individual being selected;
[0057] Step 7.5: When crossover is performed between individuals x1 and x2, the crossover part forms new offspring y1 and y2 with a certain probability. At the same time, the probability of gene recombination is also determined by the random number Ψ. Therefore, crossover will generate two new individuals, which can be expressed as:
[0058]
[0059] Step 7.6: Individual gene g ij There are certain mutation rules, which can be expressed as:
[0060]
[0061] Among them, g ij is the jth gene of the ith individual, g min and g max are the lower and upper limits of the gene, respectively, f(G) is the iteration factor, G is the number of iterations, G max is the maximum number of iterations of the population. Formula (16) can confirm the gene mutation and perform population reproduction.
[0062] The beneficial effects of the present invention are:
[0063] (1) The present invention provides an autonomous obstacle avoidance algorithm for a wheeled mobile robot based on an improved ant colony-dynamic window method based on transfer learning. Due to the introduction of a repeated path counter, the use of an improved ant colony heuristic information rule, and the smoothing of the global path, the problems of deadlock, slow convergence, and excessively long paths in the ant colony algorithm in the trap map can be overcome; in addition, the dynamic initial heading angle is introduced into the dynamic window method, an energy consumption evaluation function is designed, and a dynamic obstacle avoidance evaluation subfunction is introduced, which can effectively reduce the motion energy consumption and ensure the robot's motion safety. At the same time, the algorithm parameters are allowed to be adaptively adjusted according to the environment, and can be used for obstacle avoidance of wheeled mobile robots in various dynamic scenarios;
[0064] (2) The present invention is an effective obstacle avoidance method that optimizes the limitations of traditional path planning algorithms and can achieve a more efficient and adaptable path planning solution. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] Figure 1 is a schematic diagram of the path after smoothing;
[0066] Figure 2 It is a kinematic model diagram of a wheeled mobile robot;
[0067] Figure 3 This is a schematic diagram of the obstacle avoidance process of a wheeled mobile robot;
[0068] Figure 4 It is a flowchart of parameter optimization based on genetic algorithm;
[0069] Figure 5 It is the overall flow chart of the algorithm of the present invention;
[0070] Figure 6 This is a schematic diagram of the improved effect of the ant colony algorithm;
[0071] Figure 7 This is a schematic diagram of the improved effect of the dynamic window method for mobile obstacle avoidance. DETAILED DESCRIPTION
[0072] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention is described in detail below with reference to the accompanying drawings and embodiments.
[0073] A dynamic obstacle avoidance method for a wheeled mobile robot based on parameter transfer learning first avoids deadlock and accelerates ant colony convergence by improving the ant colony algorithm; secondly, it evaluates energy consumption and enhances dynamic obstacle avoidance performance based on the improved dynamic window method; finally, it transfers and adaptively adjusts the key parameters of the path planning algorithm to achieve autonomous obstacle avoidance. It includes the following steps:
[0074] The present invention performs global path planning for wheeled mobile robots based on an improved ant colony algorithm, and the core pathfinding criterion of the ant colony is:
[0075]
[0076]
[0077]
[0078] Among them, in formula (17) is the probability criterion for the kth ant (k = 1, 2, ..., m) to transfer from node i to the next node j, τ ij (t) represents the pheromone concentration of path (i, j), η ij is the heuristic information, α and β are the parameters that determine the pheromone concentration and the importance of the heuristic information, respectively. represents the set of paths that the kth ant can choose when it is at position i. The paths that are not in the set have a probability of Formula (18) represents the updating strategy of ant colony pheromone, Δτ ij (t) represents the pheromone increase of path (i, j) at time t, and ρ∈[0,1] is the pheromone volatility coefficient. Formula (19) represents the heuristic information, where d ij Represents the Euclidean distance between path nodes (i, j). The values of related parameters are shown in Table 1.
[0079] Table 1 Parameter values of ant colony algorithm
[0080]
[0081] From equations (17), (18) and (19), it can be seen that the ant colony algorithm is a heuristic algorithm. Its search process has a certain degree of randomness and cannot guarantee that the optimal path can be found. In addition, in a complex environment, when there are many nodes to be processed, it takes a long time to converge to the optimal solution.
[0082] To this end, the present invention first proposes a path repetition counter. When the number of times the ant colony selects a node during the current node iteration exceeds a set threshold ξ max When , the ant colony returns to the previous node and re-performs the probabilistic transfer pathfinding to avoid deadlock under the trap map. The pseudo code is shown in Table 2.
[0083] Table 2 Pseudo code schematic diagram of repeated path counter
[0084]
[0085] In addition, in order to solve the problem that the ant colony algorithm has slow convergence speed in large-scale maps and the global pathfinding performance deteriorates with the accumulation of pheromones in the later stage, the ant colony heuristic information rule is improved to allow ants to ignore pheromones with a certain probability and directly select adjacent nodes as the next target node. The improved probability transfer criterion can be expressed as:
[0086]
[0087] Among them, Ψ∈[0,1] is a value randomly generated at each node, ζ is a predefined random search probability value, and J i (t) is the set of barrier-free neighboring nodes when the kth ant is at node i.
[0088] Furthermore, in order to improve the problem of long paths and many invalid corners generated by the ant colony algorithm, the cubic polyline optimization and Floyd path smoothing algorithm are introduced, such as Figure 1 As shown, the specific process is as follows:
[0089] 1) The cubic polyline optimization method includes path fitting, polyline conversion and polyline optimization. First, the points on the original path are fitted by a cubic polynomial to obtain curve fitting points. Then, the straight line segments between these fitting points are used to approximate the curve to form a polyline path. Finally, the polyline path is optimized and the fitting points are adjusted to minimize the error between it and the original curve fitting path.
[0090] 2) The Floyd path smoothing method consists of three steps: path gridding, Floyd algorithm, and path restoration. First, the path is converted into a grid representation, and the Floyd algorithm is introduced to find the shortest path distance between each pair of points. Finally, the smoothed path is restored based on the grid matrix processed by the Floyd algorithm.
[0091] Since the ant colony algorithm cannot meet the needs of wheeled mobile robots to avoid obstacles autonomously in dynamic environments, the present invention integrates the dynamic window method to perform local obstacle avoidance. The parameter settings of the algorithm are shown in Table 3. First, the dynamic initial heading angle is introduced to allow the robot to preview the next node and adjust the heading to θ in situ. heading Then start exercising to reduce invalid exercise adjustments, which can be expressed as:
[0092]
[0093] Among them, (x n1 ,y n1 ) is the coordinate of the first key node planned by the ant colony algorithm, and (x0, y0) is the coordinate of the starting node.
[0094] Table 3 Parameter value diagram of dynamic window method
[0095]
[0096] Furthermore, establish Figure 2 The kinematic model of the wheeled mobile robot is shown in Figure 1. Among them, x, y, θ, v, ω are the robot's horizontal coordinate, vertical coordinate, heading angle, linear velocity, and angular velocity respectively; r is the robot's wheel radius, L is the robot's wheelbase, and Δt is the algorithm sampling time. The robot state S at the next sampling time is t+Δt It can be predicted as:
[0097]
[0098] Based on the above model, the robot motion energy consumption can be statistically analyzed and added to the evaluation function V cost As shown in the following formula:
[0099]
[0100]
[0101]
[0102]
[0103] Where, formula (23) is the motor loss, η motor is the motor efficiency, P is the motor power, S P0P1 is the robot displacement during the sampling time; Equation (24) represents the rolling friction loss, μ is the rolling friction coefficient between the tire and the ground, m robotrepresents the robot mass, g is the value of gravity acceleration; formula (25) represents the motion energy loss, I represents the size of the robot's moment of inertia; formula (26) represents the improved dynamic window method evaluation function, where heading(v,ω), dist(v,ω), vel(v,ω), ener(v,ω) are heading evaluation, obstacle distance evaluation, speed evaluation, and energy consumption evaluation indicators, respectively, c1, c2, c3, c4 are the evaluation function weight values, and σ represents the evaluation function standardization process. The improved evaluation function can make the robot more inclined to choose a path with lower energy consumption.
[0104] In addition, in order to enhance the autonomous obstacle avoidance performance of the wheeled mobile robot in a dynamic environment, the present invention designs a dynamic obstacle avoidance evaluation subfunction, such as Figure 3 As shown in the figure, the sensor carried by the wheeled mobile robot is used to judge the risk of moving obstacles. obs ≠0, the obstacle is judged to be moving, and the obstacle heading θ is further determined obs , to prevent the distance between the moving obstacle and the robot from being less than the safe distance, which can be expressed as:
[0105]
[0106]
[0107] Among them, (x obs ,y obs ) is the coordinate of the moving obstacle. At this time, the coordinate set of the moving obstacle within the next sampling time nΔt (n = 1, 2, 3...) can be determined by formula (22). Define the dynamic obstacle avoidance evaluation subfunction S d for:
[0108]
[0109] Where d is the estimated distance between the robot and the obstacle within the next sampling time nΔt, d safe is the predefined minimum safety distance, defined as the limit distance d min The sum of the robot's wheelbase L and half of the robot's wheelbase L. d The smaller it is, the greater the risk of the robot colliding with a moving obstacle in the next sampling time, and the robot will adjust its path accordingly.
[0110] Furthermore, the present invention transfers and adaptively adjusts the key parameters of the improved ant colony-dynamic window method to meet the robot's autonomous obstacle avoidance in different working environments. The progressive obstacle constraint is selected for step-by-step training. The strategy is: when performing large-scale map path planning, different from directly solving the optimal trajectory, this method divides the map into several smaller maps, and calculates the pheromone concentration τ provided by the ant colony algorithm. ij(t) Determine the starting node i and the target node j of each sub-map after segmentation, limit the trajectory planning to the sub-map, and use the genetic algorithm (GA) to calculate the parameters x = [α, β, ρ, c1, c2, c3, c4] of the target area T To optimize, the process is as follows Figure 3 As shown in Table 1, the parameters are defined as follows. Figure 3 As shown. The mathematical implementation process of the algorithm can be expressed as:
[0111] 1) Population initialization: introduce default parameters and use the binary method to generate the initial population.
[0112] 2) Determine the fitness function f(x i ), to evaluate the function V cost (As shown in formula (26)) Minimum is the optimization goal, and the evaluation function matrix V is mapped to each element of the parameter matrix x, then the fitness function can be expressed as:
[0113]
[0114] Among them, k is the weighting parameter, n is the number of data, x' i Calculate the result of the algorithm.
[0115] 3) Select individuals, sum the fitness of all individuals in the population to sum, and obtain the relative fitness p of the individuals k , which can be expressed as:
[0116]
[0117]
[0118] Generate a random number Ψ in [0,1] and use this value as the probability of the individual being selected.
[0119] 4) When crossover occurs between individuals x1 and x2, the crossover parts form new offspring y1 and y2 with a certain probability. At the same time, the probability of gene recombination is also determined by the random number Ψ. Therefore, crossover will generate two new individuals, which can be expressed as:
[0120]
[0121] 5) Individual gene g ij There are certain mutation rules, which can be expressed as:
[0122]
[0123] Among them, g ij is the jth gene of the ith individual, g min and g maxare the lower and upper limits of the gene, respectively, f(G) is the iteration factor, G is the number of iterations, G max is the maximum number of iterations of the population. Formula (34) can confirm the gene mutation and perform population reproduction.
[0124] Therefore, the path planning task in the source domain is gradually complicated from simple small-scale static planning to a complete dynamic environment map, so as to adaptively adjust the algorithm parameters, heuristic functions, and path search strategies to adapt to the characteristics of the target domain. Figure 4 shown.
[0125] Assuming that the initial algorithm parameters are set as shown in Table 1 and Table 3, a grid map in a dynamic environment is established for the wheeled mobile robot to avoid obstacles autonomously. The simulation is performed in MATLAB. The results are as follows: Figure 6 , Figure 7 shown.
[0126] Compared with the traditional algorithm, the improved ant colony algorithm reduces the path length planned by 33.9%, reduces the path turning angle to 3 / 10 of the traditional algorithm, reduces the number of iterations by 1 / 3, improves the path smoothness, reduces invalid turning angles, accelerates the algorithm convergence speed, and reduces the resources consumed by the calculation.
[0127] In dynamic obstacle scenarios, such as Figure 7 As shown in Figure 2, the improved DWA algorithm chooses to slow down and wait for the obstacle to leave when meeting it, which reduces the path length by 11.2% and the expected energy consumption is also reduced; at the same time, it avoids the potential danger caused by being too close to the obstacle, such as Figure 7 As shown in (a), the traditional DWA algorithm has the problem of insufficient avoidance of moving obstacles, while the path selected by the improved algorithm avoids this problem and meets the obstacle avoidance control requirements. In summary, the mobile obstacle avoidance method of a wheeled mobile robot based on transfer learning proposed in the present invention has good feasibility and can achieve a good balance between computational efficiency and obstacle avoidance performance.
[0128] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. A dynamic obstacle avoidance method for a wheeled mobile robot based on parameter transfer learning, characterized in that: The method described firstly avoids deadlock and accelerates the convergence of ant colony by improving the ant colony algorithm; secondly, it evaluates energy consumption and enhances dynamic obstacle avoidance performance based on the improved dynamic window method; finally, it transfers and adaptively adjusts the key parameters of the path planning algorithm to achieve autonomous obstacle avoidance in a multi-obstacle environment.
2. According to claim 1, a dynamic obstacle avoidance method for a wheeled mobile robot based on parameter transfer learning is characterized in that: The following steps are involved: Step 1: Improve the ant colony algorithm and set a repeated path counter. When the number of times the ant colony selects a node during the current node iteration exceeds the set threshold ξ max When , the ant colony returns to the previous node and re-performs the probabilistic transfer pathfinding to avoid deadlock under the trap map; Step 2: Improve the ant colony heuristic information, allow the ant colony to ignore pheromones with a certain probability, and randomly select adjacent nodes to enhance the globality of the algorithm in the later stage, expressed as: in, is the probability criterion for the kth ant (k = 1, 2, ..., m) to transfer from node i to the next node j, τ ij (t) represents the pheromone concentration of path (i, j), η ij is the heuristic information, α and β are the parameters that determine the pheromone concentration and the importance of the heuristic information, respectively. represents the set of paths that the kth ant can choose when it is at position i; for paths that are not within the set, the probability Ψ∈[0,1] is a value randomly generated at each node, ζ is a predefined random search probability value, and J i (t) is the set of unobstructed neighboring nodes when the kth ant is at node i; Step 3: Introduce cubic polyline optimization and Floyd path smoothing algorithm to reduce the path length and the number of invalid corners generated by the ant colony, as follows: Step 3.1: Perform cubic polynomial optimization on the global path generated by the ant colony. Fit the points on the original path with a cubic polynomial to obtain curve fitting points. Use the straight line segments between these fitting points to approximate the curve to form a polyline path. Optimize the polyline path and adjust the fitting points to minimize the error between the fitting points and the original curve fitting path. Step 3.2: Further perform Floyd path smoothing on the path after the three-fold line optimization, convert the path into a grid representation, and introduce the Floyd algorithm to find the shortest path distance between each pair of points, and restore the smoothed path based on the grid matrix processed by the Floyd algorithm; Obtain the global planning path through steps 1 to 3; Step 4: Improve the dynamic window method and introduce a dynamic initial heading angle, allowing the robot to preview the next node and adjust the heading in place before starting to move, reducing invalid motion adjustments, expressed as: Among them, (x n1 ,y n1 ) is the coordinate of the first key node planned by the ant colony algorithm, and (x0, y0) is the coordinate of the starting node; Step 5: Establish a kinematic model of the wheeled mobile robot, and use it to establish a robot motion energy consumption model, which is added to the evaluation function to enable the robot to choose a path with low energy consumption; Step 6: Introduce the dynamic obstacle avoidance evaluation sub-function, use the sensors carried by the wheeled mobile robot to judge the risk of moving obstacles, and avoid the distance between the moving obstacle and the robot being less than the safe distance; Obtain the local obstacle avoidance path through steps 4 to 6; Step 7: Transfer learning and adaptive adjustment of the key parameters of the improved ant colony-dynamic window method to meet the robot's autonomous obstacle avoidance in different working environments.
3. A dynamic obstacle avoidance method for a wheeled mobile robot based on parameter transfer learning according to claim 2, characterized in that: The step 1 is specifically as follows: Step 1.1: Input the number of ants and the set of planned path nodes (x i ,y i ), initialize parameters and data structures; Step 1.2: Set the iteration number threshold ξ max , initialize the pheromone matrix; Step 1.3: Set the nearest node as the initial node, initialize the visited path list tabuList as the starting node, calculate the next node transfer probability for each ant, and update the node visit history record ξ = length(tabuList); Step 1.4: Update the current node and the visited node list, and determine whether ξ=length(tabuList) and num(x i ,y i ), if ξ>ξ max , the path is considered deadlocked, and the ant colony returns to the previous node.
4. The dynamic obstacle avoidance method for a wheeled mobile robot based on parameter transfer learning according to claim 2 is characterized in that: The step 5 is specifically as follows: Step 5.1: Establish the kinematic model of the wheeled mobile robot, expressed as: Among them, x, y, θ, v, ω are the robot's horizontal coordinate, vertical coordinate, heading angle, linear velocity, and angular velocity respectively; Δt is the algorithm sampling time, S t+Δt is the robot state at the next sampling time; Step 5.2: Count the robot's motion energy consumption and add it to the evaluation function V cost As shown in the following formula: Where, formula (4) is the motor loss, η motor is the motor efficiency, P is the motor power, S P0P1 is the robot displacement during the sampling time; Equation (5) represents the rolling friction loss, μ is the rolling friction coefficient between the tire and the ground, m robot represents the mass of the robot, g is the value of gravity acceleration; Formula (6) represents the motion energy loss, I represents the moment of inertia of the robot; Step 5.3: Assign the energy consumption evaluation index a weight c4 and add it to the evaluation function V of the dynamic window method cost In, it can be expressed as: Among them, heading(v,ω), dist(v,ω), vel(v,ω), ener(v,ω) are heading evaluation, obstacle distance evaluation, speed evaluation, and energy consumption evaluation indicators respectively, c1, c2, c3, c4 are the weight values of the evaluation function, and σ represents the standardization process of the evaluation function; the improved evaluation function can make the robot more inclined to choose a path with lower energy consumption.
5. The dynamic obstacle avoidance method for a wheeled mobile robot based on parameter transfer learning according to claim 2, characterized in that: The step 6 is specifically as follows: Step 6.1: Use sensors to determine the risk of moving obstacles and calculate the obstacle movement distance d obs , if d obs ≠0, the obstacle is judged to be moving, and the obstacle heading θ is further determined obs , to prevent the distance between the moving obstacle and the robot from being less than the safe distance, which can be expressed as: Among them, (x obs ,y obs ) are the coordinates of the moving obstacle; Step 6.2: Determine the coordinate set of the moving obstacle within the next sampling time nΔt (n=1, 2, 3…), which can be expressed as: Among them, x, y, θ, v, ω are the horizontal coordinate, vertical coordinate, heading angle, linear velocity, and angular velocity of the moving obstacle respectively; Δt is the algorithm sampling time, S t+Δt is the state of the moving obstacle at the next sampling time; Step 6.3: Define the dynamic obstacle avoidance evaluation subfunction S d , S d The smaller it is, the greater the risk of collision with the moving obstacle in the next sampling time, and the robot will adjust the path accordingly, which can be expressed as: Where d is the estimated distance between the robot and the obstacle within the next sampling time nΔt, d safe is the predefined minimum safety distance, defined as the limit distance d min The sum of the half of the robot's wheelbase L.
6. The dynamic obstacle avoidance method for a wheeled mobile robot based on parameter transfer learning according to claim 2, characterized in that: The step 7 is specifically as follows: Step 7.1: Divide the map into several smaller maps, according to the pheromone concentration τ provided by the ant colony algorithm ij (t) Determine the starting node i and the target node j of each sub-map after segmentation, and limit the trajectory planning to the sub-map; Step 7.2: Use genetic algorithm (GA) to adjust the parameters x = [α, β, ρ, c1, c2, c3, c4] of the target domain T Optimization is performed, where α and β are parameters that determine the pheromone concentration and the importance of heuristic information, ρ is the pheromone volatility coefficient, and c1, c2, c3, and c4 are the weight values of the dynamic window method evaluation function; Step 7.3: Determine the fitness function f(x i ), to evaluate the function V cost (As shown in formula (7)) Minimum is the optimization goal, and the evaluation function matrix V is mapped to each element of the parameter matrix x, then the fitness function can be expressed as: Among them, k is the weighting parameter, n is the number of data, x' i Calculate the results for the algorithm; Step 7.4: Select individuals, sum the fitness of all individuals in the population to sum, and obtain the relative fitness p of the individual k , which can be expressed as: Generate a random number Ψ in [0,1] and use this value as the probability of the individual being selected; Step 7.5: When crossover is performed between individuals x1 and x2, the crossover part forms new offspring y1 and y2 with a certain probability; at the same time, the probability of gene recombination is also determined by the random number Ψ; therefore, crossover will generate two new individuals, which can be expressed as: Step 7.6: Individual gene g ij There are certain mutation rules, which can be expressed as: Among them, g ij is the jth gene of the ith individual, g min and g max are the lower and upper limits of the gene, respectively, f(G) is the iteration factor, G is the number of iterations, G max is the maximum number of iterations of the population; Formula (16) can confirm the gene mutation and perform population reproduction.
Citation Information
Cited By
Parameter optimization design method and device for 2-RPR series robot
CN119217351A
Distributed multi-mobile robot path planning and obstacle avoidance method based on ACO-DWA
CN119642846A
Method and device for autonomously avoiding obstacles and bypassing obstacles based on artificial intelligence, and medium
CN120066068A
