Robot positioning method based on multiple layers of grid maps, and chip and laser robot

Through the combination of multi-layer grid maps and laser sensors, the feasibility of candidate solutions is determined layer by layer, which solves the problems of long robot positioning and high computing power consumption in the existing technology, and achieves fast and precise robot positioning.

WO2024222661A1PCT designated stage expired Publication Date: 2024-10-31AMICRO SEMICONDUCTOR CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/089256
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-28
Filing Date
2024-04-23
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

Existing robot global repositioning methods take a long time and consume a lot of computing resources. Especially when using laser radar for particle filtering, they need to keep moving until the particles converge, resulting in non-real-time positioning operations.

Method used

A robot positioning method based on multi-layer grid maps is used to collect data through laser sensors, and obtain grid maps with different resolutions layer by layer to determine the feasibility of candidate solutions, reduce ineffective calculations, and improve search speed.

Benefits of technology

It achieves rapid and precise positioning of the robot within the area covered by the laser sensor, reduces repositioning time and computing power consumption, and improves real-time positioning capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024089256_31102024_PF_FP_ABST
    Figure CN2024089256_31102024_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the present application are a robot positioning method based on multiple layers of grid maps, and a chip and a laser robot. The robot positioning method comprises: a robot collecting laser point data by using a laser sensor; the robot acquiring multiple layers of grid maps layer by layer in an ascending order of resolutions; the robot traversing each candidate solution in the current layer of a grid map; and when determining that the currently traversed candidate solution is a feasible solution, the robot controlling the stopping of the adding of a plurality of occupancy probability values, which are correspondingly obtained by means of the laser point data at the currently traversed candidate solution, and setting the determined feasible solution to be a candidate solution of the next layer of a grid map on the basis of the ratio of the resolution of the next layer of the grid map to the resolution of the current layer of the grid map, and then sequentially and recursively determining feasible solutions from among candidate solutions of the layers of the grid maps in an ascending order of resolutions until an optimal feasible solution is determined, and setting the optimal feasible solution to be a relocation result of the robot.
Need to check novelty before this filing date? Find Prior Art

Description

Robot positioning method, chip and laser robot based on multi-layer grid map Technical Field

[0001] The present invention relates to the technical field of map repositioning, and in particular to a robot positioning method, chip and laser robot based on a multi-layer grid map. Background Art

[0002] Currently, the global relocalization method for robots can adopt global relocalization technology based on LiDAR. For sweepers using laser maps for relocalization, the industry mostly uses software algorithms. For example, random particles are generated within the position drift range of a known grid map, the degree of match between the LiDAR data of all particles and the current map is calculated, the optimal particle is selected for replication, and the robot then resamples all particles and repeatedly uses the matching method to traverse each generated LiDAR data. After multiple iterations, the position where the particle swarm converges is the true position of the robot. Among them, when using LiDAR-based particle filtering for global relocalization, the robot needs to keep moving until the particles converge, which is time-consuming. Because the use of matching methods and the prediction of the correct robot posture require traversing the various posture information generated by each LiDAR data, a large amount of processor computing resources are consumed to complete a relatively accurate positioning operation, which is not conducive to the real-time positioning operation of the robot. Summary of the Invention

[0003] This application discloses a robot positioning method, chip, and laser robot based on a multi-layer grid map. The specific technical solutions include:

[0004] The robot uses a laser sensor to collect laser point data. The robot then acquires a multi-layer grid map layer by layer in ascending resolution order. A multi-layer grid map is a grid map with multiple resolution levels, with each grid map corresponding to a specific resolution. The robot traverses each candidate solution in the current grid map layer and controls the multiple occupancy probability values ​​corresponding to the laser point data at the currently traversed candidate solution to sequentially add up to obtain a real-time probability sum. Based on the currently calculated real-time probability sum, the robot determines whether the currently traversed candidate solution is a feasible solution or an infeasible solution. When the robot determines that the currently traversed candidate solution is a feasible solution, it controls the multiple occupancy probability values ​​corresponding to the laser point data at the currently traversed candidate solution to stop adding up. Based on the ratio between the resolution of the next grid map layer and the resolution of the current grid map layer, the robot sets the determined feasible solution as the candidate solution for the next grid map layer. The robot then recursively determines a feasible solution among the candidate solutions in each grid map layer in ascending resolution order until the optimal feasible solution is determined, which is set as the robot's relocalization result.

[0005] In summary, whenever the robot determines a feasible or infeasible solution in each grid map layer, it immediately exits the probability sum calculation, avoiding subsequent redundant calculations for the same candidate solution. This allows the robot to complete a relatively accurate positioning operation within the coverage area of ​​its laser sensor within multiple grid maps without consuming excessive computing resources, facilitating real-time and precise positioning. Furthermore, as the robot traverses the grid maps of each resolution layer, it stops traversing and calculating the real-time probability sum when the currently traversed candidate solution is infeasible, reducing wasted computation time and significantly reducing robot relocalization time. Furthermore, if the currently traversed candidate solution is feasible, it continues traversing the next higher-resolution grid map layer, allowing the robot to begin searching from a more likely location within the corresponding resolution grid map. This reduces the amount of data computation and search required to traverse the higher-resolution grid map layer, thereby improving search speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0006] FIG1 is a flow chart of a robot positioning method based on a multi-layer grid map disclosed in an embodiment.

[0007] FIG2 is a flowchart of a method for determining whether a currently traversed candidate solution is a feasible solution or an infeasible solution, disclosed in another embodiment. DETAILED DESCRIPTION

[0008] The following further describes specific embodiments of the present invention with reference to the accompanying drawings. A mobile robot, while navigating an environment, uses a laser sensor to scan the surrounding environment. Typically, the laser probe rotates 360 degrees to scan, collecting laser points fed back at various locations and converting them into a grid coordinate system to create a laser map. If the map resolution is differentiated and used for large-scale positioning calculations, a multi-layer grid map is created, considered a multi-resolution laser map composed of grid maps at multiple resolutions. The mobile robot can then determine at least one target location based on the probability information of the collected laser points falling within the map coordinates of the resolution, enabling the mobile robot to use the laser map to relocate the target location, where the robot has previously located but has lost its position information.

[0009] As an embodiment, the robot positioning method based on a multi-layer grid map disclosed in this embodiment includes the following basic positioning concepts in the multi-layer grid map: the robot positioning method includes: the robot uses a laser sensor to collect laser point data; the robot is equipped with a laser sensor for scanning the environment, collecting laser point data, and a plurality of laser point data can be obtained in each scanning circle; the laser point data collected by the laser sensor are also controlled to perform position transformation operations in parallel in the current layer grid map; each time the position transformation operation is performed, a target point and its corresponding occupancy probability value are obtained, wherein one laser point data performs one round of position transformation operations to obtain one target point, and the posture used by one laser point data to perform one round of position transformation operations can be used as a candidate solution. When the position of the robot is set to the origin position of the coordinate system of the grid map, the posture used by one laser point data to perform one round of position transformation operations can be directly used as the posture of a target point, and the candidate solution can be used as a preliminary positioning result of the robot in the current layer grid map. For example, the robot controls the laser point data to perform multiple rounds of position transformation operations, that is, the laser point data are different but will perform the same type of coordinate offset operation (with the same coordinate offset in various coordinate axis directions) within the same clock cycle, and translate to the corresponding grid position in the currently acquired layer of the grid map, thereby obtaining multiple target offset coordinates and their corresponding occupancy probability values.

[0010] Furthermore, the robot retrieves multi-layered raster maps layer by layer in ascending resolution order. A multi-layered raster map is a raster map with multiple resolution levels, with each raster map layer corresponding to a specific resolution. In this embodiment, a map at one resolution is a raster map at one level of resolution. To enable a refined search for feasible solutions or candidate solutions, the robot retrieves multi-resolution raster maps from the DDR memory in ascending resolution order.

[0011] Regarding multi-resolution raster maps, it should be noted that multi-resolution is to set multiple levels of resolution from large to small resolution values. Raster maps at various resolutions constitute a multi-resolution raster map, which can also be understood as multi-layer raster maps and raster maps with multiple levels of resolution. Therefore, when a multi-resolution raster map is regarded as consisting of block maps of multiple resolutions, the multi-resolution raster map is a collection of multiple raster maps of different resolutions, and these raster maps of different resolutions are used to represent the same detection area. Each raster map is represented as a layer of raster map or a raster map of one level of resolution. When a multi-resolution raster map is regarded as a global raster map, then The global grid map supports multiple resolutions for representing the same detection area. Each resolution corresponds to a layer of block maps or a grid map of a level of resolution within the global grid map. That is, after traversing a grid map of one resolution within the global grid map and changing the resolution value, a grid map of another resolution can be traversed within the global grid map (a grid map of a different level of resolution than the previously traversed grid map). The global grid map can be recorded as a grid map that can be refreshed to different levels of resolution, so that the candidate solution processing system can repeatedly traverse or selectively traverse maps of the same detection area according to each level of resolution. Based on this, the robot localization method disclosed in this application generally starts with the lowest resolution grid map during the search of multiple layers of grid maps, and gradually increases the resolution to perform a refined search, that is, searching within maps of finer resolutions. Here, in this specification, high resolution refers to a small resolution value, indicating a small offset step size; low resolution refers to a large resolution value, indicating a large offset step size.

[0012] The robot traverses each candidate solution in the current grid map and controls the laser point data to sequentially add up the multiple occupancy probability values ​​corresponding to the currently traversed candidate solution. This is equivalent to accumulating the occupancy probability values ​​for the currently traversed candidate solution in the current grid map to obtain a real-time probability sum value. Based on the currently calculated real-time probability sum value, the robot determines whether the currently traversed candidate solution is a feasible solution or an infeasible solution. The currently traversed candidate solution corresponds to a round of position transformation operations. The robot calculates the real-time probability sum value for each target point obtained by the same round of position transformation operations in the current grid map by adding up the occupancy probability values ​​corresponding to each target point. For the target points obtained by performing the same position transformation operation on multiple laser point data in the current grid map, the occupancy probability values ​​corresponding to each target point are added up once to obtain a real-time probability sum value. The order of obtaining the currently obtained real-time probability sum values ​​is the same as the order of the target points involved in the addition.

[0013] It can be understood that the occupancy probability values ​​corresponding to the target points obtained by all laser point data in the same round of position transformation operations in the current layer grid map are added in sequence, including the coordinates of the robot scheduling target point and its corresponding occupancy probability value output and accumulation. When the occupancy probability value corresponding to the target point obtained by scheduling one of the laser point data in the same round of position transformation operations (the same type of position transformation operations) is added, a real-time probability and value corresponding to a candidate solution is obtained, that is, the real-time probability and value corresponding to the candidate solution corresponding to the same round of position transformation operations that have been executed.

[0014] Based on the currently calculated real-time probability and value, the candidate solution currently being traversed is judged to be a feasible solution or an infeasible solution. This judgment can be a dynamic judgment process. That is, as the laser point data changes, the target point and its corresponding occupancy probability value calculated at the currently traversed candidate solution also change. The real-time probability and value obtained by adding them together also change, and the reference value or threshold required for the judgment also changes accordingly. This can adapt to changes in grid map resolution and changes in occupancy probability values ​​at different grid locations. This improves the accuracy of judging feasible solutions or infeasible solutions from candidate solutions.

[0015] When the robot determines that the currently traversed candidate solution is a feasible solution, it controls the laser point data to stop adding the multiple occupancy probability values ​​corresponding to the currently traversed candidate solution. At this time, the robot determines that the robot has screened out a feasible solution in the current grid map layer, which is the current optimal solution in the current grid map layer and can be configured as the candidate solution in the next grid map layer. Specifically, based on the ratio between the resolution of the next grid map layer and the resolution of the current grid map layer, the determined feasible solution is set as the candidate solution for the next grid map layer. Then, in order from low to high resolution, the feasible solution is recursively determined among the candidate solutions of each grid map layer. Here, recursive judgment means repeatedly executing each candidate solution traversed for each grid map layer, and judging whether the currently traversed candidate solution is a feasible solution or an infeasible solution based on the currently calculated real-time probability and value. The grid maps are traversed in the order from low to high resolution. This execution is repeated until the optimal feasible solution is determined and set as the robot's relocalization result.

[0016] It is worth noting that when the robot determines that the currently traversed candidate solution is a feasible solution, it controls the laser point data to stop adding the multiple occupancy probability values ​​corresponding to the currently traversed candidate solution, because continuing to calculate the real-time probability and value for the same candidate solution on the basis of having determined a feasible solution is redundant calculation; until the currently traversed candidate solution is updated to the new candidate solution in the current layer grid map, or the candidate solution in the next layer grid map, the robot's invalid calculation amount at the currently traversed candidate solution is reduced.

[0017] It should be noted that a target offset coordinate is the result of a round of position transformation operations on a laser point data. A target offset coordinate can be indexed into the corresponding occupancy probability value. Each time a feasible or infeasible solution is output, a candidate solution is determined to be traversed. Based on the resolution difference, the feasible solution can be converted into a candidate solution in the next grid map layer. When the candidate solutions in a grid map layer are traversed, it is confirmed that the grid map layer has been traversed. The robot then traverses the next grid map layer in ascending resolution order and recursively selects feasible solutions.

[0018] In some embodiments, N laser point data perform the same round of position transformation operation to obtain N target points, that is, N target offset coordinates that need to participate in the addition of occupation probability values. Whenever a target point obtained by the same round of position transformation operation in the current layer grid map is calculated, the occupation probability value corresponding to the target point is controlled to be added to the probability sum value result previously added, and then the current added probability sum value result is updated to the probability sum value result previously added, wherein the initial added probability sum value result is a value of 0. When the occupation probability values ​​corresponding to the N target points under the same round of position transformation operation are added, the final real-time probability sum value is obtained.

