Multi-robot hierarchical formation control method and system based on deep reinforcement learning

The multi-robot hierarchical formation control method that combines deep reinforcement learning and distributed consensus algorithms solves the problems of low intelligence and insufficient collision avoidance capabilities in multi-robot formation control, achieves rapid learning and efficient formation, and is suitable for complex Multi-robot systems in environments.

CN118377304BActive Publication Date: 2024-10-29NORTH CHINA ELECTRIC POWER UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410796141.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-10-29
Estimated Expiration
2044-06-20

Smart Images

  • Figure CN118377304B_ABST
    Figure CN118377304B_ABST
Patent Text Reader

Abstract

The present invention provides a multi-robot hierarchical formation control method and system based on deep reinforcement learning, which belongs to the field of control technology of non-electrical variables. The control method includes: obtaining fixed-length coding of obstacle information of each robot according to the relative coordinates of each robot and other robots in the robot formation and an LSTM-based autoencoder network, using the fixed-length coding of the obstacle information and the position coordinate information of each robot, the movement speed of each robot, and the relative coordinates of each robot and the reference point at the current moment as the input of the multi-robot hierarchical control model to obtain the action strategy of each robot in the robot formation; the present invention can quickly learn and follow the target point, effectively avoid robot collision, and has strong generalization ability in the control of multi-robot real-time formation tasks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of control of non-electrical variables, and in particular to a multi-robot hierarchical formation control method and system based on deep reinforcement learning. Background Art

[0002] The statements in this section merely provide background art related to the present invention and do not necessarily constitute prior art.

[0003] In recent years, with the development and cross-integration of technologies in the fields of control, communication and machine learning, inspired by the research of biology and human sociology, multi-robot cooperative control has gradually become a research focus and hotspot in many fields, and has achieved phased research results. Compared with a single robot system, a multi-robot system has many advantages such as distributed perception and execution capabilities, inherent parallelism, high fault tolerance and high efficiency, and can complete complex tasks more effectively. Multi-robot formation control refers to a system composed of multiple robots. With the help of local interactions between each individual robot, under the action of a certain control strategy, the behavior of each individual robot is adjusted to achieve mutual aggregation of robots and overall displacement while maintaining a certain geometric form, while adapting to control problems such as obstacle avoidance and collision avoidance. Multi-robot formation control has broad application prospects in many fields such as industry, agriculture, military, aerospace, geographic surveying and mapping, search and rescue, and transportation and logistics. Therefore, multi-robot formation control has developed into an important research direction in the field of cooperative control of multi-robot systems. However, the inherent cross-linking characteristics of multi-robot systems also bring many difficulties to the analysis of the system, and its research is still in the development stage.

[0004] The formation control technology of multi-robots is a prerequisite for completing various multi-body collaborative tasks. Its main purpose is to enable the robots to form and maintain a specific relative position and relative speed relationship through local information interaction between robots in the system, so as to realize the basic functions of multi-robot systems such as formation maintenance, formation change and obstacle avoidance. In the military field, heterogeneous robot systems composed of unmanned ships and drones can complete tasks such as collaborative combat, reconnaissance and supply, such as large-scale drone swarm combat. In the civilian field, multi-robot systems are widely used in tasks such as field location environment mapping and post-disaster rescue. The optimization control of multi-robots is to effectively achieve the optimization task through the cooperation and coordination between multiple robots. Compared with centralized optimization algorithms, distributed optimization algorithms have better robustness and have become an important research direction in the field of optimization and control. At present, distributed control methods rely on the accurate model of the multi-robot system to be known and the state to be observable. However, the accurate model of the system in real scenes is often difficult to obtain. How to realize distributed control based on data rather than models has become an important challenge in the research field. With the widespread application of reinforcement learning in the distributed control of multi-robot systems, especially with massive historical data as the support of technology, data-driven control algorithms have received increasing attention in the field of intelligent control.

[0005] Formation control is one of the typical problems in the design of multi-robot coordinated control systems. From the perspective of driving mode, the mainstream formation control methods can be mainly divided into rule-driven methods and data-driven methods. Rule-driven methods usually rely on preset rules or heuristic algorithms to achieve formation control. Data-driven methods rely on a large amount of training data to learn the optimal control strategy through trial and error, which can include supervised learning, unsupervised learning, etc. The most commonly used rule-driven method is the control strategy based on the consensus algorithm, mainly including the leader-follower method, the virtual structure method, and the behavior-based method. The data-driven strategy is mainly based on deep reinforcement learning to achieve formation control, mainly including D3QN (Dueling Double Deep Q-Network), DDPG (Deep Deterministic Policy Gradient), MADDPG (Multi-agent Deep Deterministic Policy Gradients), etc.

[0006] The consistency problem of multi-robot system refers to that each robot in the system makes certain state quantities of all robots tend to be the same according to its local interaction information and its control strategy. Since the control strategy only depends on the information of each robot itself and the local interaction information of adjacent robots, rather than the global information of the system, this provides an important means to solve the formation control problem of multiple robots. Since then, this field has grown rapidly and attracted a large number of researchers to join, and they have conducted in-depth explorations in high-order systems, nonlinear systems, delays, network packet loss, finite time consistency, etc., and some researchers have conducted comparative studies on them.

[0007] Based on the consistency algorithm, many scholars have studied and proposed a variety of multi-robot formation control strategies and methods. Some scholars have systematically introduced the application of the consistency method in the trajectory tracking and formation control of the second-order integral system, and pointed out that the current mainstream traditional formation control strategies, such as the leader-follower method, the virtual structure method, and the behavior-based formation control method, all aim at the consistency of state or behavior when realizing the collaborative control of the multi-robot system, and realize multi-robot control through local information interaction, iterative calculation and convergence, so they can all be regarded as special cases based on the consistency method.

[0008] Although the formation control algorithm based on the consistency problem can be easily applied to the formation control problem and has achieved a lot of research results, there are still many problems in the actual multi-robot cooperative control. For example, the problem of internal collision of robots must be considered in formation control, while the purpose of the consistency problem is to make certain states of multiple robots consistent and there is no problem of internal collision avoidance. There are many solutions to the collision avoidance problem, but it is difficult to combine with the consistency method. At present, the mainstream collision avoidance method used by multi-robot formations based on the consistency algorithm is the artificial potential field method. Although it can ensure that collisions will not occur, the control efficiency is not high. When the robot encounters the danger of collision with obstacles, its motion state may change greatly, which is likely to cause control command saturation, and the robot may also fall into a local oscillation. In addition, most multi-robot formation control methods rely on accurate physical model design, but there must be more or less gaps between the actual model and the model constructed by the researcher, which is likely to cause large errors or even failure in the control of the formation.

[0009] As two important branches of machine learning, deep learning (DL) and reinforcement learning (RL) have developed rapidly in recent years, which has greatly accelerated the intelligentization process of multi-robot systems. At present, some scholars have combined the perception ability of deep learning with the decision-making ability of reinforcement learning to form deep reinforcement learning, such as DQN (Deep Q-Network) and other algorithms, which are applied to multi-robot formation control.

