Obstacle avoidance method for mobile robots based on improved dynamic window method

By introducing relative angle and distance evaluation factors into the dynamic window method, and using fuzzy reinforcement learning to adjust weights, the path planning of the mobile robot is optimized, solving the problems of unstable obstacle avoidance and long path planning time in the existing technology, and improving Improve the robot's obstacle avoidance ability and flexibility.

CN115586774BActive Publication Date: 2024-10-18NANJING UNIV OF SCI & TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211324982.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-27
Publication Date
2024-10-18
Estimated Expiration
2042-10-27

AI Technical Summary

Technical Problem

The existing dynamic window method is difficult to avoid in areas with dense obstacles, takes a long time to plan paths, and lacks flexibility, resulting in unstable obstacle avoidance capabilities of mobile robots in complex environments.

Method used

By modifying the evaluation function of the dynamic window method, introducing the relative angle and distance evaluation factors between the target position and the obstacle, and combining the fuzzy reinforcement learning system to adjust the weight coefficient, the path selection is optimized to ensure that the robot can reach the target safely and quickly.

Benefits of technology

It can effectively avoid obstacle-dense areas, shorten path planning time, and improve the obstacle avoidance ability and flexibility of mobile robots in complex environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115586774B_ABST
    Figure CN115586774B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of local path planning for mobile robots, and in particular to a method for avoiding obstacles for mobile robots based on an improved dynamic window method, comprising first obtaining the current state, motion parameters, target position, and distribution of obstacles of the mobile robot, then searching for the linear velocity and angular velocity that the mobile robot can achieve under the constraints of the speed space, modifying the evaluation function of the dynamic window method, then selecting the optimal path based on fuzzy reinforcement learning, and finally selecting the speed instruction corresponding to the optimal path to drive the mobile robot to avoid obstacles. Based on the improved dynamic window method, the present invention improves the stability and smoothness of the motion trajectory of the mobile robot, while improving the obstacle avoidance ability of the mobile robot in a complex environment, making the mobile robot more flexible.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of local path planning of mobile robots, and in particular to an obstacle avoidance method for mobile robots based on an improved dynamic window method. Background Art

[0002] With the development of sensor and computing technology, the related technologies of mobile robots are becoming more and more mature, replacing humans in more and more jobs. In particular, wheeled mobile robots have been widely used in manufacturing, agriculture, national defense and other fields to perform repetitive work or work that is difficult for human workers to complete in harsh environments. However, in this complex environment where humans and robots coexist, the environment in which robots perform tasks is partially or completely unknown, and they may collide with obstacles during the execution of tasks. Therefore, the obstacle avoidance algorithm of mobile robots deserves in-depth study.

[0003] The dynamic window method is a typical obstacle avoidance algorithm. This algorithm fully considers the physical constraints of the robot, environmental constraints and other factors. It is an autonomous obstacle avoidance algorithm that directly searches for the optimal speed of the robot in the speed space, combines the sampled multiple speeds with the motion constraints of speed and acceleration, and then evaluates the multiple simulated trajectories through the evaluation function, and selects the optimal speed corresponding to the trajectory as the drive of the robot.

[0004] However, the current dynamic window method cannot avoid areas with dense obstacles and is prone to falling into local extremes. At the same time, the evaluation function only considers how to avoid obstacles, but does not reflect the importance of the target position, so the path planning time is long. In addition, the weights of the evaluation factors in the evaluation function are fixed, which makes the robot lack the flexibility to avoid obstacles when facing different environments. In complex environments, the robot will have unreasonable obstacle avoidance path selection or even be unable to avoid obstacles. Therefore, it is still of great significance to continue to study the obstacle avoidance algorithm based on the dynamic window method. Summary of the invention

[0005] The invention discloses a mobile robot obstacle avoidance method based on an improved dynamic window method, which is used to solve the problems of unreasonable planning path and unstable obstacle avoidance capability in complex environment in the current technology.

[0006] In order to achieve the purpose of the present invention, the technical solution adopted is: a mobile robot obstacle avoidance method based on an improved dynamic window method, comprising the following steps:

[0007] S1, obtain the current state, motion parameters, target position and obstacle distribution of the mobile robot;