[0019] In the above embodiment, the robot positioning method also includes: when the robot determines that the currently traversed candidate solution is an infeasible solution, the multiple occupancy probability values ​​corresponding to the laser point data obtained at the currently traversed candidate solution are stopped from being added, and then the next candidate solution is updated to the currently traversed candidate solution, wherein the next candidate solution is a candidate solution from the next layer of the grid map, or a candidate solution that has not been traversed in the current layer of the grid map; it should be noted that continuing to calculate the real-time probability and value for the same candidate solution on the basis of determining an infeasible solution is a redundant calculation, so before the currently traversed candidate solution is updated to a new candidate solution, the multiple occupancy probability values ​​corresponding to the laser point data obtained at the currently traversed candidate solution are kept stopped from being added, thereby reducing the amount of invalid calculations of the robot at the currently traversed candidate solution, saving the robot positioning time.

[0020] The robot then continues to control the laser point data to sequentially add up the multiple occupancy probability values ​​corresponding to the updated candidate solution currently traversed to obtain a real-time probability sum value. This allows the robot to continue to determine whether the updated candidate solution currently traversed is a feasible solution or an infeasible solution based on the currently calculated real-time probability sum value. This can be done by continuing to screen for feasible or infeasible solutions in the current grid map layer, or by screening for infeasible or feasible solutions in a new grid map layer. The robot recursively determines whether a feasible solution or an infeasible solution is available in the candidate solutions of each grid map layer in ascending order of resolution, and repeats this process until the optimal feasible solution is determined, and the optimal feasible solution is set as the robot's relocalization result.

[0021] In summary, whenever the robot determines a feasible solution or an infeasible solution in each layer of the grid map, it can immediately exit the probability value summation calculation, avoiding subsequent redundant calculations for the same candidate solution. This allows the robot to complete a relatively accurate positioning operation in the multi-layer grid map within the coverage area of ​​its laser sensor without consuming a lot of computing power resources, which is conducive to the robot's real-time and precise positioning operation.

[0022] As an embodiment, with reference to FIG1 , it can be seen that the robot positioning method includes:

[0023] In step A, the robot uses a laser sensor to collect laser point data. The robot is equipped with a laser sensor for scanning the environment. Each scan acquires multiple laser point data points within the current detection area and provides feedback on the robot's position within the current detection area, including the positions of surrounding obstacles and the robot. Then, proceed to step B.

[0024] In step B, the robot obtains the multi-layer grid map layer by layer in the order of resolution from low to high, and then executes step C. In step B currently executed by the robot, the robot obtains the current layer grid map.

[0025] Specifically, the robot retrieves the current layer of the raster map from its internal memory. This map is derived from a multi-layered raster map, also known as a multi-resolution raster map. A multi-resolution raster map is a raster map at multiple resolutions, with each layer corresponding to a different resolution. To perform a refined search for feasible solutions or candidate solutions, the robot retrieves the multi-resolution raster maps from the DDR memory in ascending resolution order.

[0026] Whenever a laser point data is obtained, the laser point data is controlled to perform a position transformation operation in parallel in the current layer of the grid map; whenever a position transformation operation is performed, a target point and its corresponding occupancy probability value are obtained, wherein a laser point data performs a round of position transformation operation to obtain a target point, and the posture used by a laser point data to perform a round of position transformation operation can be used as a candidate solution. The robot controls the same laser point data to perform multiple rounds of position transformation operations, that is, to execute multiple candidate solutions; different laser point data will perform the same type of coordinate offset operation (with the same coordinate offset in various coordinate axis directions), that is, to execute the same candidate solution and translate it to the corresponding grid position in the currently acquired layer of the grid map, so that multiple laser point data will obtain multiple target offset coordinates and their corresponding occupancy probability values ​​from one candidate solution.

[0027] Step C: The robot traverses each candidate solution in the current layer grid map and controls the laser point data to add up the multiple occupancy probability values ​​corresponding to the currently traversed candidate solution in sequence to obtain a real-time probability sum value; then, based on the currently calculated real-time probability sum value, it determines whether the currently traversed candidate solution is a feasible solution or an infeasible solution.

[0028] In step C, the robot traverses each candidate solution in the current grid map and calculates the corresponding real-time probability sum value. The result of calculating a laser point data through a candidate solution is a target point, and each target point is assigned an occupancy probability value. For the same candidate solution, the cumulative result of the occupancy probability values ​​of multiple target points obtained from multiple laser point data is represented by the real-time probability sum value. Therefore, one real-time probability sum value corresponds to multiple laser point data, and one result obtained by calculating a laser point data through a candidate solution corresponds to one occupancy probability value. Each time the robot traverses a candidate solution in the current grid map, the occupancy probability value of the target point corresponding to the laser point data collected by the robot's laser sensor is accumulated once to obtain a real-time probability sum value. The pre-set candidate solution exists in the first acquired grid map (which can be the grid map of the lowest resolution level traversed by the robot, which can be referred to as the first-level grid map in this application).

[0029] In step C, the robot also determines whether the candidate solution currently being traversed in the current grid map is a feasible solution or an infeasible solution based on the currently calculated real-time probability and value. It should be noted that the robot first screens candidate solutions from the current grid map before determining whether they are feasible or infeasible. During this process, the robot compares the solution to a fixed threshold or a dynamically changing threshold (a threshold that changes with the resolution of the grid map). If the robot determines that the candidate solution currently being traversed in the current grid map is an infeasible solution, step D is executed. If the robot determines that the candidate solution currently being traversed in the current grid map is a feasible solution, step E is executed.

[0030] Step D: When the robot determines that the currently traversed candidate solution is an infeasible solution, it controls the laser point data to stop adding the multiple occupancy probability values ​​corresponding to the currently traversed candidate solution, and then updates the next candidate solution to the currently traversed candidate solution; then, it controls the laser point data to sequentially add the multiple occupancy probability values ​​corresponding to the updated currently traversed candidate solution to obtain a real-time probability sum value, so as to continue to determine whether the updated currently traversed candidate solution is a feasible solution or an infeasible solution based on the currently calculated real-time probability sum value.

[0031] Therefore, when it is determined that an infeasible solution has been identified in the current grid map, the robot stops traversing the target point and its corresponding occupancy probability value obtained at the candidate solution currently traversed by the laser point data that did not participate in the calculation, and naturally stops calculating the real-time probability and value. Then, the robot returns to execute step B and / or step C. When the candidate solutions in the current grid map are traversed and the grid map needs to be switched, the robot first returns to execute step B to obtain the next grid map. The next candidate solution is also a candidate solution in the next grid map. The next grid map can be understood as a grid map with a higher resolution that has not been traversed by the robot. When the candidate solutions in the current grid map are not traversed, the robot first returns to execute step C to obtain the next candidate solution. The next candidate solution is a candidate solution in the current grid map that has not been traversed, that is, a candidate solution that has not participated in the aforementioned position transformation operation to obtain the target point and its corresponding occupancy probability value.

[0032] When it is determined that the last candidate solution traversed in the highest-resolution grid map is judged as an infeasible solution, it can stop traversing the multi-layer grid map or stop executing the robot localization method to call other relocalization algorithms. At this time, the preset pose data can be selected as the robot's relocalization result. Or when it is determined that all traversed candidate solutions in the current grid map are judged as infeasible solutions, the feasible solution in the previous grid map is set as the optimal feasible solution, the calculation of real-time probability and value is stopped, and the optimal feasible solution is set as the robot's relocalization result. This reduces the amount of ineffective calculation and data search.

[0033] In some embodiments, when the robot is traversing candidate solutions in a current grid map, if the sum of the real-time probability sum of the target point and a dynamically changing reference value is less than or equal to a certain threshold, the robot determines that the currently traversed candidate solution is an infeasible candidate solution in the current grid map, i.e., an infeasible solution. The robot then preferentially excludes the currently traversed candidate solution from the current grid map when traversing the next grid map and does not consider it as a candidate solution for the next grid map. This infeasible solution is preferentially excluded from the current grid map when traversing the next grid map and does not consider it as a candidate solution for the next grid map. In the next grid map, which is a grid map with a higher resolution (higher resolution level), the amount of search data and computation time can be reduced. Furthermore, the infeasible solution can be screened out and the computation of the real-time probability sum can be terminated in a timely manner before the sum of the corresponding occupation probability values ​​of all laser point data is calculated. This reduces the number of position transformation operations assigned to the same batch of laser point data by the infeasible solution, i.e., reduces the ineffective computation of the laser point data in the grid map of the corresponding resolution, thereby speeding up the computation and search speed. When the current layer raster map is a raster map with a higher resolution (higher resolution level), the data calculation time can be greatly reduced.

[0034] Step E: When the robot determines that the candidate solution currently traversed is a feasible solution, it controls the laser point data to stop adding the multiple occupancy probability values ​​corresponding to the candidate solution currently traversed, and then sets the determined feasible solution as the candidate solution of the next grid map based on the ratio between the resolution of the next grid map and the resolution of the current grid map. Then, the robot recursively determines the feasible solution among the candidate solutions of each grid map in order from low to high resolution until the optimal feasible solution is determined, and sets the optimal feasible solution as the robot's relocalization result.

[0035] Combining steps D and E, it can be seen that no matter whether the candidate solution currently traversed by the robot is a feasible solution or an infeasible solution, the laser point data is controlled to stop adding the multiple occupancy probability values ​​corresponding to the currently traversed candidate solution, thereby reducing the robot's repositioning time and improving search efficiency.

[0036] Specifically, when the robot determines that the candidate solution currently traversed is a feasible solution, it determines that the robot determines that the candidate solution is a feasible solution in the current layer grid map, and then the robot sets the screened feasible solution as the candidate solution in the next layer grid map based on the resolution difference between the next layer grid map and the current layer grid map. It can also directly update the screened feasible solution in the grid map with the same resolution to the candidate solution in the next layer grid map. The posture data corresponding to the candidate solution in the next layer grid map is written into the robot's built-in memory and saved for the robot to screen in the process of traversing the next layer grid map. Therefore, after determining that the robot has judged that the candidate solution in the current grid map is a feasible solution and setting the screened feasible solution as the candidate solution in the next grid map, the robot needs to execute step B back to obtain the next grid map, including obtaining the candidate solution in the next grid map, and then executing steps C to E to traverse and judge the candidate solutions one by one in the same grid map, that is, to achieve recursive judgment of candidate solutions one by one; and then repeatedly execute steps B to E to achieve recursive judgment of feasible solutions layer by layer, specifically traversing and judging the candidate solutions layer by layer, until a feasible solution is determined in the last obtained grid map and determined as the optimal feasible solution.

[0037] In some embodiments, when the robot controls all laser point data in the current layer of the grid map to perform the same round of position transformation operations (corresponding to the same candidate solution) and the sum of the occupancy probability values ​​of the target points obtained is greater than or equal to a threshold value, the candidate solution corresponding to the same round of position transformation operations is set as a feasible solution, that is, a feasible solution of the current layer of the grid map, and step E is executed; before the robot traverses the next layer of the grid map, it is necessary to first divide the feasible solutions of the current layer of the grid map into corresponding candidate solutions, so as to improve the search precision in the next layer of the grid map as a grid map with higher resolution (higher resolution level). Specifically, after the robot determines that the candidate solution traversed in the current layer grid map is a feasible solution, the robot will screen out the feasible solution from the current layer grid map in step E, wherein the posture data corresponding to the screened feasible solution includes the coordinates of the target point obtained in the current layer grid map by the same round of position transformation operation (the coordinates in the current layer grid map can be used for positioning in the next layer grid map after resolution conversion and decomposition, and will be converted in proportion according to the difference in resolution) and its corresponding occupancy probability value, so as to become the candidate solution of the next layer grid map and set it as The pose data corresponding to the candidate solution of the next layer of grid map can be used for the laser point data to perform the same round of position transformation operation; therefore, when traversing to the next layer of grid map, when the laser point data performs the same round of position transformation operation in the next layer of grid map, the candidate solution of the next layer of grid map is read from the memory built into the robot, without controlling the laser point data to repeatedly perform the same round of position transformation operation, so that the robot recursively searches for the optimal feasible solution layer by layer in the grid maps with low to high resolution, and can provide the robot with the pose data required for repositioning. Therefore, the robot first forms an initial candidate solution set on the lowest-resolution grid map and begins searching for feasible solutions. It then traverses the multi-resolution grid map layer by layer from low to high resolution, and screens the feasible solutions in the candidate solution set of each grid map layer, decomposing them into multiple candidate solutions and using them as candidate solutions for the next grid map layer. That is, the current optimal solution is converted into a candidate solution that adapts to the resolution of the next grid map layer, until the final feasible solution is screened out in the highest-resolution grid map as the optimal feasible solution, forming a relocalization result, which is then considered to complete the robot's relocalization process in the multi-resolution grid map.

[0038] The robot executes steps A to E, including completing the traversal and judgment of all candidate solutions in the same layer of the grid map by repeatedly executing steps C to E, and traversing and judging the candidate solutions in each layer of the grid map layer by layer by repeatedly executing steps B to E, traversing to the last layer of the grid map (the grid map with the highest resolution), screening out each feasible solution from the candidate solutions of the last layer of the grid map, and providing relocation pose data for the grid map with the highest resolution as the optimal feasible solution set. Optionally, when the robot's position is set to the origin of the coordinate system of the grid map, the optimal feasible solution set can be used to relocate the robot to relatively accurate pose information, or find the pose of the laser point data currently scanned by the laser sensor in the multi-resolution grid map, that is, the global relocation process is completed, and the global relocation is considered successful, otherwise the relocation search fails.

[0039] In summary, when the robot traverses grid maps of various resolutions layer by layer, it stops traversing and calculating real-time probabilities and values ​​when the currently traversed candidate solution is an infeasible solution, reducing invalid calculation time and thus significantly reducing the robot's relocalization time; when the currently traversed candidate solution is a feasible solution, it continues traversing a grid map with a higher resolution, allowing the robot to start searching from a more likely position within the grid map of the corresponding resolution, reducing the amount of data calculation and search required by traversing a higher-resolution grid map and improving the search speed.

[0040] In some embodiments, during the process of the robot recursively determining feasible solutions from candidate solutions of each layer of the grid map in order of resolution from low to high, there are:

[0041] If a candidate solution in the last grid map layer is determined to be a feasible solution, the feasible solution determined by the robot in the last grid map layer is set as the optimal feasible solution, and the optimal feasible solution is set as the relocalization result. The last grid map layer is the highest resolution grid map found by the robot in ascending order of resolution, after the robot updates the feasible solution in the current grid map layer to the candidate solution in the next grid map layer. This allows the pose data involved in the feasible solution in the highest resolution grid map layer to be configured as the pose data required for the robot's relocalization in the highest resolution grid map.

