Laser radar mapping method, device, electronic equipment, and storage medium

By determining the noise value based on the matching pose confidence of the loopback frame pair in laser SLAM mapping, and adjusting the information matrix, the problem of poor loopback optimization efficiency and effect in the existing technology is solved, and a more efficient lidar map construction is achieved. .

CN115079202BActive Publication Date: 2024-08-27ZHIDAO NETWORK TECH (BEIJING) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210748090.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-16
Publication Date
2024-08-27
Estimated Expiration
2042-06-16

AI Technical Summary

Technical Problem

During the loopback process of existing laser SLAM mapping solutions, the optimization of unified noise values ​​results in poor optimization efficiency and effect, and the confidence difference of loopback frame pairs cannot be effectively utilized.

Method used

Perform loopback search based on the current frame point cloud data of LiDAR, obtain the matching pose confidence through point cloud matching, determine the noise value of each loopback frame pair, and use the preset graph optimization algorithm to adjust the information matrix to build personalized loopback constraints. Perform pose optimization.

Benefits of technology

The optimization efficiency and effect of laser mapping are improved. Through personalized noise value processing, the confidence impact of loopback frame pairs is enhanced, and the positioning accuracy and map construction quality are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115079202B
    Figure CN115079202B
Patent Text Reader

Abstract

The present application discloses a laser radar mapping method, device, electronic device, and storage medium, the method comprising: when the laser radar's current frame point cloud data meets the preset loop search conditions, a loop search is performed based on the current frame point cloud data to obtain a loop search result, the loop search result includes multiple loop frame pairs; point cloud matching is performed according to the point cloud data corresponding to each loop frame pair to obtain a point cloud matching result, the point cloud matching result includes a matching pose confidence; according to the matching pose confidence corresponding to each loop frame pair, the noise value corresponding to each loop frame pair is determined; based on the noise value corresponding to each loop frame pair, the pose of each frame point cloud data is optimized using a preset graph optimization algorithm to obtain a laser point cloud map according to the optimization result. The laser radar mapping method of the embodiment of the present application determines the corresponding noise value for each loop frame pair, thereby improving the optimization efficiency and optimization effect of laser mapping.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of map construction technology, and in particular to a lidar mapping method, apparatus, electronic device, and storage medium. Background Art

[0002] In current laser SLAM (Simultaneous Localization and Mapping) mapping schemes, loop closure strategies are essential. The loop closure process mainly involves finding a matching closed loop point in the current frame, calculating the relative pose between the two points, and adding it as a loop closure constraint to the backend optimization.

[0003] In practice, if the loop closure matching result is poor, the confidence of the corresponding loop closure frame pair is low; if the loop closure matching result is good, the confidence of the corresponding loop closure frame pair is high. However, when the existing solution performs backend optimization based on loop closure constraints, it always uses the same noise value for the entire loop closure constraint, which will affect the optimization efficiency and optimization effect. Summary of the Invention

[0004] This application provides a lidar mapping method, apparatus, electronic device, and storage medium to improve the optimization efficiency and effect of lidar mapping.

[0005] The embodiments of this application adopt the following technical solutions:

[0006] In a first aspect, embodiments of this application provide a lidar mapping method, wherein the method includes:

[0007] If the current frame point cloud data of the lidar meets the preset loop closure search conditions, a loop closure search is performed based on the current frame point cloud data to obtain a loop closure search result, which includes multiple loop closure frame pairs.

[0008] Point cloud matching is performed on the corresponding point cloud data according to each loopback frame to obtain point cloud matching results, including matching pose confidence.

[0009] Based on the matching pose confidence of each loopback frame pair, determine the noise value corresponding to each loopback frame pair;

[0010] Based on the noise values ​​corresponding to each loopback frame pair, the pose of each frame of point cloud data is optimized using a preset map optimization algorithm to obtain a laser point cloud map based on the optimization results.

[0011] Optionally, before performing a loop closure search based on the current frame point cloud data to obtain the loop closure search result, provided that the current frame point cloud data meets the preset loop closure search conditions, the method further includes:

[0012] Determine whether the number of frames corresponding to the current frame point cloud data has reached a preset frame number threshold;

[0013] If so, then the current frame point cloud data is determined to satisfy the preset loop closure search condition;

[0014] Otherwise, it is determined that the current frame point cloud data does not meet the preset loopback search conditions.