[0008] S2. Sample the speed of the mobile robot under the speed space constraint to determine the reachable speed space, simulate the motion trajectory of the mobile robot at time T in the speed space according to the motion equation of the mobile robot, and generate the trajectory space of the mobile robot;

[0009] S3. Modify the evaluation function of the dynamic window method to make the mobile robot avoid areas with dense obstacles and avoid emergency stops. The path selection is more reasonable and the running time of the mobile robot to the target point is shortened.

[0010] S4, constructing a fuzzy reinforcement system, inputting the distance between the mobile robot and the target position and the distance between the mobile robot and the nearest obstacle into the fuzzy reinforcement system, and determining the weight coefficient of the evaluation function in S3 according to the fuzzy reinforcement system, so as to select the optimal path;

[0011] S5. The linear velocity and angular velocity corresponding to the optimal trajectory determined by the evaluation function of the dynamic window method are used as the velocity instruction of the mobile robot at the next moment to control the moving trajectory of the mobile robot and realize the obstacle avoidance function.

[0012] As an optimization solution of the present invention, in step S1, the current state, motion parameters, target position and obstacle distribution of the mobile robot are obtained, including the following:

[0013] The current state of the mobile robot includes the current position, direction angle, linear velocity and angular velocity of the mobile robot; the motion parameters include the maximum linear velocity, maximum angular velocity, acceleration and angular acceleration of the mobile robot.

[0014] As an optimization solution of the present invention, in step S2, it includes the following:

[0015] Based on the performance of the mobile robot and the constraints of the environment, the speed space constraints include the maximum and minimum speed constraints of the mobile robot, the motor dynamics performance constraints, and the safe allowable distance constraints of the mobile robot. Under the speed space constraints, the linear speed and angular speed range of the mobile robot are limited, forming the speed space accessible to the mobile robot.

[0016] According to the position and direction angle of the mobile robot at time t, the position and direction angle of the mobile robot at time t+1 can be obtained by using the motion equation of the mobile robot, and forward simulation to time T can be performed. In the reachable speed space of the mobile robot, different linear speed and angular speed values ​​can obtain multiple motion trajectories, thereby generating the trajectory space of the mobile robot.

[0017] As an optimization solution of the present invention, in step S3, in the evaluation function of the dynamic window method, an evaluation factor of the relative angle between the target position and the mobile robot and the nearest obstacle is introduced to make the obstacle avoidance path of the mobile robot more reasonable. At the same time, the target relative distance evaluation factor is added to shorten the time for the mobile robot to reach the target point on the basis of ensuring the rationality of the path. The modified evaluation function is:

[0018]

[0019] Among them, heading(v(t),ω(t)) is the target azimuth evaluation factor, expressed as:

[0020] heading(v(t),ω(t))=180°-θ (2)

[0021] In formula (2), θ represents the angle between the target point and the mobile robot at the end of the predicted trajectory. The target heading angle evaluation factor is used to evaluate the angle difference between the driving direction of the mobile robot at the end of the predicted trajectory and the target position, so that the mobile robot moves toward the target position. α is the weight coefficient of heading(v(t),ω(t)).

[0022] dist(v(t), ω(t)) is the evaluation factor of the shortest distance between the mobile robot and the obstacle on the trajectory corresponding to (v(t), ω(t)), which is used to evaluate the minimum distance between the mobile robot and the obstacle at the end of the predicted trajectory, so that the mobile robot can stay away from the obstacle as much as possible. β is the weight coefficient of dist(v(t), ω(t));

[0023] velocity(v(t),ω(t)) is the velocity evaluation factor, expressed as:

[0024] velocity(v(t),ω(t))=│v(t)│ (3)

[0025] The speed evaluation factor is used to evaluate the speed of the mobile robot so that the robot can move quickly. γ is the weight coefficient of velocity(v(t),ω(t));

[0026] relativeAngle(v(t),ω(t)) is the relative angle evaluation factor between the target position and the mobile robot and the nearest obstacle, expressed as:

[0027] relativeAngle(v(t),ω(t))=│obstacleζ-goalθ│ (4)