[0042] If all candidate solutions in the S-th grid map cannot be judged as feasible solutions, and there is a candidate solution in the S-1th grid map that is judged to be a feasible solution, then the feasible solution judged by the robot in the S-1th grid map is set as the optimal feasible solution, and the optimal feasible solution is set as the relocalization result. Where S is an integer greater than 1, and S is less than or equal to the maximum number of layers allowed in a multi-layer grid map, corresponding to the level of the last grid map. In this way, the pose data involved in the feasible solution in the S-1th grid map can be configured as the pose data required for the robot to relocalize in the S-1th grid map or a higher-level grid map.

[0043] Preferably, the robot's laser sensor collects laser point data within a current detection area. The robot stores grid maps of the current detection area at multiple resolutions, and the grid maps at the multiple resolutions are configured as a multi-layer grid map arranged in ascending order of resolution. Each layer of the grid map is a block map generated within the effective detection range of the robot's laser sensor. Each layer of the grid map, or each resolution of the grid map, can be considered a block map generated within the effective detection range of the laser sensor, except that the required resolution for representing the effective detection range varies, resulting in a different degree of refinement. The current detection area is represented by the position drift region formed in the corresponding angles and coordinates by all wheel position transformation operations required to be performed on all laser point data in the current layer of the grid map. The current detection area is represented by the position drift region formed in the corresponding angles and coordinates (candidate solutions) by all wheel position transformation operations required to be performed on all laser point data in the current layer of the grid map. Within a layer of the grid map, the set of all candidate solutions to be traversed, pre-set within the layer of the grid map, can be defined as a candidate solution set, where each candidate solution to be traversed is a combination of angles and coordinates to be traversed.

[0044] In a layer of raster map, each candidate solution to be traversed is a combination of angles and coordinates to be traversed; one candidate solution corresponds to one round of position transformation operations; one round of position transformation operations is represented as a combination of an angle and a coordinate, or a combination of an angle deflection and a coordinate offset, so that the coordinate offset of a feasible solution in the current layer of raster map is used to represent a coordinate area in the next layer of raster map, that is, a higher resolution raster map needs to use more grids to represent an area of ​​the same physical size in a lower resolution raster map.

[0045] For a grid map, the current grid map is the current grid map acquired by the robot; the next grid map is the next grid map acquired by the robot. The resolution of the next grid map is higher than that of the current grid map. Both the current and next grid maps are laser grid maps. They accept laser point data (i.e., the position coordinates of laser points, scanned points, or point cloud points) that fall within corresponding grid cells and assign an occupancy probability value to each cell. For grid maps, the entire environment scanned by the laser sensor is first divided into rectangular grids of equal length. The grid length is selected based on the size of the autonomous mobile device housing the feasible solution processing system and the required environmental representation. The resolution of the map can be expressed as the number of grid cells. For example, for a 0.05m resolution map, 20 grid cells are required to represent 1m. Then, as the robot continuously moves through the environment, information about each grid cell in the scanned environment is acquired and assigned an occupancy probability value to represent the probability that the grid cell is occupied. Each grid represents a rectangular block, and a value in the range (0,1) is used to indicate the probability of this block being occupied, indicating whether there is an obstacle at the corresponding physical location. Therefore, the map data of the grid map can include the coordinates of the grid, the position information of the target point in the grid map, the occupancy probability value corresponding to the target point falling into the corresponding grid, the grid side length, the grid map coordinate system elements, the map resolution, the coordinate offset step required for coordinate offset in the grid map, and the angle deflection step required for angle deflection in the grid map.

[0046] In the above embodiment, a round of position transformation operations corresponding to a candidate solution includes an angle deflection operation and a coordinate offset operation, and the coordinate offset operation includes a horizontal coordinate offset operation and a vertical coordinate offset operation; wherein, the same round of position transformation operations represents the same type of angle deflection operation and the same type of coordinate offset operation; a round of position transformation operations includes: controlling a laser point data to first perform an angle deflection operation, then perform a coordinate offset operation along one coordinate axis direction, and then perform a coordinate offset operation along another coordinate axis direction to obtain a target point, thereby realizing the transformation of a laser point data into a target point through a round of position transformation operations, and a target point is configured with an occupation probability value in a layer of a grid map; wherein, when one coordinate axis direction represents the horizontal coordinate axis direction, the other coordinate axis direction represents the vertical coordinate axis direction, to indicate that the horizontal coordinate offset operation is performed first, and then the vertical coordinate offset operation is performed; when one coordinate axis direction represents the vertical coordinate axis direction, the other coordinate axis direction represents the horizontal coordinate axis direction, to indicate that the vertical coordinate offset operation is performed first, and then the horizontal coordinate offset operation is performed, which can be understood as constituting one coordinate offset operation. In the coordinate system of each layer of the grid map, one coordinate axis direction is set perpendicular to another coordinate axis direction.

[0047] In the same round of position transformation operation, the offset direction of the first coordinate offset and the coordinate offset generated by the first coordinate offset relative to the coordinate before execution in the offset direction are preset, and the offset direction of the second coordinate offset and the coordinate offset generated by the second coordinate offset relative to the coordinate before execution in the offset direction are also preset.

[0048] When traversing a target point in a grid map or performing at least one round of position transformation operations, the maximum number of grids allowed to be accommodated in the horizontal axis direction of the grid map is preferably greater than or equal to the product of the maximum number of offsets allowed for the same reference coordinate in the horizontal axis direction of the grid map and the horizontal coordinate offset step; the maximum number of grids allowed to be accommodated in the vertical axis direction of the grid map is preferably greater than or equal to the product of the maximum number of offsets allowed for the same reference coordinate in the vertical axis direction of the grid map and the vertical coordinate offset step.

[0049] The robot does not restrict the execution order of horizontal and vertical coordinate offset operations in a round of position transformation operations. The robot is pre-configured with the maximum number of offsets allowed for the reference coordinates in the horizontal axis direction of the current grid map and the coordinate offset step size in the horizontal axis direction, as well as the maximum number of offsets allowed for the reference coordinates in the vertical axis direction of the current grid map and the coordinate offset step size in the vertical axis direction, according to the resolution of the current grid map.

[0050] As an embodiment, the robot positioning method is divided into at least one of the following steps:

[0051] Step 1: The robot traverses each candidate solution in the current grid map layer and controls the laser point data to perform a round of position transformation operations corresponding to the currently traversed candidate solution to obtain the target point. Each time a target point is obtained, the number of target points is counted. Then, step 2 is executed.

[0052] The robot will traverse each candidate solution in the currently determined candidate solution set by repeatedly executing step 1. Each time the robot traverses a candidate solution in the current layer grid map, it obtains a target point and its corresponding occupancy probability value, and counts the number of target points obtained; then it executes step 2 until it has traversed the current layer grid map or terminates because an infeasible solution is screened out.

[0053] It should be noted that each candidate solution corresponds to one round of position transformation operation, and the laser point data in each data channel performs at least one round of position transformation operation in parallel; the current layer grid map is a layer of grid map currently obtained by the feasible solution acquisition module.

[0054] Step 2: Control all laser point data to add up the occupancy probability values ​​corresponding to each target point obtained from a round of position transformation operations corresponding to the currently traversed candidate solution. Each time the occupancy probability values ​​are added up, the current target point and its corresponding occupancy probability value are determined according to the order of addition of the occupancy probability values ​​corresponding to the target points, and then the current sum is set as the real-time probability sum of the current target point. Then, based on the real-time probability sum of the current target point and the number of target points, determine whether the currently traversed candidate solution is a feasible solution or an infeasible solution, and determine whether the currently traversed candidate solution is a feasible solution or an infeasible solution based on the currently calculated real-time probability sum. When a feasible solution is determined, the currently determined feasible solution is updated to the current optimal solution. Then, execute step 3.

[0055] Specifically, in step 1, each time a candidate solution is traversed in the current layer grid map, the occupation probability values ​​corresponding to each target point obtained by controlling the laser point data in a round of position transformation operations corresponding to the currently traversed candidate solution are sequentially added. Each time the addition is performed, the current target point and its corresponding occupation probability value are determined based on the order of addition of the occupation probability values ​​corresponding to the target points. The current sum is then set as the real-time probability sum value of the current target point. Then, based on the relationship between the real-time probability sum value of the current target point, the maximum single-point probability, and the preset screening threshold, a feasible solution is determined from the candidate solutions determined in step 1 and set as the current optimal solution. Then, step 3 is executed.

[0056] Each time step 2 is executed, a candidate solution is traversed, a corresponding round of position transformation operations is performed, and based on this, the corresponding candidate solution is determined to be a feasible solution. As the robot traverses a grid map layer, it repeatedly executes step 2 to traverse each currently determined candidate solution, including successively determining whether a feasible solution or an infeasible solution, and updating the determined feasible solution to the current optimal solution, which serves as the current optimal solution in the multi-layer grid map. After traversing the first grid map layer, the resulting candidate solution set is the set of candidate solutions corresponding to each round of position transformation operations required to be performed in the current grid map layer. The robot controls all laser point data to add up the occupation probability values ​​corresponding to each target point obtained in a round of position transformation operations corresponding to the currently traversed candidate solution in sequence. Each time the addition is performed, the current target point and its corresponding occupation probability value are determined according to the order of addition of the occupation probability values ​​corresponding to the target points, and it is determined that the currently added occupation probability value is the one currently participating in the addition among the occupation probability values ​​corresponding to all target points obtained in the same round of position transformation operations. The current added sum is set as the real-time probability sum value of the current target point; then, based on the real-time probability sum value of the current target point and the maximum single-point probability, a feasible solution is screened out from the candidate solution set determined in step 1. Specifically, the relationship between the calculation result of the real-time probability sum value of the current target point and the maximum single-point probability and the preset screening threshold is judged to determine whether the currently traversed candidate solution is a feasible solution.

[0057] Whenever a feasible solution is determined in the current layer grid map, the number of feasible solutions in the current layer grid map is counted by one. After all candidate solutions in the current layer grid map are traversed and judged to be feasible solutions in turn, the number of feasible solutions in the current layer grid map is counted.

[0058] It can be understood that by repeating steps 1 and 2, the occupation probability values ​​corresponding to each target point obtained by controlling all laser point data in a round of position transformation operations corresponding to the currently traversed candidate solution are added in sequence until all the occupation probability values ​​corresponding to the target points obtained by all laser point data in the same round of position transformation operations are added together to obtain the real-time probability and value of the last target point. By repeating step 2, all laser point data are controlled to obtain the corresponding real-time probability and value by executing the position transformation operations corresponding to all candidate solutions. The cumulative number of real-time probability and values ​​obtained is equal to the number of target points in the current layer grid map.

[0059] In step 2, the occupation probability values ​​corresponding to each target point obtained by a round of position transformation operation corresponding to the currently traversed candidate solution for all laser point data are added in sequence, which is equivalent to an accumulation operation. The number of additions can be regarded as the number of accumulations of the occupation probability values ​​one by one, and the sum obtained by each addition needs to be threshold judged to determine whether the candidate solution corresponding to the current target point is an infeasible solution or a feasible solution in the current layer grid map to determine whether to stop the accumulation operation before traversing all target points, and when it is judged to be a feasible solution, the feasible solution is updated to the current optimal solution.

[0060] Step 3: After a feasible solution is determined in the current grid map by executing step 2, the determined feasible solution is set as at least one candidate solution for the next grid map based on the ratio between the resolution of the next grid map and the resolution of the current grid map. This is equivalent to setting the updated current optimal solution as at least one candidate solution for the next grid map, thereby determining at least one round of position transformation operations required to be performed in the next grid map. After all candidate solutions are traversed in the current grid map by executing step 2, all feasible solutions have been screened out from the current grid map. The next grid map is updated to the current grid map described in step 1, and then the most recently set candidate solution for the next grid map (also the candidate solution previously set in step 3) is updated to the candidate solution described in step 1. In some embodiments, the horizontal and vertical coordinate values ​​and angle values ​​of the target point calculated or screened in real time by the most recently executed step 1 can be used. The target point and its corresponding occupancy probability value obtained last time can be updated or stored in ascending order of resolution. Then, step 1, step 2, and step 3 are repeated until the last grid map layer (i.e., the grid map layer with the highest resolution) is traversed and a feasible solution is determined therefrom, or when the number of feasible solutions determined in the current grid map layer is zero, the most recently set current optimal solution in the same grid map layer is set as the optimal feasible solution, and the optimal feasible solution is set as the robot's relocalization result. Alternatively, it can be determined that the robot has completed all candidate solutions in a grid map layer. Specifically, this includes, when the last grid map layer (i.e., the grid map layer with the highest resolution) is traversed and a feasible solution is determined therefrom, updating the feasible solution in the last grid map layer (i.e., the grid map layer with the highest resolution) to the current optimal solution and making it the optimal feasible solution; or when the number of feasible solutions determined in the current grid map layer is zero, setting the current optimal solution set in the previous grid map layer as the optimal feasible solution.

[0061] It is important to note that in the current grid map, the occupancy probability values ​​corresponding to each target point obtained by a laser point data in each round of position transformation operations are added together to obtain a corresponding real-time probability sum value. For the same round of position transformation operations, the number of accumulated real-time probability sum values ​​is equal to the number of target points in the current grid map. The current grid map is the grid map currently acquired by the robot; the next grid map is the grid map acquired by the robot next time; the number of candidate solutions included in the next grid map is less than the number of candidate solutions included in the current grid map; and the resolution of the next grid map is higher than that of the current grid map.

