A dynamic path planning method for mobile agents in a stage environment

Through deep reinforcement learning methods and social attention mechanisms, a new Markov decision-making process and network structure is designed, which solves the problem of distinguishing and predicting dynamic and static obstacles in traditional path planning, and realizes the intelligent mobile body in a small cultural complex. Efficient dynamic path planning improves the adaptability and accuracy of path planning.

CN114815834BActive Publication Date: 2024-11-29ZHEJIANG UNIV OF TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210465123.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-29
Publication Date
2024-11-29
Estimated Expiration
2042-04-29

AI Technical Summary

Technical Problem

In the space of small cultural complexes, traditional dynamic path planning algorithms are difficult to distinguish and predict dynamic and static obstacles, resulting in unnatural paths and lack of adaptability, and cannot effectively achieve rapid avoidance and goal achievement of intelligent mobile bodies in crowded environments.

Method used

Deep reinforcement learning method is used to design a new Markov decision-making process and network structure, introduce social attention mechanisms and long-term memory neural networks, build new reward function and experience pool update methods, and optimize through imitation learning and adaptive moment estimation methods. Network parameters to realize the classification and motion trend prediction of dynamic and static obstacles.

Benefits of technology

It realizes efficient dynamic path planning of intelligent mobile bodies in complex obstacle environments, improves the adaptability and accuracy of path planning, improves the convergence speed of network training, and ensures that mobile agents can quickly and naturally avoid obstacles and achieve Target.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114815834B_ABST
    Figure CN114815834B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for dynamic path planning of a mobile intelligent body in a stage environment, and belongs to the technical field of intelligent robot path planning. First, a global map is constructed to obtain obstacle information around the mobile intelligent body, and the obstacles are classified into dynamic obstacles and static obstacles. Then, a local map is established to encode the dynamic obstacle information through an LSTM network, and the importance of each dynamic obstacle is calculated through a social attention mechanism to achieve better obstacle avoidance. A new reward function is constructed to cope with different avoidance situations of dynamic and static obstacles, thereby solving the path planning problem of a mobile intelligent body in a complex stage environment. A new experience pool update method is proposed to improve the convergence speed of network training. At the same time, a simulation experiment is carried out on the method proposed by the present invention to verify the superiority of the algorithm, which has strong practical value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of intelligent robot path planning, and in particular to a method for dynamic path planning of a mobile intelligent body in a stage environment. Background Art

[0002] In order to meet the diversified service needs of grassroots culture, it is necessary to carry out cultural service functions such as cultural performances, conferences, exhibitions and readings, and folk activities in the activity space of small-scale grassroots cultural service complexes. Cultural facilities with classified configurations cannot meet the expectations of residents for comprehensive cultural needs. Small-scale cultural service complexes can better solve this problem. The focus is on promoting the construction of multifunctional activity spaces, which can integrate folk activities, exhibitions, conferences, readings and other functions to form an integrated venue service carrier, which not only meets the diversity and self-organization needs of rural grassroots culture, but also explores a new model that meets the requirements of public cultural services in my country's new rural areas.

[0003] In order to reduce the waste of land resources and improve the efficiency of space utilization, various intelligent mobile bodies are needed to assist in the rapid combination and switching of multiple functional spaces. Due to different service spaces, the configuration facilities and usage requirements within the functional spaces are also different. In order to meet the "one hall for multiple uses" requirements of small cultural complexes, it is often necessary to use intelligent mobile bodies to assist in the rapid combination and switching of multiple functional spaces, and realize dynamic path planning in crowded environments within small complexes, so as to meet the needs of multiple cultural services in a single space.

[0004] The space of a small cultural complex is a typical environment where people, machines and objects coexist. During the switching of functional spaces, multiple objects in the space need to plan their trajectories with the help of other objects to realize the switching service of spatial functions. Therefore, how to quickly avoid dynamic and static obstacles and reach the target point during the switching process requires us to design a dynamic path planning algorithm to control the intelligent mobile body. The environment in the cultural complex space is crowded, which places high demands on the dynamic path planning algorithm.

[0005] Traditional dynamic path planning algorithms rely on the rapid refresh of sensors to perceive information about surrounding obstacles. The planned path will also change with the dynamic obstacles, resulting in detours or unnatural trajectories. It is unable to predict the movement trend of surrounding dynamic obstacles and lacks adaptability. For the above problems, it is urgent to propose a dynamic path planning method that can distinguish between dynamic and static obstacles and predict the trend of dynamic obstacles. Summary of the invention