[0010] Based on the Actor-Critic framework, some scholars optimized the traditional network structure and combined it with the dual memory library method to propose a CACER (Continuous Actor-Critic with Experience Replay) algorithm, which solved the problem of multi-UAV aggregation under the leader-follower topology in a continuous state. Some scholars proposed a Q-Learning method with a variable learning rate, which enables followers to learn how to keep following the leader in a stable random environment. Some scholars proposed a group reinforcement learning method to achieve multi-robot formation in the case of large and complex target queues. Some scholars proposed an ID3QN (Imitative Dueling Double Deep Q-Network) algorithm, which improved the learning efficiency compared with traditional algorithms, realized the coordinated control of UAV formations, and verified it through semi-physical simulation system experiments. Some scholars designed a formation controller based on the D3QN algorithm, and proposed a method combining a priority selection strategy with a multi-layer action library, which accelerated the convergence speed of the algorithm and enabled the wingman to eventually follow the leader. Some scholars proposed a multi-UAV collaborative task decision-making method based on the MADDPG algorithm, which improved the learning speed compared with the traditional deep reinforcement learning algorithm. Some scholars have proposed a LSTM-based strategy that allows the formation algorithm to receive observations from any number of other agents. Some scholars have used a compound reward and punishment mechanism to solve multi-objective optimization problems in robot formations.

[0011] Although deep reinforcement learning has powerful learning and generalization capabilities and has achieved a lot of research results in the field of multi-robot control, deep reinforcement learning still has its limitations in practical use. In complex tasks, the sampling efficiency of deep reinforcement learning will be greatly reduced due to the long time or space complexity of each sample. In multi-robot formation tasks, the traditional training method uses direct formation to train the model. Long-term formation movement and fixed formation formation will greatly affect the sampling efficiency and the final generalization ability of the model. In addition, an important assumption of deep reinforcement learning is the existence of rewards, which can guide the robot's strategy to improve in the "correct" direction. The reward function is generally a fixed item in the learning process, which is set by researchers based on prior knowledge. For simple task goals, setting a simple reward function can train the best strategy. However, for complex tasks such as multi-robot formation tasks, the reward function can only give a rough learning goal, which may lead to training falling into local optimality, overfitting of rewards leading to unexpected results, and slow or even non-convergence. Summary of the invention

[0012] In order to address the shortcomings of the prior art, the present invention provides a multi-robot hierarchical formation control method and system based on deep reinforcement learning, which can quickly learn and follow the target point, effectively avoid robot collisions, and have strong generalization capabilities in the control of multi-robot real-time formation tasks.

[0013] In order to achieve the above object, the present invention adopts the following technical solution:

[0014] In a first aspect, the present invention provides a multi-robot hierarchical formation control method based on deep reinforcement learning.

[0015] A multi-robot hierarchical formation control method based on deep reinforcement learning includes the following processes:

[0016] For each robot in the robot formation, obtain the position coordinate information of each robot, the movement speed of each robot, the relative coordinates of each robot to the reference point at the current moment, and the relative coordinates of each robot to other robots in the robot formation;

[0017] According to the relative coordinates of each robot and other robots in the robot formation and the LSTM (Long Short-Term Memory)-based autoencoder network, the fixed-length encoding of the obstacle information of each robot is obtained. The fixed-length encoding of the obstacle information and the position coordinate information of each robot, the movement speed of each robot, and the relative coordinates of each robot and the reference point at the current moment are used as the input of the multi-robot hierarchical control model to obtain the action strategy of each robot in the robot formation.

[0018] As a further limitation of the first aspect of the present invention, in the multi-robot hierarchical control model, a distributed consistency algorithm is used to process the information possessed by each robot in each sampling time period, and a consistent state is achieved by performing consistency negotiation on the information of each robot.

[0019] As a further limitation of the first aspect of the present invention, a distributed control method is adopted, each robot only knows the position information of the adjacent robots, and the robot cooperative formation model is:

[0020] ;

[0021] in, The formation topology diagram The adjacency matrix of The element in row i and column j in , , for t Always adjust the robot i The reference point to track, is the reference point that robot j needs to track before adjustment at time t, is the reference point that robot i is to track after adjustment at time t.

[0022] As a further limitation of the first aspect of the present invention, for any robot in the robot formation, this robot uses its own initial state as the initial value of the reference point estimation, and through information exchange and continuous collaborative adjustment, ultimately the reference point of the robot formation forms a desired formation.

[0023] As a further limitation of the first aspect of the present invention, the LSTM-based autoencoder network includes: an LSTM encoder layer, a RepeatVector layer, and an LSTM decoder layer, wherein a relative coordinate sequence between the robot and other robots in the robot formation is input into the LSTM encoder layer for encoding to generate a hidden layer code, wherein the hidden layer code is used as a fixed-length code of the obstacle information;

[0024] The RepeatVector layer and the LSTM decoder layer are used for zero-shot training of the LSTM-based autoencoder network. The fixed-length encoding of the obstacle information is matched to the original sequence length through the RepeatVector layer, and the LSTM decoder layer is used to restore the output of the RepeatVector layer to the original data sequence.

[0025] As a further limitation of the first aspect of the present invention, in the multi-robot hierarchical control model, a trained MADDPG target tracking model is used, each robot gives its best target point tracking strategy action, and the results processed by the distributed consensus algorithm of each robot are used as input to obtain the best target point tracking strategy action of each robot;

[0026] In the training of the MADDPG target tracking model, the total reward value of each robot is the sum of the distance reward value and the collision penalty value. The collision penalty value is updated based on the adaptive reward and penalty method, which includes the following process:

[0027] Step 1: Training starts, initializing the current reward value scale variable to 0;

[0028] Step 2: Determine whether the training is completed. If so, end the training. Otherwise, proceed to step 3.

[0029] Step 3: Determine whether the difference between the collision penalty value and the current reward value is greater than the set threshold. If so, execute step 4; otherwise, skip step 4 and execute step 5 directly.

[0030] Step 4: Adjust the size of the collision penalty value according to the current reward value scale;

[0031] Step 5: Perform a training, return the reward value to the current MADDPG target tracking model, update the current reward value scale, and return to step 2.

[0032] In a second aspect, the present invention provides a multi-robot hierarchical formation control system based on deep reinforcement learning.

[0033] A multi-robot hierarchical formation control system based on deep reinforcement learning, comprising:

[0034] The data acquisition unit is configured to: acquire, for each robot in the robot formation, the position coordinate information of each robot, the movement speed of each robot, the relative coordinates of each robot to a reference point at a current moment, and the relative coordinates of each robot to other robots in the robot formation;

[0035] The hierarchical formation control unit is configured to obtain the fixed-length encoding of the obstacle information of each robot according to the relative coordinates of each robot and other robots in the robot formation and the LSTM-based autoencoder network, and use the fixed-length encoding of the obstacle information and the position coordinate information of each robot, the movement speed of each robot, and the relative coordinates of each robot and the reference point at the current moment as the input of the multi-robot hierarchical control model to obtain the action strategy of each robot in the robot formation.

[0036] As a further limitation of the second aspect of the present invention, in the multi-robot hierarchical control model of the hierarchical formation control unit, a distributed consistency algorithm is adopted to process the information possessed by each robot in each sampling time period, and a state consistency is achieved by performing consistency negotiation on the information of each robot.