[0062] Furthermore, from the above steps 2 and 3, it can be seen that the occupancy probability values ​​corresponding to the target points obtained in each round of position transformation operations of all laser point data are added together to obtain the corresponding map probability and value. The number of map probability and value is equal to the number of candidate solutions in the current layer grid map. Moreover, all feasible solutions in the current layer grid map have been screened out through step 2 to form the feasible solution set in the current layer grid map. At this time, the feasible solutions in the screened feasible solution set are sequentially set as candidate solutions in the next layer grid map. Due to the resolution difference between maps of different levels, it is not necessarily necessary to directly update the currently screened feasible solution set to the candidate solution set described in step 1. The horizontal and vertical coordinate values ​​and angle values ​​of the target points calculated in real time in the most recently executed step 2 (when executing step 2 in the first layer grid map) or screened out still need to be decomposed according to the change in resolution. After the feasible solutions in the selected feasible solution set are sequentially set as candidate solutions in the next grid map, step 3 also updates the candidate solution set in the next grid map to the candidate solution set described in step 1. Furthermore, the target points corresponding to the candidate solutions in the next grid map are updated to the target points obtained by the position transformation operation of all laser point data corresponding to the currently traversed candidate solutions described in step 1. The occupancy probability values ​​corresponding to the target points in the candidate solutions in the next grid map are updated to the occupancy probability values ​​corresponding to the target points obtained by the position transformation operation of all laser point data corresponding to the currently traversed candidate solutions described in step 1. This is used for subsequent relocalization in a higher-resolution grid map, allowing the robot to search for the optimal feasible solution set layer by layer in grid maps with increasing resolutions.

[0063] The robot further repeatedly executes steps 1 to 3 to obtain corresponding feasible solutions and infeasible solutions from the candidate solution set of each layer of the grid map in order of resolution from low to high; until the highest resolution grid map is traversed and a feasible solution is screened out from it, or the number of feasible solutions screened out in a grid map is zero (all candidate solutions in a grid map may be infeasible solutions), the current optimal solution is set as the relocalization result of the robot, which is also equivalent to setting the latest screened feasible solution as the optimal feasible solution. When the highest resolution grid map is traversed and a feasible solution set is screened out from it, it can be determined that the traversal of the multi-layer grid map has been completed. When the number of feasible solutions screened out by the robot in the most recently traversed grid map layer is equal to zero, that is, when the number of feasible solutions screened out by the robot by repeatedly executing step 2 in the current grid map layer is zero, it is determined that no feasible solution exists in the current grid map layer and there is no need to continue traversing grid maps with higher resolutions. The current optimal solution screened out in the previous grid map layer is set as the optimal feasible solution, where the previous grid map layer is the last obtained grid map layer; the number of candidate solutions included in the previous grid map layer is greater than the number of candidate solutions included in the current grid map layer; and the resolution of the previous grid map layer is lower than the resolution of the current grid map layer. This achieves the goal of searching for the optimal feasible solution layer by layer in grid maps with increasing resolutions.

[0064] It should be noted that each time the robot executes step 2 on a grid map layer, the current target point is the target point corresponding to the currently added occupancy probability value; the currently added occupancy probability value is the one currently added among all the occupancy probability values ​​corresponding to the target points obtained in the same round of position transformation operations; and the currently added sum is the sum of all the previously added occupancy probability values ​​corresponding to the target points obtained in the same round of position transformation operations. The robot first selects feasible solutions from the candidate solutions in the current grid map layer and then sets the selected feasible solution set as the candidate solution in the next grid map layer. The robot then selects feasible solutions from the candidate solutions in each grid map layer in ascending resolution order, progressively narrowing the search range of candidate solutions. The robot can traverse and calculate target points while determining feasible solutions in the same grid map layer, until it recursively traverses the highest-resolution grid map layer and selects feasible solutions from it. Since the multi-resolution raster map is traversed and screened layer by layer, feasible solutions are obtained at finer resolutions. The higher the resolution level, the better the judgment accuracy can be achieved.

[0065] As an embodiment, in step 3, the method of setting the determined feasible solution as a candidate solution of the next layer grid map based on the ratio between the resolution of the next layer grid map and the resolution of the current layer grid map includes: the robot uses the ratio between the resolution of the next layer grid map and the resolution of the current layer grid map to divide the feasible solution screened out in the current layer grid map into multiple candidate solutions in the next layer grid map, including but not limited to dividing into multiple candidate solutions along a specific angle direction, or reducing to a smaller number of candidate solutions in proportion, preferably the result of equal-distance division of coordinate offset and equal-angle division of angle deflection; and the occupation probability value corresponding to the target point obtained by performing the corresponding position transformation operation corresponds to the occupation probability value corresponding to the target point corresponding to the feasible solution before the division (the target point obtained in the most recently executed step 1); In the embodiment, the ratio of the coordinate offset step corresponding to the feasible solution in the current layer grid map to the coordinate offset step corresponding to the candidate solution divided out in the next layer grid map is equal to the ratio between the resolution of the next layer grid map and the resolution of the current layer grid map; the ratio between the resolution of the next layer grid map and the resolution of the current layer grid map is equal to the ratio between the coordinate offset step required for performing the coordinate offset operation in the current layer grid map and the coordinate offset step required for performing the coordinate offset operation in the next layer grid map, so that the next layer grid map described in step 3 is updated to the current layer grid map described in step 1, including converting the coordinate offset step required for performing the coordinate offset operation in the current layer grid map into the coordinate offset step required for performing the coordinate offset operation in the next layer grid map, so as to realize the robot changing layers and traversing the multi-resolution grid map.

[0066] In this embodiment, the position change data involved in the round of position transformation operations that the robot needs to perform on the laser point data in step 1 is a candidate solution marked as a layer of grid map. The position transformation operations that the laser point data needs to perform in each layer of the grid map include coordinate offset operations, each of which is configured with a coordinate offset step. The coordinate offset step is preferably scaled down to be expressed using a grid number, consistent with the resolution of the grid map. The position transformation operations that the laser point data needs to perform in each layer of the grid map include coordinate offset operations, each of which is configured with a coordinate offset step, so that each candidate solution corresponds to a coordinate offset step. The robot traverses the multiple layers of the grid map according to the new coordinate offset step and controls the round of position transformation operations corresponding to the candidate solution currently being traversed, or configures the same round of position transformation operations according to the new coordinate offset step. This enables the laser point data to perform the round of position transformation operations corresponding to the candidate solution currently being traversed in the grid map of the new resolution. Therefore, in step B, as the robot traverses each grid map layer in ascending order of resolution, it reduces the coordinate offset step size required for the current grid map layer to adapt to the next grid layer, i.e., the higher-resolution grid map. The position transformation operations required for the laser point data in each grid map layer include coordinate offset operations, each of which is assigned a corresponding coordinate offset step size. The coordinate offset step size is scaled down to be represented by a single grid. The more grid cells used to mark a preset physical size in the grid map, the higher the resolution of the grid map. The fewer grid cells used to mark a preset physical size in the grid map, the lower the resolution of the grid map.

[0067] On the basis of the above embodiment, step 3 further includes: whenever a feasible solution determined is set as at least one candidate solution of the next grid map, the target point obtained by the position transformation operation of the laser point data corresponding to the candidate solution of the next grid map is updated to the target point obtained by a round of position transformation operation corresponding to the currently traversed candidate solution for all the laser point data described in step 1, and the occupation probability value corresponding to the target point obtained by the position transformation operation corresponding to the candidate solution of the next grid map is updated to the occupation probability value corresponding to each target point obtained by a round of position transformation operation corresponding to the currently traversed candidate solution for all the laser point data described in step 1, and then returning to step 1.

[0068] Whenever a feasible solution in the current grid map is set as a plurality of candidate solutions in the next grid map, some candidate solutions in the candidate solution set described in step 1 can be constituted, wherein the number of candidate solutions set in the next grid map is equal to the product of the ratio of the coordinate offset step in each coordinate axis direction in the current grid map to the coordinate offset step in the same coordinate axis direction in the next grid map. If the resolution of the next grid map is higher than the resolution of the current grid map, then the ratio of the coordinate offset step in the horizontal axis direction in the next grid map to the coordinate offset step in the horizontal axis direction in the current grid map is greater than 1, and the ratio of the coordinate offset step in the vertical axis direction in the next grid map to the coordinate offset step in the vertical axis direction in the current grid map is also greater than 1. Therefore, the number of candidate solutions for updating a feasible solution in the current grid map to the next grid map is greater than 1. In this way, each feasible solution in the screened feasible solution set in step 2 is repeatedly set as multiple candidate solutions in the next layer of grid map, forming a candidate solution set in the next layer of grid map, and then in step 3, the candidate solution set in the next layer of grid map is updated to the candidate solution set described in step 1.

[0069] On the basis of the above embodiment, in a 1.6m resolution grid map, 1.6m is used as the coordinate offset step size to obtain an initial set of candidate solutions. Then, the real-time probability sum and the predicted probability sum are calculated for each target point obtained after a round of position transformation operations corresponding to the candidate solutions for all laser point data. The feasible solution or infeasible solution is screened out by judging the size of the predicted probability sum and the preset screening threshold. The feasible solution is used as the current optimal solution of the multi-layer grid map, and the infeasible solution is abandoned and the calculation of the real-time probability sum and the predicted probability sum corresponding to the same candidate solution is stopped. The next grid map layer is a 0.8m resolution grid map, with a coordinate offset step of 0.8m. The real-time probability sum and predicted probability sum corresponding to each target point are obtained from the candidate solutions in the next grid map layer. A feasible solution is screened out by comparing the predicted probability sum with a preset screening threshold. In accordance with the aforementioned embodiment, the screened feasible solution (also considered the current optimal solution in the multi-layer grid map) is set as a candidate solution in the next grid map layer. The candidate solutions in the next grid map layer are set using the ratio between the resolution of the next grid map layer and the resolution of the current grid map layer. For example, one feasible solution (one current optimal solution) in the 0.8m resolution grid map is updated to four candidate solutions in the 1.6m resolution grid map. Furthermore, preferably, for the same candidate solution or the same round of position transformation operations, the number of target points obtained in the 0.8m resolution grid map is equal to the number of target points obtained in the 1.6m resolution grid map. As the robot traverses the multi-layer grid map in ascending order of resolution, steps 1 to 3 are repeatedly executed. The robot recursively searches for feasible or infeasible solutions in the multi-layer grid map until it reaches a grid map with a resolution of 0.05m. The robot obtains the real-time probability sum and predicted probability sum corresponding to each target point in the 0.05m resolution grid map for each laser point data point. The robot then screens out infeasible solutions in each grid map layer by comparing the predicted probability sum with a preset screening threshold. The optimal feasible solution is determined in the layer-by-layer search based on the number of target points in the same grid map layer. In some embodiments, the search is terminated when no feasible solution can be found in the 0.1m resolution grid map. At this point, the optimal feasible solution is considered to be the feasible solution found in the 0.2m resolution grid map.

[0070] As an embodiment, when the robot executes step 2 in the first grid map layer, that is, while traversing the first grid map layer, the feasible solution acquisition module sets the candidate solution in the first grid map layer it acquires as the initial candidate solution, and controls the laser point data to perform a round of position transformation operations corresponding to the initial candidate solution to obtain the corresponding target point, including the coordinates of the target point; the target point corresponding to the initial candidate solution is obtained through the corresponding position transformation operation. Then, based on the relationship between the real-time probability and value of the current target point, the maximum single-point probability, and a preset screening threshold, a feasible solution is screened from the currently determined candidate solutions and set as the current optimal solution.

[0071] In the first-layer grid map, the target point corresponding to the initial candidate solution is obtained through a corresponding position transformation operation. For example, the laser point data is translated in the Cartesian coordinate system of the grid map in both the horizontal and vertical axes to generate a new target point. The translation amount in each coordinate axis direction is determined by the corresponding position transformation operation or candidate solution. In some embodiments, the candidate solution is directly used as the pose data of the target point. The target point corresponding to the initial candidate solution and its corresponding occupancy probability value are obtained when the robot executes step 2 in the first-layer grid map. The target point corresponding to the initial candidate solution obtained when executing step 1 in the first-layer grid map needs to be saved.

[0072] When the robot executes step 2 in the Mth layer grid map, it selects each target point and its corresponding occupancy probability value obtained from a round of position transformation operations of the laser point data corresponding to the currently traversed candidate solution. The selected target points and their corresponding occupancy probability values ​​obtained from a round of position transformation operations of the laser point data corresponding to the currently traversed candidate solution are obtained when executing steps 2 to 3 in the M-1th layer grid map, where M is greater than or equal to 2 and M is less than or equal to the maximum number of layers allowed in a multi-layer grid map. The target points corresponding to the current optimal solution obtained when executing step 2 in each layer of the grid map need to be saved, including the coordinates of the target points corresponding to the current optimal solution and their corresponding occupancy probability values.

[0073] It should be noted that the first grid map layer the robot retrieves from its internal memory is the data for the first grid map layer. This first grid map is the lowest-resolution grid map in the pre-stored multi-layer grid map, and the candidate solutions in the lowest-resolution grid map are all pre-set. This reduces the need to repeatedly transform the same batch of laser point data within the multi-layer grid map, saving computational effort during the layer-by-layer map search.

[0074] It should be noted that, in the multi-layer grid map, the resolution of each layer of the grid map is represented by the coordinate offset step required for performing the coordinate offset operation in the corresponding layer of the grid map using the laser point data; when the resolution of each layer of the grid map is different, the coordinate offset step required for the laser point data to perform the coordinate offset operation in each layer of the grid map is different. In combination with the above embodiment, it can be seen that the robot updates the next layer of the grid map described in step 3 to the current layer of the grid map described in step 1 as follows: the coordinate offset step required for the next layer of the grid map is updated to the coordinate offset step required for the current layer of the grid map, and the feasible solution acquisition module implements traversal of the multi-resolution grid map according to the new coordinate offset step, and controls a round of position transformation operations corresponding to the currently traversed candidate solution or the same round of position transformation operations to be configured according to the new coordinate offset step, so that the laser point data performs a round of position transformation operations corresponding to the currently traversed candidate solution in the grid map of the new resolution. In this embodiment, the posture change data involved in a round of position transformation operations that the robot needs to perform on the laser point data is a candidate solution marked as a layer of grid map; the position transformation operations that the laser point data needs to perform in each layer of the grid map include coordinate offset operations, and the coordinate offset operations are correspondingly configured with a coordinate offset step, and the coordinate offset step is preferably proportionally reduced to be represented by the number of grids.