[0015] Optionally, if the current frame point cloud data of the lidar meets the preset loop closure search conditions, the loop closure search is performed based on the current frame point cloud data to obtain the loop closure search results, including:

[0016] Based on the number of frames corresponding to the current frame point cloud data, determine the candidate frame corresponding to the current frame;

[0017] Based on the current frame point cloud data and the candidate frame point cloud data, determine the distance between the current frame and the candidate frame;

[0018] The loopback frame pair is determined based on the distance between the current frame and the candidate frame.

[0019] Optionally, determining the loopback frame pair based on the distance between the current frame and the candidate frame includes:

[0020] The distance between the current frame and the candidate frame is compared with a preset distance threshold;

[0021] If the distance between the current frame and the candidate frame is less than the preset distance threshold, then the candidate frame and the current frame are determined to constitute the loopback frame pair;

[0022] Otherwise, it is determined that the candidate frame and the current frame do not constitute the loopback frame pair.

[0023] Optionally, determining the noise value corresponding to each loopback frame pair based on the matching pose confidence of each loopback frame pair includes:

[0024] Based on the matching pose confidence of each loopback frame pair, the noise value corresponding to each loopback frame pair is determined using a preset negative correlation strategy.

[0025] Optionally, after determining the noise value corresponding to each loopback frame pair based on the matching pose confidence of each loopback frame pair, the method further includes:

[0026] The matching pose, matching pose confidence, keyframe identifier of each loopback frame pair, and corresponding noise value of each loopback frame pair are stored in the loopback container.

[0027] Optionally, the step of optimizing the pose of each frame of point cloud data based on the noise value corresponding to each loopback frame pair using a preset map optimization algorithm to obtain a laser point cloud map based on the optimization result includes:

[0028] Based on the noise value corresponding to each loopback frame pair, adjust the diagonal value of the information matrix in the preset graph optimization algorithm;

[0029] Based on the adjusted information matrix, a closure constraint is constructed, and the pose of each frame of point cloud data is optimized using the closure constraint to obtain the optimized pose of each frame of point cloud data.

[0030] The laser point cloud map is obtained by stitching together the point cloud data of each frame according to the optimized pose of each frame.

[0031] Secondly, embodiments of this application also provide a lidar mapping device, wherein the device includes:

[0032] The loop closure search unit is used to perform a loop closure search based on the current frame point cloud data when the current frame point cloud data of the lidar meets the preset loop closure search conditions, and obtain the loop closure search results, which include multiple loop closure frame pairs.

[0033] A point cloud matching unit is used to perform point cloud matching on the corresponding point cloud data according to each loopback frame to obtain a point cloud matching result, the point cloud matching result including the matching pose confidence.

[0034] The first determining unit is used to determine the noise value corresponding to each loopback frame pair based on the matching pose confidence of each loopback frame pair.

[0035] The optimization unit is used to optimize the pose of the point cloud data of each frame based on the noise value corresponding to each loopback frame pair using a preset map optimization algorithm, so as to obtain a laser point cloud map based on the optimization results.

[0036] Thirdly, embodiments of this application also provide an electronic device, including:

[0037] Processor; and

[0038] A memory configured to store computer-executable instructions, which, when executed, cause the processor to perform any of the methods described above.

[0039] Fourthly, embodiments of this application also provide a computer-readable storage medium that stores one or more programs, which, when executed by an electronic device including multiple applications, cause the electronic device to perform any of the methods described above.

[0040] The at least one technical solution adopted in the embodiments of this application can achieve the following beneficial effects: The lidar mapping method of this application, when the current frame point cloud data of the lidar meets the preset loop closure search conditions, performs a loop closure search based on the current frame point cloud data to obtain loop closure search results, which include multiple loop closure frame pairs; then, it performs point cloud matching based on the point cloud data corresponding to each loop closure frame pair to obtain point cloud matching results, which include matching pose confidence; then, based on the matching pose confidence of each loop closure frame pair, it determines the noise value corresponding to each loop closure frame pair; finally, based on the noise value corresponding to each loop closure frame pair, it uses a preset map optimization algorithm to optimize the pose of each frame point cloud data to obtain a lidar point cloud map based on the optimization results. The lidar mapping method of this application determines the corresponding noise value for each loop closure frame pair, improving the optimization efficiency and effect of lidar mapping. Attached Figure Description