[0006] In view of the problems existing in the prior art, the purpose of the present invention is to provide a dynamic path planning method for a mobile agent in a stage environment. The method designs a new Markov decision process and network structure based on the deep reinforcement learning method, adds attention scores to dynamic obstacles by introducing a social attention mechanism, uses a long short-term memory neural network to solve the problem of the non-fixed dimension of the feedforward network, constructs a new reward function to deal with different avoidance situations of dynamic and static obstacles, and proposes a new experience pool update method to improve the convergence speed of network training, so that the mobile agent can distinguish between dynamic and static obstacles and predict the movement trend of dynamic obstacles. In order to achieve the above purpose, the technical solution adopted by the present invention is as follows:

[0007] A method for dynamic path planning of a mobile agent in a stage environment comprises the following steps:

[0008] 1) Establish a simulation environment model of mobile agents and dynamic and static obstacles based on the gym library;

[0009] 2) Design the Maldives decision process, design the state space S, action space A, transition probability P, reward R and discount factor γ;

[0010] 3) Design the neural network structure;

[0011] 4) Using the Optimal Reciprocal Collision Avoidance Algorithm (ORCA), the network parameters are initialized through imitation learning pre-training; after the imitation learning is completed, the network parameters are optimized through training through the actual interaction of mobile agents in the simulation environment;

[0012] 5) Train the neural network using the adaptive time estimation method (Adam) to obtain the optimal value function:

[0013] V * (u t )=∑γ Δt·Vpref ·P(u t ,a t )

[0014] 6) Set the optimal strategy by maximizing the cumulative return:

[0015]

[0016] Among them, u t represents the joint state of the current mobile agent and obstacles, a t represents the set of action spaces, γ represents the decay factor, Δt represents the time interval between two actions, Vpref represents the preferred speed, V * represents the optimal value function, P represents the state transition function, and R represents the reward function; Indicates the joint state at the next moment

[0017] 7) Select the action a at the current moment according to the optimal strategy t Until the mobile agent reaches the goal.

[0018] Furthermore, in step 1), the mobile agent and the dynamic obstacle are set as a circle with a radius of 0.3 meters, and the static obstacle is defined as a circle with a radius between 0.5 meters and 1 meter or a quadrilateral with an area between 1 square meter and 1.5 square meters.

[0019] Furthermore, in step 2), a state space S is set, where the state of the dynamic obstacle is S D =[P x ,P y ,V x ,V y ,r,V pref ], the state of the static obstacle is S S =[P x ,P y ,r], the state of the mobile agent is S T =[P x ,P y ,G x ,G y ,V x ,V y ,θ,r,V pref ]Joint state t =[S T ,S S ,S D ]. Among them (P x ,P y ) is the current position of the mobile agent and the dynamic and static obstacles, (G x ,G y ) is the position of the set target point, θ is the heading angle of the mobile agent, r is the radius of the mobile agent and the dynamic and static obstacles, V pref is the preferred speed of the mobile agent, (V x ,V y ) is the moving speed of the mobile agent and dynamic obstacles;

[0020] The action space A is composed of linear velocity and angular velocity. In order to meet the dynamic constraints, the angular velocity is divided into 18 equal parts in the interval [-π / 4,π / 4], and the linear velocity is calculated according to the function When x is 1, 2, 3, 4, or 5, five linear velocities with smooth variations can be obtained. There are 90 action combinations in the action space.

[0021] The transition probability P is approximately calculated using the trajectory prediction model;

[0022]

[0023] The reward R is set as:

[0024] Among them G x,y is the location information of the target point, P x,y is the current location information of the mobile agent, d s is the distance between the mobile agent and the static obstacle, d d is the distance between the mobile agent and the dynamic obstacle; the discount factor γ is taken as 0.9.

[0025] Furthermore, the network structure in step 3) is composed of the following modules: 1. Input layer: The input layer is the joint state u in the above step. t =[S T ,S S ,S D ]. 2. Long Short-Term Memory Neural Network Module (LSTM): The LSTM module can be used to sort the obstacles around the mobile agent and fix the network layer output parameters. 3. Social Attention Mechanism: The social attention mechanism module can analyze the probability of collision between the mobile agent and the surrounding dynamic obstacles and present it in the form of a score. 4. Output Layer: The output layer outputs the optimal value function V through the weighted linear combination of the network parameters. * (u t ).

[0026] Furthermore, the network operation process in the step 3) is as follows: first, the state information of the mobile agent and the obstacle is input into the network, and then the obstacles are divided into dynamic obstacles and static obstacles according to the state information, the state of the mobile agent and the state of the dynamic obstacle are input into the LSTM module, and then input into the social attention mechanism module, and then the processed state, the obtained interaction features and the static obstacle state are input into two fully connected layers, and finally normalized by the activation function to obtain the optimal value function.