[0028] In formula (4), obstacleζ represents the minimum angle between the mobile robot and the obstacle at the end of the predicted trajectory, goalθ represents the angle between the target point and the mobile robot at the end of the predicted trajectory, and the relative angle evaluation factor is used to evaluate the relative angle between the target position and the mobile robot and the nearest obstacle, so that the mobile robot can avoid the area with dense obstacles. η is the weight coefficient of relativeAngle(v(t),ω(t));

[0029] Goaldist(v(t),ω(t)) is the relative distance function between the mobile robot and the target position at the end of the predicted trajectory, expressed as:

[0030]

[0031] In formula (5), d G is the shortest distance between the mobile robot and the target point at the end of the predicted trajectory, d Gmax The set d G Goaldist(v(t), ω(t)) is used to evaluate the distance between the mobile robot and the obstacle at the end of the predicted trajectory, so that the mobile robot can reach the target position in the shortest time. μ is the weight coefficient of Goaldist(v(t), ω(t)).

[0032] As an optimization solution of the present invention, in step S4, a fuzzy enhancement system is constructed, including the following:

[0033] The fuzzy reinforcement system combines the fuzzy reasoning system with the Q learning algorithm. After the current state vector s is input into the system, an action A is selected for execution through the fuzzy reasoning system. Each action has a corresponding weight Q. The Q value table is continuously updated by the Q learning algorithm until it converges. Then, the fuzzification is solved according to the centroid method to obtain the output action vector a of the system.

[0034] As an optimization solution of the present invention, in step S4, it includes the following:

[0035] The distance Gd between the mobile robot and the target position and the distance Od between the mobile robot and the nearest obstacle are input into the fuzzy reinforcement system, that is, the input state vector s = {Gd, Od}; the two variables are fuzzified and divided into three fuzzy sets S, M, and L, and then the Q value table is updated according to reinforcement learning, and the fuzzification is solved by the centroid method to obtain the output action vector a = {α, β, γ, η, μ} of the system, where α, β, γ, η, μ are weight coefficients of the dynamic window method evaluation function;

[0036] The output action vector of the fuzzy reinforcement system is output to the environment, and the evaluation function is used to score each simulated trajectory in the trajectory space of the mobile robot. The trajectory with the highest score is the optimal obstacle avoidance trajectory.

[0037] For the behavior close to the goal in the fuzzy reinforcement system, the designed reward function is as follows:

[0038]

[0039] Among them, R t is the reward obtained by the mobile robot at time t, τ is the set safety threshold, when Od<τ, the reward value is set to -500, indicating that the distance between the mobile robot and the obstacle is too close and there is a possibility of collision with the obstacle; Gd1 is the distance between the mobile robot and the target position at the current moment, Gd0 is the distance between the mobile robot and the target position at the previous moment, when Gd1>Gd0, the reward value is set to -200, indicating that the mobile robot does not move toward the target position; when Od>τ and Gd1≤Gd0, the reward value is set to +100, so that the mobile robot can maintain a safe and appropriate speed to move toward the target; when the mobile robot reaches the target, the reward value is set to +200, so that the mobile robot can reach the target position as quickly as possible during the continuous learning process.

[0040] As an optimization solution of the present invention, in step S5, it includes the following:

[0041] A. First, assign a random value in the interval [0,1] to the weight Q, and repeatedly learn through reinforcement learning until it converges;

[0042] B. Then, the coefficients of the evaluation function are randomly adjusted according to the Q-value table obtained by reinforcement learning to obtain the optimal obstacle avoidance trajectory of the mobile robot;

[0043] C. Use the linear velocity and angular velocity corresponding to the optimal trajectory as the speed command of the mobile robot at the next moment to control the motion trajectory of the mobile robot, thereby realizing the obstacle avoidance function.

[0044] The present invention has positive effects: 1) the evaluation function of the present invention introduces the evaluation factor of the relative angle between the target position and the mobile robot and the nearest obstacle, so that the mobile robot can avoid the obstacle-dense area and avoid sudden stops, and the obstacle avoidance path is more reasonable;

[0045] 2) The relative distance evaluation factor between the mobile robot and the target position is introduced into the evaluation function of the present invention, which shortens the time for the mobile robot to reach the target point on the basis of ensuring the rationality of the path;

[0046] 3) The present invention uses fuzzy reinforcement system reinforcement learning to adjust the weights of the evaluation function, realizes adaptive adjustment of parameters, makes the mobile robot more flexible in obstacle avoidance, and can reach the target position safely and quickly in a complex obstacle environment;

