Method for quickly and autonomously exploring and mapping by mobile robot
By using breadth-first search to screen boundary points and construct boundary center points in mobile robots, the problem of low exploration efficiency in rapid exploration of random trees in narrow situations is solved, and more comprehensive exploration of unknown areas and more efficient autonomous construction are achieved. picture.
Patent Information
- Application Number
- CN202310129934.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-17
- Publication Date
- 2024-08-27
AI Technical Summary
When existing mobile robots autonomously explore and build maps in unknown environments, the rapid exploration of random tree methods may lead to missing boundary points. Especially in narrow situations, the exploration efficiency is low, and remote control mapping by operators is required, which is cumbersome and time-consuming.
A boundary point screening method based on breadth-first search is used to construct the boundary center point, and path planning is optimized through collision detection and blacklist screening to improve exploration efficiency and ensure that the robot can quickly and accurately explore and map unknown areas.
It reduces the randomness of boundary points, improves exploration efficiency, ensures the integrity of the boundaries of unknown areas on the map, reduces exploration time, and avoids navigation difficulties caused by unreasonable boundary points for the robot.
Smart Images

Figure CN118550282A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of mobile robot map building and exploration, and in particular relates to a method for rapid autonomous exploration and mapping of a mobile robot. Background Art
[0002] At present, a common way for mobile robots to build maps in unknown environments is to have the operator build the map remotely. This method requires an operator, which is cumbersome and time-consuming. The control signal may have a certain delay, causing damage to the robot. Another method that does not require the operator to explore and build the map autonomously is to quickly explore random trees. This method detects boundary points by quickly exploring the growth of random trees and plans paths based on the boundary points.
[0003] However, since the rapid exploration random tree (RRT tree) is randomly grown, this random tree growth exploration method may cause the omission of boundary points, and the exploration effect of the rapid exploration random tree is not so good in some narrow situations. In actual operation, the exploration takes a long time.
[0004] In addition, commonly used technical terms in the prior art include:
[0005] 1. LiDAR: Obtain distance information of the surrounding environment through laser.
[0006] 2. Map construction: Construct a two-dimensional grid map using the distance information obtained by the lidar.
[0007] 3. Autonomous exploration: The robot moves autonomously to explore the boundaries of reachable unknown areas in the surrounding environment and obtains an environmental map without unknown areas.
[0008] 4. Four-neighborhood: Four-neighborhood or four-connected area refers to the upper, lower, left and right of the corresponding grid, which are adjacent grids. There are four directions in total, so it is called four-connected area, also called four-neighborhood.
[0009] 5. Eight-neighborhood: An eight-connected region or eight-neighborhood refers to the top, bottom, left, right, upper left, upper right, lower left, and lower right of the corresponding grid, which are the adjacent grids and the diagonally adjacent grids. There are 8 directions in total, so it is called an 8-connected region or eight-neighborhood.
[0010] 6. BFS (Breadth First Search): Starting from an untraversed grid node in the graph, first traverse the adjacent grid nodes of this node, and then traverse the adjacent grid nodes of each adjacent grid node in turn. Summary of the invention
[0011] In order to solve the above problems, the purpose of this application is to propose a method for rapid autonomous exploration of mobile robots based on breadth-first search to screen boundary points. This method reduces the randomness of the appearance of boundary points, improves the exploration efficiency, and obtains more comprehensive boundary center points of unknown areas on the map for rapid autonomous exploration and mapping.
[0012] The robot uses the breadth-first algorithm to calculate the boundary points of the unknown area of the map from its current position. Considering that there are many boundary points on the map, it may take a long time. Therefore, we choose to construct the center point of the continuous unknown area boundary, that is, the boundary center point.
[0013] After calculating the center point of the boundary, collision detection is performed on the center point of the boundary to prevent the robot from being unable to plan a path for navigation or causing a collision because the center of the boundary is too close to an obstacle.
[0014] In addition, the boundaries are sorted according to the distance between the center of the boundary and the robot's position, and priority is given to the boundary closest to the robot, so that the robot can quickly conduct autonomous exploration.
[0015] Some unreasonable boundary points may cause the robot to be unable to reach for a long time, resulting in the robot being unable to explore normally. In this case, they will be added to the blacklist of boundary center points. When planning a new target point, the distance between the current boundary point and the boundary points in the blacklist is calculated, and the boundary center points whose distance to the boundary center points in the blacklist is less than the boundary point threshold are filtered out.
[0016] Specifically, the present invention provides a method for rapid autonomous exploration and mapping of a mobile robot, wherein the method performs autonomous exploration and mapping in an unknown environment, comprising the following steps:
[0017] S1, start exploration, including: Perception: The lidar sensor obtains 360-degree distance information of the surrounding environment through laser;
[0018] S2, build the current grid map, obtain the robot position, and use the robot's initial position as the origin of the grid map. During the map construction process, the result of matching the robot with the current map is the robot's current position;
[0019] S3, construct a new boundary center point:
[0020] S3.1, Detect boundary points: Screen boundary points based on breadth-first search;
[0021] S3.2, construct the boundary center point, i.e., the center point of continuous boundary points;
[0022] S4, determine whether the time when the boundary center point is empty is greater than the exploration threshold? If yes, the exploration ends; if no, proceed to step S5;
[0023] S5, sorting by distance between boundary center points: by calculating the distance between all boundary center points and the current position of the robot, the boundaries are sorted from small to large according to the distance between the boundary center points and the current position of the robot, and the boundary closest to the robot is prioritized;
[0024] S6, screening the boundary center point blacklist, selecting the boundary center point for navigation planning;
[0025] Determine whether the robot has reached the current border center point. If yes, return to step S3; if no, the border center point that cannot be reached for a long time is added to the blacklist.
[0026] The step S2 further includes: mapping: mapping the lidar data using the existing Cartographer mapping algorithm; or using other mapping algorithms including the gmapping algorithm to construct a grid map; if the gmapping algorithm is used, the gmapping grid map has three values of 0, -1, and 100, which respectively represent an idle state, an unknown state, and an occupied state; if the Cartographer mapping algorithm is used, the Cartographer grid map is a probabilistic grid map, which is an integer from 0 to 100 and -1, where -1 is an unknown area state, and from 0 to 100, respectively, it represents that the probability of the grid being occupied is increasing. Selecting the Cartographer algorithm requires dividing the probability value into three states.
[0027] The step S3.1 of detecting boundary points comprises:
[0028] First, the generated map is converted into a grid cost map containing three states, namely, an idle state with no obstacles, an occupied state with obstacles, and an unknown area state beyond the detection range of the lidar sensor;
[0029] Assuming that Cartographer is used, since the probability value distribution of the grid map of Cartographer is -1 for unknown area state, and 0 to 100 for the probability value of grid being occupied, the grid map is divided into three states here, that is, the upper limit of the unknown area is set to 60, the lower limit of the unknown area is set to 40, the grid with probability value between the upper and lower limit thresholds of the unknown area and the grid with probability value equal to -1 are represented as unknown area grids, the grid above the upper limit of the unknown area is regarded as an obstacle grid, and the grid below the lower limit of the unknown area is regarded as an idle grid;
[0030] Secondly, use breadth-first search for boundary points, that is, calculate new boundary points of the grid map, and repeat this step to calculate the boundary of the unknown area on the current map:
[0031] S3.1.1, obtain the nearest free grid to the current position: based on the constructed map, starting from the current position of the robot, record the one-dimensional index of the nearest free grid to the current position of the robot;
[0032] S3.1.2, add the one-dimensional index of the idle grid closest to the current position into the queue;
[0033] S3.1.3, record the earliest element in the queue as the index of the current grid, and remove the element from the queue;
[0034] S3.1.4, traverse the four neighboring grid probability values of the current grid in the queue to see if there are any free values? If so, expand the queue to add the corresponding grid indexes to the queue and return to step S3.1.3; if not, proceed to S3.1.5;
[0035] S3.1.5, determine whether the four neighboring grids are new boundary points? If yes, construct the boundary center point; if no, proceed to S3.1.6;
[0036] S3.1.6, perform calculation of the boundary point of the next element in the queue; and return to step S3.1.3.
[0037] Step S3.1.5, judging whether the grid is a new boundary point: firstly, calculating whether the current grid is marked as a boundary point, if not, judging whether the grid state value is an unknown area? If yes, judging whether its four neighborhoods contain free grids? If yes, judging the grid is a new boundary point.
[0038] The step S3.2 constructs the boundary center point, including: when a new boundary point grid is retrieved, combining the surrounding environment information, that is, whether the eight grids in its eight neighborhoods are boundary points, further expanding the boundary point, and finally calculating the center of all boundary points connected to it as the boundary center point, further including:
[0039] S3.2.1, create a boundary queue;
[0040] S3.2.2, add new boundary point grid into the boundary queue;
[0041] S3.2.3, determine whether the eight grids in the eight neighborhoods around the traversed boundary point grid are new boundary point grids? If not, skip the grids in the corresponding eight neighborhoods; if yes, execute S3.2.4;
[0042] S3.2.4, if yes, add it to the boundary;
[0043] S3.2.5, calculate the shortest distance between a point on the saved boundary and the robot position;
[0044] S3.2.6, calculate the mean of the points on the boundary as the boundary center point.
[0045] The step S3 may also include step S3.3, boundary center point collision detection, boundary center point screening: due to map errors and certain offsets in the actual mapping process, the map boundary is not clear enough, resulting in obstacles near the boundary center point, which increases the risk of robot collision. To address this problem, boundary center point collision detection is performed, boundary center points are screened, and it is calculated whether there is an obstacle grid within the circle of the robot chassis radius of the boundary center point, that is, it is calculated whether all grids with a distance from the boundary center point less than the robot chassis radius are occupied. If so, it is detected that there is an obstacle grid within the circle of the robot chassis radius of the boundary center point, that is, the obstacle is contained; if not, it is added to the boundary center point set; if included, it is skipped, that is, the boundary center point is not included in the final boundary center point set;
[0046] The step S6 further includes: considering the map changes and the appearance of moving obstacles, some boundary center points may be unreachable for a long time. In this regard, the method adds some boundary center points that cannot be reached after exceeding the boundary point navigation time threshold of 25s into a blacklist according to the time it takes for the robot to reach the boundary center point. When planning a new boundary center point, the distance between the current boundary point and the boundary points in the blacklist is calculated, and the boundary center points whose distance to the boundary center points in the blacklist is less than the boundary point distance threshold are filtered out.
[0047] The step S6 further comprises:
[0048] S6.1, calculate the distance between all boundary center points and the robot's current position;
[0049] S6.2, sorting the boundary list in ascending order of the distance between the boundary center points;
[0050] S6.3, select the nearest boundary center in the boundary list as the target point;
[0051] S6.4, target point blacklist screening;
[0052] S6.5, the robot navigates and plans to the target point;
[0053] S6.6, determine whether the mobile robot reaches the target point within the boundary point time threshold? If yes, return to step S6.3; if no, delete the current boundary point and add it to the blacklist, and then return to step S6.3.
[0054] The step S6 further includes switching the boundary center point: based on the sensor detection distance, the surrounding environment information can be obtained without accurately reaching the boundary center point. Therefore, when the distance between the robot center point and the current boundary center point is less than the robot chassis radius, the next boundary center point is switched for navigation.
[0055] The step S6 further includes: in order to update the map boundary points in time and to avoid the robot being blocked due to continuous detection of boundary points, the method sets the frequency of detecting boundary points to detect boundary points once per second, and sets the detection threshold to 70s; records the time when no reachable boundary points were detected last time. If the exploration detection time threshold is exceeded, no exploration will be performed and the exploration is completed.
[0056] Therefore, the advantages of this application are:
[0057] 1. Use the breadth-first search algorithm to screen boundary points and search the boundary points of unknown areas on the map more thoroughly to avoid missing reachable unknown areas.
[0058] 2. Constructing boundary center points helps improve the benefits of exploration and mapping, better explore unknown areas, and facilitate robot planning and navigation.
[0059] 3. Introduce an exploration blacklist to screen target points where navigation planning has timed out to prevent the robot from falling into exploration difficulties.
[0060] 4. By introducing the distance threshold of the exploration target point and based on the sensor detection distance, the surrounding environment information can be obtained without accurately reaching the center point of the boundary, which can reduce the exploration time.
[0061] 5. Sort the center points of the boundary according to the distance from the robot position from small to large to improve exploration efficiency, reduce the time for autonomous exploration and mapping, and avoid repeated exploration. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] The drawings described herein are used to provide a further understanding of the present invention, constitute a part of this application, and do not constitute a limitation of the present invention.
[0063] Figure 1 It is a schematic diagram of the mobile robot’s autonomous exploration of the boundaries of unknown areas.
[0064] Figure 2 It is a schematic diagram of the current grid and its eight neighborhood grids in the grid map.
[0065] Figure 3 It is a schematic diagram of calculating new boundary points of the grid map.
[0066] Figure 4 It is a schematic diagram of constructing the center point of the boundary.
[0067] Figure 5 It is a schematic diagram of boundary center point planning navigation.
[0068] Figure 6 It is an autonomous exploration flow chart of this application method. DETAILED DESCRIPTION
[0069] In order to more clearly understand the technical content and advantages of the present invention, the present invention is now further described in detail in conjunction with the accompanying drawings.
[0070] This application proposes a method for mobile robots to quickly explore and build maps autonomously, using breadth-first search to screen boundary points for autonomous exploration and building maps in unknown environments. The exploration process is as follows: Figure 6 :
[0071] S1, start exploration, including: Perception: The lidar sensor obtains 360-degree distance information of the surrounding environment through laser;
[0072] S2, build the current grid map and obtain the robot position, that is, the robot's initial position is used as the origin of the grid map. During the map construction process, the result of matching the robot with the current map is the robot's current position;
[0073] S3, construct a new boundary center point:
[0074] S3.1, Detect boundary points: Screen boundary points based on breadth-first search;
[0075] S3.2, construct the boundary center point, i.e., the center point of continuous boundary points;
[0076] S4, determine whether the time when the boundary center point is empty is greater than the exploration threshold? If yes, the exploration ends; if no, proceed to step S5;
[0077] S5, sorting by distance between boundary center points: by calculating the distance between all boundary center points and the current position of the robot, the boundaries are sorted from small to large according to the distance between the boundary center points and the current position of the robot, and the boundary closest to the robot is prioritized;
[0078] S6, screening the boundary center point blacklist, selecting the boundary center point for navigation planning;
[0079] Determine whether the robot has reached the current border center point. If yes, return to step S3; if no, the border center point that cannot be reached for a long time is added to the blacklist.
[0080] The step S2 further includes: Mapping: Mapping the lidar data using the existing cartographer mapping algorithm; or using other mapping algorithms including the gmapping algorithm to construct a grid map. If the gmapping algorithm is used, the gmapping grid map has three values of 0, -1, and 100, which respectively represent the idle state, unknown state, and occupied state; if the Cartographer mapping algorithm is used, the Cartographer grid map is a probabilistic grid map, which is an integer from 0 to 100 and -1, where -1 is an unknown area state, and from 0 to 100, respectively, it represents that the probability of the grid being occupied is increasing. Selecting the Cartographer algorithm requires dividing the probability value into three states.
[0081] The step S3.1 of detecting boundary points comprises:
[0082] First, the generated map is converted into a grid cost map containing three states, namely, an idle state with no obstacles, an occupied state with obstacles, and an unknown area state beyond the detection range of the lidar sensor;
[0083] Assuming that cartographer is used, since the probability value distribution of cartographer's grid map is -1 for unknown area state, and 0 to 100 for the probability value of grid being occupied, the grid map is divided into three states here, that is, the upper limit of unknown area is set to 60, the lower limit of unknown area is set to 40, and the grid with probability value between the upper and lower limit thresholds of unknown area and the grid with probability value equal to -1 are represented as unknown area grids, the grid above the upper limit of unknown area is regarded as obstacle grid, and the grid below the lower limit of unknown area is regarded as idle grid. The current grid and its eight neighboring grid states in the grid map are shown in Figure 2 .
[0084] Secondly, if Figure 1 As shown, use breadth-first search for boundary points, that is, calculate new boundary points of the grid map, and repeat this step to calculate the boundary of the unknown area on the current map:
[0085] According to the constructed map, starting from the current position of the robot, record the one-dimensional index of the nearest free grid where the current position of the robot is located, and add the one-dimensional index of the nearest free grid to the current position into the queue. Record the earliest element in the queue as the index of the current grid, and remove the element from the queue. Traverse the four neighborhood grid probability values of the current grid in the queue to see if there are any free values. If so, expand the queue and add the corresponding grid indexes to the queue respectively. Otherwise, determine whether the grids on the four neighborhoods are new boundary points. If so, construct the boundary center point, that is, calculate the center point of continuous boundary points. Otherwise, execute the calculation of the boundary center point of the next element in the queue. Repeat the above process to calculate the boundary of the unknown area on the current map. See the process. Figure 3 Flowchart for calculating new boundary points of raster map:
[0086] S3.1.1, obtain the nearest free grid to the current position: based on the constructed map, starting from the current position of the robot, record the one-dimensional index of the nearest free grid to the current position of the robot;
[0087] S3.1.2, add the one-dimensional index of the idle grid closest to the current position into the queue;
[0088] S3.1.3, record the earliest element in the queue as the index of the current grid, and remove the element from the queue;
[0089] S3.1.4, traverse the four neighboring grid probability values of the current grid in the queue to see if there are any free values? If so, expand the queue to add the corresponding grid indexes to the queue and return to step S3.1.3; if not, proceed to S3.1.5;
[0090] S3.1.5, determine whether the four neighboring grids are new boundary points? If yes, construct the boundary center point; if no, proceed to S3.1.6;
[0091] S3.1.6, perform calculation of the boundary point of the next element in the queue; and return to step S3.1.3.
[0092] The step S3.1.5 determines whether the grid is a new boundary point: first, calculate whether the current grid is marked as a boundary point. If not, determine whether the grid state value is an unknown area. If so, determine whether its four neighborhoods contain idle grids. If so, determine that the grid is a new boundary point.
[0093] The step S3.2 constructs the boundary center point, including: when a new boundary point grid is retrieved, the boundary point is further expanded according to the surrounding environment information, that is, whether the eight grids in its eight neighborhoods are boundary points, and finally the center of all boundary points connected to it is calculated as the boundary center point, such as Figure 4As shown, further comprising:
[0094] S3.2.1, create a boundary queue;
[0095] S3.2.2, add new boundary point grid into the boundary queue;
[0096] S3.2.3, determine whether the eight grids in the eight neighborhoods around the traversed boundary point grid are new boundary point grids? If not, skip the grids in the corresponding eight neighborhoods; if yes, execute S3.2.4;
[0097] S3.2.4, if yes, add it to the boundary;
[0098] S3.2.5, calculate the shortest distance between a point on the saved boundary and the robot position;
[0099] S3.2.6, calculate the mean of the points on the boundary as the boundary center point.
[0100] The step S3 may also include step S3.3, boundary center point collision detection, boundary center point screening: because the map may have errors in the actual mapping process, a certain offset occurs, making the map boundary unclear, resulting in obstacles near the boundary center point, resulting in an increased risk of robot collision. This method performs boundary center point collision detection and screens boundary center points for this problem; calculates whether there is an obstacle grid within the circle of the robot chassis radius size range of the boundary center point, that is, calculates whether all grids with a distance from the boundary center point less than the robot chassis radius are occupied, if so, it is detected that there is an obstacle grid within the circle of the robot chassis radius size range of the boundary center point, that is, the obstacle is included; if not included, it is added to the boundary center point set, if included, it is skipped, that is, the boundary center point is not put into the final boundary center point set.
[0101] The step S6 further includes: considering the map changes and the appearance of moving obstacles, some border center points may be unreachable for a long time. In this regard, according to the time it takes for the robot to reach the border center point, this method adds some border center points that exceed the border point navigation time threshold, that is, more than 25s and still cannot be reached, to the blacklist. When planning a new border center point, calculate the distance between the current border point and the border points in the blacklist, and filter out the border center points whose distance to the border center points in the blacklist is less than the border point distance threshold. See the process. Figure 5 , the step S6 further comprises:
[0102] S6.1, calculate the distance between all boundary center points and the robot's current position;
[0103] S6.2, sorting the boundary list in ascending order of the distance between the boundary center points;
[0104] S6.3, select the nearest boundary center in the boundary list as the target point;
[0105] S6.4, target point blacklist screening;
[0106] S6.5, the robot navigates and plans to the target point;
[0107] S6.6, determine whether the mobile robot reaches the target point within the boundary point time threshold? If yes, return to step S6.3; if no, delete the current boundary point and add it to the blacklist, and then return to step S6.3.
[0108] The step S6 further includes: switching the boundary center point. Based on the sensor detection distance, the surrounding environment information can be obtained without accurately reaching the boundary center point. In this regard, the improvement of this method is that when the distance between the robot center point and the current boundary center point is less than the robot chassis radius, the next boundary center point is switched for navigation.
[0109] The step S6 further includes: in order to update the map boundary points in time and to avoid the robot being blocked due to continuous detection of boundary points, the method sets the frequency of detecting boundary points to detect boundary points once per second, and sets the detection threshold to 70s. The last time when no reachable boundary points were detected is recorded. If the exploration detection time threshold is exceeded, no exploration is performed and the exploration is completed.
[0110] In summary, the innovation of this application lies in:
[0111] 1. Use the breadth-first search algorithm to screen boundary points and search the boundary points of unknown areas on the map more thoroughly to avoid missing reachable unknown areas.
[0112] 2. Constructing boundary center points helps improve the benefits of exploration and mapping, better explore unknown areas, and facilitate robot planning and navigation.
[0113] 3. Perform collision detection on the center point of the boundary to detect whether there are obstacles in the area with a radius of the robot chassis around the boundary point.
[0114] 4. Introduce an exploration blacklist to screen target points where navigation planning has timed out to prevent the robot from falling into exploration difficulties.
[0115] 5. By introducing the distance threshold of the exploration target point and based on the sensor detection distance, the surrounding environment information can be obtained without accurately reaching the center point of the boundary, which can reduce the exploration time.
[0116] 6. Sort the boundary center points from small to large according to the distance from the robot position to improve exploration efficiency, reduce the time for autonomous exploration and mapping, and avoid repeated exploration.
[0117] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the embodiments of the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for rapid autonomous exploration and mapping of a mobile robot, characterized in that: The method performs autonomous exploration and mapping in an unknown environment, including the following steps: S1, start exploration, including: Perception: The lidar sensor obtains 360-degree distance information of the surrounding environment through laser; S2, build the current grid map, obtain the robot position, and use the robot's initial position as the origin of the grid map. During the map construction process, the result of matching the robot with the current map is the robot's current position; S3, construct a new boundary center point: S3.1, Detect boundary points: Screen boundary points based on breadth-first search; S3.2, construct the boundary center point, i.e., the center point of continuous boundary points; S4, determine whether the time when the boundary center point is empty is greater than the exploration threshold? If yes, the exploration ends; if no, proceed to step S5; S5, sorting by distance between boundary center points: by calculating the distance between all boundary center points and the current position of the robot, the boundaries are sorted from small to large according to the distance between the boundary center points and the current position of the robot, and the boundary closest to the robot is prioritized; S6, screening the boundary center point blacklist, selecting the boundary center point for navigation planning; Determine whether the robot has reached the current border center point. If yes, return to step S3; if no, the border center point that cannot be reached for a long time is added to the blacklist.
2. The method for rapid autonomous exploration and mapping of a mobile robot according to claim 1, characterized in that: The step S2 further includes: mapping: mapping the lidar data using the existing Cartographer mapping algorithm; or using other mapping algorithms including the gmapping algorithm to construct a grid map; if the gmapping algorithm is used, the gmapping grid map has three values of 0, -1, and 100, which respectively represent an idle state, an unknown state, and an occupied state; if the Cartographer mapping algorithm is used, the Cartographer grid map is a probabilistic grid map, which is an integer from 0 to 100 and -1, where -1 is an unknown area state, and from 0 to 100, respectively, it represents that the probability of the grid being occupied is increasing. Selecting the Cartographer algorithm requires dividing the probability value into three states.
3. The method for rapid autonomous exploration and mapping of a mobile robot according to claim 2, characterized in that: The step S3.1 of detecting boundary points comprises: First, the generated map is converted into a grid cost map containing three states, namely, an idle state with no obstacles, an occupied state with obstacles, and an unknown area state beyond the detection range of the lidar sensor; Assuming that Cartographer is used, since the probability value distribution of the grid map of Cartographer is -1 for unknown area state, and 0 to 100 for the probability value of grid being occupied, the grid map is divided into three states here, that is, the upper limit of unknown area is set to 60, the lower limit of unknown area is set to 40, The grids with probability values between the upper and lower thresholds of the unknown area and the grids with probability values equal to -1 are represented as unknown area grids, the grids above the upper limit of the unknown area are regarded as obstacle grids, and the grids below the lower limit of the unknown area are regarded as idle grids; Secondly, use breadth-first search for boundary points, that is, calculate new boundary points of the grid map, and repeat this step to calculate the boundary of the unknown area on the current map: S3.1.1, obtain the nearest free grid to the current position: based on the constructed map, starting from the current position of the robot, record the one-dimensional index of the nearest free grid to the current position of the robot; S3.1.2, add the one-dimensional index of the idle grid closest to the current position into the queue; S3.1.3, record the earliest element in the queue as the index of the current grid, and remove the element from the queue; S3.1.4, traverse the four neighboring grid probability values of the current grid in the queue to see if there are any free values? If so, expand the queue to add the corresponding grid indexes to the queue and return to step S3.1.3; if not, proceed to S3.1.5; S3.1.5, determine whether the four neighboring grids are new boundary points? If yes, construct the boundary center point; if no, proceed to S3.1.6; S3.1.6, perform calculation of the boundary point of the next element in the queue; and return to step S3.1.
3.
4. The method for rapid autonomous exploration and mapping of a mobile robot according to claim 3, characterized in that: Step S3.1.5, judging whether the grid is a new boundary point: firstly, calculating whether the current grid is marked as a boundary point, if not, judging whether the grid state value is an unknown area? If yes, judging whether its four neighborhoods contain free grids? If yes, judging the grid is a new boundary point.
5. The method for rapid autonomous exploration and mapping of a mobile robot according to claim 3, characterized in that: The step S3.2 constructs the boundary center point, including: when a new boundary point grid is retrieved, combining the surrounding environment information, that is, whether the eight grids in its eight neighborhoods are boundary points, further expanding the boundary point, and finally calculating the center of all boundary points connected to it as the boundary center point, further including: S3.2.1, create a boundary queue; S3.2.2, add new boundary point grids into the boundary queue; S3.2.3, determine whether the eight grids in the eight neighborhoods around the traversed boundary point grid are new boundary point grids? If not, skip the grids in the corresponding eight neighborhoods; if yes, execute S3.2.4; S3.2.4, if yes, add it to the boundary; S3.2.5, calculate the shortest distance between a point on the saved boundary and the robot position; S3.2.6, calculate the mean of the points on the boundary as the boundary center point.
6. The method for rapid autonomous exploration and mapping of a mobile robot according to claim 1, characterized in that: The step S3 may also include step S3.3, boundary center point collision detection, boundary center point screening: due to map errors and certain offsets in the actual mapping process, the map boundary is not clear enough, resulting in obstacles near the boundary center point, which increases the risk of robot collision. To address this problem, boundary center point collision detection is performed, boundary center points are screened, and it is calculated whether there is an obstacle grid within the circle of the robot chassis radius of the boundary center point, that is, it is calculated whether all grids whose distance from the boundary center point is less than the robot chassis radius are occupied. If so, it is detected that there is an obstacle grid within the circle of the robot chassis radius of the boundary center point, that is, the obstacle is contained; if not, it is added to the boundary center point set; if included, it is skipped, that is, the boundary center point is not included in the final boundary center point set.
7. The method for rapid autonomous exploration and mapping of a mobile robot according to claim 5, characterized in that: The step S6 further includes: considering the map changes and the appearance of moving obstacles, some boundary center points may be unreachable for a long time. In this regard, the method adds some boundary center points that cannot be reached after exceeding the boundary point navigation time threshold of 25s into a blacklist according to the time it takes for the robot to reach the boundary center point. When planning a new boundary center point, the distance between the current boundary point and the boundary points in the blacklist is calculated, and the boundary center points whose distance to the boundary center points in the blacklist is less than the boundary point distance threshold are filtered out.
8. The method for rapid autonomous exploration and mapping of a mobile robot according to claim 7, characterized in that: The step S6 further comprises: S6.1, calculate the distance between all boundary center points and the robot's current position; S6.2, sorting the boundary list in ascending order of the distance between the boundary center points; S6.3, select the nearest boundary center in the boundary list as the target point; S6.4, target point blacklist screening; S6.5, the robot navigates and plans to the target point; S6.6, determine whether the mobile robot reaches the target point within the boundary point time threshold? If yes, return to step S6.3; if no, delete the current boundary point and add it to the blacklist, and then return to step S6.
3.
9. The method for rapid autonomous exploration and mapping of a mobile robot according to claim 8, characterized in that: The step S6 further includes switching the boundary center point: based on the sensor detection distance, the surrounding environment information can be obtained without accurately reaching the boundary center point. Therefore, when the distance between the robot center point and the current boundary center point is less than the robot chassis radius, the next boundary center point is switched for navigation.
10. The method for rapid autonomous exploration and mapping of a mobile robot according to claim 9, characterized in that: The step S6 further includes: in order to update the map boundary points in time and to avoid the robot being blocked due to continuous detection of boundary points, the method sets the frequency of detecting boundary points to detect boundary points once per second, and sets the detection threshold to 70s; records the time when no reachable boundary points were detected last time. If the exploration detection time threshold is exceeded, no exploration will be performed and the exploration is completed.
Citation Information
Cited By
Indoor differential robot autonomous mapping optimization method, storage medium and equipment
CN119472692A