[0041] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0042] Figure 1 This is a flowchart illustrating a lidar mapping method according to an embodiment of this application.

[0043] Figure 2 This is a schematic diagram of the structure of a lidar mapping device according to an embodiment of this application;

[0044] Figure 3 This is a schematic diagram of the structure of an electronic device according to an embodiment of this application. Detailed Implementation

[0045] To make the purpose, technical solutions, and advantages of this application more clear, the technical solutions of this application will be clearly and completely described below in conjunction with the specific embodiments of this application and the corresponding drawings. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0046] The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0047] This application provides a lidar mapping method, such as... Figure 1 The diagram provided illustrates a flow chart of a lidar mapping method according to an embodiment of this application. The method includes at least the following steps S110 to S140:

[0048] Step S110: If the current frame point cloud data of the lidar meets the preset loop closure search conditions, a loop closure search is performed based on the current frame point cloud data to obtain a loop closure search result, which includes multiple loop closure frame pairs.

[0049] In practical laser mapping scenarios, there are many constraints used for backend optimization, among which loop closure constraints are an important optimization strategy. The laser radar mapping method in this application is mainly aimed at scenarios where mapping optimization is performed based on loop closure constraints.

[0050] When constructing loop closure constraints, a loop closure search is required first. To improve the efficiency of the loop closure search, this application defines preset loop closure search conditions. These preset conditions are mainly used to determine whether a loop closure matching operation needs to be started from the current frame point cloud data, thereby avoiding invalid matches. If the current frame point cloud data meets the preset loop closure search conditions, a loop closure search operation can be performed. Through a certain loop closure search strategy, multiple matching loop closure frame pairs can be obtained. Here, a loop closure frame pair can be understood as two frames of point cloud data having significant similarities in data features, indicating that the vehicle may have passed through the same location in the same scene.

[0051] Step S120: Perform point cloud matching on the corresponding point cloud data according to each loopback frame to obtain point cloud matching results, wherein the point cloud matching results include matching pose confidence.

[0052] After obtaining multiple loopback frame pairs, a certain point cloud matching algorithm is needed to perform point cloud matching on the two frames of point cloud data involved in each loopback frame pair. The point cloud matching process is mainly to determine the transformation pose between the two frames of point cloud data. Therefore, the point cloud matching algorithm used here can be any point cloud matching algorithm such as NDT (Normal Distributions Transform) or ICP (Iterative Closest Point), without any specific limitation.

[0053] After completing the point cloud matching algorithm, it outputs not only the matched pose between two frames of point cloud data, but also the confidence score corresponding to that pose. A better point cloud matching result results in a higher confidence score, while a worse result results in a lower confidence score. In other words, the confidence score reflects the reliability of the matched pose between two frames of point cloud data, serving as a crucial foundation for subsequent optimization. Furthermore, the confidence score of the matched pose can be stored in conjunction with the keyframe identifiers of the corresponding loopback frame pairs to provide a basis for subsequent noise value calculation.

[0054] Step S130: Determine the noise value corresponding to each loopback frame pair based on the matching pose confidence of each loopback frame pair.

[0055] In the process of optimizing laser mapping based on loop closure constraints, it is often necessary to introduce noise values ​​to accelerate the optimization process. However, existing schemes use a uniform noise value for the matching pose confidence of each loop closure frame, which means that the optimization efficiency and effect of existing schemes still need to be improved.

[0056] Based on this, the embodiments of this application automatically determine the noise value corresponding to each loopback frame pair according to the matching pose confidence level of each loopback frame pair. That is, the magnitude of the noise value corresponding to each loopback frame pair depends on the magnitude of the matching pose confidence level of the loopback frame pair. The higher the confidence level, the smaller the introduced noise value, and the lower the confidence level, the larger the introduced noise value, thereby improving optimization efficiency and optimization effect.

[0057] Step S140: Based on the noise values ​​corresponding to each loopback frame pair, the pose of each frame point cloud data is optimized using a preset map optimization algorithm to obtain a laser point cloud map based on the optimization results.