[0047] 4) The present invention is based on an improved dynamic window method, which improves the stability and smoothness of the motion trajectory of the mobile robot while improving the obstacle avoidance capability of the mobile robot in complex environments, making the mobile robot more flexible. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0049] Figure 1 It is the overall flow chart of the present invention;

[0050] Figure 2 This is a schematic diagram of the relative angle evaluation factor introduced in the present invention;

[0051] Figure 3 for Figure 2 Schematic diagram of obstacle avoidance effect;

[0052] Figure 4 This is the framework diagram of the dynamic window method system based on fuzzy reinforcement system reinforcement learning;

[0053] Figure 5 The membership function diagram of the input variables Gd and Od of the fuzzy reinforcement system;

[0054] Figure 6 The overall flow chart of combining fuzzy reasoning system with Q-learning algorithm for fuzzy reinforcement system;

[0055] Figure 7 This is an obstacle avoidance effect diagram without using the method of the present invention;

[0056] Figure 8 The figure is an obstacle avoidance effect diagram after using the method of the present invention. DETAILED DESCRIPTION

[0057] like Figure 1 As shown, the present invention discloses a mobile robot obstacle avoidance method based on an improved dynamic window method, comprising the following steps:

[0058] S1, obtain the current state, motion parameters, target position and obstacle distribution of the mobile robot;

[0059] S2. Sample the speed of the mobile robot under the speed space constraint to determine the reachable speed space, simulate the motion trajectory of the mobile robot at time T in the speed space according to the motion equation of the mobile robot, and generate the trajectory space of the mobile robot;

[0060] S3. Modify the evaluation function of the dynamic window method to make the mobile robot avoid areas with dense obstacles and avoid emergency stops. The path selection is more reasonable and the running time of the mobile robot to the target point is shortened.

[0061] S4, constructing a fuzzy reinforcement system, inputting the distance between the mobile robot and the target position and the distance between the mobile robot and the nearest obstacle into the fuzzy reinforcement system, and determining the weight coefficient of the evaluation function in S3 according to the fuzzy reinforcement system, so as to select the optimal path;

[0062] S5. The linear velocity and angular velocity corresponding to the optimal trajectory determined by the evaluation function of the dynamic window method are used as the velocity instruction of the mobile robot at the next moment to control the moving trajectory of the mobile robot and realize the obstacle avoidance function.

[0063] As a specific implementation, in step S1, the current state, motion parameters, target position and obstacle distribution of the mobile robot are obtained, including the following:

[0064] The current state of the mobile robot includes the current position, direction angle, linear velocity and angular velocity of the mobile robot; the motion parameters include the maximum linear velocity, maximum angular velocity, acceleration and angular acceleration of the mobile robot.

[0065] As a specific implementation, in step S2, it includes the following:

[0066] Based on the performance of the mobile robot and the constraints of the environment, the speed space constraints include the maximum and minimum speed constraints of the mobile robot, the motor dynamics performance constraints, and the safe allowable distance constraints of the mobile robot. Under the speed space constraints, the linear speed and angular speed range of the mobile robot are limited, forming the speed space accessible to the mobile robot.

[0067] According to the position and direction angle of the mobile robot at time t, the position and direction angle of the mobile robot at time t+1 can be obtained by using the motion equation of the mobile robot, and forward simulation to time T can be performed. In the reachable speed space of the mobile robot, different linear speed and angular speed values ​​can obtain multiple motion trajectories, thereby generating the trajectory space of the mobile robot.

[0068] As a specific implementation, in step S3, in the evaluation function of the dynamic window method, an evaluation factor of the relative angle between the target position and the mobile robot and the nearest obstacle is introduced to make the obstacle avoidance path of the mobile robot more reasonable. At the same time, the target relative distance evaluation factor is added to shorten the time for the mobile robot to reach the target point on the basis of ensuring the rationality of the path. The modified evaluation function is:

[0069]

[0070] Among them, heading(v(t),ω(t)) is the target azimuth evaluation factor, expressed as:

[0071] heading(v(t),ω(t))=180°-θ (2)