[0037] As a further limitation of the second aspect of the present invention, a distributed control method is adopted, each robot only knows the position information of the adjacent robots, and the robot cooperative formation model is:

[0038] ;

[0039] in, The formation topology diagram The adjacency matrix of Middle i Line j The elements of the column, , , Adjust the robot before time t i The reference point to track, is the reference point that robot j needs to track before adjustment at time t, for t Time-adjusted robot i The reference point to track.

[0040] As a further limitation of the second aspect of the present invention, for any robot in the robot formation, this robot uses its own initial state as the initial value of the reference point estimation, and through information exchange and continuous collaborative adjustment, ultimately the reference point of the robot formation forms a desired formation.

[0041] Compared with the prior art, the present invention has the following beneficial effects:

[0042] 1. In response to the problems of low intelligence, slow training convergence speed, and high requirements for model information in traditional formation control methods, the present invention innovatively proposes a multi-robot hierarchical formation control method and system based on deep reinforcement learning, which can quickly learn to follow the target point, effectively avoid robot collisions, and has strong generalization ability in the control of multi-robot real-time formation tasks.

[0043] 2. In view of the shortcomings of the layered formation control model in collision avoidance, the present invention adaptively adjusts the reward and punishment parameters during the model training process. This method significantly improves the model's collision avoidance capability in simulation experiments and reduces the collision rate.

[0044] 3. In order to solve the limitation that the amount of obstacle information needs to be fixed in advance, the present invention proposes an unsupervised learning strategy based on a pre-trained autoencoder, so that the model can acquire the ability to process data sequences of any length through zero-sample pre-training, thereby realizing flexible processing of any number of robots and obstacle position information.

[0045] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0047] Figure 1 A schematic diagram of a decomposition of a formation control strategy provided in Example 1 of the present invention;

[0048] Figure 2 A schematic diagram of the structure of the MADDPG algorithm provided in Example 1 of the present invention;

[0049] Figure 3 A schematic diagram of the LSTM-based autoencoder network structure provided in Example 1 of the present invention;

[0050] Figure 4 A schematic diagram of a multi-robot hierarchical formation control model based on a spatial state encoder provided in Example 1 of the present invention;

[0051] Figure 5 The communication topology diagram provided in Example 1 of the present invention;

[0052] Figure 6 A schematic diagram of the hierarchical formation control simulation model architecture provided in Example 1 of the present invention;

[0053] Figure 7 A schematic diagram of the structure of an autoencoder network model output by an internal function of the Keras framework provided in Example 1 of the present invention;

[0054] Figure 8 A schematic diagram of an image showing changes in training loss after increasing the number of samples provided in Example 1 of the present invention;

[0055] Fig. 9 The average reward value of the MADDPG algorithm provided in Example 1 of the present invention minus the number of training rounds;

[0056] Fig.10 A schematic diagram of target point tracking simulation results provided in Example 1 of the present invention; wherein (a) is the initial position and (b) is the end position;

[0057] Fig.11 Schematic diagram of the layered formation control simulation results provided in Example 1 of the present invention, wherein (a) is the initial position, (b) is the position after 1 second, (c) is the position after 3 seconds, and (d) is the position after 7 seconds. DETAILED DESCRIPTION

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

[0059] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used in the present invention have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.

[0060] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.

[0061] Embodiment 1:

[0062] This implementation proposes a multi-robot hierarchical formation control method based on deep reinforcement learning. First, in view of the low intelligence level, slow training convergence speed, and high model information requirements of the design control method in traditional formation control methods, the present invention proposes a hierarchical formation control model that combines consistency theory and deep reinforcement learning algorithm. The simulation experimental results show that the model exhibits excellent real-time formation control performance, can quickly learn the optimal strategy for following the target point, and performs well in avoiding collisions, and has strong generalization ability in multi-robot formation tasks; secondly, in view of the shortcomings of the hierarchical formation control model in collision avoidance, the present invention further proposes A collision avoidance optimization method based on a multi-objective adaptive reward and punishment algorithm. By adaptively adjusting the reward and punishment parameters during the training process, this method significantly improves the model's collision avoidance ability in simulation experiments and reduces the collision rate. In addition, in order to solve the limitation that the amount of obstacle information needs to be fixed in advance, the present invention explores the application of LSTM-based spatial state encoders in multi-robot formation control, and proposes an unsupervised learning method based on pre-trained autoencoders, so that the model can obtain the ability to process data sequences of any length through zero-sample pre-training, and realizes the flexible processing of any number of robots and obstacle position information, and verifies the effectiveness of this method through experiments. Specifically, the content of this implementation method includes the following processes:

[0063] S1: Formation control problem description.

[0064] Since the multi-robot formation problem has the characteristics of multi-dimensionality and high complexity, we simplify the study and make the following assumptions: the multi-robots have the same structure and physical characteristics, and do not consider the shape and other properties of the robots. The robot motion is simplified to the motion of a collidable circular particle with a certain radius in two-dimensional space. The simplified motion model of the robot is shown in equation (1):

[0065] (1);

[0066] In the formula, For robots The location coordinate information, For robots Movement speed, For robots The total external force, For robots Quality, t Represents the moment.

[0067] Next, we define formation stability based on the formation vector: Assume that the vector ,in It's a robot The expected position of Robots form a formation If and only if there exists a vector , so that , ,in It's a robot location, is an arbitrary N-dimensional vector representing the position offset of the entire formation, is the expected speed of the formation, if there is a mapping function and , then:

[0068] (2);

[0069] Established, ,but The robots converge into a formation .

[0070] S2: Framework design of hierarchical formation control method.

[0071] The key to formation control lies in how to give the formation target point and how to convert the received formation target and instructions into robot control input. The present invention decomposes the formation control problem into two sub-problems: multi-robot collaboration and single robot reference point tracking. That is, the reference point is produced through organizational-level collaborative formation control, and each robot tracks the designated reference point to make the multi-robot system form the desired formation, thus forming a hierarchical formation control model.

[0072] The formation control system of the present invention is designed based on consistency theory and deep reinforcement learning, and its decomposition structure is as follows: Figure 1 As shown, it includes the execution level (i.e., the process of executing collaborative formation), the coordination level (i.e., the process of executing reference point tracking) and the execution level (i.e., the process of executing motion control), wherein the distributed consistency algorithm is used to determine the desired target position of each robot, and the deep reinforcement learning algorithm is used to obtain the robot's control input (i.e., action) to drive the robot to the target position. The formation control system outputs the robot control input in real time (the instruction remains unchanged within the sampling interval) and sends it to the underlying control system, which then implements motion control.

[0073] S3: Collaborative formation design based on consistency theory.

[0074] The high-level multi-robot collaboration layer subsystem handles the information exchange between all adjacent robots and determines the reference point of each robot according to the task objectives so that the multi-robots form the desired formation. Considering the dynamics of collaborative formation robots, high-level collaborative control requires communication between robots, involving communication problems such as communication delays, intermittent interruptions, transmission noise, and bandwidth limitations; similarly, the collaborative formation layer also needs to receive formation instructions and feedback information provided by the reference point tracking subsystem of the next layer.