[0058] This application employs a graph optimization algorithm for optimization. Graph optimization addresses the issue that after the SLAM algorithm obtains location information at the front end, sensor measurement noise causes errors in both pose and observation model, affecting positioning accuracy. Therefore, the back end needs to correct the pose and landmark information collected by the front end. In the graph optimization process, the object of optimization is the pose of each frame of point cloud data. One of the bases for optimization is the loop closure constraint constructed in this application embodiment, which includes, for example, the matching poses between multiple loop closure frame pairs and the corresponding matching pose confidence, noise values, and other information.

[0059] The graph optimization algorithm used in the embodiments of this application can be any one of the optimization algorithms such as G2O (General Graph Optimization), GTSAM (Georgia Tech Smoothing and Mapping), and Ceres. Those skilled in the art can choose flexibly according to actual needs, and no specific limitation is made here.

[0060] After completing the pose optimization, the optimized pose corresponding to each frame of point cloud data can be obtained. Then, point cloud stitching can be performed based on the optimized pose of each frame of point cloud data to obtain the constructed laser point cloud map.

[0061] The lidar mapping method in this application determines the corresponding noise value for each loopback frame pair, thereby improving the optimization efficiency and effect of lidar mapping.

[0062] In one embodiment of this application, before performing a loop closure search based on the current frame point cloud data to obtain the loop closure search result when the current frame point cloud data of the lidar meets the preset loop closure search conditions, the method further includes: determining whether the number of frames corresponding to the current frame point cloud data reaches a preset frame number threshold; if so, determining that the current frame point cloud data meets the preset loop closure search conditions; otherwise, determining that the current frame point cloud data does not meet the preset loop closure search conditions.

[0063] The preset loop closure search conditions in this application embodiment can be measured by a preset frame number threshold. This threshold represents the minimum number of frames required for a loop closure search; that is, loop closures are only likely or have a high probability of occurring when the number of frames in the point cloud data reaches a certain frame number threshold. Based on this, this application embodiment can determine whether the number of frames corresponding to the current frame of point cloud data reaches the preset frame number threshold. If it does, it means that the current frame of point cloud data meets the preset loop closure search conditions and a loop closure search can be performed; otherwise, the preset loop closure search conditions are not met.

[0064] The aforementioned preset frame count threshold can be flexibly determined based on the actual coverage area of ​​the constructed laser point cloud map, and is not specifically limited here. For example, if the preset frame count threshold is set to 50 frames, then when the current frame is the 50th frame, it is considered that the loop closure search condition has been triggered; if the preset frame count threshold is set to 100 frames, then when the current frame is the 100th frame, it is considered that the loop closure search condition has been triggered.

[0065] In one embodiment of this application, the step of performing a loop closure search based on the current frame point cloud data to obtain the loop closure search result when the current frame point cloud data of the lidar meets the preset loop closure search conditions includes: determining the candidate frame corresponding to the current frame according to the frame number corresponding to the current frame point cloud data; determining the distance between the current frame and the candidate frame according to the current frame point cloud data and the candidate frame point cloud data; and determining the loop closure frame pair according to the distance between the current frame and the candidate frame.

[0066] In this embodiment of the application, when performing a loop closure search based on the current frame, the candidate frames corresponding to the current frame can be determined first. The candidate frames can be understood as point cloud frames that may form a loop closure frame pair with the current frame. They may include the initial frame and several frames adjacent to the initial frame. For example, the loop closure search can be performed starting from the 50th frame. The 50th frame can be matched with the 0th frame, the 51st frame can be matched with the 0th and 1st frames, and so on. The 50+ith frame can be matched with the point cloud frames in the (0,i)th frame interval.

[0067] The above-mentioned loop closure matching process is mainly to calculate the distance between two frames of point cloud data. Specifically, the distance between two frames can be calculated based on the position information contained in each frame of point cloud data. Then, the distance between the two frames of point cloud data can be used to determine whether the two frames of point cloud data constitute a loop closure frame pair.

[0068] In one embodiment of this application, determining the loopback frame pair based on the distance between the current frame and the candidate frame includes: comparing the distance between the current frame and the candidate frame with a preset distance threshold; if the distance between the current frame and the candidate frame is less than the preset distance threshold, then determining that the candidate frame and the current frame constitute the loopback frame pair; otherwise, determining that the candidate frame and the current frame do not constitute the loopback frame pair.