[0027] Furthermore, in step 4), when the mobile agent interacts in the simulation environment, the current state information, action information and reward information are stored as an experience in the experience pool. When the experience reaches the maximum capacity, the new experience replaces the old experience with low reward, thereby increasing the probability of selecting excellent experience and improving the convergence speed of the network. In each episode of interaction, when the mobile agent encounters an obstacle or exceeds the maximum time of a single episode, the current episode ends. Then the experience is propagated in the gradient direction to update the network parameters.

[0028] The beneficial effects of the present invention are: a new Markov decision process is designed to adapt to the complex situation of obstacles in the complex space, a new network structure is designed to realize the classification and processing of dynamic and static obstacles, and the prediction of dynamic obstacles, a new reward function is designed to deal with different obstacles, a new experience pool update method is proposed to improve the training efficiency of the neural network, and imitation learning is used to pre-train the network to improve the convergence speed of the network; thereby allowing the mobile intelligent body to realize an efficient dynamic programming method in the complex space. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 is a flow chart of a method implementation of an embodiment of the present invention;

[0030] Figure 2 is a network structure diagram in an embodiment of the present invention;

[0031] Figure 3 It is a simulation result diagram in an embodiment of the present invention;

[0032] Figure 4 It is a total reward graph of network training in an embodiment of the present invention. DETAILED DESCRIPTION

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

[0034] The purpose of the present invention is to provide a dynamic path planning method for a mobile agent in a stage environment. The method designs a new Markov decision process and network structure based on a deep reinforcement learning method, adds attention scores to dynamic obstacles by introducing a social attention mechanism, uses a long short-term memory neural network to solve the problem of non-fixed dimension of a feedforward network, constructs a new reward function to cope with different avoidance situations of dynamic and static obstacles, and proposes a new experience pool update method to improve the convergence speed of network training, thereby enabling the mobile agent to distinguish between dynamic and static obstacles and predict the movement trend of dynamic obstacles.

[0035] In this embodiment, the simulation environment is as follows: Figure 3 As shown in the figure, assume that the range of the planning map is 10*10, the starting point of the path planning is (0,-10), the target point is (0,7.5), the positions of static obstacles are randomly distributed, and are rectangular or square, and the dynamic obstacles are circles with a radius of 0.5.

[0036] A dynamic path planning algorithm for a mobile agent in a stage environment, the specific steps are as follows:

[0037] 1) Establish a simulation environment model of mobile agents and dynamic and static obstacles based on the gym library;

[0038] 2) Design the Maldives decision process, design the state space S, action space A, transition probability P, reward R and discount factor γ;

[0039] 3) Design the neural network structure;

[0040] 4) Using the Optimal Reciprocal Collision Avoidance Algorithm (ORCA), the network parameters are initialized by pre-training 3000 episodes through imitation learning; then the network parameters are optimized by training through actual interactions of mobile agents in a simulation environment.

[0041] 5) Train the neural network using the adaptive time estimation method (Adam) to obtain the optimal value function:

[0042] V * (u t )=∑γ Δt·Vpref ·P(u t ,a t )

[0043] 6) Set the optimal strategy by maximizing the cumulative return:

[0044]

[0045] Among them, u t represents the joint state of the current mobile agent and obstacles, a represents the set of action spaces, γ represents the decay factor, Δt represents the time interval between two actions, Vpref represents the preferred speed, V * represents the optimal value function, P represents the state transition function, and R represents the reward function; Indicates the joint state at the next moment

[0046] 7) Select the action a at the current moment according to the optimal strategy t Until the mobile agent reaches the goal.

[0047] The above are preferred embodiments of the present invention. Any changes made according to the technical solution of the present invention, as long as the resulting functions do not exceed the scope of the technical solution of the present invention, belong to the protection scope of the present invention.

Claims