[0075] The present invention firstly adopts a distributed consensus algorithm to process the information owned by each robot in each sampling time period, and achieves state consistency by negotiating the consistency of the information of each robot. This method is suitable for complex environments with limited communication, and the communication delay and data packet loss problems can be reflected through the communication topology. In order to achieve the formation requirements, each robot determines the reference point it needs to track. , according to the definition of formation, the robot and The reference point meets the following conditions:

[0076] (3);

[0077] make , the present invention ignores the influence of communication delay and adopts a distributed control method. Each robot only knows the position information of the adjacent robots. The collaborative formation model of the robots in the formation diagram is:

[0078] (4);

[0079] In the formula, The formation topology diagram The adjacency matrix of No. i Line j Elements of a column.

[0080] The robot will start its initial state As the initial value of its parameter point estimation, that is, initially each robot believes that it has reached the reference point of the formation, and then continuously cooperates and adjusts through information exchange and application of formula (4), and finally makes the reference points of each robot formation form the desired formation. According to graph theory, if the formation graph contains a maximum spanning tree, then the system is uniformly asymptotically stable; when the connection relationship between robots switches, the union of the formation graph contains a maximum spanning tree, then the formation graph can asymptotically achieve consistency: when t→∞, there is is a constant, that is .

[0081] In order to achieve the formation requirements, each robot needs to track its own reference point ,Right now , driven by control inputs that depend on the robot's own position and velocity and the information provided by the collaborative system (desired position, velocity).

[0082] The collaborative formation layer is implemented by a consistency protocol. The key to the design of its discretized model is the design of the communication topology. The present invention enables each robot to obtain the position information and speed of other robots through observation, but cannot obtain the goals and intentions of other robots. Considering the complexity of the robot model and the interference of external uncertainty, the present invention adopts model-free deep reinforcement learning to design control input and realize multi-robot target point tracking. If all robots converge to their respective reference points, the desired formation is formed.

[0083] S4: Design of target point tracking based on deep reinforcement learning.

[0084] In the multi-robot target point tracking control task of the present invention, the robot not only has to track its own target point, but also has to avoid collision based on the information of other robots. Therefore, traditional reinforcement learning algorithms such as Q-Learning or Policy Gradient are no longer applicable. Each robot in the system is an independent intelligent agent, and all need to continuously learn during the training process to improve its action generation strategy. This leads to the fact that from the perspective of each robot, due to the learning and actions of other robots, the surrounding environment will change from the originally stable static environment to an unstable dynamic environment. At the same time, the problem of dimensional explosion of the strategy space in the traditional policy gradient algorithm will be amplified due to the increase in the number of intelligent agents and the continuous changes in the environment. In addition, since the state of other intelligent agents is unknown, the state transfer of the agent itself will be different in different situations, so the traditional experience replay method used by DQN will no longer be applicable, and the MADDPG algorithm is a deep reinforcement learning algorithm proposed for this type of problem. Therefore, the present invention uses the MADDPG deep reinforcement learning method to generate the control input of the formation robot.

[0085] The MADDPG algorithm proposed by some scholars improves the Actor-Critic architecture and DDPG algorithm, and adopts the principles of centralized learning and distributed execution, making it applicable to complex multi-agent environments. First, since the training and prediction of traditional reinforcement learning algorithms are the same network, the same information must be used during learning and application, while the MADDPG algorithm allows the use of centralized learning global information to train Critic and Actor during training. When the Actor of each agent is fully trained, the Actor can give the optimal action using only local information during execution, without the need for the state or action of other agents. Secondly, the MADDPG algorithm improves the data recorded by experience replay, so that the experience replay mechanism can also be used to accelerate training in a multi-agent environment. In addition, it also uses the strategy set effect optimization for each agent to learn multiple strategies, and optimizes the strategy based on the overall effect of all strategies to improve the stability and robustness of the algorithm.

[0086] In the MADDPG algorithm, we consider The environment of a robot, then The policy network of each robot can be used Indicates that the parameters can be expressed as ,but The strategy set of robots , whose policy parameter set , at the same time, The expected reward value of a robot can be written as , we can get the gradient of its expected reward value:

[0087] (5);

[0088] In the formula, is the reward value of the ith robot, For the The state value of the robot, is the state vector, s is the state of each robot, p is its state distribution, is a centralized action value function whose parameters include not only its own state and the actions performed, but also the actions of other robots. , both have:

[0089] (6);

[0090] in, is the true strategy of the ith robot, is the state of each robot after taking an action. That is, if we know the actions taken by all robots, the environment is stable even if the strategy changes. The above idea can also be extended to deterministic strategies. In addition, in order to achieve the strategy that does not need to know other robots and eliminate the assumption of knowing other robots' strategies, each robot contains the knowledge of other robots. The approximate strategy of each robot is obtained by maximizing the action probability of other robots, so that the strategies of other robots can be obtained by fitting approximation without knowing the actual strategies of other robots.

[0091] according to Figure 2 As shown in the algorithm structure diagram, for each robot, its state is first input into its policy network to obtain an action, which is then output and used in the environment. New states and reward values ​​are obtained through interaction with the environment, and finally the data is stored in the robot's own experience pool. All robots are constantly interacting with the environment and generating data stored in their respective experience pools.

[0092] During the network update process, a batch of data is randomly extracted from the experience pool of each robot and spliced ​​together to obtain new experience. ,in and is the combination of the states of all robots, is the set of actions made by all robots, and finally Input to robot In the target policy network, we get the action , and then and Input to the robot together The estimated target Q value at the next moment is obtained from the target evaluation network. The actual Q value is obtained through the value network, and then the value network is updated using the time difference method. At the same time, the policy network is updated using the policy gradient of the Q value. All robots update their respective networks in the same way, and ultimately the optimal control strategy can be obtained through training.

[0093] In the current context of model-free reinforcement learning, modeling the multi-robot target point tracking control problem as a Markov decision process requires defining each element of the model in turn, mainly including state representation, action space and reward function.

[0094] S4.1: State space and its encoder design.

[0095] In order to make the control algorithm have better generalization ability, the present invention uses the relative information between robots and between robots and the environment to calculate the control input, so that the formation control strategy does not depend on the specific physical implementation and adapts to different environments. Considering the scalability of the system scale, the state of the system is set to , the state variables of each robot in the system can be divided into its own state information and other individual state information according to their nature, so the robot The state observation value of is set to:

[0096] (7);

[0097] In the formula, For robots The current position, For robots The current speed, For robots The relative coordinates of the reference point at the current moment, For robots With other robots The relative coordinates of .

[0098] Among them, each robot's own status information includes the robot Current location, robot The current speed and robot The relative coordinates of the reference point at the current moment, and other individual state information, namely the robot With other robots The relative coordinates represent the obstacle information that the robot needs to avoid. In the application of multi-robot formation and obstacle avoidance, the robot needs to perceive the position and state of obstacles in the surrounding environment in real time, and make decisions on formation and obstacle avoidance based on this. Traditional model methods are usually designed based on a fixed number of obstacles, which has certain limitations in practical applications. In an actual production environment, the number of obstacles faced by each robot changes dynamically, but the existing models have a fixed input size and cannot change the input parameter length of the model in real time to adapt to the dynamically changing environment. The present invention uses an obstacle information conversion method based on a long short-term memory model to achieve the conversion of the position state information of any obstacle into a one-dimensional array of a fixed length, thereby facilitating the robot to perform subsequent processing and decision-making.