[0072] In formula (2), θ represents the angle between the target point and the mobile robot at the end of the predicted trajectory. The target heading angle evaluation factor is used to evaluate the angle difference between the driving direction of the mobile robot at the end of the predicted trajectory and the target position, so that the mobile robot moves toward the target position. α is the weight coefficient of heading(v(t),ω(t)).

[0073] dist(v(t), ω(t)) is the evaluation factor of the shortest distance between the mobile robot and the obstacle on the trajectory corresponding to (v(t), ω(t)), which is used to evaluate the minimum distance between the mobile robot and the obstacle at the end of the predicted trajectory, so that the mobile robot can stay away from the obstacle as much as possible. β is the weight coefficient of dist(v(t), ω(t));

[0074] velocity(v(t),ω(t)) is the velocity evaluation factor, expressed as:

[0075] velocity(v(t),ω(t))=│v(t)│ (3)

[0076] The speed evaluation factor is used to evaluate the speed of the mobile robot so that the robot can move quickly. γ is the weight coefficient of velocity(v(t),ω(t));

[0077] relativeAngle(v(t),ω(t)) is the relative angle evaluation factor between the target position and the mobile robot and the nearest obstacle, expressed as:

[0078] relativeAngle(v(t),ω(t))=│obstacleζ-goalθ│ (4)

[0079] In formula (4), obstacleζ represents the minimum angle between the mobile robot and the obstacle at the end of the predicted trajectory, goalθ represents the angle between the target point and the mobile robot at the end of the predicted trajectory, and the relative angle evaluation factor is used to evaluate the relative angle between the target position and the mobile robot and the nearest obstacle, so that the mobile robot can avoid the area with dense obstacles. η is the weight coefficient of relativeAngle(v(t),ω(t));

[0080] Goaldist(v(t),ω(t)) is the relative distance function between the mobile robot and the target position at the end of the predicted trajectory, expressed as:

[0081]

[0082] In formula (5), d Gis the shortest distance between the mobile robot and the target point at the end of the predicted trajectory, d Gmax The set d G Goaldist(v(t), ω(t)) is used to evaluate the distance between the mobile robot and the obstacle at the end of the predicted trajectory, so that the mobile robot can reach the target position in the shortest time. μ is the weight coefficient of Goaldist(v(t), ω(t)).

[0083] As a specific implementation, in step S4, constructing a fuzzy enhancement system includes the following:

[0084] The fuzzy reinforcement system combines the fuzzy reasoning system with the Q learning algorithm. After the current state vector s is input into the system, an action A is selected for execution through the fuzzy reasoning system. Each action has a corresponding weight Q. The Q value table is continuously updated by the Q learning algorithm until it converges. Then, the fuzzification is solved according to the centroid method to obtain the output action vector a of the system.

[0085] As a specific implementation, in step S4, it includes the following:

[0086] The distance Gd between the mobile robot and the target position and the distance Od between the mobile robot and the nearest obstacle are input into the fuzzy reinforcement system, that is, the input state vector s = {Gd, Od}; the two variables are fuzzified and divided into three fuzzy sets S, M, and L, and then the Q value table is updated according to reinforcement learning, and the fuzzification is solved by the centroid method to obtain the output action vector a = {α, β, γ, η, μ} of the system, where α, β, γ, η, μ are weight coefficients of the dynamic window method evaluation function;

[0087] The output action vector of the fuzzy reinforcement system is output to the environment, and the evaluation function is used to score each simulated trajectory in the trajectory space of the mobile robot. The trajectory with the highest score is the optimal obstacle avoidance trajectory.

[0088] For the behavior close to the goal in the fuzzy reinforcement system, the designed reward function is as follows:

[0089]

[0090] Among them, R tis the reward obtained by the mobile robot at time t, τ is the set safety threshold, when Od<τ, the reward value is set to -500, indicating that the distance between the mobile robot and the obstacle is too close and there is a possibility of collision with the obstacle; Gd1 is the distance between the mobile robot and the target position at the current moment, Gd0 is the distance between the mobile robot and the target position at the previous moment, when Gd1>Gd0, the reward value is set to -200, indicating that the mobile robot does not move toward the target position; when Od>τ and Gd1≤Gd0, the reward value is set to +100, so that the mobile robot can maintain a safe and appropriate speed to move toward the target; when the mobile robot reaches the target, the reward value is set to +200, so that the mobile robot can reach the target position as quickly as possible during the continuous learning process.