[0069] The closer the distance between two frames of point cloud data, the more likely they correspond to the same location point, indicating a loop. Therefore, a preset distance threshold `min_diff` can be defined. If the distance between two frames is less than `min_diff`, the two frames are very close and likely correspond to the same location point, thus forming a loop pair. Conversely, if the distance is greater than `min_diff`, the two frames are far apart and may not correspond to the same location point, thus not forming a loop pair. Using this method, multiple distance-matched loop pair frames can be obtained.

[0070] In one embodiment of this application, determining the noise value corresponding to each loopback frame pair based on the matching pose confidence of each loopback frame pair includes: determining the noise value corresponding to each loopback frame pair using a preset negative correlation strategy based on the matching pose confidence of each loopback frame pair.

[0071] In this embodiment of the application, when determining the noise value corresponding to each loopback frame pair based on the matching pose confidence of each loopback frame pair, a certain negative correlation strategy can be adopted. That is, the higher the matching pose confidence transprobability, the smaller the corresponding noise value should be; conversely, the lower the matching pose confidence transprobability, the larger the corresponding noise value should be.

[0072] Based on multiple experiments, the noise value corresponding to each loopback frame pair in this application embodiment can be determined using the following method:

[0073] noise=1 / (transprobabilty+0.5) 2

[0074] Of course, in addition to using the above method to determine the noise value corresponding to each loopback frame pair, those skilled in the art can also flexibly adopt other methods according to the actual situation, which are not specifically limited here.

[0075] In one embodiment of this application, after determining the noise value corresponding to each loopback frame pair based on the matching pose confidence of each loopback frame pair, the method further includes: storing the matching pose, matching pose confidence, and keyframe identifier of each loopback frame pair and the noise value corresponding to each loopback frame pair into a loopback container.

[0076] After obtaining the matching pose, matching pose confidence, and corresponding noise value for each loopback frame pair, this application embodiment can also combine the keyframe identifiers corresponding to each loopback frame pair to associate and store the information of each dimension. For example, it can be stored in the loopback container loop_deque for unified management. Each time a new loopback frame pair is obtained, its corresponding information can be stored in the loopback container as a basis for backend optimization.

[0077] In laser mapping scenarios, keyframe data is mainly used to construct laser point cloud maps. Therefore, the keyframe identifier of the above loopback frame pair can be understood as a unique identifier of the two keyframe point cloud data that constitute a loopback frame pair, such as a keyframe ID.

[0078] In one embodiment of this application, the step of optimizing the pose of each frame of point cloud data using a preset graph optimization algorithm based on the noise values ​​corresponding to each loopback frame pair, so as to obtain a laser point cloud map based on the optimization results, includes: adjusting the diagonal value of the information matrix in the preset graph optimization algorithm according to the noise values ​​corresponding to each loopback frame pair; constructing loop closure constraints based on the adjusted information matrix, and optimizing the pose of each frame of point cloud data using the loop closure constraints to obtain the optimized pose of each frame of point cloud data; and stitching together the point cloud data of each frame according to the optimized pose of each frame of point cloud data to obtain the laser point cloud map.

[0079] Since autonomous driving systems often involve many sensors, the higher the accuracy of the sensors, the larger the weight coefficient of the corresponding sensor optimization constraints. Therefore, in graph optimization algorithms, the information matrix is ​​used as the loop weight of the error term to assign different confidence levels to different sensors. Since the information matrix is ​​the inverse of the covariance matrix, the larger the weight coefficient of the information matrix, the more information the matrix expresses, and the more attention it will be given in the optimization process.

[0080] The aforementioned weights only measure the importance of different sensor optimization constraints. However, for the specific optimization constraint of loop closure constraints, this application embodiment needs to further determine the noise value of different edges based on the matching pose confidence of different loop closure frame pairs, and influence the weight of each loop closure frame pair in the optimization process through the different noise values, rather than using a uniform loop closure constraint weight loop_weight.

[0081] Specifically, since the matched pose includes three-dimensional position information (x, y, z) and three-dimensional angle information (roll, pitch, yaw), the noise value corresponding to each loopback frame pair calculated in the aforementioned embodiment can also be regarded as an array containing six dimensions of noise information (noise0, noise1, noise2, noise3, noise4, noise5), which correspond to each dimension in the matched pose.

[0082] Based on this, when setting the information matrix in the graph optimization algorithm, the diagonal values ​​of the covariance matrix cov can be set as follows:

[0083] cov(0,0)=noise[0]*noise[0]*(1 / loop_weight);

