Multi-robot collaborative navigation method and system based on graph deep reinforcement learning
Through the multi-robot collaborative navigation method based on graph deep reinforcement learning, using KM algorithm and graph neural network, the problems of robustness and reliability of multi-robot systems in complex environments are solved, efficient collaborative navigation is achieved, and navigation success is improved rate and efficiency.
Patent Information
- Application Number
- CN202411212647.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2024-11-29
AI Technical Summary
How multi-robot systems ensure robustness and reliability in complex and dynamic environments, especially as the number of robots increases significantly, how to design efficient algorithms and protocols to support collaborative navigation of large-scale robots, especially as the number of robots increases significantly. It is an important challenge.
The multi-robot collaborative navigation method based on graph deep reinforcement learning is adopted, and the target allocation is performed through the KM algorithm, and the graph neural network is used for real-time obstacle avoidance navigation. The attention weight between computer robots is weighted according to the real-time distance, reducing the distance is farther The weight between the two robots is determined to determine the optimal action and plan the path so that multiple robots can reach the target point in a shorter time.
It improves the navigation success rate of multiple robots, shortens the collaborative navigation time, greatly improves the collaborative navigation efficiency, and enhances the robustness and generalization capabilities of the system.
Smart Images

Figure CN119043331A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of multi-robot navigation, and specifically relates to a multi-robot collaborative navigation method and system based on graph deep reinforcement learning. Background Art
[0002] In recent years, multi-robot systems have become an important direction in robotics research, with a wide range of application scenarios, including search and rescue, environmental monitoring, warehouse logistics, and military reconnaissance. In these scenarios, multi-robot collaborative navigation is a key technology that aims to enable multiple robots to effectively coordinate and cooperate in dynamic and unknown environments to complete complex tasks.
[0003] The goal of multi-robot collaborative navigation is to enable multiple robots to coordinate their movements in a shared environment to avoid collisions and complete tasks together. This process involves multiple technologies, including path planning, environmental perception, communication and collaboration. Path planning is one of the core technologies of multi-robot collaborative navigation. Traditional path planning algorithms, such as the A* algorithm and the Dijkstra algorithm, are mainly used in single-robot systems. In multi-robot systems, the mutual influence between multiple robots needs to be considered, which makes the path planning problem more complicated. Algorithms based on graph search (such as MRPP for multi-robot path planning) and optimization-based methods (such as mixed integer linear programming MILP) are widely used in multi-robot path planning. Among them, environmental perception is an important prerequisite for robot autonomous navigation. Multi-robot systems need to have efficient perception capabilities to obtain environmental information in real time and update it dynamically. LiDAR, cameras and ultrasonic sensors are commonly used perception devices. In addition, SLAM (Simultaneous Localization and Mapping) technology that integrates multi-sensor data is also widely used in multi-robot systems. In multi-robot systems, their communication and collaboration are crucial. Through wireless communication technology, robots can share location information, environmental data and decision information to achieve coordinated cooperation. Distributed control and centralized control are the two main modes of collaboration. The former focuses on autonomous decision-making by each robot, while the latter conducts unified scheduling through a central control unit.
[0004] Although multi-robot collaborative navigation technology has made significant progress, it still faces many challenges. For example, how to ensure the robustness and reliability of multi-robot systems in complex and dynamic environments is an important issue. The uncertainty and variability of the environment require robots to have rapid response and adaptive capabilities. As the number of robots increases, the computational and communication burden of the system will increase significantly. How to design efficient algorithms and protocols to support collaborative navigation of large-scale robot systems is an important direction for future research. Summary of the invention
[0005] In order to solve the problems existing in the prior art, the present invention provides a multi-robot collaborative navigation method based on graph deep reinforcement learning, proposes a new deep reinforcement learning algorithm framework for network training, performs target navigation through the KM algorithm, and uses a graph neural network for real-time obstacle avoidance navigation, aiming to solve the collaborative navigation problem of multiple robots, and has high robustness and strong generalization.
[0006] In order to achieve the above object, the technical solution adopted by the present invention is: a multi-robot collaborative navigation method based on graph deep reinforcement learning, comprising the following steps:
[0007] The multi-robot system obtains its own state information, and the current state information of multiple robots is regarded as graph node features as the input of the graph neural network;
[0008] The KM algorithm is used for target allocation. The target allocation result is used to process the state information of each robot. The state information of all robots is input into the attention layer for interactive calculation, and the action information of each robot is output. When performing target allocation, the attention weights between robots are calculated and weighted according to the real-time distance between robots, reducing the weight between two robots with a longer distance.
[0009] Selecting two robots corresponding to the maximum weights from the obtained multiple weights, and determining the optimal action for the next step according to the position information of the two robots;
[0010] The path is planned based on the optimal action, so that multiple robots can reach the target point in a shorter time.
[0011] Furthermore, the state information of the multi-robot system itself includes position, speed, direction, and sensor data, and outliers of the position, speed, direction, and sensor data are removed to ensure that the data are collected at the same time point and the same coordinate system; the state information of each robot is stacked to form a feature matrix.
[0012] Furthermore, the target allocation using KM algorithm specifically includes:
[0013] Assign values to each vertex, assign the first vertex the minimum weight and the second vertex 0. The matching principle is: only match the edges whose values assigned by the first vertex and the second vertex are equal to the set value. If a conflict occurs, add +1 to the first vertex and -1 to the second vertex, and then match again. If no match is found, repeat this operation.
[0014] Furthermore, in the target allocation, we first initialize the labels of each vertex, and then use the idea of the Hungarian algorithm to continuously find a set of perfect matches through the alternating path method, and adjust the labels of each vertex in the matching process to make the current match better. By maintaining the labels of the two vertex sets and an auxiliary array that records the matching situation, we continue to try to find a better matching solution until all vertices are matched and the weight sum is the largest, thereby finding the optimal matching solution. The relationship weight α between node i and node j is ij The calculation method is shown in formula (1), where time t is omitted in the symbols.
[0015]
[0016] Scaling Factor Λ is an N×N matrix and a learnable parameter. D is an N×N distance matrix. The scaling factor is introduced to reduce the influence of other robots’ feature information on itself. The feature information of all robots is multiplied by W. Q , W K , W V Then, a layernorm operation is performed to normalize the feature information of each robot.
[0017] Furthermore, when calculating the attention weights between robots, they are weighted according to the real-time distance between the robots, with the goal of reducing the weights between two robots that are farther apart. This includes:
[0018] The original information is feature extracted, and the state space is described by the distance and direction between robots, the distance and direction from the robot to the target, the two-dimensional laser radar, and the distance and direction of the nearest obstacle:
[0019] state=[D rr , Θ rr , D rg , Θ rg , scan ro , d ro ,θ ro ]
[0020] According to the result of the previous stage target allocation, D rr , Θ rr , D rg , Θ rg Adjust the distance information between each robot and the assigned target to the same column so that the state information of each robot follows the same distribution;
[0021] According to the position of each robot (x r ,y r , z r ) and orientation (x r ,yr , z r , w r ) Calculate the distance and direction between the robots and obtain the orientation angle and polar coordinate information of each robot through the following formula Represents the rotation angle of the i-th robot around the z-axis:
[0022]
[0023] The position of robot i is Triplet, direction is Quaternion, the direction of robot j relative to robot i is calculated according to the following formula:
[0024]
[0025] The rotation angle of robot j around the z-axis of its own coordinate system is
[0026] Calculate the distance between robot j and robot i based on the position:
[0027]
[0028] Calculating the distance and direction information between each robot and all targets includes:
[0029]
[0030]
[0031]
[0032] The two superscript letters rr represent the distance between robots, and rg represents the distance between a robot and a target point; the two subscript letters ij represent the direction from robot i to robot j;
[0033] The distance and direction of the nearest obstacle are extracted from the lidar data. The distance to the nearest obstacle is expressed as express:
[0034]
[0035] Where S represents the dimension of the lidar vector, arqmin(·) represents the scan ro The index of the minimum value in .
[0036] Furthermore, planning the path based on the optimal action so that multiple robots can reach the target point in a shorter time includes: constructing the path distance from each robot to each target point as a cost matrix, using the KM algorithm to solve the cost function, and obtaining the task allocation with the minimum total cost; then, considering that collisions may occur in the multi-robot system, adding an obstacle avoidance planning algorithm to avoid collisions between robots; finally, sensing the position of the target robot and other robots in real time, and dynamically adjusting the path and action until all robots successfully reach the target point.
[0037] Furthermore, deep reinforcement learning methods are used to train graph neural networks, specifically including: in a multi-robot collaborative navigation environment, the state information of each robot and the distance between other robots and the surrounding environment are constructed into a topological graph, each robot is a node, and the edges between nodes represent the distance between robots. The robots perform actions, and the robot actions are measured by designing reward functions. The information of each robot and its neighbors is integrated through the information propagation mechanism of the graph neural network layer to obtain a local representation of each robot.
[0038] Furthermore, the reward function used to train the graph neural network based on the deep reinforcement learning algorithm is:
[0039]
[0040]
[0041]
[0042] Among them, r yaw is the yaw angle reward, d curr is the current distance between the robot and the target, d init is the initial distance between the robot and the target, a represents the action to be performed, θ rg is the current yaw angle, that is, the angle between the robot's direction and the target direction;
[0043] The loss function is formula (10):
[0044]
[0045] Among them, Q′(O′ i , D′ i , a′ i ; θ′) represents the target network value, Q(O i , D i , a i ; θ) represents the current network value, D is the distance matrix, θ represents the yaw angle, N is the number of robots, and the hyperparameters are B and γ.
[0046] On the other hand, the present invention provides a multi-robot formation that performs navigation based on the multi-robot collaborative navigation method described above.
[0047] At the same time, a multi-robot collaborative navigation system based on graph deep reinforcement learning is provided, including an initialization module, a target allocation module, an optimal action acquisition module and an execution module;
[0048] The initialization module is used to obtain the state information of the multi-robot system itself. The current state information of multiple robots is regarded as the graph node features as the input of the graph neural network;
[0049] The target allocation module uses the KM algorithm to allocate targets, uses the target allocation results to process the state information of each robot, inputs the state information of all robots into the attention layer for interactive calculation, and outputs the action information of each robot; when allocating targets, it calculates the attention weights between robots, and weights them according to the real-time distance between robots, reducing the weight between two robots that are farther apart;
[0050] The optimal action acquisition module is used to select two robots corresponding to the maximum weights from the obtained multiple weights, and determine the optimal action for the next step according to the position information of the two robots;
[0051] The execution module is used to plan the path according to the optimal action so that multiple robots can reach the target point in a shorter time.
[0052] Compared with the prior art, the present invention has at least the following beneficial effects: the present invention discloses a multi-robot collaborative navigation method and system based on graph deep reinforcement learning, realizes the multi-robot collaborative navigation task of unassigned target points, adopts KM algorithm target allocation and graph neural network obstacle avoidance navigation strategy, uses deep reinforcement learning method to train the network, and uses KM algorithm to obtain the target allocation scheme with the minimum total distance according to the distance between multiple robots and each target point; multi-robot obstacle avoidance navigation is realized by constructing a graph neural network, the input of the network is the robot state information after the target allocation result is processed, and the output is the action information of each robot; according to the characteristics of the multi-robot collaborative navigation problem, the real-time distance between robots is introduced in the attention mechanism calculation of the network, and the information interaction between robots is strengthened. Experimental results show that in a relatively complex environment, the algorithm improves the navigation success rate of multiple robots, shortens the collaborative navigation time, and greatly improves the efficiency of collaborative navigation. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 This is a system framework diagram of multi-robot collaborative navigation based on graph deep reinforcement learning in the present invention.
[0054] Figure 2 It is a target allocation principle diagram of the KM algorithm in the present invention.
[0055] Figure 3 This is the real-time target allocation graph of multi-robot collaborative navigation based on graph deep reinforcement learning of the present invention.
[0056] Figure 4 It is the graph attention layer operation graph of multi-robot collaborative navigation in the present invention.
[0057] Figure 5 It is the state space adjustment diagram of the multi-robot in the present invention.
[0058] Figure 6 It is the direction between the robots in the present invention.
[0059] Figure 7 It is a simplified flow chart of the method of the present invention.
[0060] Figure 8 It is a schematic diagram of the fully connected layer operation.
[0061] Fig. 9 This is the network structure diagram of the proposed algorithm. DETAILED DESCRIPTION
[0062] The present invention will be further described in detail below in conjunction with the accompanying drawings, which are intended to explain the invention rather than to limit it.
[0063] refer to Figure 1 The present invention proposes a multi-robot collaborative navigation method based on graph deep reinforcement learning, including target allocation and obstacle avoidance navigation. In the target allocation stage, the target is allocated based on the straight-line distance between the robot and the target, and then the state information is processed according to the target allocation result. In the obstacle avoidance navigation stage, the state matrix composed of the state information of all robots is input into the graph neural network, and the graph neural network outputs the discrete action value of each robot, selects the action corresponding to the largest action value, and sends it to the robot to perform obstacle avoidance navigation. The state information of all robots is combined into an N*L dimensional matrix (N is the number of robots, L is the state dimension) t , the distance matrix D between robots t Input the graph neural network together for operation and output action A t′ Then, according to the current state of each robot, the navigation rules are used to analyze and obtain the final action A performed by the robot. t The introduction of navigation rules is to obtain more positive samples during training and accelerate model convergence. After the model is trained, this rule will not be used in the reasoning process, but the output action of the graph neural network will be directly used. After the robot performs the action, it obtains the reward and new state and starts the next cycle. The blue arrow in the figure is the network training process, which extracts batch data from the experience pool and trains the graph neural network with the DQN algorithm.
[0064] refer to Figure 1 First, the state information of all robots forms a state matrix, and then the current state information of the robot is placed in the current value network. After being processed by the current value network, a Q value is obtained and sent to the target value network. At the same time, the navigation rule is used for analysis to obtain the first set of information, which is stored in the experience pool. At the same time, the results of the navigation rule analysis will be sent to multiple robots, so that multiple robots can perform target allocation in the Gazebo simulation environment. The results after target allocation are sent to the experience pool for storage, and the results will be sent to the robot. The experience pool is used to save the experience in various scenarios to ensure that the network can learn from a variety of different scenarios. Then, S samples are extracted from the experience pool to update the network weights and obtain the loss function. At the same time, the training data provided by the experience pool generates a Q value as the training target to update the parameters of the current network. The loss function calculates the error based on the predicted Q value of the current value network and the Q value of the target value network. The updated parameters will be resent to each robot in the experience pool, and then a new round of navigation will be carried out. This cycle will be repeated until all robots reach the target point.
[0065] See Figure 7 and Figure 1 , a multi-robot collaborative navigation method based on graph deep reinforcement learning, comprising the following steps:
[0066] Step 1: Use deep reinforcement learning method to train the graph neural network.
[0067] Specifically, the graph neural network is integrated into deep reinforcement learning. Through the graph neural network, the distribution between robots, robots and obstacles, and obstacles can be intuitively observed, which is conducive to selecting the best path. Graph neural networks can process graph structure data. In a multi-robot system, each robot is regarded as a node in the graph, and the distance between robots is regarded as an edge in the graph. The graph neural network learns the effective representation of nodes and edges from the graph structure, and the real-time distance between robots is reflected through the graph neural network. A simulation environment is constructed, which includes the distribution of multiple robots and obstacles. The state space, action space and reward function are defined, where the state information includes the position and speed of each robot. In such a simulation environment, the state information (position, speed, direction) of each robot and the relationship between other robots and the surrounding environment (with other robots and obstacles) are constructed as a graph structure. Each robot is a node, and the edges between nodes represent the distance between robots. The actions that the robot can perform include turning left, turning right, and going straight. By designing a reward function to measure the quality of the robot's actions, the information of each robot and its neighbors is integrated through the information propagation mechanism of the graph neural network layer to obtain the global information of each robot.
[0068] Step 2: Multiple robots obtain their own status information and perform preprocessing
[0069] Specifically, the state information of the robot is considered for dimensionality reduction processing from a structural level. Simply put, it is to change the flat-laying processing to a stacking processing; the state information of multiple robots is regarded as the graph node features as the input of the graph neural network. First, the state information of each robot is obtained, the number of robots in the experiment is clarified, the characteristics of each robot are mastered, and the robots and obstacles are ensured to be in the global map; secondly, multiple robots are regarded as nodes, and the edges between the nodes represent the distance between the robots, and an undirected graph G = (V, E) is constructed, where V is the set of robot nodes and E is the set of edges between nodes; finally, since the traditional flat-laying processing method is to flatten the state information of each robot in a vector, this will cause the dimension to grow linearly. The present invention adopts a stacking processing, stacking the state information of each robot together to form a feature matrix.
[0070] Step 3, use the KM algorithm to perform target allocation, and use the target allocation result to process the state information of each robot. In the target allocation, when calculating the attention weight between robots, weighting is performed according to the real-time distance between the robots, with the aim of reducing the weight between two robots that are farther apart.
[0071] The optimal match is achieved by continuously optimizing the matching weights. First, the labels of each vertex are initialized. Then, based on the idea of the Hungarian algorithm, the alternating path method is used to continuously try to find a set of perfect matches. During the matching process, the labels of each vertex are adjusted to make the current match better. Figure 3 By maintaining the labels of the two vertex sets and an auxiliary array that records the matching situation, we continue to try to find a better matching solution until all vertices are matched and the weight sum is the largest, thus finding the optimal matching solution. The detailed calculation process is as follows Figure 4 As shown. The relationship weight α between node i and node j ij The calculation method is shown in formula (1). For simplicity, time t is omitted in the symbols. Fig. 9 It is a network structure diagram, where Fci represents the fully connected layer and Att1 represents the attention layer.
[0072]
[0073] Scaling Factor Λ is an N×N matrix and is a learnable parameter. D is an N×N distance matrix. In the actual calculation process, polarization of attention weight coefficients frequently occurs, so that the feature information of all robots after the attention layer is assimilated by the feature information of a certain robot, losing the original meaning of information interaction in the graph attention network. After analysis, it is found that the feature information values of different robots are quite different, resulting in a column value of 1 in the attention weight coefficient matrix after the softmax of formula (1), and all other columns are zero. In order to avoid this situation, in addition to introducing the aforementioned scaling factor to reduce the influence of other robots' feature information on itself, we also multiply the feature information of all robots by W. Q , W K , W V Then, a layernorm operation is performed to normalize the feature information of each robot, thereby avoiding the situation where the attention weight coefficient is polarized and the interaction fails. Figure 2 As shown, the sum of the distances between the robot and the target is 8, which makes the sum of the distances between multiple robots and multiple target points smaller.
[0074] As an example, Figure 2 and Figure 3 As shown in the figure, first assign a value to each vertex. Assign the left vertex the minimum weight and the right vertex 0. The matching principle is: only match the edges whose weights on the left and right sides are equal to the value in the table. If a conflict occurs, add +1 to the left vertex and -1 to the right vertex, and then match again. If no match is found, repeat this operation.
[0075] a) For Robot1, the match that meets the conditions is Robot1-Goal3, so Goal3 is assigned to Robot1.
[0076] b) Robot2 is matched, and Robot2-Goal3 meets the matching criteria, which conflicts with Robot1, so the vertex weights of Robot1 and Robot2 are increased by 1, and the vertex weight of Goal3 is reduced by 1. Then it is found that Robot2-Goal1 also meets the matching principle, so Goal1 is assigned to Robot2.
[0077] c) For Robot3, the match that meets the matching conditions is Robot3-Goal2, so Goal2 is assigned to Robot3.
[0078] refer to Figure 3As an example, the KM algorithm is used to complete the target assignment, and the sum of the distances between the robot and the target is 8, which can minimize the sum of the distances between multiple robots and multiple target points. It can ensure that each robot can be assigned to a suitable target, thereby improving navigation efficiency; then, the extracted feature information is composed into a state space and input into the trained graph neural network as input data. In addition, the present invention rounds the values in the distance matrix before target assignment, which can greatly speed up the calculation speed and has almost no effect on the final result of the target assignment. In addition, the graph neural network includes three fully connected layers and one attention layer, of which the attention layer is the most critical part of the network.
[0079] In target allocation, when calculating the attention weights between robots, they are weighted according to the real-time distance between the robots, with the aim of reducing the weight between two robots that are farther apart.
[0080] The specific approach is divided into the following parts:
[0081] (1) Distance and direction between robots
[0082] Each robot position (x r ,y r , z r ) and orientation (x r ,y r , z r , w r ) can be obtained from the global information, and then the distance and direction between the robots can be calculated based on the position and orientation, that is, the polar coordinate information. The orientation angle of each robot is obtained by formula (2), represents the rotation angle of the ith robot around the z axis. By subscribing to the 'gazebo / model_states' topic through the Ros topic mechanism, the state information of the model in the Gazebo environment can be obtained, from which the real-time position and orientation of each robot can be extracted. The position is (x r ,y r , z r ) triplet, with the orientation (x r ,y r , z r , w r ) quaternion, and then extract the distance and direction between the robots based on the position and orientation, that is, the polar coordinate information represents the rotation angle of the ith robot around the z-axis,
[0083]
[0084] The position of robot i is Triplet, direction is Quaternion, extract the distance and direction between robots based on position and orientation, that is, polar coordinate information represents the rotation angle of the ith robot around the z-axis, and then the direction of robot j relative to robot i is calculated according to the following formula:
[0085]
[0086] The rotation angle of robot j around the z-axis of its own coordinate system is
[0087] Then, the direction of robot j relative to robot i is calculated according to formula (2). The rotation angle of robot j around the z-axis of its own coordinate system is like Figure 6 As shown, The range is [-π, π].
[0088] Then, the distance between robot j and robot i is calculated based on the position, as shown in formula (4).
[0089]
[0090] In this way, the direction matrix and distance matrix between the robots can be obtained, as shown in formula (5).
[0091]
[0092] in That is, the distance and direction between the robot and itself are set to 0.
[0093] Inputting the distance and direction between robots into the graph neural network can significantly improve the navigation, collaboration and task execution efficiency of multi-robot systems in unknown environments. This approach is conducive to building a more intelligent and flexible robot collaborative system that can cope with a wider range of application scenarios and challenges.
[0094] (2) The distance and direction information between each robot and all targets
[0095] Before each round of navigation begins, randomly select the same number of target positions as the number of robots from the environment and record the selected target positions. Suppose In order to improve the learning efficiency of the network, the distance and direction information between each robot and each target is extracted, as shown in equations (6), (7), and (8).
[0096] The expressions of distance information and direction information are as follows:
[0097]
[0098]
[0099]
[0100] The two superscript letters rr represent the distance between robots, and rg represents the distance between a robot and a target point. The two subscript letters ij represent the direction from robot i to robot j. The intuitive meaning of the above expressions is as follows: Figure 6 As shown in the figure, the upper dotted line in the figure represents the actual direction of the robot, and the lower dotted line represents the ideal direction of the robot; the distance and direction between all robots and all target points are calculated, and the distance and direction between all robots and all target points are input into the graph neural network. In the graph neural network, each node exchanges information with its neighbor nodes, calculates the message transmitted from the neighbor node to the current node according to the distance and direction, and then aggregates the information received by all nodes, and uses the aggregated message to update the state of the current node to update the fully connected layer, which is of great significance for improving the efficiency, decision-making quality and collaboration ability of multi-robot collaborative navigation tasks. This method helps to deepen the model's understanding of tasks and environments, thereby achieving more effective multi-robot collaborative navigation in unknown environments.
[0101] (3) LiDAR information
[0102] Lidar is a technology that uses laser beams to measure distance, shape, and speed. It is similar to radar, but uses lasers instead of radio waves. Lidar determines the distance of a target object by emitting a short pulse of laser beam and measuring its return time. When the laser beam intersects the target object, a portion of the light is reflected back and captured by the receiver. By calculating the round-trip time of the light, the distance of the target object from the lidar can be determined.
[0103] LiDAR data A list is formed, which represents the obstacle distance measured by the lidar from the front of the robot and rotating around the robot in a counterclockwise direction.
[0104] (4) The distance and direction of the nearest obstacle
[0105] Once the LiDAR data is obtained, the distance and direction of the nearest obstacle can be extracted from it. Indicates that the direction is solved using the following formula (9). Where S represents the dimension of the lidar vector, argmin(·) represents the scan ro The index of the minimum value in .
[0106]
[0107] The distance to the nearest obstacle is easy to extract, which is a list The minimum value in In order to The range of is unified, and then it is processed by formula (10).
[0108]
[0109] Using lidar data to extract the distance and direction of the nearest obstacle and input it into the graph neural network as part of the state can not only provide a richer and more intuitive environmental representation, but also effectively improve learning efficiency and decision-making quality, which is of great significance for completing robot navigation tasks in unknown environments.
[0110] By extracting features from the original information, the state space is described by the distance and direction between robots, the distance and direction from the robot to the target, the two-dimensional laser radar, and the distance and direction of the nearest obstacle, as shown in Equation (11).
[0111] state=[D rr , Θ rr , D rg , Θ rg , scan ro , d ro ,θ ro ] (11)
[0112] This state space cannot be directly used as the input of the network. It needs to be allocated to D according to the result of the previous stage target. rr , Θ rr , D rg , Θ rg Adjustment is made. Taking the collaborative navigation task of n robots as an example, Figure 5 As shown. For example, the target points assigned to robots 1, 2, 3, ..., n are targets 2, 3, ..., n, 1. The robots are in different columns. When the target position is refreshed, the target assignment result will change. When the network updates the weights, it cannot determine which column is the target point distance information, and it cannot determine which column of information has a greater impact on the loss value, which will cause the model to converge more slowly. Therefore, we need to adjust the distance information between each robot and the assigned target to the same column so that the state information of each robot obeys the same distribution. The solution process is as follows: Figure 8As shown in FIG. 1 , specifically, in the forward reasoning process of the network, the weight values of the 7th, 8th and 9th rows of Fc1 are multiplied by the target point distance information. Taking the 7th row as an example, the target information multiplied with it is important for Robot2, but relatively unimportant for the other two Robots. This results in an unstable update direction of the weight value of the 7th row during network training, which slows down the training speed. Therefore, we adjust the target point distance information assigned to all robots to the same column, so that the weight value of the 7th row of Fc1 is always multiplied with it for feature extraction, the weight update direction is clear, and the training speed is accelerated. The adjusted situation is the part pointed by the arrow, and the target point distance information and direction information assigned to all robots are moved to the same column. At the same time, the distance and direction of the robot to itself are removed, so that the model can more easily identify and learn the relative position and direction between different robots, and accelerate the convergence speed of the model. Robots 1, 2, 3, ..., n are assigned targets 2, 3, .... n-1, n, 1 respectively. The assigned target information is adjusted to the same dimension, and D rr , Θ rr The 0 values in are filtered out. The network can converge only when the state information of each robot follows the same distribution.
[0113] Step 5: Select the two robots with the largest corresponding weights from the obtained multiple weights, and determine the optimal action for the next step based on the position information of the two robots. The distance between the robots is obtained through a two-dimensional laser radar. represents the distance between robot i and robot j;
[0114] The robot with the largest weight value is selected as the execution subject. The position information of the robot and related robots is obtained, and the optimal action for the next step is determined by analyzing this information. The optimal actions are specifically manifested as going straight, turning left, and turning right. Then, the robot with the largest weight is used to perform the action. The robot with the largest weight will drive to the determined target, and the remaining robots will assume that the target has been occupied. The remaining targets are allocated in real time until all robots reach the target point. The main basis for adjustment is to ensure the minimum total distance and ensure the coordination and efficiency of the entire system. In order to simplify the decision-making process, reduce the computational complexity, and make real-time decision-making more feasible, a discrete action space is used, namely turning left, going straight, and turning right. When the robot reaches the target point, its speed is set to 0 and it remains stationary.
[0115] After all robots reach the target point, the robot positions are initialized, the target point positions are refreshed, and a new round of navigation begins. If any robot collides or falls into a local optimum during navigation, the robot positions are directly initialized, the target point positions are refreshed, and a new round of navigation begins. Reasonable design of reward functions is crucial to the success of deep reinforcement learning algorithms. The following is an introduction to sparse rewards and dense rewards.
[0116] (1) Sparse rewards
[0117] Sparse rewards are used to guide exploration, encourage long-term planning, and improve the generalization ability of the model. The sparse rewards designed by the present invention include collision penalties and target reaching rewards. When a robot collides, the robot is given a penalty r collision , the rewards of other robots are still calculated based on their current states. When a robot reaches the target, it is given a reward r goal , and then stay still at the target position. The reward for each subsequent step is r goal , until the current round of navigation task is over. Similarly, the rewards of other robots are still calculated based on their current states. With this reward method, robots will not affect each other, which is reasonable for the state of each robot and can learn from the behavior of all robots. In addition, more experiences with sparse rewards will be stored in the experience pool to better guide the model to learn navigation strategies.
[0118] (2) Intensive rewards
[0119] Intensive rewards are used to accelerate learning, fine-tune navigation strategies, and reduce exploration breadth. In robot navigation, the most important indicator for judging navigation progress is the change in the distance between the robot and the target, followed by the change in the robot's orientation to the target. For these two indicators, the reward function shown in formula (12) is used to implement single robot navigation based on deep reinforcement learning. The present invention expands on this basis and is used for multi-robot navigation.
[0120]
[0121]
[0122]
[0123] Among them, r yaw is the yaw angle reward, d curr is the current distance between the robot and the target, d init is the initial distance between the robot and the target, a represents the action to be performed, θ rg is the current yaw angle, that is, the angle between the robot's direction and the target direction.
[0124] The design of the loss function is also very important. The loss function used is formula (15):
[0125]
[0126] Among them, Q′(O′ i , D′ i , a′ i ; θ′) represents the target network value, Q(O i , D i , a i ; θ) represents the current network value, D is the distance matrix, θ represents the yaw angle, N is the number of robots, and the hyperparameters are B and γ.
[0127] Use equation (6) to solve the direction. Where S represents the dimension of the laser radar vector. argmin(·) represents the scan ro The index of the minimum value in .
[0128] Step 6, plan the path according to the optimal action so that the multi-robot can reach the target point in a shorter time. Using the KM algorithm to solve the bipartite graph matching problem, the optimal allocation scheme can be found in the multi-target allocation of multi-robots, so as to minimize the total journey. First, the path distance from each robot to each target point is constructed as a cost matrix, and the KM algorithm is used to solve the cost function to obtain the task allocation with the minimum total cost; then, considering that collisions may occur in the multi-robot system, an obstacle avoidance planning algorithm is added to avoid collisions between robots; finally, the position of the target robot and other robots is sensed in real time, and the path and action are dynamically adjusted until all robots successfully reach the target point.
[0129] The cost matrix is determined by the number of robots, and its dimension is equal to the number of robots, where each element represents the path distance from a robot to a target point. The KM algorithm is an algorithm used to solve the bipartite graph matching problem, which can find the allocation method with the shortest total path in multi-robot task allocation. When performing obstacle avoidance navigation, when the paths of two robots intersect, the speed constraint is taken into account, and the speed and direction of the robot are dynamically adjusted based on the current state of the robot and the environmental perception data (such as the distance of the obstacle) to avoid collision. The dynamic adjustment of the path and action here mainly reflects the real-time nature of the experiment.
[0130] Based on the above navigation method, the present invention can also provide a multi-robot formation, which navigates according to the multi-robot collaborative navigation method.
[0131] In addition, the present invention can also provide a multi-robot collaborative navigation system based on graph deep reinforcement learning, including an initialization module, a target allocation module, an optimal action acquisition module and an execution module;
[0132] The initialization module is used to obtain the state information of the multi-robot system itself. The current state information of multiple robots is regarded as the graph node features as the input of the graph neural network;
[0133] The target allocation module uses the KM algorithm to allocate targets, uses the target allocation results to process the state information of each robot, inputs the state information of all robots into the attention layer for interactive calculation, and outputs the action information of each robot; when allocating targets, it calculates the attention weights between robots, and weights them according to the real-time distance between robots, reducing the weight between two robots that are farther apart;
[0134] The optimal action acquisition module is used to select two robots corresponding to the maximum weights from the obtained multiple weights, and determine the optimal action for the next step according to the position information of the two robots;
[0135] The execution module is used to plan the path according to the optimal action so that multiple robots can reach the target point in a shorter time.
[0136] The above contents are only for explaining the technical idea of the present invention and cannot be used to limit the protection scope of the present invention. Any changes made on the basis of the technical solution in accordance with the technical idea proposed by the present invention shall fall within the protection scope of the claims of the present invention.
Claims
1. A multi-robot collaborative navigation method based on graph deep reinforcement learning, It is characterized in that The following steps are involved: The multi-robot system obtains its own state information, and the current state information of multiple robots is regarded as graph node features as the input of the graph neural network; The KM algorithm is used for target allocation. The target allocation result is used to process the state information of each robot. The state information of all robots is input into the attention layer for interactive calculation, and the action information of each robot is output. When performing target allocation, the attention weights between robots are calculated and weighted according to the real-time distance between robots, reducing the weight between two robots with a longer distance. Selecting two robots corresponding to the maximum weights from the obtained multiple weights, and determining the optimal action for the next step according to the position information of the two robots; The path is planned based on the optimal action, so that multiple robots can reach the target point in a shorter time.
2. According to claim 1, the multi-robot collaborative navigation method based on graph deep reinforcement learning, It is characterized in that The state information of the multi-robot system itself includes position, speed, direction, and sensor data, and outliers of the position, speed, direction, and sensor data are removed to ensure that the data is collected at the same time point and the same coordinate system; the state information of each robot is stacked to form a feature matrix.
3. The multi-robot collaborative navigation method based on graph deep reinforcement learning according to claim 1, It is characterized in that The use of KM algorithm for target allocation specifically includes: Assign values to each vertex, assign the first vertex the minimum weight and the second vertex 0. The matching principle is: only match the edges whose values assigned by the first vertex and the second vertex are equal to the set value. If a conflict occurs, add +1 to the first vertex and -1 to the second vertex, and then match again. If no match is found, repeat this operation.
4. The multi-robot collaborative navigation method based on graph deep reinforcement learning according to claim 1, It is characterized in that In target allocation, we first initialize the labels of each vertex, and then use the idea of the Hungarian algorithm to continuously find a set of perfect matches through the alternating path method, and adjust the labels of each vertex during the matching process to make the current match better. By maintaining the labels of the two vertex sets and an auxiliary array that records the matching situation, we continue to try to find a better matching solution until all vertices are matched and the weight sum is the largest, thereby finding the optimal matching solution. The relationship weight α between node i and node j is ij The calculation method is shown in formula (1), where time t is omitted in the symbols. Scaling Factor Λ is an N×N matrix and a learnable parameter. D is an N×N distance matrix. The scaling factor is introduced to reduce the influence of other robots’ feature information on itself. The feature information of all robots is multiplied by W. Q ,W K ,W V Then, a layernorm operation is performed to normalize the feature information of each robot.
5. The multi-robot collaborative navigation method based on graph deep reinforcement learning according to claim 1, It is characterized in that When calculating the attention weights between robots, they are weighted according to the real-time distance between the robots. The purpose is to reduce the weight between two robots that are farther apart. The original information is feature extracted, and the state space is described by the distance and direction between robots, the distance and direction from the robot to the target, the two-dimensional laser radar, and the distance and direction of the nearest obstacle: state=[D rr ,I rr ,D rg ,I rg ,scan ro ,d ro ,i ro ] According to the result of the previous stage target allocation, D rr ,Θ rr ,D rg ,Θ rg Adjust the distance information between each robot and the assigned target to the same column so that the state information of each robot follows the same distribution; According to the position of each robot (x r ,y r ,z r ) and orientation (x r ,y r ,z r ,w r ) Calculate the distance and direction between robots The orientation angle and polar coordinate information of each robot are obtained by the following formula: Represents the rotation angle of the i-th robot around the z-axis: The position of robot i is Triplet, direction is Quaternion, the direction of robot j relative to robot i is calculated according to the following formula: The rotation angle of robot j around the z-axis of its own coordinate system is Calculate the distance between robot j and robot i based on the position: Calculating the distance and direction information between each robot and all targets includes: The two superscript letters rr represent the distance between robots, and rg represents the distance between a robot and a target point; the two subscript letters ij represent the direction from robot i to robot j; The distance and direction of the nearest obstacle are extracted from the lidar data. The distance to the nearest obstacle is expressed as express: Where S represents the dimension of the lidar vector, and argmin(·) represents the scan ro The index of the minimum value in .
6. The multi-robot collaborative navigation method based on graph deep reinforcement learning according to claim 1, It is characterized in that Planning the path according to the optimal action so that multiple robots can reach the target point in a shorter time includes: constructing the path distance from each robot to each target point as a cost matrix, using the KM algorithm to solve the cost function, and obtaining the task allocation with the minimum total cost; then, considering that collisions may occur in the multi-robot system, adding an obstacle avoidance planning algorithm to avoid collisions between robots; finally, sensing the position of the target robot and other robots in real time, and dynamically adjusting the path and action until all robots successfully reach the target point.
7. The multi-robot collaborative navigation method based on graph deep reinforcement learning according to claim 1, It is characterized in that The deep reinforcement learning method is used for training graph neural networks, specifically including: in a multi-robot collaborative navigation environment, the state information of each robot and the distance between other robots and the surrounding environment are constructed into a topological graph, each robot is a node, and the edges between nodes represent the distance between robots. The robots perform actions, and the robot actions are measured by designing reward functions. The information propagation mechanism of the graph neural network layer is used to integrate the information of each robot and its neighbors to obtain a local representation of each robot.
8. The multi-robot collaborative navigation method based on graph deep reinforcement learning according to claim 7, It is characterized in that The reward function used for training graph neural networks based on deep reinforcement learning algorithms is: Among them, r yaw is the yaw angle reward, d curr is the current distance between the robot and the target, d init is the initial distance between the robot and the target, a represents the action to be performed, θ rg is the current yaw angle, that is, the angle between the robot's direction and the target direction; The loss function is formula (10): Among them, Q′(O′ i ,D′ i ,a′ i ; θ′) represents the target network value, Q(O i ,D i ,a i ; θ) represents the current network value, D is the distance matrix, θ represents the yaw angle, N is the number of robots, and the hyperparameters are B and γ.
9. A multi-robot formation, It is characterized in that Navigation is performed based on the multi-robot collaborative navigation method described in any one of claims 1-8.
10. A multi-robot collaborative navigation system based on graph deep reinforcement learning, It is characterized in that It includes an initialization module, a target allocation module, an optimal action acquisition module and an execution module; The initialization module is used to obtain the state information of the multi-robot system itself. The current state information of multiple robots is regarded as the graph node features as the input of the graph neural network; The target allocation module uses the KM algorithm to allocate targets, uses the target allocation results to process the state information of each robot, inputs the state information of all robots into the attention layer for interactive calculation, and outputs the action information of each robot; when allocating targets, it calculates the attention weights between robots, and weights them according to the real-time distance between robots, reducing the weight between two robots that are farther apart; The optimal action acquisition module is used to select two robots corresponding to the maximum weights from the obtained multiple weights, and determine the optimal action for the next step according to the position information of the two robots; The execution module is used to plan the path according to the optimal action so that multiple robots can reach the target point in a shorter time.
Citation Information
Cited By
Multi-mechanical-arm cooperative motion planning method
CN119260743A
Mine truck unloading method and system
CN119623804A
Cluster path planning method and device, equipment, storage medium and program product
CN120008618A
Intelligent scheduling method and system for quadruped robot
CN120013205A
Dynamic allocation method and system for multi-robot collaborative carrying tasks
CN122656251A