[0075] Preferably, in the multi-layer grid map, i.e., in a grid map with multiple levels of resolution, the resolution of each grid map layer (grid map of each level of resolution) is represented by the coordinate offset step required to perform a coordinate offset operation using laser point data in the corresponding grid map layer; the resolution value of each grid map layer (grid map of each level of resolution) is different, and the coordinate offset step required to perform a coordinate offset operation using laser point data in each grid map layer is different, so that updating the next grid map layer to the current grid map layer is performed by updating the coordinate offset step required for the next grid map layer to the coordinate offset step required for the current grid map layer. Therefore, the feasible solution acquisition module reduces the coordinate offset step required for the current grid map layer as it traverses each grid map layer in order from low to high resolution to accommodate the next grid map layer, i.e., the higher resolution grid map. Among them, the position transformation operation required to be performed on the laser point data in each layer of the grid map includes a coordinate offset operation, and the coordinate offset operation is correspondingly configured with a coordinate offset step, and the coordinate offset step is proportionally reduced to be represented by a grid; when the number of grids used to mark a preset physical size in the grid map is more, the resolution of the grid map is higher; when the number of grids used to mark a preset physical size in the grid map is fewer, the resolution of the grid map is lower.

[0076] Optionally, when the robot screens out feasible solutions in the highest-resolution grid map layer by executing step 3, the feasible solutions in the highest-resolution grid map layer are set as the optimal feasible solution. At this time, when the robot's current position is set as the origin of the coordinate system in the highest-resolution grid map layer, the robot sets all feasible solutions in the highest-resolution grid map layer screened in step 3 as a set of relative poses for the robot, forming a set of relocalization pose data for the robot, wherein the highest-resolution grid map layer is the grid map layer with the largest number of layers in the multi-layer grid map. Therefore, when the robot's current position is set as the origin of the coordinate system of the grid map, the optimal feasible solution can be used to relocate the robot or other position points to be relocated to relatively accurate pose information, or to find the pose of the laser point data currently scanned by the laser sensor in the multi-resolution grid map, thus completing the global relocalization process. Otherwise, the relocalization search fails.

[0077] As an embodiment, during the robot's execution of step 2, the number of laser point data participating in the position transformation operation in the current grid map layer and the initial probability sum value are first determined. The number of laser point data participating in the position transformation operation in the current grid map layer is the laser point data collected by the robot in real time at a single location, which can form a batch of point clouds. This number can be considered the number of laser point data required to locate a single location. Each time a laser point data is controlled to perform a round of position transformation operations corresponding to one of the candidate solutions, a target point and its corresponding occupancy probability value are obtained. Each time an occupancy probability value corresponding to a target point is obtained, the obtained occupancy probability value is added to the initial probability sum value to obtain a real-time probability sum value, and the current real-time probability sum value is updated to the initial probability sum value for the next addition operation. The initial probability sum value calculated by the robot during the first addition operation is preferably 0. This provides the probability sum value information required to determine whether a solution is feasible or unsolvable for each laser point data or target point.

[0078] During step 2, the method for determining whether the currently traversed candidate solution is a feasible solution or an infeasible solution based on the real-time probability and value of the current target point and the number of target points is divided into the following steps as shown in FIG2 :

[0079] In step 21, the robot first determines that the number of laser point data points participating in the position transformation operation in the current layer grid map is N, controls each of the N laser point data points to perform a round of position transformation operations, and obtains N target points and their corresponding occupancy probability values. Then, the robot executes step 22.

[0080] In step 22, the robot controls the sequential addition of the occupancy probability values ​​corresponding to the N target points. This can also be understood as a sequential accumulation operation of multiple occupancy probability values. When the robot reaches the i-th target point, it calculates the current sum as the real-time probability sum sum(i) of the i-th target point. A counter records i as the real-time count value, indicating the order in which the target points were added. Then, step 23 is executed. The current target point is the i-th target point; i is greater than or equal to a preset reference number and less than or equal to N, where the preset reference number is less than or equal to N; and N is a positive integer. The preset reference number is preferably three-quarters of N, and N is generally several hundred.

[0081] In step 23, the robot calculates the sum of sum(i) and (Ni)*max_prob to obtain the predicted probability sum; then determines whether the predicted probability sum is greater than or equal to the first preset screening threshold. If so, execute step 24 to further determine a feasible solution. Otherwise, determine that the candidate solution corresponding to the round of position change operation performed in step 21 is an infeasible solution, exclude it from the candidate solution set, and control step 22 to stop executing, that is, stop calculating sum(i) and (Ni)*max_prob, and also stop calculating the predicted probability sum. These are all for the occupancy probability value calculation scenario of the candidate solution corresponding to the same round of position change operation, until the round of position change operation described in step 21 is updated to a new round of position change operation, and then start executing step 22. Therefore, before i changes to N, that is, before sum(N) is obtained by addition, infeasible solutions are screened out from the candidate solution set of the current layer grid map in sequence. Invalid candidate solutions are eliminated in advance through dynamic judgment (reflected in that i will change and be fed back to sum(i) and (Ni)*max_prob). It is also convenient to exit the addition operation of step 22 as soon as an infeasible solution is found, avoiding the robot from performing too many cumulative calculation operations.

[0082] In step 23, each time the robot obtains an occupancy probability value corresponding to a target point, it controls the addition of the currently obtained occupancy probability value to the previously obtained real-time probability sum (sum(i)) to obtain the real-time probability sum value for the current target point. (Ni)*max_prob is used to represent a dynamic baseline value that changes with i. The sum of sum(i) and (Ni)*max_prob is considered a dynamic predicted probability sum value. Because the robot traverses the multi-resolution grid map layer by layer, the sum of sum(i) and (Ni)*max_prob calculated by the robot at each layer of the grid map is continuously updated.

[0083] Step 24, the robot controls i to add itself once, and then updates the result of i after self-addition to i, and automatically loops to execute step 22 to control the occupancy probability value corresponding to the new target point to be added to the real-time probability and value sum(i) of the i-th target point described in step 22, until i adds itself to be equal to N, and obtains the real-time probability and value sum(N) of the N-th target point. At this time, (Ni)*max_prob can be omitted to save computational effort. The real-time probability and value sum(i) of the i-th target point outputted by the robot in sequence continues to increase until i is updated to be equal to N, and obtains the real-time probability and value sum(N) of the N-th target point. At this time, N is also counted, and the addition operation with the number of target points as one cycle is completed. At this time, it can be regarded as completing a traversal or repositioning in the current layer grid map. Then execute step 25.

[0084] Step 25: Determine whether sum(N) is greater than or equal to a second preset screening threshold. If so, set the candidate solution corresponding to the round of position transformation operations performed in step 21 as a feasible solution in the current layer grid map. Otherwise, determine that the candidate solution corresponding to the round of position transformation operations performed in step 21 is an infeasible solution and exclude it from the candidate solution set. The first preset screening threshold is less than or equal to the second preset screening threshold to improve the accuracy of feasible solution screening.

[0085] Specifically, the robot determines whether the predicted probability and value sum(N) is greater than or equal to a second preset screening threshold. If so, it determines that the candidate solution corresponding to the round of position transformation operation performed in step 21 is a feasible solution in the current layer grid map. When the probability error is ignored, it can be regarded as completing a repositioning in the current layer grid map. Otherwise, it determines that the candidate solution corresponding to the round of position transformation operation performed in step 21 is infeasible, thereby realizing the use of a more accurate threshold as a screening criterion to accurately judge the feasible solutions and infeasible solutions among the candidate solutions corresponding to each target point in each layer of the grid map.

[0086] It should be noted that max_prob is the maximum single-point probability. The maximum single-point probability, addition order, number of additions, first preset screening threshold, second preset screening threshold, and preset benchmark number are all pre-set, allowing the robot to directly call relevant parameters for judgment operations. Preferably, the first preset screening threshold and second preset screening threshold corresponding to each layer of the grid map are also updated to adapt to changes in map resolution and the number of feasible solutions; alternatively, the first preset screening threshold, second preset screening threshold, and max_prob remain unchanged during traversal of each layer of the grid map.

[0087] In summary, the robot uses corresponding thresholds as screening criteria in different calculation and judgment stages to determine the feasible solutions and infeasible solutions in the candidate solution set in each layer of the grid map. Through the cyclic search method disclosed in steps 1 to 3 and steps 21 to 25, it is possible to exclude invalid candidate solutions in the next traversed grid map in advance when searching in each layer of the grid map, reduce the number of repeated addition calculations in step 22, and improve the positioning speed of the robot in the multi-layer grid map.

[0088] Based on the above embodiment, whenever the occupancy probability value corresponding to the i-th target point in the current layer grid map is controlled to be added to obtain sum(i), the other laser point data in the data channel where the i-th target point is located is controlled to perform the same round of position transformation operation to obtain the i+1-th target point. It can be understood that in traversing the current layer grid map, the order of the laser point data currently participating in the position transformation operation is consistent with the order of the i+1-th target point, and is also consistent with the order of the current round of position transformation operations. Moreover, the round of position transformation operation corresponding to the i-th target point and the round of position transformation operation corresponding to the i+1-th target point are the same round of position transformation operations, so that N laser point data are configured to perform a round of position transformation operation, and the corresponding N target points are controlled to perform addition operations in sequence, and the corresponding real-time probability and value are generated in real time, and the infeasible solution and the feasible solution are judged in real time.

[0089] When it is determined in the current grid map that the candidate solution corresponding to the current round of position transformation operation is an infeasible solution, the addition of the occupation probability value corresponding to the i+1th target point to sum(i) is stopped. At this time, the robot also stops calculating the sum of sum(i) and (Ni)*max_prob. Then, the data channel where the i-th target point is located is not controlled to control other unjudged laser point data to perform the same round of position transformation operation, and the addition of sum(i+1) is also stopped. The calculation of the sum of sum(i+1) and (Ni-1)*max_prob is stopped. Then step 22 can be regarded as stopping execution to reduce the amount of invalid calculation. At the same time, a new round of position transformation operation is triggered to update to the same round of position transformation operation, that is, the N laser point data are controlled to perform a new round of position transformation operation in the data channel where they are located, and are located in the current grid map until all candidate solutions in the candidate solution set of the current grid map are traversed, and it is determined that the infeasible solution is excluded from the candidate solution set of the current grid map. Of course, it is also possible to trigger N laser point data to perform a new round of position transformation operation in the next layer of grid map in the data channel where they are located.

[0090] In the embodiment described in steps 21 to 25, after the robot determines that the candidate solution corresponding to the round of position transformation operation performed in step 21 is an infeasible solution by executing step 23, it controls a new round of position transformation operation to be updated to the round of position transformation operation performed in step 21, and then repeats steps 21 to 25 to control the N laser point data to perform a new round of position transformation operation respectively, until all candidate solutions in the current layer grid map are traversed, and the N laser point data have completed the position transformation operations corresponding to all candidate solutions in the current layer grid map. Then, the robot begins to traverse the candidate solutions in the next layer grid map, and the robot updates the next layer grid map to the current layer grid map described in step 1 according to the implementation methods disclosed in steps 1 to 3 above. Repeat steps 1 to 3 until the highest resolution grid map is traversed and a feasible solution set is screened out from it, or when the number of feasible solutions screened out in the current layer grid map is zero, the newly screened feasible solution set is set as the optimal feasible solution set, thereby completing the traversal and repositioning of the multi-layer grid map.

[0091] Preferably, for a layer of the grid map currently traversed by the robot, while sequentially adding the occupancy probability values ​​corresponding to N target points, after traversing from the occupancy probability value corresponding to the first target point to the occupancy probability value corresponding to the Nth target point, if no feasible solution exists among the candidate solutions corresponding to the N target points, then it is determined that no feasible solution exists in the current layer of the grid map, and then execution of steps 1, 2, 3, and 4 is stopped. The previously selected feasible solution is set as the robot's relocalization pose data, that is, the current optimal solution is set as the robot's relocalization pose data, which also serves as the robot's relocalization result. Alternatively, for a layer of the grid map currently traversed by the robot, the laser point data corresponding to the largest numerical positioning probability sum value is selected from all laser point data required to locate a location point as the robot's relocalization pose data; where N represents the number of laser point data required to locate a location point. This thereby determines the stopping condition of the robot localization method and uses the probability sum value to determine a relatively accurate relocalization result for the robot.

[0092] It should be noted that each laser point data obtains a target point and its corresponding occupancy probability value within a grid map by executing a round of position transformation operations corresponding to a candidate solution. The matching relationship between the obtained target point and its corresponding occupancy probability value is pre-set; for the same laser point data, the matching relationship between a target point and a round of position transformation operations is pre-set; so that the robot can call it in advance, specifically, it can be read from a built-in memory; in this embodiment, the occupancy probability value corresponding to a target point is used to reflect the probability that the position point to be relocated falls within the grid corresponding to the target point within the grid map. The robot is equipped with at least one laser sensor, and all the laser point data are laser point data collected by the laser sensor and located within the current detection area. The robot is located within the current detection area, and the position point to be relocated includes the robot's current position point. Specifically, the sum of the occupancy probability values ​​corresponding to each target point obtained by all the laser point data in the same round of position transformation operations is corresponding to sum(N), which is used to reflect the probability that the position point to be relocated falls within the position drift range generated by the round of position transformation operations in the grid map, and the position point to be relocated includes the robot's current position point.

[0093] As a method for evaluating the probability of a robot falling within a position within the current detection area, the sum of the occupancy probabilities corresponding to each target point obtained by all laser point data in the same round of position transformation operations, corresponding to sum(i) disclosed in the aforementioned embodiment, can be used to reflect the likelihood that the robot's current position falls within the position drift range generated by the same round of position transformation operations in a first-level grid map. When i equals the number of all laser point data collected by the laser sensor, the number of position transformation operations required to be performed in grid maps of different resolutions does not necessarily differ. The same round of position transformation operations can be performed using the same batch of laser point data in grid maps of different resolutions. Furthermore, the coverage of the current detection area includes the position drift range generated by all rounds of position transformation operations required to be performed on all laser point data in the first-level grid map, in terms of corresponding angles and coordinate axis directions. The corresponding position transformation operations performed in the grid maps of each resolution can be considered to be filtered out from all rounds of position transformation operations required to be performed in the first-level grid map.

