Multi-robot autonomous exploration method and system based on improved fast exploration random tree
Through the improved artificial fish swarm algorithm and adaptive step optimization to quickly explore random trees, combined with the comprehensive evaluation strategy, the problem of insufficient exploration time and incomplete environmental information perception in multi-robot autonomous exploration is solved, and the exploration efficiency and accuracy are improved.
Patent Information
- Application Number
- CN202210020646.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-10
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-01-10
AI Technical Summary
Existing multi-robot autonomous exploration algorithms suffer from insufficient exploration time, incomplete environmental information perception, and poor robustness under special circumstances. The boundary-based exploration strategy has problems such as repeated exploration and low obstacle detection efficiency.
The improved artificial fish swarm algorithm is used to optimize the rapid exploration of random trees, combined with adaptive step size and comprehensive evaluation strategy, to optimize node growth and path planning by screening and clustering boundary points to improve exploration efficiency and accuracy.
It improves the exploration speed and accuracy, reduces the consumption of repeated exploration and storage resources, and is suitable for multi-robot autonomous exploration tasks in complex environments.
Smart Images

Figure CN115248592B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of industrial mobile robots, in particular to a multi-robot autonomous exploration system based on an improved fast exploration random tree. Background Art
[0002] With the rapid development of science and technology, robotics has made significant progress. The development of robotics-related fields, to a certain extent, reflects a country's scientific and technological level. Robotics is playing an increasingly important role in both daily life and production processes. Research on mobile robots has found widespread application in fields such as disaster recovery, domestic services, agriculture, and the military. Autonomous robotic exploration is a key topic in robotics research. Its goal is to enable robots to utilize information obtained from their sensors within a limited timeframe to plan paths and explore areas with minimal cost and time, while also obtaining the most complete and accurate map information.
[0003] Currently, most research in my country on autonomous exploration by mobile robots is based on single-robot systems. Compared to multi-robot systems, single robots take longer to navigate large or complex maps, and suffer from issues such as slow detection, incomplete environmental perception, and poor robustness. As autonomous exploration problems grow in scale and face time constraints in special situations, single robots often fail to effectively complete tasks. Therefore, the application of multi-robot autonomous exploration is becoming increasingly popular and a reality.
[0004] Many existing autonomous robot exploration tasks employ boundary-based exploration strategies, specifically exploring the boundary between known and unknown areas. The idea is to guide the robot continuously into the unknown area to complete the exploration task. This exploration strategy was first proposed by Yamauchi, who further applied his algorithm to multiple robots. However, the exploration strategy relies on identifying all boundary areas in the current map, which presents drawbacks: first, the algorithm obtains boundary points solely from map information and treats all boundary points equally; second, each robot performs local computations on its own boundary area, which can lead to repeated exploration. Building on this, Y. Wang proposed dividing the area into sub-areas to address this repeated exploration issue. Each robot will not attempt to enter another robot's sub-area until it has fully explored its own sub-area. Only after a sub-area has been explored will the robot attempt to find the next sub-area to explore. M. Keidar and Kaminka addressed the boundary point selection problem by proposing a boundary detection algorithm that processes only laser-reading data. While this approach reduces the time required for boundary exploration, it lacks sufficient evaluation of candidate boundaries, which can easily result in invalid and unreachable boundaries.
[0005] Building on this, Umari H. and Mukhopadhyay S. proposed another autonomous exploration strategy based on rapidly exploring random trees. This strategy is based on the RRT (Rapidly Exploring Random Trees) algorithm and focuses on the boundary region. G. Oriolo subsequently proposed an exploration strategy based on sensor-based random trees (SRT), a variant of RRT. In SRT, random points generated as exploration targets are randomly generated in the space around the robot, such that all generated points are within a specific radius of the sensor used to scan the environment. This is a key difference between SRT and RRT. The latter generates random points throughout the map. Due to this difference, SRT-based methods require backtracking. When a branch stops growing, such as when the robot reaches a dead end, it must backtrack and trace the parent node of the current node. During backtracking, the same location may be visited multiple times. Since this is undesirable, El-Hussieny proposed a solution to improve backtracking. By backtracking the map data obtained by the robot's sensors, the exploration time was significantly reduced; Kwon and Song proposed a refinement-based topology exploration (TTE) method, which determines whether the robot needs to visit a specific node in order to explore the surrounding environment by analyzing the position probability of the end nodes of the topology map constructed in real time. Afterwards, A.Franchi applied the previous SRT-based method to multiple robots. The SRT-based method used is a step-by-step method, in which each robot starts by building its own SRT based on the initial pose of the robot. When a robot can no longer expand its own tree, it tries to help other robots expand their trees. A.Franchi then further improved this work, introducing direct shortcut paths between connectable nodes on the tree that help in the support phase, and all robots expanded a tree.
[0006] In summary, domestic and foreign scholars have conducted some research on autonomous exploration algorithms for mobile robots, but there are still some problems:
[0007] First, in special circumstances, such as earthquake search and rescue, there are certain requirements for the exploration time of unknown areas. Single-robot autonomous exploration systems are often unable to complete the exploration tasks within the specified time. At the same time, there are also problems such as incomplete environmental information perception and poor robustness, which make it impossible to complete the task well.
[0008] Second, for boundary-based autonomous exploration strategies, no matter what the situation is, it is necessary to perceive and provide feedback on the map environment, which makes it impossible to complete the task better when the map environment is more complex.
[0009] Third, for the autonomous exploration strategy based on the rapid exploration of random trees, although it is only necessary to detect whether there is an unknown area at a certain node on the random tree or at a node on a certain line segment, the exploration step size is still an important influencing parameter. As the acquired map information continues to improve, the known area will gradually increase. When a fixed step size is adopted, if the step size is relatively small, each new node generated will only move forward a small step, which will result in an increasing number of exploration steps and a corresponding increase in exploration time. If the step size is large, it will be difficult to find a new path to the boundary point when there are many obstacles, and it will also be difficult to ensure that the newly generated connection does not collide with obstacles. The generated new node needs to sample more random points to obtain a tree leading to the boundary point. Although the total number of steps required for planning is reduced, the time required for each step is greatly increased. Under extreme conditions, it is possible that no feasible boundary point can be found.
[0010] At the same time, in some environments where fast exploration random trees are not easy to grow, the speed of searching for boundary points is very slow, and as the number of nodes in the entire exploration tree increases, the nodes of the entire fast exploration random tree will occupy a large amount of storage resources, making the exploration efficiency lower and lower.
[0011] Fourth, since most algorithms only focus on information gain and navigation cost when evaluating the cost of boundary points, they ignore the impact of obstacles in the map on improving the robot's positioning accuracy, making it impossible to complete the work better when precise map information needs to be drawn. Summary of the Invention
[0012] In view of the above-mentioned deficiencies in the prior art, the technical problem to be solved by the present invention is to provide a multi-robot autonomous exploration method based on an improved fast exploration random tree.
[0013] The technical solution adopted by the present invention to achieve the above-mentioned object is: a multi-robot autonomous exploration method based on an improved fast exploration random tree, comprising the following steps:
[0014] Step 1: Use the optimized rapid exploration random tree based on the improved artificial fish swarm algorithm to detect the boundaries of the grid map globally to obtain boundary points;
[0015] Step 2: Use a fast exploration random tree based on adaptive step size to detect the boundary points around each robot with each robot as a mobile node;
[0016] Step 3: Filter the boundary points detected in steps 1 and 2 by removing the boundary points that have been explored and the boundary points that cannot be reached, and cluster the remaining boundary points;
[0017] Step 4: Based on the clustered boundary points, the navigation cost, information gain, hysteresis gain, and positioning accuracy of each robot relative to a certain boundary point are comprehensively evaluated. The robot with the highest evaluation value is selected and the current boundary point is assigned to the robot as the optimal boundary point.
[0018] Step 5: Set the robot to the assigned boundary point to a busy state, plan a path for the current boundary point, drive the robot to the boundary point to explore the location environment, set the robot to an idle state after arriving at the boundary point, and assign the optimal boundary point to the robot again, thereby gradually building an environmental map.
[0019] The step 1 is specifically as follows:
[0020] A grid map is divided into known areas and unknown areas, wherein the known areas include explored obstacle-free areas and explored obstacle areas, and the boundary between the unknown areas and the known areas is set as the boundary. By growing an optimized rapid exploration random tree based on an improved artificial fish swarm algorithm, the robot is continuously guided to the boundary to explore the environment of the grid map. At the same time, redundant optimized rapid exploration random tree nodes are deleted during the exploration process, and the remaining nodes are reorganized until the exploration is complete.
[0021] The method of continuously guiding the robot to the boundary to explore the environment of the grid map by growing the optimized rapid exploration random tree based on the improved artificial fish swarm algorithm, while deleting redundant optimized rapid exploration random tree nodes during the exploration process and reorganizing the remaining nodes, includes the following steps:
[0022] Step 1.1: Set a fixed position in the grid map, which is a center point x of a known area in the grid map. init ;
[0023] Step 1.2: Randomly select a point x in the grid map rand , and then use a fixed step length η as the length to select the optimized and fast exploration distance x in the random tree rand The nearest point x nearest ;
[0024] Step 1.3: From x nearest To x rand Direction growth fixed step length η length distance to get point x new ;
[0025] Step 1.4: Check x newWhether the coordinates are in the unknown area or x new with x nearest Is there an unknown area between the two? If there is any of the above two situations, then x new As the boundary points are detected, the whole tree then continues to grow;
[0026] Step 1.5: If neither of the above two situations exists, then determine x new with x nearest Is there an obstacle between them? If so, calculate x nearest The distance to the obstacle is expressed in x nearest The distance to the obstacle is used as the step length to grow the new node x new , and add it to the tree, and record the set of each node on the optimized rapid exploration random tree as V={x new1 , x new2 ,…,x newi ,…,x newn}; i = 1, 2, ..., n, where n represents the number of nodes on the optimized fast exploration random tree; if there are no obstacles, a fixed step length η is used as the step length to grow and obtain a new node x new and added to the tree, which then continues to grow.
[0027] The method further includes the following steps: continuously guiding the robot to the boundary to explore the environment of the grid map by growing the optimized rapid exploration random tree based on the improved artificial fish swarm algorithm, while deleting redundant optimized rapid exploration random tree nodes during the exploration process and reorganizing the remaining nodes.
[0028] Step 1.6: Set the initial parameters of the improved artificial fish swarm algorithm, and optimize the set V consisting of each node on the random tree to quickly explore the optimal solution. new1 , x new2 ,…,x newi ,…,x newn Set it as the initial population state of the fish school and build a structural model for each artificial fish:
[0029] V i =x newi +Visual (1)
[0030] Where Visual is the visual field of each artificial fish, which is set to the area of a circle with the coordinates of each artificial fish as the center and η as the radius; x newi is the optimization variable of each artificial fish individual in the artificial fish swarm, i = 1, 2, ..., n;
[0031] Set Step as the maximum step length of the artificial fish movement, set it to the width of a grid in the grid map; set the crowding factor δ, the distance d between the artificial fish individuals i and j ij =||x i -x j ||;
[0032] Step 1.7: Calculate the current artificial fish individual V i The number of partners in the field of view n f , center position X c And the fitness function Y within the field of view of each artificial fish c , if the number of partners in the field of view of the artificial fish is greater than n max , then execute step 1.7A; if the number of partners in the field of view of the artificial fish is less than or equal to n max , then proceed to step 1.7B;
[0033] Step 1.7A: Execute the swallowing behavior Eat(); first compare the artificial fish V i The fitness function Y of each artificial fish within the field of view c And sort them, delete the ε individuals with the lowest fitness function, ε=n max -n min , where n max and n min The maximum and minimum number of partners within the field of view of an artificial fish is set by yourself;
[0034] Step 1.7B: Execute the swarming behavior Swarm() and the tailing behavior Follow(); the swarming behavior, that is, the artificial fish individual V i Search for the number of partners n within the current field of view f and center position X c , if Y c / n f >δY i , Y i Represents the artificial fish individual V i The fitness function of x Vnew Move one step towards the partner with a step length of Step; the tail-chasing behavior, that is, the artificial fish individual V i Search for the individual V with the highest fitness within the current field of view j , its fitness function is Y j , if Y j / n f >δY i , then x Vnew Move one step toward your partner, with the step length being Step;
[0035] Step 1.8: Through the various behaviors performed by the artificial fish swarm in step 1.7, delete the redundant tree nodes and optimize the remaining nodes, and use the newly obtained artificial fish swarm V set as the set of new tree nodes of the entire rapid exploration random tree.
[0036] The step 2 specifically includes the following steps:
[0037] Step 2.1: Take the position of each robot i as the initial point xi init , where i = 1, 2, 3…n, n is the number of robots;
[0038] Step 2.2: Randomly select a random point xi in the grid map rand , and then select the distance xi in the fast exploration random tree based on adaptive step size rand The nearest point xi nearest ;
[0039] Step 2.3: Determine xi rand Distance xi nearest Whether there is an unknown area or whether the connection between them collides with an obstacle, and according to the judgment results, the step size of the fast exploration random tree based on the adaptive step size is determined in three cases:
[0040] Step 2.3A: If xi nearest Xiangxi rand The line connecting the two objects does not collide with obstacles and there is no unknown area, then xi rand Set as new node xi new And add it to the fast exploration random tree based on adaptive step size;
[0041] Step 2.3B: If xi nearest Xiangxi rand When the line connecting the two paths does not collide with obstacles but there is an unknown area, then the path along xi nearest Xiangxi rand Maximum growth step length η max Get points new , and judge xi again nearest Xiangxi new Is there still an unknown area on the line connecting the two? If there is still an unknown area, take the boundary point on the line segment as the new xi new , and the new xi new As the detected boundary point, the rapid exploration random tree based on the adaptive step size is reset and regrown as the initial point of the robot's current coordinates; if xi nearest Xiangxi new If the line connecting the two is a known area, then xi new With xi nearestThe distance between them is set as the step size and then connected to join the fast exploration random tree based on adaptive step size;
[0042] Step 2.3C: If xi nearest Xiangxi rand If the line connecting the two collides with an obstacle, calculate xi nearest Along the xi rand The distance between the direction and the nearest obstacle is recorded as d1. If d1 is greater than the maximum step length, the step length is taken as the maximum step length η max Return node xi new And add it to the fast exploration random tree based on adaptive step size, if d1 is less than the minimum step size η min , then abandon this path point and reselect a new path point, or set the step length to 0; otherwise, select the step length as a value smaller than d1 by a certain proportion and return to node xi new , that is, the selected step size is:
[0043]
[0044] Determine xi again new With xi nearest Whether the line between them collides with the obstacle, if it still collides, then abandon this path, if it does not collide, then change the current xi new Added as a new node to the fast-exploring random tree based on adaptive step size.
[0045] The step 3 is specifically as follows:
[0046] A point near the boundary point is selected as the center of the circle, a circle is drawn with a radius set by the user, and the average distance from the center of the circle to all other boundary points in the circle is calculated. In this way, the center point clustered by the mean shift clustering algorithm is obtained through continuous iteration and is retained as the clustered boundary point.
[0047] The information gain is the area of the unexplored region within a circle with the boundary point as the center and a user-set range R as the radius;
[0048] The positioning accuracy is the area of obstacles within a circle with the boundary point as the center and a user-set range R as the radius;
[0049] The navigation cost is the norm of the distance between the robot's current coordinates and the boundary points.
[0050] The calculation formula of the hysteresis gain is:
[0051]
[0052] In the formula, h(x fp ,x r) is the current robot coordinate x r To the boundary point x fp The hysteresis gain, R rad is the robot sensor radius, ||x r -x fp || is the current coordinate x of the robot r To the boundary point x fp The straight-line distance, h gain A constant greater than 1 set by the user;
[0053] The evaluation function R(x fp )for:
[0054]
[0055] Where α and β are constant parameters for controlling the boundary point, which are the weights for controlling positioning accuracy and navigation cost respectively; h(x fp ,x r ) is the current robot coordinate x r To the boundary point x fp The hysteresis gain, I(x fp ) is the information gain of the current boundary point corresponding to a robot, F(x fp ) is the positioning accuracy of the current boundary point corresponding to a robot, N(x fp ) is the navigation cost of a robot corresponding to the current boundary point.
[0056] In step 4, after the robot to which the boundary point has been assigned is set to a busy state, the target boundary point is detected in each subsequent iteration. If the target point becomes a known state, that is, the target point has been explored, or the target point is on an obstacle, the exploration of the current boundary point is canceled and the robot is set to an idle state; otherwise, the robot will no longer participate in the boundary point evaluation until it completes the exploration of the assigned robot.
[0057] In step 4, the path planning for the current boundary point is specifically: calculating the global path by the A* algorithm, and planning the path for the target boundary point by the Teb local path planning algorithm based on the time elastic band.
[0058] A multi-robot autonomous exploration system based on an improved fast-exploring random tree, comprising:
[0059] The global boundary detection module is used to detect the boundaries of the grid map globally and obtain boundary points using an optimized rapid exploration random tree based on an improved artificial fish swarm algorithm;
[0060] The local boundary detection module is used to detect the boundary points around each robot using a fast exploration random tree based on adaptive step size with each robot as a mobile node;
[0061] The filtering module is used to filter the boundary points detected by the global boundary detection module and the local boundary detection module by deleting the boundary points that have been explored and the boundary points that cannot be reached, and clustering the remaining boundary points;
[0062] The evaluation and allocation module is used to comprehensively evaluate the navigation cost, information gain, hysteresis gain, and positioning accuracy of each robot relative to a certain boundary point based on the clustered boundary points, select the robot with the highest evaluation value, and assign the current boundary point to the robot as the optimal boundary point;
[0063] The execution module is used to set the robot to the assigned boundary point to a busy state, plan the path to the current boundary point, drive the robot to the boundary point to explore the location environment, set the robot to an idle state after arriving at the boundary point, and assign the optimal boundary point to the robot again, thereby gradually building an environmental map.
[0064] The present invention has the following advantages and beneficial effects:
[0065] 1. The adaptive step-size rapid exploration random tree RRT algorithm of the present invention improves the exploration tendency of the entire RRT tree for unknown areas and reduces the tendency to grow toward obstacles by performing secondary detection of the step size (on random nodes and new nodes). Compared with the traditional fixed-step-size rapid exploration random tree RRT algorithm, the improved RRT algorithm can increase the detection speed of boundary points, thereby guiding the robot to explore the location environment and build an environmental map more quickly.
[0066] 2. The present invention comprehensively evaluates the navigation cost, information gain, hysteresis gain and positioning accuracy of each robot reaching a certain boundary point, selects the robot with the largest evaluation value, and assigns this boundary point to the robot as the optimal boundary point. Compared with the traditional evaluation function that only evaluates the navigation cost and information gain, the present invention introduces hysteresis gain and positioning accuracy. The hysteresis gain is used to guide the robot to preferentially explore nearby boundary points, thereby reducing the possibility of repeated exploration. At the same time, by introducing positioning accuracy, the area of obstacles near the boundary point is calculated to determine whether the boundary point can help improve the positioning accuracy of the robot. For certain special situations that require precise positioning and map environment information, a better solution is proposed, which improves the accuracy of autonomous exploration and reduces the efficiency of repeated exploration.
[0067] 3. The fast exploration random tree based on the improved artificial fish swarm algorithm of the present invention detects the boundaries of the grid map in the global range to obtain boundary points. By adjusting the storage method of the nodes, the consumption of computer memory resources is reduced while the growth efficiency of the tree in complex environments is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] Figure 1 is a flow chart of a method according to an embodiment of the present invention;
[0069] FIG2 is a diagram of a simulation environment according to an embodiment of the present invention; wherein, Figure 2A To use three robots to conduct autonomous exploration in the same exploration environment; Figure 2B for Figure 2A The grid map generated by the robot;
[0070] FIG3 is a simulation environment diagram of another embodiment of the present invention; wherein, Figure 3A To use three robots to conduct autonomous exploration in the same exploration environment; Figure 3B for Figure 3A The grid map generated by the robot;
[0071] Figure 4 In the embodiment of the present invention, xi nearest Xiangxi rand A schematic diagram showing that the lines connecting the two do not collide with obstacles and there are no unknown areas;
[0072] Figure 5A In the embodiment of the present invention, xi nearest Xiangxi rand When the line connecting the two objects does not collide with obstacles but there is an unknown area, xi nearest Xiangxi new A schematic diagram showing that there are still unknown areas in the connection;
[0073] Figure 5B In the embodiment of the present invention, xi nearest Xiangxi rand When the line connecting the two objects does not collide with obstacles but there is an unknown area, xi nearest Xiangxi new A schematic diagram showing that there is no unknown area in the lines;
[0074] Figure 6A In the embodiment of the present invention, xi nearest Xiangxi rand Schematic diagram of the maximum value of d1 greater than the step size when the line collides with an obstacle
[0075] Figure 6B In the embodiment of the present invention, xi nearest Xiangxi randSchematic diagram of when d1 is less than the minimum value of the step size when the line connecting collides with an obstacle;
[0076] Figure 6C In the embodiment of the present invention, xi nearest Xiangxi rand When the line connecting the two collides with an obstacle, d1 is greater than the minimum step length and less than the maximum step length;
[0077] Figure 7A This is a schematic diagram of the optimal boundary points selected under the conditions of high map accuracy and low navigation cost in an embodiment of the present invention;
[0078] Figure 7B This is a schematic diagram of the optimal boundary points selected in an embodiment of the present invention when the map accuracy is low and the navigation cost is high. DETAILED DESCRIPTION
[0079] The present invention will be further described in detail below with reference to the accompanying drawings and embodiments.
[0080] like Figure 1 As shown, this example provides a multi-robot autonomous exploration method based on an improved fast exploration random tree. Figure 2A and Figure 2B This is to achieve two simulation environment maps of different complexity established by the autonomous exploration method. This autonomous exploration method includes the following steps:
[0081] Step 1: The global detection module uses an optimized rapid exploration random tree based on the improved artificial fish swarm algorithm to detect the boundaries of the grid map globally to obtain boundary points. First, the grid map information is divided into explored obstacle-free areas (0), explored obstacle areas (1) and unknown areas (-1), and the boundary between the unknown area and the known area is set as the boundary. Through the growth of the RRT tree, the robot is continuously guided to these boundary areas to continuously explore the map environment until the exploration is completed. At the same time, as the exploration continues, the number of optimized rapid exploration random tree nodes required to be stored in the exploration process continues to increase, resulting in a large amount of storage resources being occupied, and the exploration efficiency is low in some environments where rapid exploration random trees are not easy to grow. By using the improved artificial fish swarm algorithm, the nodes of the rapid exploration random tree are optimized, the fish swallowing behavior is introduced, and the redundant tree nodes in the exploration process are deleted, which greatly saves memory resources. The remaining nodes are optimized by clustering and tailing behaviors, thus overcoming the shortcomings of slow growth of the tree in unfavorable environments. The specific steps include:
[0082] Step 1.1: First, the user sets the initial point x at a fixed position on the map. init, which is usually set as a center point of a known area on the map.
[0083] Step 1.2: Randomly pick a point x in the map rand , then select the distance x in the RRT tree rand The nearest point x nearest ;
[0084] Step 1.3: From x nearest To x rand Direction growth fixed step length η length distance to get point x new .
[0085] Step 1.4: Check x new Is it in an unknown area or x new with x nearest Is there an unknown area between the two? If there is any of the above two situations, then x new It is sent to the filtering module as a boundary point, and then the entire tree continues to grow.
[0086] Step 1.5: If neither of the above two situations exists, then determine x new with x nearest Is there an obstacle between them? If there is an obstacle, calculate the distance along x nearest The distance to the obstacle is expressed as the current distance (x nearest The distance between the node and the obstacle) is used as the step length to grow the new node x new And add it to the tree. If there is no obstacle, grow it with a fixed step length η as the step length to obtain a new node x new (i.e. update the parameter) and add it to the RRT tree, and then the whole tree continues to grow.
[0087] Step 1.6: First, set the initial parameters of the improved artificial fish swarm algorithm, and quickly explore the set V{x new1 , x new2 ,…,x newi ,…,x newn} is set as the initial population state of the fish school (where x newi (i=1,2,……,n) is the optimization variable for each artificial fish in the artificial fish swarm), and a structural model is established for each artificial fish:
[0088] V i =x new +Visual (1)
[0089] Among them, Visual is the field of vision of each artificial fish. In this patent, it is set as the circular area centered on the coordinates of each artificial fish and with a radius of η. Subsequently, Step is set as the maximum step length for the artificial fish to move, which is set as the width of a grid in the grid map in this patent (the width of a grid in the grid map in this patent is 0.5). Subsequently, the crowding factor δ is set, and the distance d between artificial fish individuals i and j ij = ||x i - x j ||.
[0090] Since this improved artificial fish swarm algorithm does not require each artificial fish individual to perform active optimization, there is no need for foraging behavior. After the initialization parameters are set, the entire artificial fish swarm is iterated. By imitating the swallowing behavior Eat(), swarming behavior Swarm(), and following behavior Follow() of the fish swarm, the nodes on the random tree are quickly explored and optimized for the entire fish swarm, deleting redundant tree nodes and optimizing the remaining nodes;
[0091] Step 1.7: First, calculate the number of partners n i within the field of vision (d ij < Visual) of the current artificial fish individual V, the central position X f and the fitness function Y c within the field of vision of each artificial fish (in this patent, the fitness function is the information gain within the field of vision Visual of the artificial fish individual, that is, the area Y c of the unknown area within this field of vision = I(x c )), if the number of partners within the field of vision of this artificial fish is greater than n newi ), then execute Step 1.7A; if the number of partners within the field of vision of this artificial fish is less than or equal to n max , then execute Step 1.7B. The number of partners is the number of other artificial fish within the circular area centered on the artificial fish individual and with a radius of η; the central position is the coordinate where each node is located.
[0092] Step 1.7A: This step is the swallowing behavior. First, compare the fitness functions Y i of each artificial fish within the field of vision (d ij < Visual) of this artificial fish V and sort them, and delete ε individuals with low fitness functions in turn, where ε = n c - n max , where n min and n max are the maximum and minimum numbers of partners within the field of vision of the artificial fish individual set by oneself (where n min > n max > nmin );
[0093] Step 1.7B: This step is the swarm behavior Swarm() and the following behavior Follow(). The swarm behavior means that the individual artificial fish V i searches for the number n ij of partners within the current field (d f and the central position X c . If Y c / n f > δY i , that is, the central position state of the partner is better and the central position where the partner is located is not too crowded. Y i represents the fitness function of the individual artificial fish V i , then V i moves one step towards the partner with Step as the step length; the following behavior means that the individual artificial fish V i searches for the fitness function Y ij of the j-th partner among the partners within the current field (d j of the optimal partner X j . If Y j / n f > δY i , that is, the fitness function of the optimal partner is better and the central position where the partner is located is not too crowded, then V i moves one step towards the partner with Step as the step length;
[0094] Step 1.8: Through the various behaviors performed by the artificial fish swarm in Step 1.7, delete the redundant tree nodes and optimize the remaining nodes, and use the newly obtained set V of the artificial fish swarm as the set of nodes of the new tree of the entire rapidly-exploring random tree.
[0095] Step 2: As shown in Figure 4 , 5A , 5B, 6A, 6B, 6C, the local detection module uses the adaptive-step rapidly-exploring random tree RRT algorithm to perform real-time detection on the boundary points around the position of each robot as the initial point, and reset the entire tree after detecting the boundary points. The specific steps include:
[0096] Step 2.1: First, use the position of each robot as the initial point xi rinit .
[0097] Step 2.2: Randomly select a random point xi rand in the map, and then select the point xi rand nearest to xi nearest in the RRT tree;
[0098] Step 2.3: First, determine xirand Distance xi nearest Whether there is an unknown area or whether the line between them collides with an obstacle, and based on the judgment results, the step size of the RRT algorithm is determined in three cases:
[0099] Step 2.3A: If xi nearest Xiangxi rand The line connecting the two objects does not collide with obstacles and there is no unknown area, then xi rand Set as new node xi new And add it to the tree, such as Figure 4 shown.
[0100] Step 2.3B: If xi nearest Xiangxi rand When the line connecting the two paths does not collide with obstacles but there is an unknown area, then the path along xi nearest Xiangxi rand Maximum growth step length η max Get points new , and judge xi again nearest Xiangxi new Is there still an unknown area on the line connecting the two? If there is still an unknown area, take the boundary point on the line segment as the new xi new , and xi new As a boundary point, it is sent to the filtering module. At the same time, the entire tree is reset and regrown with the robot's current coordinates as the initial point. If xi nearest Xiangxi new If the line connecting the two is a known area, then xi new With xi nearest The distance between them is set as the step length and then added to the tree, such as Figure 5A 、 5B shown.
[0101] Step 2.3C: Figure 6A 、 6B , as shown in 6C, if xi nearest Xiangxi rand If the line connecting the two collides with an obstacle, calculate xi nearest Along the xi rand The distance between the direction and the nearest obstacle is recorded as d1. If d1 is greater than the maximum step length, the step length is taken as the maximum step length η max Return node xi new And add it to the tree, if d1 is less than the minimum step size η min , then abandon this path point and reselect a new path point. It can also be considered that the step length is 0; otherwise, the step length is selected as a value smaller than d1 by a certain proportion and return to node xi new , see formula (1) for details. Then determine xi againnew With xi nearest Whether the line between them collides with the obstacle, if it still collides, then abandon this path, if it does not collide, then change the current xi new Added to the tree as a new node.
[0102]
[0103] Step 3: Filter the boundary points detected in steps 1 and 2 by deleting the boundaries that have been detected and the unreachable boundaries. At the same time, cluster the remaining boundary points using the mean shift clustering algorithm. The specific content is to select a point near several boundary points as the center of a circle, draw a circle with a radius set by the user, and calculate the average distance from the center of the circle to all other boundary points in the circle. In this way, the center point after clustering is obtained through continuous iteration as the relatively optimal boundary point and is retained for the next step of boundary point evaluation.
[0104] Step 4: If Figure 7A and 7B As shown in the figure, the filtered boundary points are evaluated and the optimal target boundary point is selected. That is, by comprehensively evaluating the hysteresis gain, navigation cost, positioning accuracy, and information gain of each robot reaching the same boundary point, the robot with the largest corresponding valuation is selected and the current target point is assigned to the robot. The specific steps include:
[0105] Step 4.1A: The information gain is calculated by taking the boundary point as the center of the circle and a user-defined range R as the radius. The area of the unexplored region within the circle is the benefit value of the boundary point.
[0106] Step 4.1B: Positioning accuracy is the same as step 4.1. Take the boundary point as the center of the circle and a user-defined range R as the radius. Calculate the area of the obstacle within the circle as the positioning accuracy of the boundary point. A larger area indicates a higher positioning accuracy, and a smaller area indicates a lower positioning accuracy.
[0107] Step 4.1C: The navigation cost is the norm of the distance between the robot's current coordinates and the boundary points.
[0108] Step 4.1D: The hysteresis gain is calculated in two parts, so that the robot prioritizes exploring the surrounding area. The hysteresis gain is set to 1 for the boundary points outside the robot's sensor exploration range radius, and the hysteresis gain for the boundary points inside the sensor exploration range radius is set to a constant h greater than 1. gain , in order to control the robot to explore the surrounding area first, and the calculation formula of its hysteresis gain is shown in (3):
[0109]
[0110] In the formula, h(x fp ,x r ) is the current robot coordinate x r To the boundary point x fp The hysteresis gain, R rad is the robot sensor radius, ||x r -x fp || is the current coordinate x of the robot r To the boundary point x fp The straight-line distance, h gain A constant greater than 1 set by the user.
[0111] Step 4.2: At this time, the boundary points are evaluated, and different evaluation values are obtained for each robot. According to the final calculated evaluation value, the robot with the highest score sends the current boundary point as the optimal boundary point to this robot. Its evaluation value is comprehensively evaluated by the parameters set in step 4.1. Its evaluation function R(x fp ) is shown in formula (4):
[0112]
[0113] Where α and β are constant parameters for controlling the boundary point, which are the weights for controlling the positioning accuracy and the navigation cost, respectively. When the current area needs to be explored accurately, the weight of the positioning accuracy can be appropriately increased while the weight of the navigation cost can be reduced. When the entire map needs to be explored quickly and the exploration accuracy is not required to be high, the weight of the navigation cost can be appropriately increased while the weight of the positioning accuracy can be reduced. I(x fp ) is the information gain of the current boundary point corresponding to a robot, F(x fp ) is the positioning accuracy of the current boundary point corresponding to a robot, N(x fp ) is the navigation cost of a robot corresponding to the current boundary point.
[0114] Step 5: The robot assigned the target point is added to the busy state queue and will no longer be added to the boundary point evaluation queue before the robot completes the exploration of the current boundary point. At the same time, the global path is calculated by the A* algorithm, and the path of the target boundary point is planned by the Teb local path planning algorithm based on the time elastic band. The robot is guided to explore the location environment along the planned path and gradually build the environment map until the current robot completes the exploration of the current target boundary point. It is then added to the idle state queue and continues to obtain the optimal boundary point corresponding to the robot through step 4, guiding the robot to continue exploring until the environment exploration of the entire map is completed. Figure 3A and Figure 3B is Figure 2A and Figure 2BThree robots are used in the established simulation environment to execute the two-dimensional map constructed by the autonomous exploration method.
[0115] like Figure 1 As shown, a multi-robot autonomous exploration system based on an improved rapid exploration random tree includes: a global boundary detection module, which is used to detect boundaries within the global scope of a grid map using an optimized rapid exploration random tree based on an improved artificial fish swarm algorithm to obtain boundary points; a local boundary detection module, which is used to detect boundary points around each robot using a rapid exploration random tree based on an adaptive step size, with each robot as a mobile node; a filtering module, which is used to filter boundary points detected by the global boundary detection module and the local boundary detection module, by deleting boundary points that have been explored and unreachable, and clustering the remaining boundary points; an evaluation and allocation module, which is used to comprehensively evaluate the navigation cost, information gain, hysteresis gain, and positioning accuracy of each robot relative to a certain boundary point based on the clustered boundary points, select the robot with the highest evaluation value, and assign the current boundary point to the robot as the optimal boundary point; and an execution module, which is used to set the robot to the assigned boundary point to a busy state, perform path planning for the current boundary point, drive the robot to the boundary point to explore the location environment, set the robot to an idle state after arriving at the boundary point, and assign the optimal boundary point to the robot again, thereby gradually constructing an environment map.
Claims
1. A multi-robot autonomous exploration method based on improved fast exploration random tree, characterized in that: The following steps are involved: Step 1: Use the optimized rapid exploration random tree based on the improved artificial fish swarm algorithm to detect the boundaries of the global range of the grid map to obtain boundary points; Step 2: Use a fast exploration random tree based on adaptive step size to detect the boundary points around each robot with each robot as a mobile node; Step 3: Filter the boundary points detected in steps 1 and 2 by removing the boundary points that have been explored and the boundary points that cannot be reached, and cluster the remaining boundary points; Step 4: Based on the clustered boundary points, the navigation cost, information gain, hysteresis gain and positioning accuracy of each robot relative to a certain boundary point are comprehensively evaluated, and the robot with the highest evaluation value is selected, and the current boundary point is assigned to the robot as the optimal boundary point; Step 5: Set the robot to which the boundary point has been assigned to a busy state, and perform path planning for the current boundary point, drive the robot to the boundary point to explore the location environment, set the robot to an idle state after arriving at the boundary point, and assign the optimal boundary point to the robot again, so as to gradually build an environmental map; The step 1 is specifically as follows: The grid map is divided into known areas and unknown areas, wherein the known areas include explored obstacle-free areas and explored obstacle areas, and the boundary between the unknown area and the known area is set as a boundary, and the robot is continuously guided to the boundary to explore the environment of the grid map by growing an optimized rapid exploration random tree based on an improved artificial fish swarm algorithm, and redundant optimized rapid exploration random tree nodes are deleted during the exploration process, and the remaining nodes are reorganized until the exploration is completely completed; The method of growing the optimized rapid exploration random tree based on the improved artificial fish swarm algorithm, continuously guiding the robot to the boundary to explore the environment of the grid map, while deleting redundant optimized rapid exploration random tree nodes during the exploration process, and reorganizing the remaining nodes, comprises the following steps: Step 1.1: Set a fixed position in the grid map, where the fixed position is a center point x of a known area in the grid map. init ; Step 1.2: Randomly select a random point x in the grid map rand , and then use a fixed step length η as the length to select the optimized fast exploration random tree distance x rand The nearest point x nearest ; Step 1.3: From x nearest To x rand Direction growth fixed step length η length distance to get point x new ; Step 1.4: Check x new Whether the coordinates of are in the unknown area or x new With x nearest Is there an unknown area between the two? If any of the above two situations exists, then x new As the boundary points are detected, the whole tree then continues to grow; Step 1.5: If neither of the above two situations exists, then determine x new With x nearest Is there an obstacle between them? If so, calculate x nearest The distance to the obstacle is expressed in x nearest The distance to the obstacle is used as the step length to grow the new node x new , and add it to the tree. The set of nodes on the optimized fast exploration random tree is V = {x new1 , x new2 , …, x newi , …, x newn }; i = 1, 2, ..., n, n represents the number of nodes on the optimized fast exploration random tree; if there is no obstacle, a fixed step length η is used as the step length to grow and obtain a new node x new and added to the tree, which then continued to grow; The method of continuously guiding the robot to the boundary to explore the environment of the grid map by growing the optimized rapid exploration random tree based on the improved artificial fish swarm algorithm, while deleting redundant optimized rapid exploration random tree nodes during the exploration process and reorganizing the remaining nodes, further includes the following steps: Step 1.6: Set the initial parameters of the improved artificial fish swarm algorithm to optimize the rapid exploration of the set V = {x new1 , x new2 , …, x newi , …, x newn } is set as the initial population state of the fish school, and a structural model is established for each artificial fish: V i =x newi +Visual (1) Where Visual is the visual field of each artificial fish, which is set to the area of a circle with the coordinates of each artificial fish as the center and η as the radius; x newi is the optimization variable for each artificial fish individual in the artificial fish swarm, i = 1, 2, ..., n; Set Step as the maximum step length of the artificial fish movement, set it to the width of a grid in the grid map; set the crowding factor δ, the distance d between the artificial fish individuals i and j ij =||x i -x j ||; Step 1.7: Calculate the current artificial fish individual V i The number of partners in the field of vision n f 、Center position X c And the fitness function Y within the field of view of each artificial fish c , if the number of partners in the field of vision of the artificial fish is greater than n max , then execute step 1.7A; if the number of partners in the field of vision of the artificial fish is less than or equal to n max , then execute step 1.7B; Step 1.7A: Execute the eating behavior Eat(); first compare the artificial fish V i The fitness function Y of each artificial fish within the field of view c And sort them, delete the ε individuals with the lowest fitness function, ε = n max -n min , where n max and n min The maximum and minimum number of partners within the visual field of the artificial fish individual are set by yourself; Step 1.7B: Execute the swarming behavior Swarm() and the following behavior Follow(); the swarming behavior, that is, the artificial fish individual V i Search for the number of partners n within the current field of view f and the center position X c , if Y c / n f >δY i , Y i Represents the artificial fish individual V i The fitness function of x Vnew Move one step towards the partner with a step length of Step; the tail-chasing behavior, that is, the artificial fish individual V i Search for the individual V with the highest fitness within the current field of view j , whose fitness function is Y j , if Y j / n f >δY i , then x Vnew Move one step toward the partner with a step length of Step; Step 1.8: Through the various behaviors performed by the artificial fish swarm in step 1.7, the redundant tree nodes are deleted and the remaining nodes are optimized, and the newly obtained artificial fish swarm V set is used as the set of nodes of the new tree of the entire fast exploration random tree; The step 2 specifically includes the following steps: Step 2.1: Take the position of each robot i as the initial point xi init , where i = 1, 2, 3…n, n is the number of robots; Step 2.2: Randomly select a random point xi in the grid map rand , and then select the distance xi in the fast exploration random tree based on adaptive step size rand The nearest point nearest ; Step 2.3: Determine xi rand Distance nearest Whether there is an unknown area or whether the connection between them collides with an obstacle, and according to the judgment results, the step size of the fast exploration random tree based on the adaptive step size is determined in three cases: Step 2.3A: If xi nearest Xiangxi rand The line connecting the two objects does not collide with obstacles and there is no unknown area, then xi rand Set as new node xi new And add it to the fast exploration random tree based on adaptive step size; Step 2.3B: If xi nearest Xiangxi rand When the line connecting xi does not collide with obstacles but there is an unknown area, nearest Xiangxi rand The maximum growth step length η max Get points new , and judge xi again nearest Xiangxi new Is there still an unknown area on the line connecting the two? If there is still an unknown area, take the boundary point on the line segment as the new xi new , and the new xi new As the detected boundary point, the fast exploration random tree based on the adaptive step size is reset and regrown with the current coordinates of the robot as the initial point; if xi nearest Xiangxi new If the line connecting the two is a known area, then xi new With xi nearest The distance between them is set as the step size and then connected to join the fast exploration random tree based on adaptive step size; Step 2.3C: If xi nearest Xiangxi rand If the line connecting the two collides with an obstacle, then calculate xi nearest Along the xi rand The distance between the direction and the nearest obstacle is recorded as d1. If d1 is greater than the maximum step length, the step length is taken as the maximum step length η max Returns the node xi new And join the fast exploration random tree based on adaptive step size, if d1 is less than the minimum step size η min , then abandon this path point and reselect a new path point, or set the step length to 0; otherwise, select the step length as a value smaller than d1 by a certain percentage and return to node xi new , that is, the selected step size is: Determine xi again new With xi nearest Whether the line between them collides with the obstacle, if it still collides, then this path is abandoned, if it does not collide, then the current xi new Added as a new node to the fast exploration random tree based on adaptive step size.
2. The multi-robot autonomous exploration method based on improved fast exploration random tree according to claim 1, characterized in that: The step 3 is specifically as follows: A point near the boundary point is selected as the center of the circle, a circle is drawn with a radius set by the user, and the average distance from the center of the circle to all other boundary points in the circle is calculated. In this way, the center point of the circle clustered by the mean shift clustering algorithm is obtained by continuous iteration as the clustered boundary point and retained.
3. The multi-robot autonomous exploration method based on improved fast exploration random tree according to claim 1, characterized in that: The information gain is the area of the unexplored region within a circle with the boundary point as the center and a range R set by the user as the radius; The positioning accuracy is the area of obstacles within a circle with the boundary point as the center and a certain range R set by the user as the radius; The navigation cost is the norm of the distance between the robot's current coordinates and the boundary points; The calculation formula of the hysteresis gain is: In the formula, h(x fp ,x r ) is the current robot coordinate x r To the boundary point x fp The hysteresis gain, R rad is the robot sensor radius, ||x r -x fp || is the current coordinate x of the robot r To the boundary point x fp The straight-line distance, h gain A constant greater than 1 set by the user; The evaluation function R(x fp )for: In the formula, α and β are constant parameters for controlling the boundary point, which are the weights for controlling the positioning accuracy and the weights for controlling the navigation cost respectively; h(x fp ,x r ) is the current robot coordinate x r To the boundary point x fp The hysteresis gain, I(x fp ) is the information gain of the current boundary point corresponding to a robot, F(x fp ) is the positioning accuracy of the current boundary point corresponding to a robot, N(x fp ) is the navigation cost of a robot corresponding to the current boundary point.
4. The multi-robot autonomous exploration method based on improved fast exploration random tree according to claim 1, characterized in that: In step 4, after the robot to which the boundary point has been assigned is set to a busy state, the target boundary point is detected in each subsequent iteration. If the target point becomes a known state, that is, the target point has been explored, or the target point is on an obstacle, the exploration of the current boundary point is canceled and the robot is set to an idle state; otherwise, the robot will no longer participate in the boundary point evaluation before completing the exploration of the assigned robot.
5. The multi-robot autonomous exploration method based on improved fast exploration random tree according to claim 1, characterized in that: In step 4, the path planning for the current boundary point is specifically: calculating the global path by the A* algorithm, and planning the path for the target boundary point by the Teb local path planning algorithm based on the time elastic band.
6. A multi-robot autonomous exploration system based on an improved fast exploration random tree, characterized in that: include: The global boundary detection module is used to detect the boundaries of the grid map in the global range by using the optimized rapid exploration random tree based on the improved artificial fish swarm algorithm to obtain boundary points; specifically, the grid map is divided into known areas and unknown areas, the known areas include explored obstacle-free areas and explored obstacle areas, and the boundary between the unknown area and the known area is set as the boundary, and the robot is continuously guided to the boundary to explore the environment of the grid map by the growth of the optimized rapid exploration random tree based on the improved artificial fish swarm algorithm, and the redundant optimized rapid exploration random tree nodes in the exploration process are deleted, and the remaining nodes are reorganized until the exploration is completed; the growth of the optimized rapid exploration random tree based on the improved artificial fish swarm algorithm is continuously guided to the boundary to explore the environment of the grid map, and the redundant optimized rapid exploration random tree nodes in the exploration process are deleted, and the remaining nodes are reorganized, including the following steps: Step 1.1: Set a fixed position in the grid map, where the fixed position is a center point x of a known area in the grid map. init ; Step 1.2: Randomly select a random point x in the grid map rand , and then use a fixed step length η as the length to select the optimized fast exploration random tree distance x rand The nearest point x nearest ; Step 1.3: From x nearest To x rand Direction growth fixed step length η length distance to get point x new ; Step 1.4: Check x new Whether the coordinates of are in the unknown area or x new With x nearest Is there an unknown area between the two? If any of the above two situations exists, then x new As the boundary points are detected, the whole tree then continues to grow; Step 1.5: If neither of the above two situations exists, then determine x new With x nearest Is there an obstacle between them? If so, calculate x nearest The distance to the obstacle is expressed in x nearest The distance to the obstacle is used as the step length to grow the new node x new , and add it to the tree. The set of nodes on the optimized fast exploration random tree is V = {x new1 , x new2 , …, x newi , …, x newn }; i = 1, 2, ..., n, n represents the number of nodes on the optimized fast exploration random tree; if there is no obstacle, a fixed step length η is used as the step length to grow and obtain a new node x new and added to the tree, which then continued to grow; The method of continuously guiding the robot to the boundary to explore the environment of the grid map by growing the optimized rapid exploration random tree based on the improved artificial fish swarm algorithm, while deleting redundant optimized rapid exploration random tree nodes during the exploration process and reorganizing the remaining nodes, further includes the following steps: Step 1.6: Set the initial parameters of the improved artificial fish swarm algorithm to optimize the rapid exploration of the set V = {x new1 , x new2 , …, x newi , …, x newn } is set as the initial population state of the fish school, and a structural model is established for each artificial fish: V i =x newi +Visual (1) Where Visual is the visual field of each artificial fish, which is set to the area of a circle with the coordinates of each artificial fish as the center and η as the radius; x newi is the optimization variable for each artificial fish individual in the artificial fish swarm, i = 1, 2, ..., n; Set Step as the maximum step length of the artificial fish movement, set it to the width of a grid in the grid map; set the crowding factor δ, the distance d between the artificial fish individuals i and j ij =||x i -x j ||; Step 1.7: Calculate the current artificial fish individual V i The number of partners in the field of vision n f 、Center position X c And the fitness function Y within the field of view of each artificial fish c , if the number of partners in the field of vision of the artificial fish is greater than n max , then execute step 1.7A; if the number of partners in the field of vision of the artificial fish is less than or equal to n max , then execute step 1.7B; Step 1.7A: Execute the eating behavior Eat(); first compare the artificial fish V i The fitness function Y of each artificial fish within the field of view c And sort them, delete the ε individuals with the lowest fitness function, ε = n max -n min , where n max and n min The maximum and minimum number of partners within the visual field of the artificial fish individual are set by yourself; Step 1.7B: Execute the swarming behavior Swarm() and the following behavior Follow(); the swarming behavior, that is, the artificial fish individual V i Search for the number of partners n within the current field of view f and the center position X c , if Y c / n f >δY i , Y i Represents the artificial fish individual V i The fitness function of x Vnew Move one step towards the partner with a step length of Step; the tail-chasing behavior, that is, the artificial fish individual V i Search for the individual V with the highest fitness within the current field of view j , whose fitness function is Y j , if Y j / n f >δY i , then x Vnew Move one step toward the partner with a step length of Step; Step 1.8: Through the various behaviors performed by the artificial fish swarm in step 1.7, the redundant tree nodes are deleted and the remaining nodes are optimized, and the newly obtained artificial fish swarm V set is used as the set of nodes of the new tree of the entire fast exploration random tree; The local boundary detection module is used to detect the boundary points around each robot using a fast exploration random tree based on adaptive step size with each robot as a mobile node; specifically: Step 2.1: Take the position of each robot i as the initial point xi init , where i = 1, 2, 3…n, n is the number of robots; Step 2.2: Randomly select a random point xi in the grid map rand , and then select the distance xi in the fast exploration random tree based on adaptive step size rand The nearest point nearest ; Step 2.3: Determine xi rand Distance nearest Whether there is an unknown area or whether the connection between them collides with an obstacle, and according to the judgment results, the step size of the fast exploration random tree based on the adaptive step size is determined in three cases: Step 2.3A: If xi nearest Xiangxi rand The line connecting the two objects does not collide with obstacles and there is no unknown area, then xi rand Set as new node xi new And add it to the fast exploration random tree based on adaptive step size; Step 2.3B: If xi nearest Xiangxi rand When the line connecting xi does not collide with obstacles but there is an unknown area, nearest Xiangxi rand The maximum growth step length η max Get points new , and judge xi again nearest Xiangxi new Is there still an unknown area on the line connecting the two? If there is still an unknown area, take the boundary point on the line segment as the new xi new , and the new xi new As the detected boundary point, the fast exploration random tree based on the adaptive step size is reset and regrown with the current coordinates of the robot as the initial point; if xi nearest Xiangxi new If the line connecting the two is a known area, then xi new With xi nearest The distance between them is set as the step size and then connected to join the fast exploration random tree based on adaptive step size; Step 2.3C: If xi nearest Xiangxi rand If the line connecting the two collides with an obstacle, then calculate xi nearest Along the xi rand The distance between the direction and the nearest obstacle is recorded as d1. If d1 is greater than the maximum step length, the step length is taken as the maximum step length η max Returns the node xi new And join the fast exploration random tree based on adaptive step size, if d1 is less than the minimum step size η min , then abandon this path point and reselect a new path point, or set the step length to 0; otherwise, select the step length as a value smaller than d1 by a certain percentage and return to node xi new , that is, the selected step size is: Determine xi again new With xi nearest Whether the line between them collides with the obstacle, if it still collides, then this path is abandoned, if it does not collide, then the current xi new Add as a new node to the fast exploration random tree based on adaptive step size; A filtering module is used to filter the boundary points detected by the global boundary detection module and the local boundary detection module by deleting the boundary points that have been explored and the boundary points that cannot be reached, and clustering the remaining boundary points; The evaluation and allocation module is used to comprehensively evaluate the navigation cost, information gain, hysteresis gain and positioning accuracy of each robot relative to a certain boundary point based on the clustered boundary points, select the robot with the highest evaluation value, and allocate the current boundary point to the robot as the optimal boundary point; The execution module is used to set the robot with the assigned boundary point to a busy state, plan the path for the current boundary point, drive the robot to the boundary point to explore the location environment, set the robot to an idle state after arriving at the boundary point, and assign the optimal boundary point to the robot again, so as to gradually build an environmental map.