[0099] The present invention uses a sequence autoencoder based on LSTM to train a fixed-length encoder of a spatial state. Figure 3 As shown, the present invention constructs an autoencoder that uses an LSTM layer to encode and decode sequences. Specifically, the sequence length of the input layer of the autoencoder can be set to None, indicating that the length of the sequence is not fixed, and the number of features represents the dimension of the location information of each obstacle. The input layer is not changed, and the data sequence is directly input into the LSTM encoder layer in sequence. After LSTM encoding, a hidden layer code with a dimension of 32, i.e., the number of LSTM units, is output. This code will be used as a fixed-length code of the state space later, and will be input into the MADDPG model of multi-robot formation control together with the robot's own information. A RepeatVector layer is added in the middle to repeat the output of the encoder to match the length of the original sequence. Finally, the decoder LSTM layer decodes it back to the original sequence.

[0100] The present invention introduces the above-mentioned LSTM-based zero-sample pre-trained spatial state encoder and constructs a Figure 4The multi-robot hierarchical formation control model based on the spatial state encoder is shown in FIG. The training of the model is divided into two parts. The first part is to pre-train the spatial state encoder using a zero-shot training method based on autoencoder pre-training to obtain a model with the ability to perform fixed-length encoding of obstacle position information sequence data. The second part is to add the pre-trained model to the input of the multi-robot hierarchical control model and learn through a large number of interactions between the model and the environment. At this time, only the parameters of the multi-robot hierarchical control model are trained, and the parameters of the spatial state encoder pre-training model remain unchanged. The spatial state information observed by each robot includes the information of each robot itself and the information of other robots or obstacles that need to be avoided. The information of each robot body remains unchanged, and the information of other robots or obstacles that need to be avoided will be sorted according to the distance and input into the spatial state encoder from large to small for fixed-length encoding. The fixed-length encoding containing the obstacle information will be spliced ​​with the robot body information as the input of the model into the multi-robot hierarchical formation model.

[0101] S4.2: Action space design.

[0102] The output of the strategy network, i.e. the robot action, is a control instruction, which is defined as the direction and throttle instruction in the present invention. The action is represented by , representing the robot The dynamic vector received during the sampling interval, the control strategy is The underlying closed-loop control is completed by the underlying controller within the interval after the update.

[0103] S4.3: Adaptive reward function design.

[0104] Since each robot is responsible for two different goals: target point tracking and collision avoidance, each robot The reward function It consists of two parts: distance reward value and collision penalty value.

[0105] The first part is the distance reward value, which guides the robot to move towards the reference point. Each robot The closer the distance to its corresponding target point, the higher the reward value;

[0106] The second part is the collision penalty value, which guides the robot to avoid other robots and avoid collisions. It means that if a collision occurs, a certain number of points will be deducted from the overall reward value, so the above collision penalty value is a negative value; it should be noted that a non-collision reward value can also be used to motivate the robot to avoid collision, but this is equivalent to adding a positive value to the overall reward value and deducting points for the collision behavior, which is equivalent to deducting the collision from the reward value as a penalty value.

[0107] Therefore, the reward function can be expressed as:

[0108] (8);

[0109] The goal of each robot is to maximize its overall expected reward:

[0110] (9);

[0111] In the formula, For the A robot reward, is the discount factor, The time range is the higher the reward, the better the robot formation effect is.

[0112] Experiments also show that the previously determined reward function, as training progresses, the model's formation accuracy and speed continue to improve, and the formation target reward value tends to infinity. At the same time, due to the limitations of the simulation environment, the penalty value generated by the collision is not infinite, so the sensitivity to the collision penalty will decrease accordingly. Therefore, as training progresses, the robot's collision avoidance ability gradually weakens as the total reward value increases. In addition, complex compound reward and punishment methods may cause training convergence difficulties or even failures if the parameters are not properly selected. In order to ensure the accuracy of the formation and the robot's collision avoidance ability, it is possible to consider adopting an adaptive reward function, that is, as training progresses, while the formation accuracy improves, the proportion of the collision penalty value is gradually increased.

[0113] The present invention designs an adaptive reward and punishment method, that is, as the training progresses, while the formation accuracy is improved, the proportion of the penalty value of collision is gradually increased, thereby simultaneously improving the formation ability and collision avoidance ability of the model.

[0114] To implement an adaptive reward and punishment method, for example, a penalty value that increases with the number of training rounds or a penalty value that increases with the overall increase in the reward value can be used. In order to minimize the adverse effects of the adaptive reward and punishment method that automatically changes during the training process on the model's formation ability and collision avoidance ability, the present invention adopts an adaptive reward and punishment method that changes according to the change in the overall volume of the reward value. Specifically, the present invention requires encoding and designing the simulation environment: first, a global variable for storing the current reward value scale needs to be created in the simulation environment; second, before calculating the reward value, the current reward value scale needs to be judged to determine whether the scale of the collision penalty value needs to be increased to adapt to the current training cycle; finally, after each training session, the variable storing the current reward value scale must be updated to help determine whether the collision penalty value needs to be adjusted in subsequent training.

[0115] In this implementation, the linear distance reward value and the nonlinear distance reward value are added to obtain a new reward value function. Because of the linear term, this function can ensure the initial training speed, and because of its nonlinear term, it can ensure the final formation accuracy. It can be expressed as follows:

[0116] (10);

[0117] The collision penalty value based on the adaptive reward and punishment method can be expressed as follows:

[0118] (11);

[0119] In the formula, is the collision base penalty value, is the collision adaptive penalty value, is the sum of the radii of robot i and robot j.

[0120] The above deep reinforcement learning algorithm process based on the adaptive reward and punishment method is summarized into five steps, each of which is as follows:

[0121] Step 1: Training starts, initializing the current reward value scale variable to 0;

[0122] Step 2: Determine whether the training is completed. If so, end the training. Otherwise, proceed to step 3.

[0123] Step 3: Determine whether there is a large gap between the collision penalty value and the current reward value. If so, execute step 4 in sequence. Otherwise, skip step 4 and execute step 5 directly.

[0124] Step 4: Adjust the size of the collision penalty value according to the current reward value scale;

[0125] Step 5: Perform a training, return the reward value and other information to the model, update the current reward value scale, and return to step 2.

[0126] In this algorithm, specific scheme details need to be defined, including a scheme for determining whether there is a large gap between the collision penalty value and the current reward value scale, and a method for adjusting the size of the collision penalty value according to the current reward value scale. In order to simplify the calculation, the present invention adopts a relatively intuitive and easy-to-implement scheme, which uses whether the total reward value is greater than 0 as a criterion for determining whether there is a large difference between the collision penalty value and the current reward value scale, and uses the total reward value (i.e., the positive target tracking reward value minus the negative collision penalty value) as a criterion for updating the adaptive collision penalty value.

[0127] According to the above model method, hierarchical formation control of multi-robot system can be realized. First, a task scenario of target point tracking is established, and the MADDPG deep reinforcement learning model is trained on this task until the model converges; then, using the consistency protocol, according to the initial position of each robot in the system as well as the target formation and target speed, the position of the target reference point of each robot is calculated in real time and marked in the interactive environment; at the same time, using the trained MADDPG target tracking model, according to the current environment state space, each robot gives its best target point tracking strategy action, which is the instruction to control the robot to realize formation.