[0094] It should be noted that each layer of the grid map is a block map generated within the effective detection range of the laser sensor, and the effective detection range of the laser sensor covers the current detection area. Each layer of the grid map is a block map of a preset size, which is used to describe the area within the effective detection range of the laser sensor, covering the position drift range generated by various angles and coordinate axis directions. Within the same layer of the grid map, a candidate solution corresponding to a round of position transformation operations is a combination of a coordinate and an angle, or a combination of a coordinate offset and an angular deflection. Therefore, based on the difference in resolution, the feasible solution acquisition module corresponds to an area in a relatively high-resolution grid map from the coordinate offset of a feasible solution in the lowest-resolution grid map. The number of grids contained in the relatively high-resolution grid map is greater than the number of grids used to represent the coordinate offset of a feasible solution in the lowest-resolution grid map.

[0095] Preferably, the block map is a local map of a preset size configured according to the relocalization algorithm used in the current scene, and is a grid map within the effective detection range of the laser probe; when the laser sensor is moved to a new position, the effective detection range of the laser sensor is updated, so that the information of the block map configured by the relocalization algorithm also changes. Among them, a target point is represented by a coordinate position obtained by a round of position transformation operations relative to the origin of the coordinate system in the block map; the position transformation operation is set up to index the grid position and occupancy probability value of the position point to be relocated in a layer of grid map, and is screened layer by layer to obtain more detailed probability results in a higher resolution grid map; the target point and its corresponding occupancy probability value obtained by a round of position transformation operations required by the robot starting from the origin of the coordinate system of the block map can reflect the robot's posture.

[0096] As another way to assess the probability of the robot falling within a location within the current detection area, the location probability and value corresponding to each laser point data point used to locate a location to be relocated within the current detection area reflect the likelihood that the robot's current location falls within the corresponding grid cell of the same laser point data within a grid map. It should be emphasized that this embodiment uses a partial environment map as an example, i.e., with the robot's current location as the origin, grid maps of each resolution are generated within the effective search range of the laser sensor. Considering that the laser beam emitted by the laser sensor has a limited range and can only scan an area within a certain range, the search range can preferably be determined based on the laser beam range. A grid map can be generated within a range of 5 meters in front, behind, and to the left and right of the autonomous mobile device. When the robot loses its position, the current posture has some deviation. To address this, this embodiment performs a position transformation operation based on the current posture according to the set angular deflection and coordinate offset, resulting in a corresponding candidate solution. Therefore, when the robot moves, there is a certain amount of drift error based on its current posture. This embodiment performs a grid position transformation operation based on the current posture according to the coordinate offset and angular deflection set on the environment map, obtaining the transformed robot posture information. The candidate solution can then be used to relocate the robot to a certain posture information on a grid map layer. The positioning probability and value reflect the likelihood of the robot being accurately located at a position on the grid map layer. The larger the positioning probability and value, the greater the likelihood of the robot being accurately located at a position on the grid map layer. Therefore, when the robot processes all the preset number of laser point data collected by the laser sensor at one time into all the positioning probabilities and values ​​required to locate the robot, the relocalization algorithm disclosed in the prior art can select the laser point data corresponding to the largest positioning probability and value as the relocalization result, that is, locate the restored position on the grid map layer using the preset number of laser point data as units.

[0097] A grid map is generated within the effective detection range of the laser sensor, using the laser sensor's current position as the origin of the coordinate system. The preset number of laser point data points is a batch of laser point data obtained by the robot using the laser radar to scan a circle at the current position, and can be marked as laser point data.

[0098] Optionally, when determining the occupancy probability of an area in the environment map, the environment map can be processed to obtain a corresponding grid map. The localization probabilities corresponding to obstacles in the grid map can follow a normal distribution. Each grid length in the grid map has a corresponding coordinate range, which can be represented as the map resolution. The environment map contains obstacles and blank areas. Once the grid map is determined, it can be saved for direct use during the next localization recovery. Based on this, the robot's position in the grid map can be determined based on the robot's current pose. The sum of the occupancy probabilities of each corresponding grid point (possible target point) scanned by the laser probe can be calculated. This can be understood as the sum of the occupancy probabilities corresponding to the target point obtained by performing a position transformation operation corresponding to the required / existing candidate solution in the current grid map layer. Alternatively, the sum of the occupancy probabilities of all target points can be obtained by performing the same type of coordinate offset and angle deflection operation on multiple laser points.

[0099] In some embodiments, when using laser point data corresponding to a positioning probability and value to determine the repositioning pose data of the robot, the positioning probability and value are calculated in the following manner: when the robot traverses a grid map with the highest resolution and filters out a feasible solution therefrom, for each laser point data required for locating back a position point, the target point required for calculating the positioning probability and value corresponding to the laser point data is the target point obtained by the current optimal solution determined for the laser point data in the grid map with the highest resolution (i.e., after performing the corresponding position transformation operation), then the occupancy probability value corresponding to the target point required for calculating the positioning probability and value corresponding to the laser point data is the occupancy probability value corresponding to the target point corresponding to the current optimal solution last determined in step 3; the feasible solution filtered out by the robot in the grid map with the highest resolution is the optimal feasible solution, and there may be multiple optimal feasible solutions in the same grid map layer, then the grid map with the highest resolution is the grid map layer where the optimal feasible solution is located when the robot executes step 3. The robot then controls the same laser point data to pass through the highest resolution grid map layer, and adds the occupancy probability values ​​corresponding to the target points obtained by all the current optimal solutions to obtain them, to obtain the positioning probability and value corresponding to the same laser point data; then, from all the laser point data required to locate a position point, the robot selects the laser point data corresponding to the positioning probability and value with the largest value as the robot's repositioning posture data, including the coordinates and angle information of the laser point. In the case of executing step 3, when the number of feasible solutions screened out by the robot in the current grid map layer is zero, it is determined that the number of feasible solutions judged by the robot by repeatedly executing step 2 in the grid map layer is zero, then the robot retrieves the feasible solution screened out by it in the previous grid map layer and sets it as the optimal feasible solution. The previous grid map layer is the grid map layer where the optimal feasible solution is located when the robot executes step 3. The robot controls the same laser point data by adding up the occupancy probability values ​​corresponding to all target points obtained through feasible solutions in the previous grid map to obtain the positioning probability and value corresponding to the same laser point data; then, from all the laser point data required to locate a position point, the laser point data corresponding to the largest positioning probability and value is selected as the robot's repositioning pose data. In summary, based on the resolution level and the number of feasible solutions of the traversed grid map layer, the robot is controlled to traverse the grid map where the optimal feasible solution is located layer by layer in the grid map with a low to high resolution, and the positioning probability and value corresponding to each laser point data are calculated accordingly, and then the robot's repositioning pose data is formed in the grid map where the optimal feasible solution is located, reducing the ineffective traversal time of the grid map.

[0100] Among them, the previous grid map is the last grid map obtained by the robot; the number of target points included in the previous grid map is greater than the number of target points included in the current grid map; the number of candidate solutions included in the previous grid map is greater than the number of candidate solutions included in the current grid map; a round of position transformation operations required to generate a target point for a laser point data in the previous grid map corresponds to a candidate solution; the resolution of the previous grid map is lower than the resolution of the current grid map.

[0101] It should be noted that, for a laser point data, all target points corresponding to a laser point data are all target points obtained by executing position transformation operations corresponding to all candidate solutions in the same layer of raster map for a laser point data; a positioning probability sum value corresponding to each laser point data configuration required to locate a position point can be the sum of the occupancy probability values ​​corresponding to the target points obtained by executing position transformation operations corresponding to all candidate solutions in the same layer of raster map for a laser point data, or the sum of the occupancy probability values ​​corresponding to the target points obtained by executing position transformation operations corresponding to all feasible solutions in the same layer of raster map for a laser point data.

[0102] As an embodiment of a position transformation operation, each time an angle deflection operation is performed on the same laser point data, a new reference coordinate is obtained, and then a coordinate offset operation is performed on the new reference coordinate to obtain a new target offset coordinate and index it to the corresponding occupancy probability value; a round of position transformation operations corresponding to a candidate solution includes an angle deflection operation and a coordinate offset operation, and a coordinate offset operation includes a horizontal coordinate offset operation and a vertical coordinate offset operation; wherein, the same round of position transformation operations represents the same type of angle deflection operation and the same type of coordinate offset operation.

[0103] In the first layer of the grid map, the number of angle deflection operations required for the same laser point data is preset, and the number of coordinate offset operations required for the same reference coordinate is preset. It can be configured so that during the execution of step 1 in the first layer of the grid map, the first round of position transformation operations required for all laser point data provides initial pose data for repeatedly executing steps 1 to 3 or steps A to E. The first layer of the grid map acquired by the robot for the first time is the map data of the first layer of the grid map acquired, wherein the first layer of the grid map acquired by the robot is the grid map of the lowest resolution, and the candidate solutions in the grid map of the lowest resolution are all preset. The number of angle deflection operations or the number of angle offsets included in a round of position transformation operations is greater than or equal to 1, and the number of coordinate offset operations or the number of coordinate offsets included in a round of position transformation operations is greater than or equal to 1. Preferably, the number of angle deflection operations included in a round of position transformation operations is equal to the number of coordinate offset operations included in the same round of position transformation operations. Based on the same batch of laser point data collected by the robot, the pose data required to provide the corresponding candidate solutions for traversing the grid map layer by layer is realized.

[0104] As an embodiment, the same type of angle deflection operation requires the same number of deflection operations, and the same type of coordinate offset operation includes the same type of horizontal coordinate offset operation and the same type of vertical coordinate offset operation, so that in the same layer of the grid map, the target point obtained after the same type of angle deflection operation and the same type of coordinate offset operation has the same position relationship within the same layer of the grid map relative to the same laser point data before the current round of position transformation operation is performed. The angle deflection amount involved in the same type of angle deflection operation and the coordinate offset amount involved in the same type of coordinate offset operation constitute the candidate solution disclosed in the aforementioned embodiment, specifically one candidate solution. In the same layer of the grid map, when the same type of angle deflection operation and the same type of coordinate offset operation are represented by the same round of position transformation operation, the same type of angle deflection operation requires the same number of deflection operations, and the same type of coordinate offset operation includes coordinate transformation calculations with the same number of horizontal coordinate offsets and coordinate transformation calculations with the same number of vertical coordinate offsets. The horizontal coordinate offset operation includes a horizontal coordinate offset along the horizontal axis, and the vertical coordinate offset operation includes a vertical coordinate offset along the vertical axis.

[0105] Therefore, the same type of horizontal coordinate offset operation requires the same number of coordinate offsets (relative to the first offset in the horizontal coordinate axis direction), and the required coordinate offset direction is the same (for example, specified along the positive direction of the horizontal coordinate axis or the negative direction of the horizontal coordinate axis), so that the same type of horizontal coordinate offset operation produces the same coordinate offset on the horizontal coordinate axis; the same type of vertical coordinate offset operation requires the same number of coordinate offsets (relative to the first offset in the vertical coordinate axis direction), and the required coordinate offset direction is the same (for example, specified along the positive direction of the vertical coordinate axis or the negative direction of the vertical coordinate axis).

[0106] It should be noted that for different laser point data, the same type of angle deflection operation requires the same deflection direction and the same number of current deflections, and thus can be applied using the same set of angle deflection operation formulas (composed of trigonometric functions). However, since this application determines feasible solutions for the next grid map layer based on candidate solutions in the first grid map layer, the selection of feasible solutions is limited to searching through each grid map layer, and candidate solutions from the previous grid map layer are reused. Therefore, in addition to searching for feasible solutions in the first grid map layer, the same set of angle deflection operation formulas (composed of trigonometric functions) is used to perform trigonometric calculations to obtain each target point. Subsequently, the corresponding calculated target points are directly called upon in each grid map layer with a higher resolution than the first grid map layer. Furthermore, since the storage array pre-stores the trigonometric function values, when performing trigonometric calculations using the laser point data in the first grid map layer, the trigonometric function values ​​can be directly called upon for simple addition and multiplication operations. This saves trigonometric calculation time when relocating each grid map layer.

[0107] On the basis of the above embodiment, the number of horizontal coordinate offsets that occur in a layer of raster map with relatively high resolution due to a type of horizontal coordinate offset operation is greater than the number of horizontal coordinate offsets that occur in a layer of raster map with relatively low resolution due to the same type of horizontal coordinate offset operation. This can indicate that the number of grids offset in the horizontal coordinate axis direction of the layer of raster map with relatively high resolution due to a type of horizontal coordinate offset operation is greater than the number of grids offset in the horizontal coordinate axis direction of the layer of raster map with relatively low resolution due to the same type of horizontal coordinate offset operation. The resolution level of the layer of raster map with relatively high resolution (which can be expressed using the inverse of the coordinate offset step size) , which is shown in Figure 2 , is a resolution level higher than that of a raster map with relatively low resolution (which can be represented by the inverse of the coordinate offset step); the coordinate offset step required for the laser point data to perform the same type of horizontal coordinate offset operation on a raster map with relatively low resolution is greater than the coordinate offset step required for the laser point data to perform the same type of horizontal coordinate offset operation on a raster map with relatively high resolution, wherein the offset amount of a type of horizontal coordinate offset operation in the horizontal coordinate axis direction of the raster map with relatively high resolution is equal to the offset amount of the same type of horizontal coordinate offset operation in the horizontal coordinate axis direction of the raster map with relatively low resolution.

[0108] The number of vertical coordinate offsets that occur in a layer of raster map with relatively high resolution due to a type of vertical coordinate offset operation is greater than the number of vertical coordinate offsets that occur in a layer of raster map with relatively low resolution due to the same type of vertical coordinate offset operation. This indicates that the number of grids offset in the vertical coordinate axis direction of a layer of raster map with relatively high resolution due to a type of vertical coordinate offset operation is greater than the number of grids offset in the vertical coordinate axis direction of a layer of raster map with relatively low resolution due to the same type of vertical coordinate offset operation. The resolution level of a layer of raster map with relatively high resolution (which can be expressed using the inverse of the coordinate offset step) is higher than The resolution level of a raster map with relatively low resolution (which can be expressed using the inverse of the coordinate offset step); the coordinate offset step required for the laser point data to perform the same type of vertical coordinate offset operation on a raster map with relatively low resolution is greater than the coordinate offset step required for the laser point data to perform the same type of vertical coordinate offset operation on a raster map with relatively high resolution, wherein the offset amount of a type of vertical coordinate offset operation in the vertical coordinate axis direction of the raster map with relatively high resolution is equal to the offset amount of the same type of vertical coordinate offset operation in the vertical coordinate axis direction of the raster map with relatively low resolution.