[0091] As a specific implementation, in step S5, it includes the following:

[0092] First, assign a random value in the interval [0,1] to the weight Q, and repeatedly learn through reinforcement learning until it converges;

[0093] Then, the coefficients of the evaluation function are randomly adjusted according to the Q-value table obtained by reinforcement learning to obtain the optimal obstacle avoidance trajectory of the mobile robot;

[0094] The linear velocity and angular velocity corresponding to the optimal trajectory are used as the speed command of the mobile robot at the next moment to control the motion trajectory of the mobile robot, thereby realizing the obstacle avoidance function.

[0095] According to the mobile robot obstacle avoidance method based on the improved dynamic window method of this embodiment, Figure 1 The design process shown is used for experimentation.

[0096] The relative distance evaluation factor described in formula (5) is introduced into the evaluation function of the dynamic window method, and the following is introduced: Figure 2 The relative angle evaluation factor shown in the figure can be verified by simulation as follows: Figure 3 As shown in the running result diagram, it can be seen that the mobile robot can move around the densely populated area of ​​obstacles. Combined with fuzzy reinforcement learning to adjust the evaluation function coefficient of the dynamic window method in real time, the overall system framework is as follows: Figure 4 As shown in the figure, when the mobile robot obtains the environmental information at time t, the current state S t , reward function value r t Input into the fuzzy reinforcement system, first the state of the mobile robot at time t, that is, the distance Gd between the mobile robot and the target position, and the distance Od between the mobile robot and the nearest obstacle, are fuzzified and divided into three fuzzy sets S, M, and L. Their domains and membership functions are as follows: Figure 5 As shown (the ordinate is the degree of membership), the Q value is then updated according to reinforcement learning, and the action vector a of the system is obtained by defuzzification according to the centroid method. t, that is, the weight of the dynamic window method evaluation function, and then output the action vector to the environment, use the dynamic window method to select the next moment path, and obtain the next moment state S t+1 ; At the same time, the action vector is input into the reward function to calculate the reward value r at the next moment t+1 Then the obtained state vector and reward value are input into the fuzzy reinforcement system, and the above steps are iterated repeatedly. The overall process of combining the fuzzy reasoning system with the Q learning algorithm is as follows: Figure 6 As shown in the figure, the algorithm parameters are initialized first, the initial state of the mobile robot is randomly selected, and the action of the mobile robot is obtained by combining fuzzy rules and Q value table, where the Q value table is a table consisting of all possible values ​​of the total weight Q corresponding to the output action vector. Based on the action, the state of the mobile robot at the next moment is obtained, and the single-step reward value R is calculated. The Q value table is updated according to the reward value and the state at the next moment. The process is continuously iterated. When the Q value table converges, the algorithm ends. The final obstacle avoidance result based on this algorithm is shown in Figure 8 shown.

[0097] In order to verify the effectiveness of adding evaluation factors to the evaluation function, comparative experiments were conducted on the original dynamic window method, the dynamic window method with only the relative angle increased, the dynamic window method with only the relative distance of the target increased, and the dynamic window method with both increased factors. The results are shown in Table 1:

[0098] Table 1 Comparative experiment of adding evaluation factors

[0099] algorithm Track length / m <![CDATA[Average speed / (m·s -1 )]]> Running time / s Original dynamic window method 28.97 0.282 84.89 Dynamic window method with increasing relative angle 27.89 0.329 77.54 Dynamic Window Method to Increase the Relative Distance of Targets 25.41 0.416 65.03 Dynamic Window Method with Both Added 25.77 0.409 64.71

[0100] In order to verify the effectiveness of combining the fuzzy reasoning system with the Q learning algorithm in combination with the fuzzy reinforcement system, two sets of fixed weights were artificially set on the basis of the dynamic window method with the added evaluation factor, and a comparative experiment was conducted between the two methods and the dynamic window method. The simulation results are shown in Figure 2. Figure 7 , Figure 8 The specific parameters are shown in Table 2:

[0101] Table 2 Comparative experiment

[0102]

[0103]