[0128] In summary, the present invention firstly studies the hierarchical formation control method based on the combination of consistency theory and MADDPG algorithm to solve the problems of low intelligence level, slow training convergence speed, poor effect and high model information requirements in multi-robot formation control, and designs the consistency algorithm and MADDPG model structure from the network structure, state space, action space and reward function based on the multi-robot formation task background; then, the present invention verifies the effectiveness of the proposed model through simulation experiments based on the open source Gym simulation environment. The results show that the hierarchical control method can well realize the real-time formation control of multi-robots. Only through a large amount of training, without precise model information, the robot can autonomously learn the optimal strategy to follow the target point and avoid collision. It has faster convergence speed, learning efficiency and generalization ability than the common formation method, and is suitable for the multi-robot formation environment.

[0129] The present invention aims at the problem of poor collision avoidance effect of multi-robot hierarchical formation control model based on deep reinforcement learning. Based on the research on the current mainstream deep reinforcement learning reward and punishment method, the key problem of imbalance of multi-objective reward values ​​is clarified. Based on the multi-objective task background of multi-robot formation and collision avoidance, starting from the reward function of the simulation environment, a deep reinforcement learning model based on adaptive reward and punishment method is designed. The experimental results show that the adaptive reward and punishment method proposed by the present invention reduces the collision rate of the model in the simulation experiment by about 29%, which can greatly improve the collision avoidance ability of multi-robot formation control. The adaptive reward and punishment method proposed by the present invention is not only very simple to implement, but also can be applied to deep reinforcement learning scenarios of various multi-objective tasks, and has a very broad application prospect.

[0130] The present invention aims at the problem that the number of obstacle information in the multi-robot hierarchical formation control model based on deep reinforcement learning has the limitation of needing to be fixed in advance. Based on the current mainstream zero-sample unsupervised learning method, starting from the LSTM model that supports the input of arbitrary length sequences, an LSTM-based autoencoder model that supports arbitrary length input is proposed, and at the same time, a zero-sample unsupervised pre-training method is proposed to produce a pre-trained encoder, and thereby realize the multi-robot hierarchical formation control model based on the spatial state encoder. Experiments show that the LSTM-based autoencoder proposed in the present invention has good encoding and decoding capabilities, which indicates that the spatial state encoder can realize the implicit obstacle position information sequence in the encoding. At the same time, the simulation experiment results show that the multi-robot hierarchical formation control model can learn the obstacle position information from the encoding, and can realize the input of the obstacle position information sequence of arbitrary length. In general, this method provides a more flexible and effective solution for conflict avoidance in multi-robot systems. By utilizing the ability of LSTM to process variable-length input sequences, the system can encode and track the states of a large number of robots and obstacles in real time, thereby outputting better strategies.

[0131] The present invention takes four robot systems as an example for illustration, and the communication topology diagram can be designed as follows: Figure 5 The structure shown in , then its corresponding adjacency matrix is:

[0132] (12);

[0133] Taking a square formation composed of four robots as an example, the target formation matrix is:

[0134] (13);

[0135] In formation, upward right Take the uniform speed movement as an example, the target speed matrix is:

[0136] (14);

[0137] OpenAI's Gym platform is a simulation platform for reinforcement learning and a collection of various reference environments. The MPE (Multi-Agent Particle Environments) multi-agent particle environment is a simple multi-agent particle world with continuous observation and discrete action space, as well as some basic simulated physical scenes. New simulation experiment scenes can be created by implementing its internal functions.

[0138] The simulation environment of the present invention uses an MPE environment based on the Gym platform, and the MADDPG algorithm is implemented using the Tensorflow framework. The processor model of the equipment used in the experiment is i7-11800H, the graphics card model is RTX 3060 Laptop, and the operating system is Windows 10 (the processor, graphics card, and operating system are all products purchased through legal channels and authorized for use). The multi-robot system set up in the experiment consists of four omnidirectional mobile robots. The experimental target formation is a square formation, and the overall movement of the formation is maintained at a certain speed. Each robot can obtain the relative position information of other intelligent agents and their target points. The global information contains the relative position information of each robot. The present invention is based on the Gym simulation environment (implemented using the source Gym simulation environment) to implement a model architecture for multi-robot hierarchical formation control simulation. Figure 6 shown.

[0139] The hyperparameters of the simulation experiment include: time step, maximum length of MADDPG model rounds, number of training rounds, training sample size, learning rate, discount factor, and number of neural network units of value and policy networks. The specific parameters are shown in Table 1.

[0140] Table 1: Parameter settings

[0141]

[0142] The consensus algorithm is used to control the formation of agents at random initial positions at an organizational level, so that they can reach the input target formation and target speed. The consensus algorithm can realize the formation control of agents, and when the initial position of the target point is random, the precise rectangular formation movement of the agents is achieved within 20 time steps, while the speed of all agents is kept consistent.

[0143] In order to train an encoder with encoding capabilities, a zero-shot training method based on autoencoder pre-training is adopted, that is, first build and train an LSTM-based autoencoder, and then verify the independent encoding capability of its encoder. The first step is to build an LSTM-based autoencoder model through the Keras framework. Figure 7 As shown in the figure, it is the model structure diagram output by calling the internal function plot_model of the Keras framework. The model input format is (None, None, 2), which means that it allows the input of sequence data of any length with a feature of 2 and outputs a decoding of the original input with a length of 3 and a feature number of 2.

[0144] The second step is to randomly create a large amount of obstacle position information sequence data for training. In the autoencoder model of the present invention, although the LSTM-based encoder can realize sequence input of any length, the decoding output of the decoder needs to be fixed. This parameter is determined by the specific task scenario. Since the number of obstacles faced by each robot in the experimental environment of the present invention is 3, and at the same time, the collision avoidance action of each robot depends largely on the information of one or several obstacles closest to it, the present invention also fixes the output sequence length of the decoder to 3 in the training of the autoencoder, which enables the model to retain at least the three nearest obstacle information. When randomly creating obstacle position information sequence data, the input length of the training set is set to 3 to 5, and the output is set to 3. The output data all takes the last three sequences of the input data, and the ratio of input data with lengths of 3, 4 and 5 is 8:1:1. In addition, a set of validation sets of the same size is reconstructed using the data construction method of the training set to verify the training results.

[0145] The third step is to set various hyperparameters and start model training. The parameters that need to be paid attention to in the model training of the present invention are shown in Table 2. Among them, the Adam optimizer used in model training can automatically adjust the learning rate during the training process, and the loss function uses the mean squared error (MSE).

[0146] Table 2: Hyperparameters of LSTM-based state-space encoder encoding experiments

[0147]

[0148] like Figure 8 As shown in the figure, when the number of training iterations reaches about 200, the loss of the validation set reaches the minimum, and there is no obvious overfitting phenomenon within 1000 training iterations, indicating that the model training results at this time are relatively good. At this point, the pre-trained encoder required for the experiment has been trained. Next, you only need to build the encoder separately and give it the pre-trained model parameters to join the entire multi-robot hierarchical formation control task.