[0109] Based on the above embodiment, the coordinate shift step required for performing the same type of horizontal coordinate shift operation on the laser point data in a relatively low-resolution grid map is a first horizontal step, and the coordinate shift step required for performing the same type of horizontal coordinate shift operation on the laser point data in a relatively high-resolution grid map is a second horizontal step; the coordinate shift step required for performing the same type of vertical coordinate shift operation on the laser point data in a relatively low-resolution grid map is a first vertical step, and the coordinate shift step required for performing the same type of vertical coordinate shift operation on the laser point data in a relatively high-resolution grid map is a second vertical step; when the laser point data perform the same type of horizontal coordinate shift operation and the same type of vertical coordinate shift operation, after the same candidate solution is allocated from the relatively low-resolution grid map to the relatively high-resolution grid map, the number of candidate solutions decomposed on the relatively high-resolution grid map is equal to the product of the ratio of the first horizontal step to the second horizontal step (which can be recorded as the offset step ratio in the horizontal direction) and the ratio of the first vertical step to the second vertical step (which can be recorded as the offset step ratio in the vertical direction). Therefore, the same batch of laser point data does not necessarily have fewer candidate solutions in a higher-resolution grid map, because a feasible solution in a relatively low-resolution grid map will be split into multiple candidate solutions in a relatively high-resolution grid map due to the resolution ratio. Specifically, the split is based on the offset step ratio in the horizontal axis direction and the offset step ratio in the vertical axis direction. This is caused by the difference in coordinate offset step or resolution in different layers of grid maps. Therefore, in step 3, a feasible solution in the current layer grid map is set as multiple candidate solutions in the next layer grid map. Each feasible solution in the current layer grid map is sequentially set as multiple candidate solutions in the next layer grid map according to the resolution difference, until a candidate solution set in the next layer grid map is formed. Then, the filtered feasible solution set is determined to be updated to the candidate solution set described in step 1.

[0110] For example, when the resolution of the next-layer raster map is twice that of the current-layer raster map, a feasible solution of the current-layer raster map will be decomposed into four candidate solutions in the next-layer raster map. Specifically, the same type of horizontal coordinate offset operation in the current-layer raster map consists of one horizontal coordinate offset, and one horizontal coordinate offset requires a first horizontal coordinate offset step in the current-layer raster map. After updating to the candidate solution of the next-layer raster map, the same type of horizontal coordinate offset operation in the current-layer raster map consists of two horizontal coordinate offsets, and one horizontal coordinate offset requires a second horizontal coordinate offset step in the next-layer raster map, where the ratio of the first horizontal coordinate offset step to the second horizontal coordinate offset step is equal to 2; similarly, the same type of vertical coordinate offset operation in the current-layer raster map consists of one vertical coordinate offset, and one vertical coordinate offset requires a first vertical coordinate offset step in the current-layer raster map. After updating to the candidate solution of the next-layer raster map, the same type of vertical coordinate offset operation in the current-layer raster map consists of two vertical coordinate offsets, and one vertical coordinate offset requires a first vertical coordinate offset step in the next-layer raster map. A second horizontal and vertical coordinate offset step is required, where the ratio of the first horizontal coordinate offset step to the second horizontal coordinate offset step is equal to 2. Therefore, the number of candidate solutions in the next grid map layer decomposed from a feasible solution in the current grid map is equal to the product of the ratio of the first horizontal coordinate offset step to the second horizontal coordinate offset step and the ratio of the first vertical coordinate offset step to the second vertical coordinate offset step. Based on the difference in step sizes required for coordinate offset between maps of different resolution levels, the solution is decomposed into a corresponding number of candidate solutions. When updating candidate solutions to a grid map with a higher resolution, a feasible solution in a grid map with a relatively low resolution is split into multiple candidate solutions. The horizontal coordinate offset step is correspondingly reduced by the ratio of the first horizontal coordinate offset step to the second horizontal coordinate offset step, and the vertical coordinate offset step is correspondingly reduced by the ratio of the first vertical coordinate offset step to the second vertical coordinate offset step. The number of offsets required increases, and accordingly, the number of coordinate offset operations required increases, and the number of candidate solutions required increases, thereby increasing the number of candidate solutions in the higher resolution map.

[0111] Preferably, a round of position transformation operations includes: each time the position transformation processing module performs an angle deflection operation, the position transformation processing module controls the corresponding reference coordinates to first perform a coordinate offset operation along one coordinate axis direction, and then perform a coordinate offset operation along another coordinate axis direction; wherein, when one coordinate axis direction represents the horizontal coordinate axis direction, the other coordinate axis direction represents the vertical coordinate axis direction, indicating that the horizontal coordinate offset operation is performed first, and then the vertical coordinate offset operation is performed; when one coordinate axis direction represents the vertical coordinate axis direction, the other coordinate axis direction represents the horizontal coordinate axis direction, indicating that the vertical coordinate offset operation is performed first, and then the horizontal coordinate offset operation is performed. In the coordinate system of each layer of the grid map, one coordinate axis direction is set perpendicular to the other coordinate axis direction. One horizontal coordinate offset operation and one vertical coordinate offset operation together constitute the coordinate offset operations in a round of position transformation operations. In some embodiments, within the position transformation processing module, executing a round of position transformation operations includes: each time the position transformation processing module executes an angle deflection operation, the position transformation processing module controls the corresponding reference coordinates to first execute a coordinate offset along one coordinate axis direction, and then execute a coordinate offset along another coordinate axis direction to form a horizontal coordinate offset operation and a vertical coordinate offset operation, which can be understood as constituting a coordinate offset operation.

[0112] When traversing a target point in a grid map or performing at least one round of position transformation operations, the maximum number of grids allowed to be accommodated in the horizontal axis direction of the grid map is preferably greater than or equal to the product of the maximum number of offsets allowed for the same reference coordinate in the horizontal axis direction of the grid map and the horizontal coordinate offset step; the maximum number of grids allowed to be accommodated in the vertical axis direction of the grid map is preferably greater than or equal to the product of the maximum number of offsets allowed for the same reference coordinate in the vertical axis direction of the grid map and the vertical coordinate offset step.

[0113] Based on the aforementioned embodiments, a chip is also disclosed, which is configured to execute the robot positioning method based on the multi-layer grid map disclosed in any of the aforementioned embodiments, so that: the chip recursively determines feasible solutions among the candidate solutions of each layer of the grid map in order of resolution from low to high until the optimal feasible solution is determined, and sets the optimal feasible solution as the repositioning result. Specifically, the robot where the chip is located is controlled to search for the optimal feasible solution in the multi-layer grid map, which becomes the repositioning result of the robot. During the specific implementation process, no matter whether a feasible solution or an infeasible solution is searched, the computing device can be stopped in time for further cumulative calculation to reduce the time of invalid calculation; it is suitable for processing large quantities of continuous frame raster image data and laser laser point data collected in real time to speed up the processing speed of hardware resources in the chip.

[0114] Based on the aforementioned embodiments, a laser robot is also disclosed. The laser robot is equipped with a laser sensor and is a mobile robot for performing laser navigation operations and constructing maps using laser point clouds. This is the robot disclosed in the aforementioned embodiments regarding the robot positioning method based on a multi-layer grid map. The laser robot is internally equipped with the chip disclosed in the aforementioned embodiments, which is electrically connected to the laser sensor. The laser sensor is a 360-degree rotating laser radar. The laser radar has a built-in laser probe and a motion rotation mechanism. The motion rotation mechanism supports 360-degree rotation of the laser probe. Driven by the motion rotation mechanism, the laser probe rotates around the laser radar's rotation center, generating laser point data with each rotation. This data is a collection of laser points formed around the laser probe. The laser point data dispersed within the block map is essential for positioning. If the target location to be located is lost in the map, the location of that target location must be restored. The laser robot's laser sensor collects laser point data within the current detection area. The laser robot stores grid maps of the current detection area at multiple resolutions and configures the grid maps at multiple resolutions into a multi-layer grid map arranged in ascending order of resolution. This method overcomes the computationally intensive relocalization problem associated with traversing multiple-resolution maps and is suitable for processing large quantities of continuous-frame raster image data and laser point data collected in real time. Furthermore, if the currently traversed candidate solution is a feasible solution, it continues traversing a higher-resolution raster map layer, allowing the robot to begin searching from a more likely location within the corresponding resolution. This reduces the computational and search workload associated with traversing a higher-resolution raster map layer and improves search speed.

[0115] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. Robot localization method based on multi-layer grid map, It is characterized in that Robot localization methods include: The robot uses a laser sensor to collect laser point data; The robot obtains the multi-layer grid map layer by layer in the order of resolution from low to high; wherein the multi-layer grid map is a grid map with multiple resolution levels, and each layer of the grid map is configured with a corresponding resolution; The robot traverses each candidate solution in the current layer grid map, and controls the laser point data to add up the multiple occupancy probability values ​​corresponding to the currently traversed candidate solution in sequence to obtain the real-time probability and value; then, based on the currently calculated real-time probability and value, it determines whether the currently traversed candidate solution is a feasible solution or an infeasible solution; When the robot determines that the candidate solution currently traversed is a feasible solution, it controls the laser point data to stop adding the multiple occupancy probability values ​​corresponding to the candidate solution currently traversed, and then sets the determined feasible solution as the candidate solution of the next grid map based on the ratio between the resolution of the next grid map and the resolution of the current grid map. Then, the feasible solution is recursively determined in the candidate solutions of each grid map in order from low to high resolution until the optimal feasible solution is determined, and the optimal feasible solution is set as the robot's relocalization result; When the robot determines that the currently traversed candidate solution is an infeasible solution, the robot controls the laser point data to stop adding the multiple occupancy probability values ​​corresponding to the currently traversed candidate solution, and then updates the next candidate solution to the currently traversed candidate solution, where the next candidate solution is a candidate solution from the next layer of the grid map, or a candidate solution that has not been traversed in the current layer of the grid map; then, the robot controls the laser point data to sequentially add the multiple occupancy probability values ​​corresponding to the updated currently traversed candidate solution to obtain the real-time probability and value, so as to continue to judge whether the updated currently traversed candidate solution is a feasible solution or an infeasible solution based on the currently calculated real-time probability and value.

2. The robot positioning method according to claim 1, It is characterized in that In the process of the robot recursively judging feasible solutions from the candidate solutions of each layer of the grid map in order from low to high resolution, there are: If there is a candidate solution in the last grid map that is judged to be a feasible solution, the feasible solution judged by the robot in the last grid map is set as the optimal feasible solution, and the optimal feasible solution is set as the relocation result; wherein the last grid map is a grid map with the highest resolution searched in order from low to high resolution on the basis of the robot updating the feasible solution of the current grid map to the candidate solution of the next grid map; If all candidate solutions in the S-th layer grid map are not judged as feasible solutions, and there is a candidate solution in the S-1-th layer grid map that is judged as a feasible solution, then the feasible solution judged by the robot in the S-1-th layer grid map is set as the optimal feasible solution, and the optimal feasible solution is set as the relocalization result; where S is an integer greater than 1, S is less than or equal to the maximum number of layers allowed to be configured in a multi-layer grid map; the S-1-th layer grid map is the previous layer grid map.

3. The robot positioning method according to claim 2, It is characterized in that The robot's laser sensor collects laser point data within the current detection area. The robot stores grid maps of the current detection area at multiple resolutions, and configures the grid maps at multiple resolutions into a multi-layer grid map arranged in order from low to high resolution. Each layer of grid map is a block map generated within the effective detection range of the robot's laser sensor; the current detection area is represented by: all wheel position transformation operations required to be performed by all laser point data in the current layer of grid map, and the position drift area formed in the corresponding angles and coordinates; In a layer of grid map, each candidate solution to be traversed is a combination of angles and coordinates to be traversed; a candidate solution corresponds to a round of position transformation operations; a laser point data performs a round of position transformation operations in a layer of grid map to obtain a target point, and a target point is configured with an occupancy probability value, then an occupancy probability value corresponding to a laser point data at a candidate solution is determined.

4. The robot positioning method according to claim 3, It is characterized in that A round of position transformation operations corresponding to a candidate solution includes an angle deflection operation and a coordinate shift operation, and the coordinate shift operation includes a horizontal coordinate shift operation and a vertical coordinate shift operation; wherein the same round of position transformation operations represents the same type of angle deflection operations and the same type of coordinate shift operations; A round of position transformation operation includes: controlling a laser point data to first perform an angle deflection operation, then perform a coordinate offset operation along one coordinate axis direction, and then perform a coordinate offset operation along another coordinate axis direction to obtain a target point, so as to transform a laser point data into a target point through a round of position transformation operation, and a target point is configured with an occupation probability value in a layer of grid map; wherein, when one coordinate axis direction represents the horizontal coordinate axis direction, the other coordinate axis direction represents the vertical coordinate axis direction, so as to indicate that the horizontal coordinate offset operation is performed first, and then the vertical coordinate offset operation is performed; when one coordinate axis direction represents the vertical coordinate axis direction, the other coordinate axis direction represents the horizontal coordinate axis direction, so as to indicate that the vertical coordinate offset operation is performed first, and then the horizontal coordinate offset operation is performed.

