2d lidar-based localization method, 2d lidar-based mapping method, and system
Through the 2D lidar positioning method, grid map matching and pose map optimization are used to solve the accuracy problem that relies on odometry in traditional robot positioning and mapping, and achieve accurate pose and map construction without odometry.
Patent Information
- Application Number
- PCT/CN2023/135510
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-28
- Filing Date
- 2023-11-30
- Publication Date
- 2024-09-06
AI Technical Summary
Traditional robot positioning and mapping methods rely on wheeled odometers, which suffer from low accuracy. Especially when tires slip or the ground is bumpy, accurate positioning and mapping cannot be achieved, and they fail without an odometer.
The 2D lidar positioning method is used to build a raster map based on point cloud data, match the current scan frame and key frames, use pose maps and delayed decisions to perform loop detection, optimize pose estimation, and build accurate maps.
In the absence of a wheel odometer, accurate positioning and map construction of the robot's posture are achieved, improving positioning accuracy and making up for the shortcomings of traditional SLAM technology.
Smart Images

Figure CN2023135510_06092024_PF_FP
Abstract
Description
A 2D laser radar positioning and mapping method and system Technical Field
[0001] The present invention relates to robot positioning and navigation technology, and in particular to a 2D laser radar positioning and mapping method and system that does not rely on an odometer. Background Art
[0002] Simultaneous Localization and Mapping (SLAM) is a technology primarily used to solve the positioning and mapping problems of robots moving in unknown environments. It involves the robot starting from an unknown point in an unknown scene, determining its own position based on repeatedly observed map features during movement, and then incrementally building a map based on its own position, achieving the effect of simultaneously localizing and mapping the environment. Various robust methods for positioning and mapping have been proposed over the past few decades, but numerous challenges remain in practical application.
[0003] For example, many laser SLAM methods rely on wheel odometry for positioning and mapping. However, the accuracy of these methods depends heavily on calibration. While good calibration can achieve high accuracy, it can lead to inaccurate robot pose estimation when tires slip or the road is bumpy. Furthermore, these solutions fail when wheel odometry information is unavailable.
[0004] Summary of the Invention
[0005] To this end, the main purpose of the present invention is to provide a 2D lidar positioning and mapping method and system to solve the positioning and mapping problems of robots without wheeled odometers.
[0006] To achieve the above object, according to a first aspect of the present invention, a 2D laser radar positioning method is provided, the steps of which include:
[0007] Step S100 creates a grid map based on the point cloud data scanned by the 2D lidar, and calculates the estimated pose of the current scan frame;
[0008] Step S200 matches the grid map of the current scan frame with the grid map of the key frame at the previous moment to optimize the estimated pose of the current scan frame;
[0009] Step S300 constructs a pose graph based on the pose obtained in step S200 to screen out a set of candidate closed loops and perform loop detection using delayed decision making to optimize the estimated poses of all scanned frames again.
[0010] In a possible preferred embodiment, in step S100, the step of calculating the estimated pose of the current scanning frame includes: calculating the estimated pose of the current scanning frame according to the pose transformation matrix in the initial time period, and calculating the estimated pose of the current scanning frame based on the function fitting curve method in the subsequent time period.
[0011] In a possible preferred embodiment, in step S200, before performing grid map matching, it is further included to determine whether the current scan frame is a key frame, and if not, skipping grid map matching.
[0012] In a possible preferred embodiment, in step S200, the step of matching the grid map of the current scan frame with the grid map of the key frame at the previous moment includes:
[0013] Step S201 saves all keyframe data within a certain distance range to construct a sliding window and generate a local map; constructs a probability grid map using high and low resolutions, where each low-resolution probability grid map block m covers a corresponding number of high-resolution probability grid map blocks M; and assigns the maximum probability value among the corresponding multiple blocks M to m;
[0014] In step S202 , a branch-and-bound method is used to perform scan matching between the current scan frame and the local map to obtain the corresponding optimal estimated pose as the estimated pose of the current scan frame.
[0015] In a possible preferred embodiment, in step S300, the steps of screening out a candidate closed loop set and performing loop detection therefrom using a delayed decision to re-optimize the estimated poses of all scanned frames include:
[0016] Step S301 stores the scan frames involved in loop closure detection as historical frames, and searches for all scan frames that are temporally and spatially adjacent to the current scan frame in the vertices of the pose graph, which are recorded as a set of adjacent frames;
[0017] Step S302 traverses all historical frames that form a closed loop in time sequence, and adds historical frames close to the current scan frame into the candidate closed loop frame set;
[0018] Step S303: When any historical frame is found to also belong to the adjacent frame set, the current candidate closed-loop set is cleared and the remaining historical frames are traversed.
[0019] Step S304 loops through step S301 to step S303 until the number of candidate closed-loop sets reaches a certain limit, searches for loops in the candidate closed-loop sets, performs graph optimization, and updates the estimated poses of all scanned frames.
[0020] In a possible preferred embodiment, in step S304, the step of searching for loops in the candidate closed loop set includes:
[0021] Step S314 concatenates the current scan frame in the candidate closed loop set with multiple scan frames at previous moments to form a two-dimensional grid sub-image for loop closure detection.
[0022] In a possible preferred embodiment, in step S304, the step of searching for loops in the candidate closed loop set includes:
[0023] In step S315, when it is found that the scanning scenes between some pose graph vertices are similar but no loop observation is formed, the decision is delayed and the information of these pose graph vertices is temporarily stored until other pose graph vertices are observed to have similar scanning scenes to the temporarily stored pose graph vertices and a loop observation is formed, then a decision is made that a loop is detected.
[0024] To achieve the above-mentioned object, according to a second aspect of the present invention, a 2D lidar mapping method independent of odometry is provided, the steps of which include:
[0025] Execute any of the above-described 2D lidar positioning methods to obtain the final optimized estimated pose of the scanned frame and then construct a map.
[0026] In order to achieve the above object, according to a third aspect of the present invention, a 2D laser radar positioning system is provided, which includes:
[0027] A storage unit for storing a program including any of the steps of the 2D laser radar positioning method described above, so that the control unit and the processing unit can call and execute the program in a timely manner;
[0028] A control unit is used to control the 2D laser radar to obtain point cloud data of the scanned scene and send it to the processing unit;
[0029] A processing unit is configured to establish a grid map after acquiring point cloud data, calculate the estimated pose of the current scan frame based on the pose transformation matrix in the initial time period, and calculate the estimated pose of the current scan frame based on the function fitting curve method in subsequent time periods; and simultaneously match the grid map of the current scan frame with the grid map of the key frame at the previous time period to optimize the estimated pose of the current scan frame;
[0030] The processing unit further constructs a pose graph based on the obtained pose and performs loop detection using delayed decision making to optimize the estimated poses of all scanned frames again.
[0031] In a possible preferred embodiment, the processing unit further constructs a map based on the estimated poses of all scanned frames after final optimization.
[0032] The 2D LiDAR positioning and mapping method and system provided by this invention solves the problem of traditional mobile robots being unable to perform positioning and mapping without wheeled odometry. This enables mobile robots to obtain relatively accurate position and pose information and construct precise maps even when wheeled odometry information is unavailable due to tire slippage or bumpy terrain. This overcomes the shortcomings of traditional SLAM technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The accompanying drawings, which constitute part of this application, are intended to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are intended to explain the present invention and do not constitute an undue limitation of the present invention. In the accompanying drawings:
[0034] FIG1 is a schematic diagram of the steps of the positioning method of the present invention;
[0035] FIG2 is a schematic diagram of estimating the position and posture of the current scanning frame based on a function fitting curve method in the positioning method of the present invention;
[0036] FIG3 is a schematic diagram of using multiple frames to construct a sliding window in the positioning method of the present invention;
[0037] FIG4 is a schematic diagram of constructing a rasterized map using low resolution and high resolution in the positioning method of the present invention;
[0038] FIG5 is a schematic diagram of using a branch-based approach to accelerate search and matching in the positioning method of the present invention;
[0039] FIG6 is a schematic diagram illustrating an example of constructing a subgraph in the positioning method of the present invention to solve the problem of erroneous loop detection caused by similar scene structures;
[0040] FIG7 is a schematic diagram of an example delay decision in the positioning method of the present invention;
[0041] FIG8 is a schematic diagram showing comparative results of an experimental example of the positioning method and the mapping method of the present invention;
[0042] FIG9 is a schematic diagram of the positioning system structure of the present invention. DETAILED DESCRIPTION
[0043] In order to enable those skilled in the art to better understand the technical solutions of the present invention, the specific technical solutions of the present invention will be clearly and completely described below in conjunction with the embodiments to help those skilled in the art further understand the present invention. Obviously, the embodiments described in this case are only embodiments of a part of the present invention, rather than all embodiments. It should be pointed out that, for those of ordinary skill in the art, the embodiments in this application and the features in the embodiments can be combined with each other without departing from the concept of the present invention and without conflicting with each other. Based on the embodiments in the present invention, all other embodiments obtained by those of ordinary skill in the art without making creative work should fall within the disclosure and protection scope of the present invention.
[0044] In addition, the terms "first", "second", "S1", "S2", etc. in the specification, claims and drawings of the present invention are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those described herein. At the same time, the terms "including" and "having" and any variations thereof in the present invention are intended to cover non-exclusive inclusions. Unless otherwise expressly specified and limited, the terms "setting", "layout", "installation", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be a communication between the two elements. For ordinary technicians in this field, the specific meanings of the above terms in this case can be understood based on the specific circumstances and in combination with the existing technology.
[0045] 1 to 8 , the 2D laser radar positioning method provided by the present invention includes the following steps:
[0046] Step S100 creates a grid map based on the point cloud data scanned by the 2D lidar, and calculates the estimated pose of the current scan frame.
[0047] Specifically, after acquiring the point cloud data, the example creates an occupancy grid map, using p(s=1) to represent the probability of passing through the state and p(s=0) to represent the probability of occupying the state. The ratio of the two represents the state of the grid.
[0048] When the 2D laser radar observation value z~{0,1} is obtained, the grid state of the relevant grid needs to be updated to
[0049] Indicates the state of s under the measured value.
[0050] Furthermore, in step S100, the step of calculating the estimated pose of the current scanning frame includes: calculating the estimated pose of the current scanning frame according to the pose transformation matrix in the initial time period, and calculating the estimated pose of the current scanning frame based on the function fitting curve method in the subsequent time period.
[0051] Specifically, the initial moment referred to in this example can be understood as the initial few frames of the scanning frame. For example, when the number of initial scanning frames is three frames, the posture transformation matrix R is calculated based on the posture at the scanning moments t1 and t2, and the posture at t2 is transformed to estimate the posture at the current moment t3, where t1 is the previous moment relative to t3, t2 is the previous moment relative to t3, and t3 is the current moment.
[0052] The reason for this design is that, since there's no prior reference information for pose transformations in the first three frames, their predicted poses are identical to the first frame, and the pose is updated directly through the subsequent scan matching algorithm. However, starting from the fourth frame, due to the insufficient number of frames, the interpolated trajectory may have some deviations. Therefore, the predicted pose of the current frame is obtained by applying the pose transformation matrix of the previous frame relative to the previous frame to the previous frame.
[0053] When the number of scanned frames is greater than three, in order to obtain a more accurate pose estimation for each frame, a method based on function fitting curve is needed to estimate the pose of the current frame.
[0054] The number of pose points of the function fitting curve is related to the robot's movement speed. A fast-moving robot selects fewer pose points to fit the curve, while a fast-moving robot selects more pose points. First, the ratio of the distance between the robot's movement poses in the previous period to the timestamp is used to calculate the approximate movement speed of the robot at the current moment, and then the number of pose points n used in the fitting curve is determined. The function selected is Ax 2 +Bxy+Cy 2 +Dx+Ey+F=0, there are six parameters to be determined, namely A, B, C, D, E, and F. The n sets of measurement data constitute an overdetermined system of equations, which can be solved using the least squares method.
[0055] In order to more accurately fit the robot's motion trajectory in the current time period, it is necessary to use the pose data of multiple key frames before the current frame to solve the function parameters. The pose of the current frame is predicted by the fitted curve trajectory (as shown in Figure 2).
[0056] Keyframes are representative frames among all frames captured during the robot's motion. Using keyframes can reduce the information redundancy between local adjacent frames. Keyframes are usually determined based on the following three principles:
[0057] Determine the time interval between the current frame and the previous key frame. If the time interval is too small, it is not suitable to consider the current frame as a key frame.
[0058] Determine the actual distance between the current frame and the previous key frame. If the distance is too close, it is not appropriate to consider the current frame as a key frame.
[0059] Determine the number of common viewpoints between the current frame and the established local map. If the number of common viewpoints is large, it is not appropriate to consider the current frame as a key frame.
[0060] Step S200 matches the grid map of the current scan frame with the grid map of the key frame at the previous moment to optimize the estimated pose of the current scan frame.
[0061] Specifically, in step S200, it is preferred to determine whether the current scan frame is a key frame before performing grid map matching. If not, grid map matching is skipped, thereby filtering out some redundant frames.
[0062] Furthermore, in step S200, the step of matching the grid map of the current scan frame with the grid map of the key frame at the previous moment includes:
[0063] Step S201 saves all keyframe data within a certain distance range to construct a sliding window and generate a local map; constructs a probability grid map using high and low resolutions, where each low-resolution probability grid map block m covers multiple corresponding high-resolution probability grid map blocks M; and assigns the maximum probability value among the corresponding multiple blocks M to m.
[0064] In step S202 , a branch-and-bound method is used to perform scan matching between the current scan frame and the local map to obtain the corresponding optimal estimated pose as the estimated pose of the current scan frame.
[0065] Specifically, in this example, during the matching phase, a correct scan matching algorithm is used to match frames to the map. The method first constructs a sliding window to generate a local map (as shown in Figure 3). A queue is used to store radar data for all frames within a certain distance range.
[0066] For example, by saving all radar data in this queue as a grid map with a resolution of 0.01, the hit points in the map are set to 100 and the passed points are set to 0, thus generating a local map of the sliding window. The current scan frame is then matched with the generated local grid map.
[0067] In step S100, we have obtained a rough estimated pose, but we still need to obtain a relatively accurate estimated pose. Therefore, we need to construct a search space near the estimated pose. In theory, the larger the search range, the easier it is to find a relatively accurate pose estimate.
[0068] For example, the optimal estimate can be obtained by brute-force searching for the robot pose with the highest matching score on the gridded map. Constructing a multi-resolution lookup table and performing coarse registration followed by fine registration can accelerate the search process. As shown in Figure 4, the map is gridded at a certain low resolution to construct a low-resolution grid map m. The resolution is then adjusted to construct a new probabilistic grid map M. As shown in Figure 4, four small grids m form a large grid M. The value with the highest probability among the four small grids is assigned to the corresponding grid in M.
[0069] Then, the current frame is scanned and matched with the local map, and the coarse matching and fine matching methods are used to improve the search efficiency. The branch-by-branch method is used to accelerate the search and matching. As shown in Figure 5, the low-resolution grid is first traversed to find the large grid M with the highest score. Then, the high-resolution small grid m corresponding to the large grid M with the highest score is traversed to find the small grid with the highest score, which is recorded as H. best .
[0070] Then traverse the remaining low-resolution large grids M. If the score H of the j-th low-resolution large grid M is j <H best , then continue to traverse the next one; otherwise H j >H best Then traverse all the high-resolution small grids m corresponding to the low-resolution large grid M. If the score H of a high-resolution grid j′ >H best , then H best Updated to H j′ , otherwise continue to traverse the next one.
[0071] Finally, the position with the highest matching response value is used as the current position of the mobile robot, thereby optimizing the estimated pose of the current scanning frame.
[0072] Specifically, the one with the highest matching response value obtained in steps S201-S202 is the estimated optimal pose. i To determine whether it is reliable, we fit a true Gaussian probability distribution based on the score distribution in the entire map search space and calculate the covariance matrix. The covariance matrix can be used to quantitatively evaluate the uncertainty of the optimal pose.
[0073] For a multivariate variable x, the mean is denoted as u=E(x)
[0074] Then the covariance matrix is: E x =E[(xu)(xu) T ] =E(xx T )-uu T
[0075] Calculate the scores of all points and calculate the covariance matrix.
[0076] The K covariance matrix is:
[0077] Where K is the E(xx in the formula T ), u is u = E(x), s is the sum of all probability values, p is the probability in step S100, and For x i In the jth estimated pose, m is the map, z is the observed laser point, and u is the motion measurement between the two positions. Since it does not rely on the wheel odometry, u here is the pose transformation obtained in step S100.
[0078] Step S300 constructs a pose graph based on the pose obtained in step S200 to screen out a set of candidate closed loops and perform loop detection using delayed decision making to optimize the estimated poses of all scanned frames again.
[0079] Specifically, the pose graph is constructed by first adding vertices to the pose graph, and then adding edges to the pose graph using existing methods to prepare for loop detection and backend optimization. The invention of this case attempts to perform loop detection by using a graph-to-graph loop detection strategy and a delayed decision-making strategy. The purpose of loop detection is to determine whether the scene scanned in the current frame has appeared in the map. If so, it constitutes a loop, and this is used as a constraint to reduce the cumulative error in map construction.
[0080] For example, in step S300, loop closure detection is performed using delayed decision making to optimize the estimated poses of all scanned frames again. The exemplary steps include:
[0081] Step S301 stores the scan frames involved in loop closure detection as historical frames, and searches for all scan frames that are temporally and spatially adjacent to the current scan frame in the vertices of the constructed pose graph, which are recorded as a set of adjacent frames.
[0082] Step S302 traverses all historical frames that form a closed loop in time sequence, and adds historical frames close to the current scan frame into the candidate closed loop frame set;
[0083] Step S303: When any historical frame is found to also belong to the adjacent frame set, the current candidate closed-loop set is cleared and the remaining historical frames are traversed.
[0084] Step S304 loops through steps S301 to S303 until keyframes that are close in spatial position but far apart in time are left. After the number of candidate closed-loop sets reaches the required number, loops are searched in the candidate closed-loop sets to perform graph optimization and update the estimated poses of all scanned frames.
[0085] Specifically, loop closure detection typically involves frame-to-frame matching or frame-to-map matching. As shown in Figure 6a and b, these two maps have similar scene structures within the dashed boxes. During matching, there may be a mismatch where a scene scanned in a frame happens to match both dashed boxes.
[0086] Therefore, the inventors consider that such mismatches can be eliminated if a large-scale map with multiple consecutive frames can be used for matching. Therefore, in a further example, in step S304, the step of searching for loops in the candidate closed loop set includes:
[0087] Step S314 concatenates the current scan frame in the candidate closed loop set with multiple scan frames at previous moments to form a two-dimensional grid sub-image for loop closure detection.
[0088] By constructing sub-images, we can remove redundant data between adjacent frames. Because sub-images contain a large amount of information across multiple frames, they can address false loop detection caused by similar scene structures (Figure 6), thereby improving recognition accuracy.
[0089] In addition, on the other hand, in scenarios with similar structures, robots are also prone to loop detection errors. Therefore, using a delayed decision processing strategy can effectively solve this problem. To this end, in step S304 of this embodiment, the step of searching for loops in the candidate closed loop set also includes:
[0090] In step S315, when it is found that the scanning scenes between some pose graph vertices are similar but no loop observation is formed, the decision is delayed and the information of these pose graph vertices is temporarily stored until other pose graph vertices are observed to have similar scanning scenes to the temporarily stored pose graph vertices and a loop observation is formed, then a decision is made that a loop is detected.
[0091] For example, as shown in Figure 7, the robot moves along the direction d->a->b->c. When the robot detects similar scenes at points a and b, it does not make a judgment but instead saves points a and b. Then, when the robot continues moving to point c and observes a scene similar to point d, it determines that a loop has been detected. For example, the pose transformation matrices of points a, b, c, and d shown in Figure 7 are T1, T2, T3, and T4. If T1·T2·T3·T4 = I, then a correct loop has been detected.
[0092] By delaying the decision, the problem of loop detection errors can be effectively avoided, thereby improving the judgment accuracy.
[0093] Finally, the detected loops and the pose graph constructed in step S300 are used to perform SPA graph optimization, and the sparse system decoupling is performed using a highly optimized and non-iterative Cholesky matrix as the solution, thereby finally updating the estimated pose of each frame.
[0094] Corresponding to the above method embodiment, the present invention also provides a 2D lidar mapping method that does not rely on an odometer, the steps of which include:
[0095] Execute the 2D lidar positioning method described in the example above to obtain the final optimized estimated pose of the scanned frame to build the map.
[0096] Experimental example
[0097] This dataset was used to test the example method. The computer configuration used in the experiment was: Ubuntu 18.04, an i7-11800H CPU with a base frequency of 2.30GHz, and 16GB of memory. Localization and mapping experiments were conducted using both the existing wheel odometry mapping method and this example method on the same dataset.
[0098] As shown in FIG8 , there are comparison results of the two methods in different scenarios. The experiment shows that the method of the present invention can perform positioning and mapping without relying on a wheel odometer, and the effect is basically the same as that of the method with an odometer.
[0099] As shown in FIG9 , corresponding to the above method example, the present invention further provides a 2D laser radar positioning system, which includes:
[0100] The storage unit is used to store a program including the steps of the 2D lidar positioning method as described in the above example, so that the control unit and the processing unit can call and execute it in a timely manner.
[0101] The control unit is used to control the 2D laser radar to obtain the point cloud data of the scanning scene and send it to the processing unit.
[0102] The processing unit is used to establish a grid map after acquiring point cloud data, and calculate the estimated pose of the current scan frame based on the pose transformation matrix in the initial time period, and calculate the estimated pose of the current scan frame based on the function fitting curve method in subsequent time periods; at the same time, the grid map of the current scan frame is matched with the grid map of the key frame at the previous time to optimize the estimated pose of the current scan frame.
[0103] The processing unit further constructs a pose graph based on the obtained pose and performs loop detection using delayed decision making to optimize the estimated poses of all scanned frames again.
[0104] In a further embodiment, the processing unit further constructs a map based on the estimated poses of all scanned frames after final optimization.
[0105] In summary, the 2D LiDAR positioning and mapping method and system provided by the present invention solves the problem of traditional mobile robots being unable to perform positioning and mapping without wheeled odometry. This enables mobile robots to obtain relatively accurate position and pose information and construct precise maps even when wheeled odometry information is unavailable due to tire slippage or bumpy terrain. This overcomes the shortcomings of traditional SLAM technology.
[0106] The preferred embodiments of the present invention disclosed above are only used to help illustrate the present invention. The preferred embodiments do not describe all the details in detail, nor do they limit the invention to the specific implementation methods described. Obviously, many modifications and changes can be made based on the contents of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can better understand and utilize the present invention. The present invention is only limited by the claims and their full scope and equivalents. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
[0107] Those skilled in the art will understand that, in addition to implementing the system, device, and various modules provided by the present invention in pure computer-readable program code, it is entirely possible to implement the same program in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, embedded microcontrollers, etc. by logically programming the method steps. Therefore, the system, device, and various modules provided by the present invention can be considered a hardware component, and the modules included therein for implementing various programs can also be considered as structures within the hardware component; the modules for implementing various functions can also be considered as both software programs for implementing the method and structures within the hardware component.
[0108] In addition, all or part of the steps in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a program, which is stored in a storage medium and includes a number of instructions for causing a single-chip microcomputer, chip or processor to execute all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: a USB flash drive, a mobile hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program code.
[0109] In addition, various implementations of the embodiments of the present invention may be arbitrarily combined, and as long as they do not violate the concept of the embodiments of the present invention, they should also be regarded as the contents disclosed in the embodiments of the present invention.
Claims
1. A 2D laser radar positioning method, characterized by the steps of include: Step S100: Building a grid map based on the point cloud data scanned by the 2D laser radar and calculating the estimated pose of the current scan frame; Step S200 matches the grid map of the current scan frame with the grid map of the key frame at the previous moment to optimize the estimated pose of the current scan frame; Step S300 constructs a pose graph based on the pose obtained in step S200 to screen out a set of candidate closed loops and use delayed decisions to perform loop detection to optimize the estimated poses of all scanned frames again.
2. The positioning method according to claim 1, characterized in that: In step S100, the step of calculating the estimated pose of the current scanning frame includes: calculating the estimated pose of the current scanning frame according to the pose transformation matrix in the initial time period, and calculating the estimated pose of the current scanning frame based on the function fitting curve method in the subsequent time period.
3. The positioning method according to claim 1, characterized in that: In step S200, before performing grid map matching, it is also included to determine whether the current scan frame is a key frame, and if not, skipping the grid map matching.
4. The positioning method according to claim 1, characterized in that: In step S200, the step of matching the grid map of the current scan frame with the grid map of the key frame at the previous moment includes: Step S201 saves all key frame data within a certain distance range to construct a sliding window and generate a local map; constructs a probability grid map using high and low resolutions, wherein each low-resolution probability grid map block m covers a corresponding number of high-resolution probability grid map blocks M; and assigns the maximum probability value among the corresponding number of blocks M to m; Step S202 uses the branch and bound method to traverse and scan and match the current scan frame with the local map to obtain the corresponding optimal estimated pose as the estimated pose of the current scan frame.
5. The positioning method according to claim 4, characterized in that: In step S300, the steps of selecting a candidate closed loop set and performing loop detection using a delayed decision therefrom to optimize the estimated poses of all scanned frames again include: Step S301 stores the scanned frames involved in the loop closure detection as historical frames, and searches for all scanned frames that are temporally and spatially adjacent to the current scanned frame in the vertices of the pose graph, which are recorded as a set of adjacent frames; Step S302 traverses all historical frames that form a closed loop in time sequence, and adds historical frames close to the current scan frame to the candidate closed loop frame set; Step S303: when it is found that any historical frame also belongs to the adjacent frame set, the current candidate closed-loop set is cleared and the remaining historical frames are traversed continuously; Step S304 loops step S301 to step S303 until the number of candidate closed-loop sets reaches the standard, and then searches for loops in the candidate closed-loop sets to perform graph optimization and update the estimated poses of all scanned frames.
6. The positioning method according to claim 5, characterized in that: In step S304, the step of searching for loops in the candidate closed loop set includes: Step S314 concatenates the current scan frame in the candidate closed-loop set with multiple scan frames at previous moments to form a two-dimensional grid sub-image for loop closure detection.
7. The positioning method according to claim 5, characterized in that: In step S304, the step of searching for loops in the candidate closed loop set includes: In step S315, when it is found that the scanning scenes between some pose graph vertices are similar but no loop observation is formed, the decision is delayed and the information of these pose graph vertices is temporarily stored until other pose graph vertices are observed to have scanning scenes similar to the temporarily stored pose graph vertices and a loop observation is formed, and then a decision is made that a loop is detected.
8. A 2D LiDAR mapping method that does not rely on odometers, characterized in that The steps include: Execute the 2D laser radar positioning method as described in any one of claims 1 to 7, obtain the estimated pose after the final optimization of the scanning frame, and then construct a map.
9. A 2D laser radar positioning system, characterized in that include: A storage unit, used to store a program including the steps of the 2D laser radar positioning method as described in any one of claims 1 to 7, so that the control unit and the processing unit can call and execute it in a timely manner; A control unit is used to control the 2D laser radar to obtain point cloud data of the scanning scene and send it to the processing unit; A processing unit, used to establish a grid map after acquiring point cloud data, and calculate the estimated pose of the current scan frame according to the pose transformation matrix in the initial time period, and calculate the estimated pose of the current scan frame based on the function fitting curve method in the subsequent time period; At the same time, the grid map of the current scan frame is matched with the grid map of the key frame at the previous moment to optimize the estimated pose of the current scan frame; The processing unit further constructs a pose graph based on the obtained poses and uses delayed decision making to perform loop closure detection to optimize the estimated poses of all scanned frames again.
10. The 2D laser radar positioning system according to claim 9, characterized in that: The processing unit further constructs a map based on the estimated poses of all scanned frames after final optimization.
Citation Information
Patent Citations
Navigation map updating method and device, readable storage medium and robot
CN111024100A
Laser mapping positioning method and device, storage medium and electronic equipment
CN112068154A
Loop detection method, loop detection device, loop detection equipment and computer readable storage medium
CN112700497A
2D laser radar positioning and mapping method and system
CN116165627A
Jig system for positioning center for case of battery pack
KR102019633B1
Cited By
Loopback detection method, computer readable storage medium and intelligent equipment
CN119106150A
Path planning method and device for multiple four-way shuttle vehicles
CN119737953A
Dynamic scene positioning method and device based on known point cloud map
CN119845264A
Body-equipped robot mapping method, body-equipped robot system and control equipment
CN120122663A
Indoor loopback detection method and system based on angle characteristics
CN120198419A