[0104] The simulation comparison experimental results show that the method of the present invention shortens the moving path of the mobile robot and reduces the running time of the algorithm. At the same time, it can enable the mobile robot to choose a safer and more reasonable path according to the current environment, thereby improving the obstacle avoidance performance in complex environments.

[0105] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A mobile robot obstacle avoidance method based on an improved dynamic window method, characterized in that: The steps include: S1, obtain the current state, motion parameters, target position and obstacle distribution of the mobile robot; S2, sampling the speed of the mobile robot under the speed space constraint, determining the speed space that the mobile robot can reach, simulating the motion trajectory of the mobile robot at time T in the speed space according to the motion equation of the mobile robot, and generating the trajectory space of the mobile robot; S3. Modify the evaluation function of the dynamic window method to make the mobile robot avoid areas with dense obstacles and avoid emergency stops. The path selection is more reasonable and the running time of the mobile robot to the target point is shortened. S4, constructing a fuzzy reinforcement system, inputting the distance between the mobile robot and the target position and the distance between the mobile robot and the nearest obstacle into the fuzzy reinforcement system, and determining the weight coefficient of the evaluation function in S3 according to the fuzzy reinforcement system, so as to select the optimal path; S5. The linear velocity and angular velocity corresponding to the optimal trajectory determined by the evaluation function of the dynamic window method are used as the velocity instruction of the mobile robot at the next moment to control the moving trajectory of the mobile robot and realize the obstacle avoidance function; In step S3, in the evaluation function of the dynamic window method, an evaluation factor of the relative angle between the target position and the mobile robot and the nearest obstacle is introduced to make the obstacle avoidance path of the mobile robot more reasonable. At the same time, an evaluation factor of the target relative distance is added to shorten the time for the mobile robot to reach the target point while ensuring the path is reasonable. The modified evaluation function is: Among them, heading(v(t),ω(t)) is the target azimuth evaluation factor, expressed as: heading(v(t),ω(t)) = 180°-θ (2) In formula (2), θ represents the angle between the target point and the mobile robot at the end of the predicted trajectory. The target heading angle evaluation factor is used to evaluate the angle difference between the driving direction of the mobile robot at the end of the predicted trajectory and the target position, so that the mobile robot moves toward the target position. α is the weight coefficient of heading(v(t),ω(t)). dist(v(t), ω(t)) is the evaluation factor of the shortest distance between the mobile robot and the obstacle on the trajectory corresponding to (v(t), ω(t)), which is used to evaluate the minimum distance between the mobile robot and the obstacle at the end of the predicted trajectory, so that the mobile robot can stay away from the obstacle as much as possible. β is the weight coefficient of dist(v(t), ω(t)); velocity(v(t),ω(t)) is the velocity evaluation factor, expressed as: velocity(v(t),ω(t)) =│v(t)│ (3) The speed evaluation factor is used to evaluate the speed of the mobile robot so that the robot can move quickly. γ is the weight coefficient of velocity(v(t),ω(t)); relativeAngle(v(t),ω(t)) is the relative angle evaluation factor between the target position and the mobile robot and the nearest obstacle, expressed as: relativeAngle(v(t),ω(t)) = │obstacleζ-goalθ│ (4) In formula (4), obstacleζ represents the minimum angle between the mobile robot and the obstacle at the end of the predicted trajectory, goalθ represents the angle between the target point and the mobile robot at the end of the predicted trajectory, and the relative angle evaluation factor is used to evaluate the relative angle between the target position and the mobile robot and the nearest obstacle, so that the mobile robot can avoid the area with dense obstacles. η is the weight coefficient of relativeAngle(v(t),ω(t)); Goaldist(v(t),ω(t)) is the relative distance function between the mobile robot and the target position at the end of the predicted trajectory, expressed as: In formula (5), d G is the shortest distance between the mobile robot and the target point at the end of the predicted trajectory, d Gmax The set d G Goaldist(v(t), ω(t)) is used to evaluate the distance between the mobile robot and the obstacle at the end of the predicted trajectory, so that the mobile robot can reach the target position in the shortest time. μ is the weight coefficient of Goaldist(v(t), ω(t)).