[0084] cov(1,1)=noise[1]*noise[1]*(1 / loop_weight);

[0085] cov(2,2)=noise[2]*noise[2]*(1 / loop_weight);

[0086] cov(3,3)=noise[3]*noise[3]*(1 / loop_weight);

[0087] cov(4,4)=noise[4]*noise[4]*(1 / loop_weight);

[0088] cov(5,5)=noise[5]*noise[5]*(1 / loop_weight);

[0089] Where loop_weight is the lap-loop constraint weight, which is a known adjustable parameter, and the inverse of cov is the information matrix.

[0090] It can be seen that the smaller the noise value, the larger the loop weight, the smaller the corresponding covariance (cov), and the larger the inverse of cov, i.e., the information matrix. This indicates that the reliability of the loop frame pairs in the loop constraint is higher. Conversely, the larger the noise value, the smaller the loop weight, the larger the corresponding covariance (cov), and the smaller the inverse of cov, i.e., the information matrix. This indicates that the reliability of the loop frame pairs in the loop constraint is lower.

[0091] Therefore, by determining the noise value in each loopback frame pair and adjusting the weights in the corresponding information matrix accordingly, the optimization efficiency and effect can be greatly improved.

[0092] Additionally, it should be noted that the reason why the diagonal values ​​of the covariance matrix cov are multiplied by two noise values ​​is mainly to avoid the situation where the elements in the information matrix are negative.

[0093] This application also provides a lidar mapping device 200, such as... Figure 2 As shown, a schematic diagram of a lidar mapping device according to an embodiment of this application is provided. The device 200 includes: a loop closure search unit 210, a point cloud matching unit 220, a first determination unit 230, and an optimization unit 240, wherein:

[0094] The loop closure search unit 210 is used to perform a loop closure search based on the current frame point cloud data when the current frame point cloud data of the lidar meets the preset loop closure search conditions, and obtain a loop closure search result, wherein the loop closure search result includes multiple loop closure frame pairs.

[0095] The point cloud matching unit 220 is used to perform point cloud matching on the corresponding point cloud data according to each loopback frame to obtain the point cloud matching result, the point cloud matching result including the matching pose confidence.

[0096] The first determining unit 230 is used to determine the noise value corresponding to each loopback frame pair based on the matching pose confidence of each loopback frame pair.

[0097] The optimization unit 240 is used to optimize the pose of the point cloud data of each frame based on the noise value corresponding to each loopback frame pair using a preset map optimization algorithm, so as to obtain a laser point cloud map based on the optimization results.

[0098] In one embodiment of this application, the apparatus further includes: a second determining unit, configured to determine whether the number of frames corresponding to the current frame point cloud data reaches a preset frame number threshold; if so, determine that the current frame point cloud data satisfies the preset loopback search condition; otherwise, determine that the current frame point cloud data does not satisfy the preset loopback search condition.

[0099] In one embodiment of this application, the loop closure search unit 210 is specifically used to: determine the candidate frame corresponding to the current frame based on the frame number corresponding to the current frame point cloud data; determine the distance between the current frame and the candidate frame based on the current frame point cloud data and the candidate frame point cloud data; and determine the loop closure frame pair based on the distance between the current frame and the candidate frame.

[0100] In one embodiment of this application, the loop closure search unit 210 is specifically used to: compare the distance between the current frame and the candidate frame with a preset distance threshold; if the distance between the current frame and the candidate frame is less than the preset distance threshold, then determine that the candidate frame and the current frame constitute the loop closure frame pair; otherwise, determine that the candidate frame and the current frame do not constitute the loop closure frame pair.

[0101] In one embodiment of this application, the first determining unit 230 is specifically used to: determine the noise value corresponding to each loopback frame pair based on the matching pose confidence of each loopback frame pair using a preset negative correlation strategy.

[0102] In one embodiment of this application, the apparatus further includes a storage unit for storing the matching pose, matching pose confidence, and keyframe identifier of each loopback frame pair, along with the corresponding noise value of each loopback frame pair, into a loopback container.

[0103] In one embodiment of this application, the optimization unit 240 is specifically used to: adjust the diagonal value of the information matrix in the preset map optimization algorithm according to the noise value corresponding to each loopback frame pair; construct loopback constraints based on the adjusted information matrix, and optimize the pose of each frame point cloud data using the loopback constraints to obtain the optimized pose of each frame point cloud data; and stitch together each frame point cloud data according to the optimized pose of each frame point cloud data to obtain the laser point cloud map.