1. A method for dynamic path planning of a mobile agent in a stage environment, characterized in that: The following steps are involved: 1) Establish a simulation environment model of mobile agents and dynamic and static obstacles based on the gym library; 2) Design a Markov decision process, which is represented by a five-tuple<S,A,P,R,γ> , design state space S, action space A, P is expressed as state transfer function, R is expressed as reward function and decay factor γ; Set the state space S, where the state of the dynamic obstacle is S D =[P x ,P y ,V x ,V y ,r,V pref ], the state of the static obstacle is S S =[P x ,P y ,r], the state of the mobile agent is S T =[P x ,P y ,G x ,G y ,V x ,V y ,θ,r,V pref ]、Joint state u t =[S T ,S S ,S D ]; where (P x ,P y ) is the current position of the mobile agent and the dynamic and static obstacles, (G x ,G y ) is the position of the set target point, θ is the heading angle of the mobile agent, r is the radius of the mobile agent and the dynamic and static obstacles, V pref is the preferred speed of the mobile agent, (V x ,V y ) is the moving speed of the mobile agent and dynamic obstacles; The action space A is composed of linear velocity and angular velocity. In order to meet the dynamic constraints, the angular velocity is divided into 18 equal parts in the interval [-π / 4,π / 4], and the linear velocity is calculated according to the exponential function When x is 1, 2, 3, 4, or 5, five linear velocities with smooth variations can be obtained. There are 90 action combinations in the action space; P is represented as a state transfer function that transfers the state by moving the agent's actual interaction in the simulation environment; R is represented by the reward function set as: Among them G x,y is the location information of the target point, P x,y is the current location information of the mobile agent, d s is the distance between the mobile agent and the static obstacle, d d is the distance between the mobile agent and the dynamic obstacle; 3) Design the neural network structure; 4) Using the optimal reciprocal collision avoidance algorithm ORCA, the network parameters are initialized through imitation learning pre-training; after the imitation learning is completed, the network parameters are optimized through training through the actual interaction of mobile agents in the simulation environment; 5) The optimal value function is obtained by training the neural network through the adaptive time estimation method Adam: 6) Set the optimal strategy by maximizing the cumulative return: Among them, u t represents the joint state of the current mobile agent and obstacles, a t represents the set of action spaces, γ represents the decay factor, Δt represents the time interval between two actions, V pref represents the preferred speed of the mobile agent, V * It is represented as the optimal value function, P is represented as the state transfer function, and R is represented as the reward function; Indicates the joint state at the next moment; 7) Select the action a at the current moment according to the optimal strategy t Until the mobile agent reaches the goal.

2. According to the method for dynamic path planning of a mobile agent in a stage environment according to claim 1, it is characterized in that: In the step 1), a simulation environment model is established based on the gym library, the mobile agent and the dynamic obstacle are set as a circle with a radius of 0.3 meters, and the static obstacle is defined as a circle with a radius between 0.5 meters and 1 meter or a quadrilateral with an area between 1 square meter and 1.5 square meters.

3. The method for dynamic path planning of a mobile agent in a stage environment according to claim 1, characterized in that: The neural network structure in step 3) includes: an input layer, a long short-term memory neural network module LSTM, a social attention mechanism and an output layer; The input layer: The input layer is the joint state u in step 2) above. t =[S T ,S S ,S D ]; Long short-term memory neural network module LSTM: sort the obstacles around the mobile agent through the LSTM module, and fix the network layer output parameters; social attention mechanism: analyze the probability of collision between the mobile agent and the surrounding dynamic obstacles through the social attention mechanism module, and present it in the form of a score; output layer: the output layer outputs the optimal value function V through the weighted linear combination of the network parameters * (u t ).

4. The method for dynamic path planning of a mobile agent in a stage environment according to claim 1, characterized in that: The network operation process in the step 3) is as follows: first, the state information of the mobile agent and the obstacle is input into the neural network structure, and then the obstacles are divided into dynamic obstacles and static obstacles according to the state information, the state of the mobile agent and the state of the dynamic obstacle are input into the LSTM module, and then input into the social attention mechanism module, and then the processed state, the obtained interaction features and the static obstacle state are input into two fully connected layers, and finally they are normalized by the activation function to obtain the optimal value function.

5. The method for dynamic path planning of a mobile agent in a stage environment according to claim 1, characterized in that: In step 4), when the mobile agent interacts in the simulation environment, the current state information, action information and reward information are stored in the experience pool as an experience, and the importance of each experience is added through TD-error. TD-error is the difference between the value function of the action at a certain moment and the optimal value function of the current network. If the difference is larger, it means that the current experience is relatively poor. By definition: P t =(|δ t |+e) α Where P t is the probability of choosing the current experience, α and ε are constants, and δ t is TD-error, ε is used to prevent the current experience from being randomly extracted to update the model parameters after TD-error becomes 0; Different probabilities are assigned to different experiences according to different experiences, so as to increase the probability of selecting excellent experiences and improve the convergence speed of the network; in each episode of interaction, when the mobile agent encounters an obstacle or exceeds the maximum time of a single episode, the current episode ends; then the experience is used to update the network parameters through gradient backpropagation.

Citation Information

Patent Citations

  • Collision avoidance planning method for mobile robots based on deep reinforcement learning in dynamic environment

    CN110632931A

  • Robot path planning algorithm based on deep reinforcement learning

    CN112666939A