Path planning method of mobile robot facing complex dynamic environment
By introducing speed reward function and heuristic reward function in the DDPG algorithm, the problem of poor adaptability and "stuck" of mobile robots in complex dynamic environments is solved, and faster path planning and stronger obstacle avoidance capabilities are achieved.
Patent Information
- Application Number
- CN202411066333.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2024-11-22
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing mobile robot path planning method based on DDPG algorithm is poorly adaptable in complex dynamic environments, easily falling into a ‘stuck’ state, and the average number of steps to reach the target position is too high, mainly due to the unreasonable design of the reward function.
The speed reward function and heuristic reward function are designed to ensure that the robot is moving forward at the fastest speed in a safe state, and avoiding "stagnation" in a dangerous state, while improving its ability to avoid obstacles.
The average number of steps required by the robot to reach the target point is greatly reduced, and its adaptability and obstacle avoidance capabilities in complex environments are improved.
Smart Images

Figure CN119002480A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of path planning, and in particular relates to a path planning method for a mobile robot in a complex dynamic environment. Background Art
[0002] In view of complex dynamic environments, researchers proposed a path planning method for mobile robots based on the DDPG (Deep Deterministic Policy Gradient) network algorithm, which does not require a priori maps. The main steps are: pre-constructing the state space, action space and reward function of the deep reinforcement learning algorithm; building a network architecture based on DDPG, where the Actor network is responsible for learning the strategy, that is, selecting the next action based on the current state; and the Critic network is responsible for evaluating the quality of the action selected by the Actor and providing feedback to the Actor. The Actor network and the Critic network are trained based on the state data samples in the experience pool, and the parameters of the Actor network are updated according to the gradient ascent method to maximize the expected reward. The parameter update of the Critic network is achieved by minimizing the TD error, so that it can more accurately evaluate the value of the action selected by the Actor. By continuously interacting and learning with the environment, the performance of path planning is gradually improved, and end-to-end path planning tasks are performed.
[0003] However, the reward functions in most mobile robot path planning algorithms based on the DDPG algorithm currently only include arrival rewards, collision penalties, distance rewards, orientation rewards, step penalties, etc. Based on these reward functions, the robot can reach the target position at the fastest speed and shortest distance in an obstacle-free environment. However, in an obstacle environment, when facing an obstacle, the robot will only perform a simple deceleration to avoid or even stop, resulting in an average number of steps to reach the target position that is too high. If it is a static obstacle, the robot may fall into a "stuck" state; if it is a dynamic obstacle, the robot has poor adaptability due to the irregularity of the obstacle's movement. In summary, unreasonable reward function design will lead to problems such as poor adaptability of the algorithm in a complex environment, too high an average number of steps to reach the target position, and easy to fall into a "stuck" state. Therefore, the present invention aims to solve the above problems by improving the reward function. Summary of the invention
[0004] In order to solve the problems existing in the prior art, the main purpose of the present invention is to propose a path planning method for a mobile robot in a complex dynamic environment, and propose a speed reward function to ensure that the robot can move towards the target position at the fastest speed in a safe state and avoid being "stuck" in a dangerous state; at the same time, a heuristic reward function is also proposed to enable the robot to improve its ability to avoid obstacles.
[0005] To solve the above technical problems, according to one aspect of the present invention, the present invention provides the following technical solutions:
[0006] A path planning method for a mobile robot in a complex dynamic environment comprises the following steps:
[0007] S1. Construct the state space, action space and reward function of the deep reinforcement learning algorithm; the reward function includes: reaching the target reward function, collision penalty function, distance reward function, direction reward function, step penalty function, speed reward function, and heuristic reward function;
[0008] S2. Build a DDPG-based network architecture to implement path planning for mobile robots in complex dynamic environments.
[0009] As a preferred solution of the path planning method for a mobile robot in a complex dynamic environment described in the present invention, wherein: in step S1, the robot state space information includes the ranging information s of the laser radar sensor scan , the relative target distance s of the target position d , heading target θ , robot's own coordinate information s position and target location coordinate information s goal , the robot state space is defined as: s = (s scan ,s d ,s θ ,s position ,s goal )
[0010] Among them, the first 37 dimensions are the ranging information of the lidar sensor, and the last 6 dimensions are the relative target distance of the target position, the heading target, the robot's own coordinate information, and the target position coordinate information.
[0011] As a preferred solution of the path planning method for a mobile robot in a complex dynamic environment described in the present invention, wherein: in the step S1, the robot action space A is defined as: A = (v, w)
[0012] Among them, (v, w) represents the current linear velocity and angular velocity of the robot. The linear velocity ranges from [0, 0.22], and the unit is m / s; the angular velocity ranges from [-2.0, 2.0], and the unit is rad / s.
[0013] As a preferred solution of the path planning method for a mobile robot in a complex dynamic environment described in the present invention, wherein: in the step S1, the target reaching reward and collision penalty function are:
[0014] When the distance d between the robot and the target position tLess than a certain threshold c d , it is considered to have reached the target position; when the distance to the nearest obstacle is min x Less than the obstacle collision distance c o , considered as a collision; give the corresponding R goal :
[0015]
[0016] In the formula, r arrive is the reward value after reaching the target position, r collide The penalty value for collision.
[0017] As a preferred solution of the path planning method for a mobile robot in a complex dynamic environment described in the present invention, wherein: in the step S1, according to the distance d between the robot and the target position during the movement t The distance reward function is set by the change in the amount of , giving positive rewards when the robot is close to the target and negative rewards when the robot is far away from the target position; the distance reward function R d for:
[0018] R d =D*(d t -d t-1 )
[0019] Where, d t-1 is the distance between the robot and the target position at the previous moment, and D is the distance auxiliary reward parameter.
[0020] As a preferred solution of the path planning method for a mobile robot in a complex dynamic environment described in the present invention, wherein: in the step S1, the orientation reward function is set according to the heading target of the robot during the movement, when the orientation of the robot is consistent with the target position, the reward signal obtained is the largest, and conversely, when the current direction of the robot is completely opposite to the target position, the orientation reward is the smallest; the orientation reward function R a for:
[0021] R a =A*cosθ
[0022] Where θ is the angle between the robot’s current moving direction and the target position direction, θ∈[-π,π], and A is the direction reward parameter.
[0023] As a preferred solution of the path planning method for a mobile robot in a complex dynamic environment described in the present invention, in step S1, in order to avoid the robot abusing R d With R a To increase the score, you need to give the robot a step penalty function R s :
[0024] R s =r s
[0025] In the formula, r s is the step penalty parameter.
[0026] As a preferred solution of the path planning method for a mobile robot in a complex dynamic environment described in the present invention, wherein: in the step S1, the robot is in a dangerous state U when the distance to the nearest obstacle is within the range of [0.12m, 0.35m], and is in a safe state S when the distance to the nearest obstacle is within the range of (0.35m, 0.6m]; to ensure that the robot can move toward the target point at the fastest speed in the safe state and avoid getting stuck in the dangerous state; when the robot is in the safe state, the faster the speed, the more rewards it will get; in the dangerous state, when the speed is 0, a penalty should be imposed; therefore, the speed reward function R v for:
[0027]
[0028] As a preferred solution of the path planning method for a mobile robot in a complex dynamic environment described in the present invention, wherein: in the step S1, in order to enhance the robot's obstacle avoidance ability and punish inappropriate actions, a reward function with heuristic knowledge is designed, and it is expected that the robot will be punished when approaching an obstacle and rewarded when away from the obstacle. The reward function R with heuristic knowledge h for:
[0029]
[0030] Where, d t -d t-1 >0 means the mobile robot is far away from the target point, d t -d t-1 ≤0 means that the robot is close to the target point. When the robot is in a dangerous state and far away from the target point, a large penalty is given; when the robot is in a safe state but far away from the target point, a small penalty is given; when the robot is in a dangerous state but close to the target point, a small reward is given, and when the robot is in a safe state and close to the target point, a large reward is given.
[0031] As a preferred solution of the path planning method for a mobile robot in a complex dynamic environment described in the present invention, in step S1, the round termination condition is reaching the destination or encountering an obstacle or reaching the upper limit of the number of steps, and the total reward of each round is calculated as:
[0032] R 总 =R goal +∑(R d +R a +R s +R v +Rh ).
[0033] The beneficial effects of the present invention are as follows:
[0034] The present invention proposes a path planning method for a mobile robot in a complex dynamic environment. When constructing the state space, action space and reward function of a deep reinforcement learning algorithm, a speed reward function is designed to enable the robot to move toward the target point at the fastest speed in a safe state and avoid getting stuck in a dangerous state, thereby greatly reducing the average number of steps required for the robot to reach the target point. At the same time, an inspirational reward function is designed to improve the robot's ability to avoid obstacles and make it more adaptable in complex environments. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.
[0036] Figure 1 This is a schematic diagram of the DDPG network of the present invention.
[0037] The realization of the effects, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0038] The following will be described clearly and completely in conjunction with the technical solutions in the embodiments. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0039] A specific embodiment of the present invention provides a path planning method for a mobile robot in a complex dynamic environment, comprising the following steps:
[0040] S1. Construct the state space, action space and reward function of the deep reinforcement learning algorithm; the reward function includes: reaching the target reward function, collision penalty function, distance reward function, direction reward function, step penalty function, speed reward function, and heuristic reward function;
[0041] S2. Build a DDPG-based network architecture to implement path planning for mobile robots in complex dynamic environments.
[0042] In one embodiment of the present invention, in step S1, the robot state space information includes the ranging information s of the laser radar sensor. scan , the relative target distance s of the target position d , heading target θ , robot's own coordinate information s position and target location coordinate information s goal , the robot state space is defined as: s = (s scan ,s d ,s θ ,s position ,s goal )
[0043] Among them, the first 37 dimensions are the ranging information of the lidar sensor, and the last 6 dimensions are the relative target distance of the target position, the heading target, the robot's own coordinate information and the target position coordinate information, as shown in the following table.
[0044] Dimensions sensor Variable Name 1-37 Dimensions LDS-01 360 LiDAR Laser ranging information within 180 degrees 38 Dimensions / Relative target distance of target position 39 Dimensions / Heading target 40-41 Dimension odom Robot's own coordinate information 42-43 Dimensions / Target location coordinate information
[0045] In one embodiment of the present invention, in step S1, the robot action space A is defined as: A = (v, w)
[0046] Among them, (v, w) represents the current linear velocity and angular velocity of the robot. The linear velocity ranges from [0, 0.22], and the unit is m / s; the angular velocity ranges from [-2.0, 2.0], and the unit is rad / s.
[0047] In one embodiment of the present invention, in step S1, the target reward and collision penalty function are:
[0048] When the distance d between the robot and the target position t Less than a certain threshold c d , it is considered to have reached the target position; when the distance to the nearest obstacle is min x Less than the obstacle collision distance c o , considered as a collision; give the corresponding R goal :
[0049]
[0050] In the formula, r arrive is the reward value after reaching the target position, r collide The penalty value for collision.
[0051] In one embodiment of the present invention, in step S1, according to the distance d between the robot and the target position during the movement, tThe distance reward function is set by the change in the amount of , giving positive rewards when the robot is close to the target and negative rewards when the robot is far away from the target position; the distance reward function R d for:
[0052] R c =D*(d t -d t-1 )
[0053] Where, d t-1 is the distance between the robot and the target position at the previous moment, and D is the distance auxiliary reward parameter.
[0054] In one embodiment of the present invention, in step S1, an orientation reward function is set according to the heading target of the robot during the movement. When the orientation of the robot is consistent with the target position, the reward signal is the largest. Conversely, when the current direction of the robot is completely opposite to the target position, the orientation reward is the smallest. The orientation reward function R a for:
[0055] R a =A*cosθ
[0056] Where θ is the angle between the robot’s current moving direction and the target position direction, θ∈[-π,π], and A is the direction reward parameter.
[0057] In one embodiment of the present invention, in step S1, in order to avoid the robot abusing R d With R a To increase the score, you need to give the robot a step penalty function R s :
[0058] R s =r s
[0059] In the formula, r s is the step penalty parameter.
[0060] In one embodiment of the present invention, in step S1, the robot is in a dangerous state U when the distance to the nearest obstacle is within the range of [0.12m, 0.35m], and is in a safe state S when the distance to the nearest obstacle is within the range of (0.35m, 0.6m]; to ensure that the robot can move toward the target point at the fastest speed in the safe state and avoid getting stuck in the dangerous state; when the robot is in the safe state, the faster the speed, the more rewards it will get; in the dangerous state, when the speed is 0, a penalty should be imposed; therefore, the speed reward function R v for:
[0061]
[0062] In one embodiment of the present invention, in step S1, in order to enhance the robot's obstacle avoidance capability and punish inappropriate actions, a reward function with heuristic knowledge is designed, and it is expected that the robot will be punished when approaching an obstacle and rewarded when moving away from the obstacle. The reward function R with heuristic knowledge h for:
[0063]
[0064] Where, d t -d t-1 >0 means the mobile robot is far away from the target point, d t -d t-1 ≤0 means that the robot is close to the target point. When the robot is in a dangerous state and far away from the target point, a large penalty is given; when the robot is in a safe state but far away from the target point, a small penalty is given; when the robot is in a dangerous state but close to the target point, a small reward is given, and when the robot is in a safe state and close to the target point, a large reward is given.
[0065] In one embodiment of the present invention, in step S1, the round termination condition is reaching the destination or encountering an obstacle or reaching the upper limit of the number of steps, and the total reward for each round is calculated as:
[0066] R 总 =R goal +∑(R d +R a +R s +R v +R h ).
[0067] In one embodiment of the present invention, in step S2, the DDPG network structure is as follows: Figure 1 As shown. The Actor network is responsible for learning strategies, that is, selecting the next action based on the current state; while the Critic network is responsible for evaluating the quality of the action selected by the Actor and providing feedback to the Actor. The Actor network and the Critic network are trained based on the state data samples in the experience pool, and the parameters of the Actor network are updated according to the gradient ascent method to maximize the expected reward. The parameter update of the Critic network is achieved by minimizing the TD error, so that it can more accurately evaluate the value of the action selected by the Actor. When constructing the state space, action space and reward function of the deep reinforcement learning algorithm, the present invention designs a speed reward function, so that the robot can move towards the target point at the fastest speed in a safe state, and can avoid getting stuck in a dangerous state, which greatly reduces the average number of steps required for the robot to reach the target point; at the same time, an inspirational reward function is designed to improve the robot's ability to avoid obstacles and become more adaptable in complex environments.
[0068] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. All equivalent structural changes made by using the contents of the present invention specification under the inventive concept of the present invention, or direct / indirect application in other related technical fields are included in the patent protection scope of the present invention.
Claims
1. A path planning method for mobile robots in complex dynamic environments. It is characterized in that The steps include: S1. Construct the state space, action space and reward function of the deep reinforcement learning algorithm; the reward function includes: reaching the target reward function, collision penalty function, distance reward function, direction reward function, step penalty function, speed reward function, and heuristic reward function; S2. Build a DDPG-based network architecture to implement path planning for mobile robots in complex dynamic environments.
2. The path planning method for a mobile robot in a complex dynamic environment according to claim 1, It is characterized in that In step S1, the robot state space information includes the distance measurement information s of the laser radar sensor. scan , the relative target distance s of the target position d , heading target θ , robot's own coordinate information s position and target location coordinate information s goal , the robot state space is defined as: s = (s scan ,s d ,s θ ,s position ,s goal ) Among them, the first 37 dimensions are the ranging information of the lidar sensor, and the last 6 dimensions are the relative target distance of the target position, the heading target, the robot's own coordinate information, and the target position coordinate information.
3. The path planning method for a mobile robot in a complex dynamic environment according to claim 1, It is characterized in that In step S1, the robot action space A is defined as: A = (v, w) Among them, (v, w) represents the current linear velocity and angular velocity of the robot. The linear velocity ranges from [0, 0.22], and the unit is m / s; the angular velocity ranges from [-2.0, 2.0], and the unit is rad / s.
4. The path planning method for a mobile robot in a complex dynamic environment according to claim 1, It is characterized in that In step S1, the target reward and collision penalty function are: When the distance d between the robot and the target position t Less than a certain threshold c d , it is considered to have reached the target position; when the distance to the nearest obstacle is min x Less than the obstacle collision distance c o , considered as a collision; give the corresponding R goal : In the formula, r arrive is the reward value after reaching the target position, r collide The penalty value for collision.
5. The path planning method for a mobile robot in a complex dynamic environment according to claim 1, It is characterized in that In step S1, according to the distance d between the robot and the target position during the movement, t The distance reward function is set by the change in the amount of , giving positive rewards when the robot is close to the target and negative rewards when the robot is far away from the target position; the distance reward function R d for: R d =D*(d t -d t-1 ) Where, d t-1 is the distance between the robot and the target position at the previous moment, and D is the distance auxiliary reward parameter.
6. The path planning method for a mobile robot in a complex dynamic environment according to claim 1, It is characterized in that In step S1, the orientation reward function is set according to the heading target of the robot during the movement. When the orientation of the robot is consistent with the target position, the reward signal is the largest. On the contrary, when the current direction of the robot is completely opposite to the target position, the orientation reward is the smallest. The orientation reward function R a for: R a =A*cosθ Where θ is the angle between the robot’s current moving direction and the target position direction, θ∈[-π,π], and A is the direction reward parameter.
7. The path planning method for a mobile robot in a complex dynamic environment according to claim 1, It is characterized in that In step S1, in order to avoid the robot abusing R d With R a To increase the score, you need to give the robot a step penalty function R s : R s =r s In the formula, r s is the step penalty parameter.
8. The path planning method for a mobile robot in a complex dynamic environment according to claim 1, It is characterized in that In step S1, the robot is in a dangerous state U when the distance to the nearest obstacle is within the range of [0.12m, 0.35m], and is in a safe state S when the distance to the nearest obstacle is within the range of (0.35m, 0.6m]; to ensure that the robot can move toward the target point at the fastest speed in the safe state and avoid getting stuck in the dangerous state; When the robot is in a safe state, the faster the speed, the more rewards it gets; in a dangerous state, when the speed is 0, it should be punished; therefore, the speed reward function R v for:
9. The path planning method for a mobile robot in a complex dynamic environment according to claim 1, It is characterized in that In step S1, in order to enhance the robot's obstacle avoidance ability and punish inappropriate actions, a reward function with heuristic knowledge is designed, and it is expected that the robot will be punished when it is close to an obstacle and rewarded when it is far away from an obstacle. The reward function R with heuristic knowledge h for: Where, d t -d t-1 >0 means the mobile robot is far away from the target point, d t -d t-1 ≤0 means that the robot is close to the target point. When the robot is in a dangerous state and far away from the target point, a large penalty is given; when the robot is in a safe state but far away from the target point, a small penalty is given; when the robot is in a dangerous state but close to the target point, a small reward is given, and when the robot is in a safe state and close to the target point, a large reward is given.
10. The path planning method for a mobile robot in a complex dynamic environment according to claim 1, It is characterized in that In step S1, the round termination condition is reaching the destination or encountering an obstacle or reaching the upper limit of the number of steps. The total reward for each round is calculated as: R 总 =R goal +∑(R d +R a +R s +R v +R h )。
Citation Information
Patent Citations
Mobile robot path planning method in dynamic environment
CN114185339A
Robot map-free path planning method and system based on deep reinforcement learning
CN115167478A
Adaptive dynamic window method based on deep reinforcement learning
CN115542733A
Method for controlling bikes to enter motorcade by changing lanes based on curriculum reinforcement learning
CN116534011A
Path planning method, application and device based on knowledge and data combination
CN117808180A
Cited By
Deep reinforcement learning type path planning method and device for indoor complex environment
CN120333460A
Mobile robot dynamic obstacle avoidance control method and system based on reinforcement learning
CN120848530A