5. The robot positioning method according to claim 4, It is characterized in that The robot positioning method is divided into the following steps: Step 1: traverse each candidate solution in the current layer grid map, and control the laser point data to perform a round of position transformation operations corresponding to the currently traversed candidate solution to obtain the target point. Each time a target point is obtained, the number of target points is counted once; Step 2: Control all laser point data to add the occupation probability values ​​corresponding to each target point obtained by a round of position transformation operation corresponding to the currently traversed candidate solution in sequence. Each time the addition is performed, the current target point and its corresponding occupation probability value are determined according to the addition order of the occupation probability values ​​corresponding to the target points, and then the current sum value is set as the real-time probability sum value of the current target point. Then, based on the real-time probability and value of the current target point and the number of target points, it is determined whether the candidate solution currently traversed is a feasible solution or an infeasible solution, and it is determined whether the candidate solution currently traversed is a feasible solution or an infeasible solution based on the currently calculated real-time probability and value; When a feasible solution is determined, the currently determined feasible solution is updated to the current optimal solution; Step 3: after a feasible solution is determined in the current grid map by executing step 2, the determined feasible solution is set as at least one candidate solution of the next grid map based on the ratio between the resolution of the next grid map and the resolution of the current grid map; after all candidate solutions are traversed in the current grid map by executing step 2, the next grid map is updated to the current grid map described in step 1, and then the candidate solution of the next grid map that is most recently set is updated to the candidate solution described in step 1, and step 1, step 2 and step 3 are repeatedly executed until the last grid map is traversed and a feasible solution is determined therefrom, or when the number of feasible solutions determined in the current grid map is zero, the current optimal solution that is most recently set in the same grid map is set as the optimal feasible solution, and the optimal feasible solution is set as the relocation result of the robot; Among them, the current grid layer is a grid map currently obtained by the robot; the next grid map is a grid map that the robot will obtain next time; the number of candidate solutions included in the next grid map is less than the number of candidate solutions included in the current grid map; the resolution of the next grid map is higher than the resolution of the current grid map; In each execution of step 2, the current target point is the target point corresponding to the currently added occupancy probability value; The currently added occupancy probability value is the occupancy probability value currently participating in the addition among the occupancy probability values ​​corresponding to all target points obtained in the same round of position transformation operation; the currently added sum value is the sum value of the occupancy probability values ​​that have been added among the occupancy probability values ​​corresponding to the target points obtained in the same round of position transformation operation.

6. The robot positioning method according to claim 5, It is characterized in that In step 3, the method of setting the determined feasible solution as the candidate solution of the next layer of grid map based on the ratio between the resolution of the next layer of grid map and the resolution of the current layer of grid map includes: Using the ratio between the resolution of the next layer grid map and the resolution of the current layer grid map, the feasible solution determined in the current layer grid map is divided into multiple candidate solutions in the next layer grid map, wherein the ratio between the coordinate offset step corresponding to the feasible solution in the current layer grid map and the coordinate offset step corresponding to any candidate solution divided out in the next layer grid map is equal to the ratio between the resolution of the next layer grid map and the resolution of the current layer grid map; The ratio between the resolution of the next layer of raster maps and the resolution of the current layer of raster maps is equal to the ratio between the coordinate shift step required for performing the coordinate shift operation in the current layer of raster maps and the coordinate shift step required for performing the coordinate shift operation in the next layer of raster maps; The position transformation operation required to be performed on the laser point data in each layer of the grid map includes a coordinate shift operation, and the coordinate shift operation is correspondingly configured with a coordinate shift step, so that one candidate solution corresponds to one coordinate shift step.

7. The robot positioning method according to claim 6, It is characterized in that The step 3 also includes: Whenever a feasible solution is determined to be set as at least one candidate solution of the next grid map, the target point obtained by the position transformation operation of the laser point data in the candidate solution of the next grid map is updated to the target point obtained by a round of position transformation operation corresponding to the currently traversed candidate solution of all the laser point data described in step 1, and the occupation probability value corresponding to the target point obtained by the position transformation operation of the laser point data in the candidate solution of the next grid map is updated to the occupation probability value corresponding to each target point obtained by a round of position transformation operation corresponding to the currently traversed candidate solution of all the laser point data described in step 1, and then return to execute step 1.

8. The robot positioning method according to claim 7, It is characterized in that When the robot executes step 2 in the first-layer grid map, the candidate solutions in the first-layer grid map are set as initial candidate solutions, and the laser point data is controlled to perform a round of position transformation operations corresponding to each initial candidate solution to obtain the corresponding target point and its coordinates; the first-layer grid map obtained by the robot for the first time is the data of the first-layer grid map obtained from the built-in memory; wherein the first-layer grid map is a grid map with the lowest resolution in the multi-layer grid map; When the robot executes step 2 in the M-th layer grid map, each target point and its corresponding occupation probability value obtained by a round of position transformation operation of the laser point data corresponding to the currently traversed candidate solution are selected, wherein the selected target points and their corresponding occupation probability values ​​obtained by a round of position transformation operation of the laser point data corresponding to the currently traversed candidate solution are obtained by executing steps 2 to 3 in the M-1-th layer grid map, M is greater than or equal to the value 2, and M is less than or equal to the maximum number of layers allowed to be configured in a multi-layer grid map.

9. The robot positioning method according to claim 8, It is characterized in that When the robot determines a feasible solution in the highest resolution layer grid map by executing step 3, the feasible solution in the highest resolution layer grid map is set as the optimal feasible solution. At this time, when the current position point of the robot is set to the origin of the coordinate system in the highest resolution layer grid map, the robot sets all feasible solutions in the highest resolution layer grid map determined in step 3 as a set of relative postures of the robot, forming a set of repositioning posture data of the robot, wherein the highest resolution layer grid map is the last layer grid map.

10. The robot positioning method according to claim 5, It is characterized in that In step 2, the method of judging whether the currently traversed candidate solution is a feasible solution or an infeasible solution based on the real-time probability and value of the current target point and the number of target points is divided into the following steps: Step 21: The robot first determines that the number of laser point data participating in the position transformation operation in the current layer grid map is N, controls the N laser point data to perform a round of position transformation operation respectively, and obtains N target points and their corresponding occupation probability values; Step 22, controlling the occupation probability values ​​corresponding to the N target points to be added in sequence, and when the occupancy probability values ​​are added to the i-th target point, determining that the current sum is sum(i); i is greater than or equal to a preset reference number and less than or equal to N, and the preset reference number is less than or equal to N; the i-th target point is the current target point; Step 23, calculate the sum of sum(i) and (Ni)*max_prob to obtain the predicted probability sum; then determine whether the predicted probability sum is greater than or equal to the first preset screening threshold, if yes, execute step 24, otherwise determine that the candidate solution corresponding to the round of position change operation performed in step 21 is an infeasible solution, stop calculating sum(i), and then update the new round of position change operation to the round of position change operation described in step 21; Step 24, control i to increment once, and then update the result of i increment to i, and repeat step 22 until i is updated to be equal to N, and obtain sum(N); Step 25, determining whether sum(N) is greater than or equal to a second preset screening threshold value, if yes, setting the candidate solution corresponding to the round of position transformation operation performed in step 21 as a feasible solution in the current layer grid map, otherwise determining that the candidate solution corresponding to the round of position transformation operation performed in step 21 is an infeasible solution; Wherein, max_prob is the maximum single-point probability, and the maximum single-point probability, the order of addition, the number of additions, the first preset screening threshold, the second preset screening threshold, and the preset benchmark number are all preset; Among them, the first preset screening threshold is smaller than the second preset screening threshold.

11. The robot positioning method according to claim 10, It is characterized in that The step 2 also includes, after determining that the candidate solution corresponding to the round of position transformation operation performed in step 21 is an infeasible solution by executing step 23, controlling a new round of position transformation operation to be updated to the round of position transformation operation performed in step 21, and then repeating steps 21 to 25 to control the N laser point data to perform a new round of position transformation operation respectively, until all candidate solutions in the current layer of grid map are traversed and the N laser point data complete the position transformation operations corresponding to all candidate solutions in the current layer of grid map, and then start traversing the candidate solutions in the next layer of grid map.

12. The robot positioning method according to claim 11, It is characterized in that Each laser point data obtains a target point and its corresponding occupancy probability value in a layer of grid map by executing a round of position transformation operation corresponding to a candidate solution. The matching relationship between the obtained target point and its corresponding occupancy probability value is preset, wherein the occupancy probability value corresponding to a target point is used to reflect the possibility of the position point to be relocated falling into the grid corresponding to the target point in a layer of grid map; The sum of the occupancy probability values ​​corresponding to each target point obtained by all laser point data in the same round of position transformation operations corresponds to sum(N), which is used to reflect the possibility that the robot's to-be-relocated position point falls into the position drift range generated by the round of position transformation operations in a layer of grid map.

13. The robot positioning method according to claim 12, It is characterized in that Whenever the same laser point data is subjected to an angle deflection operation, a new reference coordinate is obtained, and then a coordinate offset operation is performed on the new reference coordinate to obtain a new target offset coordinate and index it to the corresponding occupancy probability value; A round of position transformation operations corresponding to a candidate solution includes an angle deflection operation and a coordinate shift operation, and the coordinate shift operation includes a horizontal coordinate shift operation and a vertical coordinate shift operation; wherein the same round of position transformation operations represents the same type of angle deflection operations and the same type of coordinate shift operations; In the first layer grid map, the number of angle deflection operations required for the same laser point data is preset, and the number of coordinate offset operations required for the same reference coordinate is preset.

14. The robot positioning method according to claim 13, It is characterized in that The number of deflection operations required for the same type of angle deflection operations is the same, and the same type of coordinate shift operations include the same type of horizontal coordinate shift operations and the same type of vertical coordinate shift operations, so that in the same layer of grid map, the target points obtained after the same type of angle deflection operations and the same type of coordinate shift operations have the same posture relationship in the same layer of grid map relative to the same laser point data before the current round of position transformation operations are performed, wherein the angle deflection amount involved in the same type of angle deflection operation and the coordinate shift amount involved in the same type of coordinate shift operation correspond to constitute candidate solutions; The horizontal coordinate shift operation includes performing a horizontal coordinate shift along the horizontal coordinate axis direction, and the vertical coordinate shift operation includes performing a vertical coordinate shift along the vertical coordinate axis direction.

15. The robot positioning method according to claim 14, It is characterized in that The number of horizontal coordinate shifts that occur in a layer of raster maps with a relatively high resolution for a type of horizontal coordinate shift operation is greater than the number of horizontal coordinate shifts that occur in a layer of raster maps with a relatively low resolution for the same type of horizontal coordinate shift operation; The coordinate shift step length required for the laser point data to perform the same type of horizontal coordinate shift operation on a layer of raster map with relatively low resolution is greater than the coordinate shift step length required for the laser point data to perform the same type of horizontal coordinate shift operation on a layer of raster map with relatively high resolution; wherein the offset amount of a type of horizontal coordinate shift operation in the horizontal coordinate axis direction of a layer of raster map with relatively high resolution is equal to the offset amount of the same type of horizontal coordinate shift operation in the horizontal coordinate axis direction of a layer of raster map with relatively low resolution; The number of vertical coordinate offsets of a type of vertical coordinate offset operation occurring in a layer of raster map with relatively high resolution is greater than the number of vertical coordinate offsets of the same type occurring in a layer of raster map with relatively low resolution; the coordinate offset step required for laser point data to perform the same type of vertical coordinate offset operation in a layer of raster map with relatively low resolution is greater than the coordinate offset step required for laser point data to perform the same type of vertical coordinate offset operation in a layer of raster map with relatively high resolution; wherein, the offset amount of a type of vertical coordinate offset operation occurring in the vertical coordinate axis direction of a layer of raster map with relatively high resolution is equal to the offset amount of the same type of vertical coordinate offset operation occurring in the vertical coordinate axis direction of a layer of raster map with relatively low resolution.

16. The robot positioning method according to claim 15, It is characterized in that The coordinate shift step length required for the laser point data to perform the same type of horizontal coordinate shift operation on a layer of raster map with relatively low resolution is the first horizontal step length, and the coordinate shift step length required for the laser point data to perform the same type of horizontal coordinate shift operation on a layer of raster map with relatively high resolution is the second horizontal step length; The coordinate shift step length required for the laser point data to perform the same type of vertical coordinate shift operation on a layer of raster map with relatively low resolution is the first vertical step length, and the coordinate shift step length required for the laser point data to perform the same type of vertical coordinate shift operation on a layer of raster map with relatively high resolution is the second vertical step length; When the laser point data performs the same type of horizontal coordinate offset operation and the same type of vertical coordinate offset operation, after a feasible solution in a layer of grid map with relatively low resolution is configured to a layer of grid map with relatively high resolution, the number of candidate solutions decomposed on the layer of grid map with relatively high resolution is equal to: the product of the ratio of the first horizontal step length to the second horizontal step length and the ratio of the first vertical step length to the second vertical step length; then in step 3, a feasible solution in the current layer of grid map is set as multiple candidate solutions in the next layer of grid map, wherein the ratio between the number of set candidate solutions and the number of feasible solutions is equal to the ratio between the resolution of the next layer of grid map and the resolution of the current layer of grid map.

17. The robot positioning method according to claim 16, It is characterized in that A round of position transformation operation includes: each time the position transformation processing module performs an angle deflection operation, the position transformation processing module controls the corresponding reference coordinate to first perform a coordinate offset operation along one coordinate axis direction, and then perform a coordinate offset operation along another coordinate axis direction; wherein, when one coordinate axis direction represents the horizontal coordinate axis direction, the other coordinate axis direction represents the vertical coordinate axis direction; when one coordinate axis direction represents the vertical coordinate axis direction, the other coordinate axis direction represents the horizontal coordinate axis direction.

18. A chip, It is characterized in that The chip is configured to execute the robot positioning method based on a multi-layer grid map as described in claim 1, so that: the chip recursively determines feasible solutions among the candidate solutions of each layer of the grid map in order from low to high resolution until the optimal feasible solution is determined, and the optimal feasible solution is set as the repositioning result.

19. A laser robot, It is characterized in that The laser robot is a robot equipped with a laser sensor, the chip according to claim 18 is arranged inside the laser robot, and the chip is electrically connected to the laser sensor; Among them, the laser sensor of the laser robot collects laser point data in the current detection area. The laser robot stores raster maps of the current detection area at multiple resolutions, and configures the raster maps at multiple resolutions into a multi-layer raster map arranged in order from low to high resolution.

Citation Information

Patent Citations

  • Global repositioning method and device for automatic mobile equipment

    CN113129379A

  • Control method and device, robot and storage medium

    CN114593737A

  • Robot repositioning method, robot and computer readable storage medium

    CN115375869A

  • Hardware acceleration positioning system under software and hardware cooperation and robot

    CN115984347A

  • Multi-Resolution Maps for Localization

    US20200003897A1