[0104] It is understood that the above-described lidar mapping device can implement all the steps of the lidar mapping method provided in the foregoing embodiments. The relevant explanations of the lidar mapping method are applicable to the lidar mapping device and will not be repeated here.

[0105] Figure 3 This is a schematic diagram of the structure of an electronic device according to an embodiment of this application. Please refer to it. Figure 3At the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and memory. The memory may include main memory, such as high-speed random-access memory (RAM), or non-volatile memory, such as at least one disk drive. Of course, the electronic device may also include other hardware required for other business operations.

[0106] The processor, network interface, and memory can be interconnected via an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus, etc. This bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 3 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or one type of bus.

[0107] The memory is used to store programs. Specifically, the program may include program code, which includes computer operating instructions. The memory may include internal memory and non-volatile memory, and provides instructions and data to the processor.

[0108] The processor reads the corresponding computer program from non-volatile memory into main memory and then executes it, forming a LiDAR mapping device at the logical level. The processor executes the program stored in memory and specifically performs the following operations:

[0109] If the current frame point cloud data of the lidar meets the preset loop closure search conditions, a loop closure search is performed based on the current frame point cloud data to obtain a loop closure search result, which includes multiple loop closure frame pairs.

[0110] Point cloud matching is performed on the corresponding point cloud data according to each loopback frame to obtain point cloud matching results, including matching pose confidence.

[0111] Based on the matching pose confidence of each loopback frame pair, determine the noise value corresponding to each loopback frame pair;

[0112] Based on the noise values ​​corresponding to each loopback frame pair, the pose of each frame of point cloud data is optimized using a preset map optimization algorithm to obtain a laser point cloud map based on the optimization results.

[0113] The above application Figure 1 The method executed by the lidar mapping device disclosed in the illustrated embodiment can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by integrated logic circuits in the processor's hardware or by instructions in software form. The processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of this application can be directly manifested as execution by a hardware decoding processor, or execution by a combination of hardware and software modules in the decoding processor. The software module can reside in a mature storage medium in the field, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. This storage medium is located in memory, and the processor reads information from the memory and, in conjunction with its hardware, completes the steps of the above method.

[0114] The electronic device can also perform Figure 1 The method for executing a lidar mapping device, and the realization of the lidar mapping device in... Figure 1 The functions of the embodiments shown are not described in detail here.

[0115] This application also proposes a computer-readable storage medium that stores one or more programs, the programs including instructions that, when executed by an electronic device including multiple applications, enable the electronic device to perform... Figure 1 The method executed by the lidar mapping device in the illustrated embodiment is specifically used to perform the following:

[0116] If the current frame point cloud data of the lidar meets the preset loop closure search conditions, a loop closure search is performed based on the current frame point cloud data to obtain a loop closure search result, which includes multiple loop closure frame pairs.

[0117] Point cloud matching is performed on the corresponding point cloud data according to each loopback frame to obtain point cloud matching results, including matching pose confidence.

[0118] Based on the matching pose confidence of each loopback frame pair, determine the noise value corresponding to each loopback frame pair;

[0119] Based on the noise values ​​corresponding to each loopback frame pair, the pose of each frame of point cloud data is optimized using a preset map optimization algorithm to obtain a laser point cloud map based on the optimization results.

[0120] It will be understood by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0121] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as combinations of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowcharts and / or block diagrams. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0122] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0123] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1A step that specifies a function in one or more boxes.

[0124] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.

[0125] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0126] Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.

[0127] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.

[0128] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0129] The foregoing is merely an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should all be included within the scope of the claims of the present application.

Claims