[0149] Since the encoder's encoding is an abstract compression encoding, it is not easy to intuitively verify its actual encoding ability. In order to indirectly verify the encoder's encoding ability, the encoding and decoding capabilities of the entire autoencoder can be observed. A sequence of obstacle position information is randomly generated and input into the encoder to obtain a 32-bit fixed-length code of the sequence. Then the code is input into the decoder to obtain the restored sequence of the original sequence. The results of a certain test experiment are shown in Table 3.

[0150] Table 3: Experimental results of LSTM-based autoencoder

[0151]

[0152] The experimental results show that the LSTM-based autoencoder has good encoding ability, and there are certain errors in the process of encoding and decoding the obstacle position information sequence data. Since the model of the present invention only needs to use the encoder of the autoencoder to perform fixed-length encoding on the obstacle position information sequence without decoding and restoring, the deep reinforcement learning model will automatically learn the obstacle position information implicit in the 32-bit fixed-length code, so the impact of the encoding and decoding errors will be further reduced. In the subsequent multi-robot formation control experiment based on the spatial state encoder, the accuracy of its encoding information can be further studied.

[0153] According to the experimental objectives, a multi-agent simulation environment is established on the Gym platform. The MADDPG algorithm model is trained by interacting with the simulation environment. Finally, the trained model is used to implement the fixed target point tracking control task of the agent in the simulation environment. The average reward value of the MADDPG algorithm model changes with the number of training rounds. Fig. 9 As shown in the figure, the control strategy of the multi-agent starts with random motion, goes through a high-speed learning phase in the middle, and finally gradually becomes stable and remains at a high reward level. It can be seen that the target point tracking model based on the MADDPG algorithm is convergent in this task.

[0154] Fig.10 The simulation experiment is given, and the initial positions of the robot and its target point are randomly generated, such as Fig.10 As shown in (a) in the figure, the robot and the target point are represented by a large circle and a small circle respectively (the same below). When the target point remains stationary, the four robots accurately track the corresponding target point within 3 seconds, as shown in Fig.10 As shown in (b), it can be seen that the tracking accuracy and speed of the target point tracking task based on the MADDPG algorithm are higher.

[0155] In order to verify the feasibility of the hierarchical formation control algorithm, based on the model obtained from the MADDPG target point tracking experiment, the moving trajectory points of the agents in the consensus protocol cooperative formation experiment are used as target points to control the agents to track the targets. Fig.11 The simulation experiment results are given. After the simulation starts, the robot with random initial position and its target point are generated, such as Fig.11 As shown in (a) in the figure, the target point is controlled by the consensus protocol and a target formation is formed in a short time. The robot controlled by the MADDPG model also quickly forms a high-precision target formation by tracking the corresponding target point and begins to move in formation along the given direction and speed following the target point, as shown in Figure 2. Fig.11 (b), (c) and (d) in the figure are the positions after the first second, the third second and the seventh second respectively. Experiments show that the algorithm can realize high-precision and high-speed formation control of multiple robots for any formation. It can control the size and direction of the formation and the speed of the formation movement in real time by changing the input target formation matrix and target speed matrix of the consistency algorithm in real time, showing the strong learning and generalization ability of deep reinforcement learning.

[0156] Embodiment 2:

[0157] This implementation provides a multi-robot hierarchical formation control system based on deep reinforcement learning, including:

[0158] The data acquisition unit is configured to: acquire, for each robot in the robot formation, the position coordinate information of each robot, the movement speed of each robot, the relative coordinates of each robot to a reference point at a current moment, and the relative coordinates of each robot to other robots in the robot formation;

[0159] The hierarchical formation control unit is configured to obtain the fixed-length encoding of the obstacle information of each robot according to the relative coordinates of each robot and other robots in the robot formation and the LSTM-based autoencoder network, and use the fixed-length encoding of the obstacle information and the position coordinate information of each robot, the movement speed of each robot, and the relative coordinates of each robot and the reference point at the current moment as the input of the multi-robot hierarchical control model to obtain the action strategy of each robot in the robot formation.

[0160] The specific control process of each of the above units is specifically referred to the process in Example 1, which will not be repeated here.

[0161] It is understandable that the above-mentioned modules can be separately or completely combined into one or several other units to constitute, or one (some) of the units can be further divided into multiple functionally smaller units to constitute, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application. The above-mentioned units are divided based on logical functions. In practical applications, the functions of one unit can also be implemented by multiple units, or the functions of multiple units can be implemented by one unit. In other embodiments of the present application, the hierarchical formation control system can also include other units. In practical applications, these functions can also be implemented with the assistance of other units, and can be implemented by the collaboration of multiple units.

[0162] According to another embodiment of the present application, the system described in this embodiment can be constructed, and the hierarchical formation control method of the embodiment of the present application can be implemented by running a computer program (including program code) capable of executing the steps involved in the corresponding method described in Example 1 on a general computing device such as a computer including processing elements and storage elements such as a central processing unit (CPU), random access memory (RAM), and read-only memory (ROM). The computer program can be recorded on, for example, a computer-readable recording medium, and loaded into the above-mentioned computing device through the computer-readable recording medium and run therein.

[0163] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A multi-robot hierarchical formation control method based on deep reinforcement learning, characterized in that: The process includes: The formation control problem is decomposed into two sub-problems: multi-robot collaboration and single-robot reference point tracking. The reference point is produced through organizational-level collaborative formation control. At the same time, each robot tracks the specified reference point to make the multi-robot system form the desired formation, forming a hierarchical formation control model. During training, the Critic and the Actor are trained using centralized learning of global information. When the Actor of each intelligent agent is fully trained, the Actor can give the optimal action using only local information during execution. For each robot in the robot formation, obtain the position coordinate information of each robot, the movement speed of each robot, the relative coordinates of each robot to the reference point at the current moment, and the relative coordinates of each robot to other robots in the robot formation; According to the relative coordinates of each robot and other robots in the robot formation and the LSTM-based autoencoder network, the fixed-length code of the obstacle information of each robot is obtained, and the fixed-length code of the obstacle information and the position coordinate information of each robot, the movement speed of each robot, and the relative coordinates of each robot and the reference point at the current moment are used as inputs of the multi-robot hierarchical control model to obtain the action strategy of each robot in the robot formation; The LSTM-based zero-shot pre-trained spatial state encoder is introduced, and a multi-robot hierarchical formation control model based on the spatial state encoder is constructed. The training of the multi-robot hierarchical formation control model is divided into two parts. The first part is to pre-train the spatial state encoder using the zero-shot training method based on autoencoder pre-training to obtain a model with the ability to perform fixed-length encoding on obstacle position information sequence data. The second part is to add the pre-trained model to the input of the multi-robot hierarchical control model and learn through a large number of interactions between the model and the environment. At this time, only the parameters of the multi-robot hierarchical control model are trained, and the parameters of the spatial state encoder pre-training model remain unchanged. The spatial state information observed by each robot includes the information of each robot itself and the information of other robots or obstacles that need to be avoided. The information of each robot body remains unchanged. The information of other robots or obstacles that need to be avoided will be sorted according to the distance and input into the spatial state encoder from large to small for fixed-length encoding. The fixed-length encoding containing obstacle information will be spliced ​​with the robot body information as the input of the model into the multi-robot hierarchical formation model. Whether the total reward value is greater than 0 is used as the criterion for judging whether the collision penalty value is significantly different from the current reward value scale. The positive target tracking reward value minus the negative collision penalty value is used as the criterion for updating the adaptive collision penalty value, so as to adjust the size of the collision penalty value according to the current reward value scale. The collision penalty value based on the adaptive reward and punishment method is as follows: ; In the formula, is the collision base penalty value, is the collision adaptive penalty value, is the sum of the radii of robot i and robot j.