2. The mobile robot obstacle avoidance method based on the improved dynamic window method according to claim 1, characterized in that: In step S1, the current state, motion parameters, target position and obstacle distribution of the mobile robot are obtained, including the following: The current state of the mobile robot includes the current position, direction angle, linear velocity and angular velocity of the mobile robot; the motion parameters include the maximum linear velocity, maximum angular velocity, acceleration and angular acceleration of the mobile robot.

3. The mobile robot obstacle avoidance method based on the improved dynamic window method according to claim 2 is characterized in that: In step S2, the following is included: Based on the performance of the mobile robot itself and the constraints of the environment, the speed space constraints include the maximum and minimum speed constraints of the mobile robot, the motor dynamics performance constraints and the safe allowable distance constraints of the mobile robot; under the speed space constraints, the linear speed and angular speed range of the mobile robot are limited, forming the speed space accessible to the mobile robot; According to the position and direction angle of the mobile robot at time t, the position and direction angle of the mobile robot at time t+1 can be obtained by using the motion equation of the mobile robot, and forward simulation to time T can be performed. In the reachable speed space of the mobile robot, different linear speed and angular speed values ​​can obtain multiple motion trajectories, thereby generating the trajectory space of the mobile robot.

4. The mobile robot obstacle avoidance method based on the improved dynamic window method according to claim 3 is characterized in that: In step S4, a fuzzy reinforcement system is constructed, including the following: The fuzzy reinforcement system combines the fuzzy reasoning system with the Q learning algorithm. After the current state vector s is input into the system, an action A is selected for execution through the fuzzy reasoning system. Each action has a corresponding weight Q. The Q value table is continuously updated by the Q learning algorithm until it converges. Then, the fuzzification is solved according to the centroid method to obtain the output action vector a of the system.

5. The mobile robot obstacle avoidance method based on the improved dynamic window method according to claim 4 is characterized in that: In step S4, the following is included: The distance Gd between the mobile robot and the target position and the distance Od between the mobile robot and the nearest obstacle are input into the fuzzy reinforcement system, that is, the input state vector s = {Gd, Od}; the two variables are fuzzified and divided into three fuzzy sets S, M, and L, and then the Q value table is updated according to reinforcement learning, and the fuzzification is solved by the centroid method to obtain the output action vector a = {α, β, γ, η, μ} of the system, where α, β, γ, η, μ are weight coefficients of the dynamic window method evaluation function; The output action vector of the fuzzy reinforcement system is output to the environment, and the evaluation function is used to score each simulated trajectory in the trajectory space of the mobile robot. The trajectory with the highest score is the optimal obstacle avoidance trajectory. For the behavior close to the goal in the fuzzy reinforcement system, the designed reward function is as follows: Among them, R t is the reward obtained by the mobile robot at time t, τ is the set safety threshold, when Od<τ, the reward value is set to -500, indicating that the distance between the mobile robot and the obstacle is too close and there is a possibility of collision with the obstacle; Gd1 is the distance between the mobile robot and the target position at the current moment, Gd0 is the distance between the mobile robot and the target position at the previous moment, when Gd1>Gd0, the reward value is set to -200, indicating that the mobile robot does not move toward the target position; when Od>τ and Gd1≤Gd0, the reward value is set to +100, so that the mobile robot can maintain a safe and appropriate speed to move toward the target; when the mobile robot reaches the target, the reward value is set to +200, so that the mobile robot can reach the target position as quickly as possible during the continuous learning process.

6. The mobile robot obstacle avoidance method based on the improved dynamic window method according to claim 5, characterized in that: In step S5, the following is included: A. First, assign a random value in the interval [0,1] to the weight Q, and repeatedly learn through reinforcement learning until it converges; B. Then, the coefficients of the evaluation function are randomly adjusted according to the Q-value table obtained by reinforcement learning to obtain the optimal obstacle avoidance trajectory of the mobile robot; C. Use the linear velocity and angular velocity corresponding to the optimal trajectory as the speed command of the mobile robot at the next moment to control the motion trajectory of the mobile robot, thereby realizing the obstacle avoidance function.

Citation Information

Patent Citations

  • Dynamic window obstacle avoidance algorithm based on fuzzy logic

    CN111665847A

  • Local path planning method based on dynamic window method and suitable for Ackerman model robot

    CN112506199A