1. A laser radar mapping method, wherein: The method comprises: When the current frame point cloud data of the laser radar meets the preset loop search condition, a loop search is performed based on the current frame point cloud data to obtain a loop search result, wherein the loop search result includes a plurality of loop frame pairs; Performing point cloud matching on corresponding point cloud data according to each loop frame to obtain a point cloud matching result, wherein the point cloud matching result includes a matching posture confidence; According to the matching pose confidences corresponding to each loop frame pair, the noise value corresponding to each loop frame pair is determined; Based on the noise value corresponding to each loop frame pair, the position and posture of each frame point cloud data are optimized using a preset graph optimization algorithm to obtain a laser point cloud map according to the optimization result; When the current frame point cloud data of the laser radar meets the preset loop search condition, a loop search is performed based on the current frame point cloud data to obtain the loop search result, including: Determine one or more candidate frames corresponding to the current frame according to the number of frames corresponding to the current frame point cloud data and a preset frame number threshold, wherein the preset frame number threshold is used to determine whether the current frame point cloud data satisfies a preset loop search condition; Determine the distance between the current frame and the candidate frame according to the current frame point cloud data and the candidate frame point cloud data; The loop frame pair is determined according to the distance between the current frame and the candidate frame.

2. The method of claim 1, wherein: When the current frame point cloud data of the laser radar meets the preset loop search condition, a loop search is performed based on the current frame point cloud data, and before obtaining the loop search result, the method further includes: Determine whether the number of frames corresponding to the current frame point cloud data reaches a preset frame number threshold; If yes, determining that the current frame point cloud data satisfies the preset loop search condition; Otherwise, it is determined that the current frame point cloud data does not satisfy the preset loop search condition.

3. The method of claim 1, wherein: The determining the loop frame pair according to the distance between the current frame and the candidate frame comprises: Comparing the distance between the current frame and the candidate frame with a preset distance threshold; If the distance between the current frame and the candidate frame is less than the preset distance threshold, determining that the candidate frame and the current frame constitute the loop frame pair; Otherwise, it is determined that the candidate frame and the current frame do not constitute the loop frame pair.

4. The method of claim 1, wherein: Determining the noise value corresponding to each loop frame pair according to the matching pose confidence corresponding to each loop frame pair includes: According to the matching pose confidence corresponding to each loop frame pair, the noise value corresponding to each loop frame pair is determined using a preset negative correlation strategy.

5. The method of claim 1, wherein: After determining the noise value corresponding to each loop frame pair according to the matching pose confidence corresponding to each loop frame pair, the method further includes: The matching pose of each loop frame pair, the matching pose confidence, the key frame identifier of each loop frame pair, and the noise value corresponding to each loop frame pair are stored in the loop container.

6. The method of claim 1, wherein: The method of optimizing the position and posture of each frame of point cloud data based on the noise value corresponding to each loop frame pair by using a preset graph optimization algorithm to obtain a laser point cloud map according to the optimization result includes: According to the noise values ​​corresponding to each loop frame pair, the diagonal values ​​of the information matrix in the preset graph optimization algorithm are adjusted; Constructing a loop constraint based on the adjusted information matrix, and optimizing the pose of each frame of point cloud data using the loop constraint to obtain an optimized pose of each frame of point cloud data; The point cloud data of each frame is spliced ​​according to the optimized posture of each frame of point cloud data to obtain the laser point cloud map.

7. A laser radar mapping device, wherein: The device comprises: A loop search unit, configured to perform a loop search based on the current frame point cloud data when the current frame point cloud data of the laser radar meets a preset loop search condition, and obtain a loop search result, wherein the loop search result includes a plurality of loop frame pairs; A point cloud matching unit is used to perform point cloud matching on corresponding point cloud data according to each loop frame to obtain a point cloud matching result, wherein the point cloud matching result includes a matching pose confidence; A first determining unit is used to determine the noise value corresponding to each loop frame pair according to the matching posture confidence corresponding to each loop frame pair; An optimization unit, used for optimizing the position and posture of each frame of point cloud data by using a preset graph optimization algorithm based on the noise value corresponding to each loop frame pair, so as to obtain a laser point cloud map according to the optimization result; The loop search unit is specifically used for: Determine one or more candidate frames corresponding to the current frame according to the number of frames corresponding to the current frame point cloud data and a preset frame number threshold, wherein the preset frame number threshold is used to determine whether the current frame point cloud data satisfies a preset loop search condition; Determine the distance between the current frame and the candidate frame according to the current frame point cloud data and the candidate frame point cloud data; The loop frame pair is determined according to the distance between the current frame and the candidate frame.

8. An electronic device comprising: processor; as well as A memory arranged to store computer executable instructions, which when executed cause the processor to perform the method of any one of claims 1 to 6.

9. A computer-readable storage medium storing one or more programs, which, when executed by an electronic device including a plurality of application programs, causes the electronic device to execute any one of the methods of claims 1 to 6.