2. The multi-robot hierarchical formation control method based on deep reinforcement learning as claimed in claim 1, characterized in that: In the multi-robot hierarchical control model, a distributed consensus algorithm is used to process the information owned by each robot in each sampling time period, and the state consistency is achieved through consistency negotiation of the information of each robot.

3. The multi-robot hierarchical formation control method based on deep reinforcement learning as claimed in claim 2, characterized in that: Using a distributed control method, each robot only knows the position information of the adjacent robots, and the robot collaborative formation model is: ; in, The formation topology diagram The adjacency matrix of The element in row i and column j in , , is the reference point that robot i needs to track before adjustment at time t, is the reference point that robot j needs to track before adjustment at time t, is the reference point that robot i is to track after adjustment at time t.

4. The multi-robot hierarchical formation control method based on deep reinforcement learning as claimed in claim 3, characterized in that: For any robot in the robot formation, this robot uses its own initial state as the initial value of the reference point estimation, and through information exchange and continuous collaborative adjustment, the reference point of the robot formation eventually forms the desired formation.

5. The multi-robot hierarchical formation control method based on deep reinforcement learning as claimed in claim 1, characterized in that: An LSTM-based autoencoder network includes: an LSTM encoder layer, a RepeatVector layer, and an LSTM decoder layer. The relative coordinate sequence between the robot and other robots in the robot formation is input into the LSTM encoder layer for encoding to generate a hidden layer code, and the hidden layer code is used as a fixed-length code of the obstacle information. The RepeatVector layer and the LSTM decoder layer are used for zero-shot training of the LSTM-based autoencoder network. The fixed-length encoding of the obstacle information is matched to the original sequence length through the RepeatVector layer, and the LSTM decoder layer is used to restore the output of the RepeatVector layer to the original data sequence.

6. The multi-robot hierarchical formation control method based on deep reinforcement learning as claimed in claim 1, characterized in that: In the multi-robot hierarchical control model, the trained MADDPG target tracking model is used. Each robot gives its best target point tracking strategy action. The results processed by the distributed consensus algorithm of each robot are used as input to obtain the best target point tracking strategy action for each robot. In the training of the MADDPG target tracking model, the total reward value of each robot is the sum of the distance reward value and the collision penalty value. The collision penalty value is updated based on the adaptive reward and penalty method, which includes the following process: Step 1: Training starts, initializing the current reward value scale variable to 0; Step 2: Determine whether the training is completed. If so, end the training. Otherwise, proceed to step 3. Step 3: Determine whether the difference between the collision penalty value and the current reward value is greater than the set threshold. If so, execute step 4; otherwise, skip step 4 and execute step 5 directly. Step 4: Adjust the size of the collision penalty value according to the current reward value scale; Step 5: Perform a training, return the reward value to the current MADDPG target tracking model, update the current reward value scale, and return to step 2.

7. A multi-robot hierarchical formation control system based on deep reinforcement learning, characterized in that: include: The data acquisition unit is configured to: acquire, for each robot in the robot formation, the position coordinate information of each robot, the movement speed of each robot, the relative coordinates of each robot to a reference point at a current moment, and the relative coordinates of each robot to other robots in the robot formation; The hierarchical formation control unit is configured to: obtain the fixed-length code of the obstacle information of each robot according to the relative coordinates of each robot and other robots in the robot formation and the LSTM-based autoencoder network, and use the fixed-length code of the obstacle information and the position coordinate information of each robot, the movement speed of each robot, and the relative coordinates of each robot and the reference point at the current moment as inputs of the multi-robot hierarchical control model to obtain the action strategy of each robot in the robot formation; The formation control problem is decomposed into two sub-problems: multi-robot collaboration and single-robot reference point tracking. The reference point is produced through organizational-level collaborative formation control. At the same time, each robot tracks the specified reference point to make the multi-robot system form the desired formation, forming a hierarchical formation control model. During training, the Critic and the Actor are trained using centralized learning of global information. When the Actor of each intelligent agent is fully trained, the Actor can give the optimal action using only local information during execution. The LSTM-based zero-shot pre-trained spatial state encoder is introduced, and a multi-robot hierarchical formation control model based on the spatial state encoder is constructed. The training of the multi-robot hierarchical formation control model is divided into two parts. The first part is to pre-train the spatial state encoder using the zero-shot training method based on autoencoder pre-training to obtain a model with the ability to perform fixed-length encoding on obstacle position information sequence data. The second part is to add the pre-trained model to the input of the multi-robot hierarchical control model and learn through a large number of interactions between the model and the environment. At this time, only the parameters of the multi-robot hierarchical control model are trained, and the parameters of the spatial state encoder pre-training model remain unchanged. The spatial state information observed by each robot includes the information of each robot itself and the information of other robots or obstacles that need to be avoided. The information of each robot body remains unchanged. The information of other robots or obstacles that need to be avoided will be sorted according to the distance and input into the spatial state encoder from large to small for fixed-length encoding. The fixed-length encoding containing obstacle information will be spliced ​​with the robot body information as the input of the model into the multi-robot hierarchical formation model. Whether the total reward value is greater than 0 is used as the criterion for judging whether the collision penalty value is significantly different from the current reward value scale. The positive target tracking reward value minus the negative collision penalty value is used as the criterion for updating the adaptive collision penalty value, so as to adjust the size of the collision penalty value according to the current reward value scale. The collision penalty value based on the adaptive reward and punishment method is as follows: ; In the formula, is the collision base penalty value, is the collision adaptive penalty value, is the sum of the radii of robot i and robot j.

8. The multi-robot hierarchical formation control system based on deep reinforcement learning as claimed in claim 7, characterized in that: In the multi-robot hierarchical control model of the hierarchical formation control unit, a distributed consistency algorithm is used to process the information possessed by each robot in each sampling time period, and the state consistency is achieved through consistency negotiation of the information of each robot.

9. The multi-robot hierarchical formation control system based on deep reinforcement learning as claimed in claim 8, characterized in that: Using a distributed control method, each robot only knows the position information of the adjacent robots, and the robot collaborative formation model is: ; in, The formation topology diagram The adjacency matrix of The element in row i and column j in , , is the reference point that robot i needs to track before adjustment at time t, is the reference point that robot j needs to track before adjustment at time t, is the reference point that robot i is to track after adjustment at time t.

10. The multi-robot hierarchical formation control system based on deep reinforcement learning as claimed in claim 9, characterized in that: For any robot in the robot formation, this robot uses its own initial state as the initial value of the reference point estimation, and through information exchange and continuous collaborative adjustment, the reference point of the robot formation eventually forms the desired formation.

Citation Information

Patent Citations

  • Multi-robot formation control method based on self-organizing topology and model prediction

    CN114647244A

  • Constrained multi-robot reinforcement learning safety formation method based on two-dimensional laser observation

    CN116300905A