A laser mapping method based on a Windows system and a related device

By constructing a Hessian-like matrix and performing eigenvalue decomposition and information matrix adjustment, combined with virtual topological edge optimization, the problem of positioning drift in long-distance mapping scenarios of traditional laser inertial odometry systems is solved, and the point cloud map is closed at both ends and outputs globally consistent.

CN123181751APending Publication Date: 2026-11-27WUHAN LINGYING TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611067423.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-17
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In long-distance mapping scenarios with simple geometric features, such as tunnels and long corridors, traditional laser inertial odometry systems suffer from insufficient effective constraints in point cloud matching, leading to accumulated positioning drift and an inability to achieve map merging at both ends, thus failing to meet the requirements of professional surveying engineering for consistent coordinate results.

Method used

By reading offline point cloud and IMU data, edge features and planar features are extracted, a Hessian-like matrix is ​​constructed and eigenvalue decomposition is performed, the weights of the information matrix are adjusted, virtual topological edges are established and backend factor graph optimization is performed, and the relative transformation matrix calculation and pose correction of the first and last nodes are realized.

Benefits of technology

It achieves the closure of the beginning and end of the long-distance point cloud map and the output of global consistency, reducing the impact of long-term accumulated errors on map consistency, and is suitable for large-scale offline laser mapping scenarios such as tunnels and underground pipe corridors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123181751A_ABST
    Figure CN123181751A_ABST
Patent Text Reader

Abstract

The application discloses a laser mapping method based on a Windows system and a related device, and is used for realizing the head-tail closure and global consistency output of long-distance surveying and mapping point cloud maps. The application comprises the following steps: reading offline point clouds, dividing point cloud spaces for each frame of offline point clouds, and extracting point cloud features in all point cloud spaces in parallel; constructing a feature matrix based on an original pose state, point cloud features and a preset observation information matrix, performing eigenvalue decomposition on the feature matrix, extracting a minimum eigenvalue and a minimum eigenvector; if the minimum eigenvalue is lower than a preset safety threshold value, adjusting the weight of the original information matrix according to the minimum eigenvector to obtain an information matrix; establishing a virtual topological edge between the starting node and the terminal node of a rear-end factor graph, registering the corresponding neighborhood point clouds of the starting node and the terminal node to obtain a relative transformation matrix; optimizing the pose node; correcting the offline point clouds according to the pose node, and outputting a closed point cloud.
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 laser mapping method and related apparatus based on a Windows system. Background Technology

[0002] In the field of 3D real-scene mapping, the fusion of LiDAR and inertial measurement units is the core technological path for acquiring high-precision spatial information. Simultaneous localization and mapping (SLAM) technology, as the core foundation of this field, can achieve high-precision digital reconstruction of external scenes by estimating sensor motion trajectories and simultaneously constructing a 3D structural model of the environment.

[0003] Current traditional laser inertial odometry (LIGO) systems extract point cloud edges and planar features at the front end to solve nonlinear residual equations, incrementally outputting the local relative pose of the current frame. The back end incorporates the LIGO pose and IMU pre-integration as factors into a factor map for joint optimization, relying on local point cloud overlap within a 15-meter radius to trigger ICP matching for loop closure detection. However, in long-distance mapping scenarios with simple geometric features, such as tunnels and long corridors, the effective constraints provided by point cloud matching are severely insufficient. This causes the minimum eigenvalue of the Hessian matrix to approach zero, gradually rendering the algorithm's local positioning capability ineffective and resulting in continuous positioning drift. As long-distance mapping operations extend over tens of kilometers, pose deviations accumulate, eventually causing the coordinate deviation between the first and last frames of the map to reach tens of meters, far exceeding the convergence radius of the ICP algorithm. This renders the original local loop closure detection mechanism completely ineffective, ultimately leading to the problem of long-distance mapping maps failing to align at both ends, completely failing to meet the basic requirements of professional surveying engineering for coordinate consistency. Summary of the Invention

[0004] This application discloses a laser mapping method and related apparatus based on a Windows system, which is used to achieve the closure of the beginning and end of a long-distance point cloud map and the output of global consistency.

[0005] In a first aspect, this application discloses a laser mapping method based on a Windows system, including:

[0006] Read offline point cloud and IMU data, divide the offline point cloud into point cloud space for each frame, and extract point cloud features in all the point cloud space in parallel. The point cloud features include edge features and planar features. Based on the original pose state, the point cloud features, and the preset observation information matrix, a Hessian-like matrix is ​​constructed, and the Hessian-like matrix is ​​decomposed into eigenvalues ​​to extract the minimum eigenvalue and the minimum eigenvector. If the minimum eigenvalue is lower than a preset safety threshold, the original information matrix is ​​weighted according to the minimum eigenvector to obtain an information matrix. The original information matrix is ​​a reverse measure of the uncertainty formed by the IMU measurement noise during the integral propagation process. When the graph construction process reaches the end, in response to the forced closure command, a virtual topological edge is established between the start node and the end node of the back-end factor graph. Based on the neighborhood point cloud corresponding to the start node and the end node, registration is performed to obtain the relative transformation matrix. The virtual topological edge is updated according to the relative transformation matrix, and the pose nodes in the back-end factor graph are optimized using the information matrix and the updated virtual topological edge. The offline point cloud is pose corrected based on the optimized pose nodes, and a closed point cloud is output.

[0007] Optionally, the step of constructing a Hessian-like matrix based on the original pose state, the point cloud features, and a preset observation information matrix includes: Based on the edge features and the planar features, establish a point-to-line residual model and a point-to-plane residual model respectively; Based on the original pose state, the point-to-line residual model, and the point-to-plane residual model, the residual Jacobian matrix is ​​calculated. Based on the residual Jacobian matrix and the preset observation information matrix, a Hessian-like matrix is ​​constructed, which is a six-dimensional Gaussian-Newton Hessian matrix.

[0008] Optionally, the step of performing eigenvalue decomposition on the Hessian-like matrix to extract the minimum eigenvalue and the minimum eigenvector includes: The Hessian-like matrix is ​​converted into a diagonal matrix, and several eigenvalues ​​and corresponding eigenvectors are calculated based on the diagonal matrix. Extract the minimum eigenvalue and the minimum eigenvector corresponding to the minimum eigenvalue from the eigenvalues.

[0009] Optionally, the step of adjusting the weights of the original information matrix based on the minimum eigenvector to obtain the information matrix includes: Obtain the IMU pre-integration factor from the back-end factor graph and extract the original information matrix of the IMU pre-integration factor; A direction compensation matrix is ​​constructed based on the minimum eigenvector, and the direction compensation matrix is ​​superimposed on the original information matrix to obtain the information matrix.

[0010] Optionally, when the graph construction process reaches the end, in response to a forced closure command, establishing a virtual topological edge between the starting and ending nodes of the back-end factor graph includes: When the graph construction process reaches the end, in response to the forced closure command, the memory address of the start node and the memory address of the end node are extracted from the backend factor graph through the factor graph manager. The relative odometer factor structure is constructed through the factor graph manager, and the relative odometer factor structure is a graph data structure carrier with virtual topological edges; The node pointers of the relative odometer factor structure are respectively pointed to the memory addresses of the starting node and the ending node to establish a non-local connection relationship.

[0011] Optionally, the registration based on the neighborhood point clouds corresponding to the starting node and the ending node to obtain the relative transformation matrix includes: Extract the neighborhood point cloud corresponding to the starting node as the starting local map, and simultaneously extract the neighborhood point cloud corresponding to the ending node as the ending local map. The initial pose alignment result is obtained by performing global coarse registration on the starting point local map and the ending point local map through local feature matching. The initial attitude alignment result is finely registered using the point-to-surface ICP algorithm to obtain the relative transformation matrix between the starting local map and the ending local map. The relative transformation matrix represents the absolute closure difference between the starting node and the ending node in the real physical space.

[0012] Optionally, when the mapping process reaches the end, in response to a forced closure command, a virtual topological edge is established between the starting and ending nodes of the back-end factor graph. Before registration is performed based on the neighborhood point clouds corresponding to the starting and ending nodes to obtain the relative transformation matrix, the laser mapping method further includes: When the total number of solved frames of the offline point cloud equals the total number of frames of the offline point cloud, it is determined that the current mapping process has reached its end.

[0013] Secondly, this application provides a laser mapping device based on a Windows system, comprising: The reading unit is used to read offline point cloud and IMU data, divide the offline point cloud into point cloud space for each frame of the offline point cloud, and extract point cloud features in all the point cloud space in parallel. The point cloud features include edge features and planar features. The construction unit is used to construct a Hessian-like matrix based on the original pose state, the point cloud features, and the preset observation information matrix, and to perform eigenvalue decomposition on the Hessian-like matrix to extract the minimum eigenvalue and the minimum eigenvector. The weight adjustment unit is used to adjust the weight of the original information matrix according to the minimum eigenvector if the minimum eigenvalue is lower than a preset safety threshold, so as to obtain an information matrix. The original information matrix is ​​a reverse measure of the uncertainty formed by the IMU measurement noise during the integral propagation process. The processing unit is used to respond to the forced closure command when the graph construction process reaches the end, establish a virtual topological edge between the start node and the end node of the back-end factor graph, and perform registration based on the neighborhood point cloud corresponding to the start node and the end node to obtain the relative transformation matrix. An update and optimization unit is used to update the virtual topological edge according to the relative transformation matrix, and to optimize the pose nodes in the back-end factor graph using the information matrix and the updated virtual topological edge. The correction output unit is used to correct the pose of the offline point cloud based on the optimized pose nodes and output a closed point cloud.

[0014] Optionally, the laser mapping device may also include: The determination unit is used to determine that the current mapping process has reached its end when the total number of solved frames of the offline point cloud in real time is equal to the total number of frames of the offline point cloud.

[0015] Thirdly, this application also provides a laser mapping device based on a Windows system, comprising: Processor, memory, input / output units, and bus; The processor is connected to memory, input / output units, and a bus; The memory stores a program, which the processor calls to execute, such as the first aspect and any optional laser mapping method of the first aspect.

[0016] The fourth aspect of this application provides a computer-readable storage medium on which a program is stored, which, when executed on a computer, performs the laser mapping method as described in the first aspect and any optional method of the first aspect.

[0017] As can be seen from the above technical solutions, the embodiments of this application have the following advantages: By reading offline point cloud and IMU data, each frame of offline point cloud is spatially partitioned, and edge and planar features are extracted in parallel to provide stable point cloud feature data for subsequent processing. A Hessian-like matrix is ​​constructed based on the original pose state, point cloud features, and observation information matrix. The minimum eigenvalue and minimum eigenvector are obtained through eigenvalue decomposition, directly analyzing the current geometric constraints during pose estimation and providing a basis for adjusting the subsequent information matrix.

[0018] When the minimum eigenvalue is lower than a preset safety threshold, the weights of the original information matrix are adjusted based on the minimum eigenvector. IMU pre-integration information is then used in the backend optimization process, allowing the information matrix to re-participate in pose constraints in conjunction with the current degradation direction, thus mitigating the problem of continuous drift accumulation caused by insufficient constraint information. After graph construction, virtual topological edges are established between the start and end nodes of the backend factor graph. The relative transformation matrix is ​​then calculated using the neighborhood points corresponding to the start and end nodes, establishing a direct closed-loop constraint relationship between the start and end nodes.

[0019] By combining the information matrix with the updated virtual topology edges in the backend factor graph optimization, and after uniformly optimizing all pose nodes, the offline point cloud is pose corrected and a closed point cloud is output. This allows the overall map pose to be readjusted according to the new constraints, enabling integrated processing of the beginning and end trajectories in long-distance mapping and reducing the impact of long-term accumulated errors on the ground. Figure 1 This reduces the impact of uniformity, making it more suitable for large-scale offline laser mapping scenarios such as tunnels, underground utility tunnels, and long-distance roads. Attached Figure Description

[0020] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0021] Figure 1 A flowchart illustrating the Windows-based laser mapping method provided in this application; Figure 2 A flowchart illustrating the process of constructing a Hessian matrix and extracting eigenvalues ​​and eigenvectors provided in this application; Figure 3 A flowchart illustrating the process of obtaining the information matrix provided in this application; Figure 4 This application provides a schematic diagram of the process for constructing virtual topological edges; Figure 5 A flowchart illustrating the process of obtaining the relative transformation matrix provided in this application; Figure 6 A schematic diagram of the Windows-based laser mapping device provided in this application; Figure 7 Another schematic diagram of the Windows-based laser mapping device provided in this application. Detailed Implementation

[0022] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.

[0023] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.

[0024] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0025] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."

[0026] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0027] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not an embodiment," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0028] Based on this, this application discloses a laser mapping method and related apparatus based on a Windows system, which is used to achieve the closure of the beginning and end of a long-distance point cloud map and the output of global consistency.

[0029] The technical solutions of this application will be clearly and completely described below with reference to the accompanying drawings of the embodiments. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0030] The method of this application can be applied to servers, devices, terminals, or other devices with logical processing capabilities; therefore, this application does not limit its application. For ease of description, the following description uses a system as the executing entity.

[0031] Please see Figure 1 This application provides an embodiment of a laser mapping method based on a Windows system, including: 101. Read offline point cloud and IMU data, divide the point cloud space for each frame of offline point cloud, and extract the point cloud features in all point cloud spaces in parallel. The point cloud features include edge features and planar features. The system reads pre-collected and stored offline point cloud and IMU data, and matches the two types of data according to timestamps, so that each frame of offline point cloud and the corresponding IMU data form a unified data frame. Then, using each frame of offline point cloud as the processing object, the point cloud is divided into multiple point cloud spaces according to spatial location, and each point cloud space contains point cloud data within the corresponding region.

[0032] Under the Windows system, the point cloud space is allocated to different processing tasks to perform point cloud feature extraction synchronously. The degree of geometric change is calculated based on the spatial distribution of each point in the local neighborhood. Points with large geometric changes are extracted as edge features, and points with small geometric changes and satisfying the planar distribution characteristics are extracted as planar features, thus completing the point cloud feature extraction of the offline point cloud of the current frame.

[0033] 102. Based on the original pose state, point cloud features and the preset observation information matrix, construct a Hessian-like matrix, and perform eigenvalue decomposition on the Hessian-like matrix to extract the minimum eigenvalue and the minimum eigenvector. The system acquires the original pose state corresponding to the current frame and establishes a geometric correspondence between the current frame and a preset reference point cloud using point cloud features. Edge features are used to construct a straight-line residual model, and planar features are used to construct a point-to-plane residual model. The reference point cloud is a fusion of local point clouds from multiple historical frames. A set of point clouds from multiple frames that have completed feature extraction and preliminary pose calculation is cached in a sliding window manner and used as the point cloud matching constraint benchmark for the current frame.

[0034] The observation residuals are established based on the linear residual model and the point-to-plane residual model. The relationship between each residual model and the pose state is calculated by combining the preset observation information matrix. The calculation results are accumulated to form a Hessian-like matrix corresponding to the current pose state.

[0035] After constructing the Hessian-like matrix, perform eigenvalue decomposition on the Hessian-like matrix to obtain multiple eigenvalues ​​and their corresponding eigenvectors. Select the eigenvalue with the smallest value and its corresponding smallest eigenvector as the data input for subsequent processing.

[0036] 103. If the minimum eigenvalue is lower than the preset safety threshold, the weight of the original information matrix is ​​adjusted according to the minimum eigenvector to obtain the information matrix. The original information matrix is ​​the inverse measure of the uncertainty formed by the IMU measurement noise during the integral propagation process. The minimum eigenvalue is compared with a preset safety threshold. When the minimum eigenvalue is lower than the safety threshold, the corresponding IMU pre-integration factor is obtained from the constructed back-end factor graph, and the original information matrix associated with the IMU pre-integration factor is read. The original information matrix is ​​used to describe the uncertainty constraints formed by the IMU measurement noise during the integration propagation process.

[0037] Then, the direction represented by the smallest eigenvector is used as the weight adjustment direction to adjust the corresponding elements of the original information matrix, generating a new information matrix. The new information matrix then replaces the original information matrix in the subsequent optimization calculation of the backend factor graph.

[0038] 104. When the graph construction process reaches the end, respond to the forced closure command, establish a virtual topological edge between the start node and the end node of the back-end factor graph, and perform registration based on the neighborhood point cloud corresponding to the start node and the end node to obtain the relative transformation matrix. As the offline point cloud completes the mapping process frame by frame, when the data is processed to the last frame, a forced closure instruction is received from the user interface or control program. Based on the instruction, the start node and end node are located in the backend factor graph, and a corresponding virtual topological edge is created between the two nodes.

[0039] Then, the neighborhood point clouds within the corresponding ranges of the starting node and the ending node are extracted respectively, and the correspondence between the two parts of the neighborhood point clouds is established. The positional and orientation relationships between the two parts of the neighborhood point clouds are calculated through point cloud registration. Finally, a relative transformation matrix describing the spatial relationship between the starting node and the ending node is generated, which provides a data foundation for subsequent updates of the virtual topology edges.

[0040] 105. Update the virtual topological edges according to the relative transformation matrix, and optimize the pose nodes in the back-end factor graph using the information matrix and the updated virtual topological edges; After obtaining the relative transformation matrix, write the relative transformation matrix into the virtual topological edge so that the virtual topological edge contains the spatial constraint information between the start node and the end node. At the same time, read the information matrix generated in the previous step 103 and add the information matrix as the data parameter of the corresponding constraint to the backend factor graph.

[0041] Meanwhile, the updated virtual topology edges and the existing pose nodes and connections between nodes in the backend factor graph are used together in the optimization calculation. During the optimization process, the state parameters of each pose node are continuously updated according to the constraint relationship between each pose node, and iterative calculation is continuously performed until the preset termination condition is met, and the optimization results corresponding to each pose node are output.

[0042] 106. Correct the pose of the offline point cloud based on the optimized pose nodes and output a closed point cloud.

[0043] Read the state of each pose node after the backend factor graph optimization is completed, and obtain the corresponding optimized pose parameters frame by frame according to the correspondence between the offline point cloud and the pose node.

[0044] The optimized pose nodes output from the backend factor map are read, and each frame of offline point cloud is processed according to the association between each pose node and the corresponding offline point cloud. For each frame of offline point cloud, the coordinate transformation relationship is calculated based on the pose parameters of the corresponding pose node, and all points in the offline point cloud are transformed to a unified coordinate system. Subsequently, the pose correction of all point cloud data is performed sequentially according to the time order of the offline point cloud, and the corrected frames of offline point cloud are stitched and fused to generate complete point cloud map data. Finally, the generated point cloud map is output as a closed point cloud.

[0045] In this embodiment, by reading offline point cloud and IMU data, each frame of offline point cloud is spatially partitioned and edge and planar features are extracted in parallel to provide stable point cloud feature data for subsequent processing. A Hessian-like matrix is ​​constructed based on the original pose state, point cloud features, and observation information matrix. The minimum eigenvalue and minimum eigenvector are obtained through eigenvalue decomposition. This directly analyzes the current geometric constraints during pose estimation, providing a basis for adjusting the subsequent information matrix.

[0046] When the minimum eigenvalue is lower than a preset safety threshold, the weights of the original information matrix are adjusted based on the minimum eigenvector. IMU pre-integration information is then used in the backend optimization process, allowing the information matrix to re-participate in pose constraints in conjunction with the current degradation direction, thus mitigating the problem of continuous drift accumulation caused by insufficient constraint information. After graph construction, virtual topological edges are established between the start and end nodes of the backend factor graph. The relative transformation matrix is ​​then calculated using the neighborhood points corresponding to the start and end nodes, establishing a direct closed-loop constraint relationship between the start and end nodes.

[0047] By combining the information matrix with the updated virtual topology edges in the backend factor graph optimization, and after uniformly optimizing all pose nodes, the offline point cloud is pose corrected and a closed point cloud is output. This allows the overall map pose to be readjusted according to the new constraints, enabling integrated processing of the beginning and end trajectories in long-distance mapping and reducing the impact of long-term accumulated errors on the ground. Figure 1 This reduces the impact of uniformity, making it more suitable for large-scale offline laser mapping scenarios such as tunnels, underground utility tunnels, and long-distance roads.

[0048] As an optional implementation, in order to determine whether the mapping process has reached the end, after the offline point cloud of each frame is solved, it is necessary to perform real-time statistics on the offline point cloud that has been solved, and determine the current mapping process progress based on the statistical results.

[0049] Before mapping begins, the offline point cloud is pre-analyzed to obtain the total number of frames contained in the offline point cloud, and this total number of frames is saved as the total number of offline point cloud frames. During mapping, after the pose calculation and corresponding data processing of each frame of the offline point cloud are completed, the current frame is marked as completed, and the number of frames that have been completed is accumulated into the calculation frame counter to form the real-time statistical total number of offline point cloud calculation frames.

[0050] Next, the total number of offline point cloud resolution frames is compared with the total number of offline point cloud frames. When they are equal, it is determined that all offline point clouds have completed mapping processing, and the current mapping process has reached its end. When they are not equal, the next offline point cloud frame is read and the corresponding mapping processing is performed. For example, when the total number of offline point cloud frames is 100, and the total number of offline point cloud resolution frames accumulated in real time reaches 100, it is determined that the current mapping process has reached its end, and the subsequent processing flow begins.

[0051] Please see Figure 2 This application provides an embodiment for constructing a Hessian-like matrix and extracting eigenvalues ​​and eigenvectors, including: 201. Establish point-to-line residual models and point-to-plane residual models based on edge features and planar features, respectively; Obtain edge features and planar features from the offline point cloud of the current frame, and search for reference features corresponding to each point cloud feature in the reference point cloud.

[0052] For edge features, the reference line corresponding to the edge feature is used as the constraint object. The distance between the edge feature and the reference line is calculated, and a point-to-line residual model is established. For planar features, the reference plane corresponding to the planar feature is used as the constraint object. The distance between the planar feature and the reference plane is calculated, and a point-to-plane residual model is established. The reference line is obtained by fitting multiple adjacent edge features from the reference point cloud, and the reference plane is obtained by fitting multiple adjacent planar features from the reference point cloud.

[0053] 202. Based on the original pose state, the point-to-line residual model and the point-to-plane residual model, the residual Jacobian matrix is ​​calculated. Obtain the original pose state of each point in the current offline point cloud, and substitute the original pose state as the variable to be optimized into the point-to-line residual model and the point-to-plane residual model respectively. Use each residual model to calculate the derivative of the original pose state of each point.

[0054] The original pose state includes translation and rotation parameters; therefore, the residual Jacobian matrix is ​​used to represent the relationship between each residual and the translation and rotation parameters. After completing the derivative calculation for each point, the derivative results corresponding to all edge features and the derivative results corresponding to planar features are combined according to the correspondence to form the residual Jacobian matrix corresponding to the offline point cloud of the current frame. The residual Jacobian matrix is ​​then used as input data for subsequently constructing a Hessian-like matrix.

[0055] 203. Based on the residual Jacobian matrix and the preset observation information matrix, construct a Hessian-like matrix, which is a six-dimensional Gaussian-Newton Hessian matrix.

[0056] Obtain the residual Jacobian matrix and the preset observation information matrix, and perform matrix operations on them according to the Gauss-Newton optimization process. The observation information matrix represents the weight relationship corresponding to different observation data. During the matrix operation, the residual Jacobian matrix and the observation information matrix are weighted and accumulated, and then combined with the transpose of the residual Jacobian matrix to generate a Hessian-like matrix. Since the original pose state includes three translation parameters and three rotation parameters, the Hessian-like matrix corresponds to six state variables, forming a six-dimensional Gauss-Newton Hessian matrix. After the calculation is completed, the Hessian-like matrix is ​​saved as the input matrix for subsequent eigenvalue decomposition.

[0057] 204. Convert the Hessian-like matrix into a diagonal matrix, and calculate several eigenvalues ​​and their corresponding eigenvectors based on the diagonal matrix; Obtain the Hessian-like matrix and perform an orthogonal transformation on it according to the matrix eigenvalue decomposition process, so that the Hessian-like matrix is ​​gradually transformed into a diagonal matrix.

[0058] During matrix transformation, off-diagonal elements in the Hessian-like matrix are eliminated through continuous iteration, while the corresponding diagonal elements are retained. After the Hessian-like matrix is ​​diagonalized, the corresponding eigenvalues ​​are calculated based on the obtained diagonal matrix. Simultaneously, based on the transformation relationships accumulated during the matrix transformation process, the eigenvectors corresponding to each eigenvalue are calculated, establishing a one-to-one correspondence between each eigenvalue and its corresponding eigenvector, thus forming all eigenvalues ​​and all eigenvectors corresponding to the current Hessian-like matrix.

[0059] 205. Extract the minimum eigenvalue and the minimum eigenvector corresponding to the minimum eigenvalue.

[0060] Obtain all eigenvalues ​​and their corresponding eigenvectors, sort them according to their numerical values, and determine the smallest value in the sorted results as the smallest eigenvalue.

[0061] Simultaneously, based on the correspondence between eigenvalues ​​and eigenvectors, the eigenvector corresponding to the minimum eigenvalue is located, and this eigenvector is extracted as the minimum eigenvector. After extraction, the minimum eigenvalue and minimum eigenvector are saved to the data structure corresponding to the current mapping process, for later use when adjusting the original information matrix based on the minimum eigenvector.

[0062] In this embodiment, point-to-line residual models and point-to-plane residual models are constructed based on edge features and planar features, respectively. This fully adapts to the geometric feature distribution characteristics of structured, narrow scenes, providing a complete and effective residual observation foundation for subsequent pose solving and avoiding the problem of missing constraint dimensions in a single residual model. The residual Jacobian matrix is ​​solved based on the original pose state and the two types of residual models. This accurately characterizes the gradient relationship of each dimension of the residual with respect to the sensor pose change, quantifies the influence of feature residuals on translation and rotation pose parameters, and provides reliable data support for matrix construction. A six-dimensional Gaussian-Newton-like Hessian matrix is ​​constructed by combining the Jacobian matrix and the observation information matrix, fully integrating point cloud observation constraints and measurement noise weight information, mapping the constraint strength and reliability of pose optimization in the current scene.

[0063] By solving all eigenvalues ​​and eigenvectors through matrix diagonalization and accurately extracting the minimum eigenvalue and its corresponding minimum eigenvector, the motion dimension with the weakest constraint and the most prone to drift in the surveying scene can be accurately identified. The direction of pose optimization failure can be accurately located, providing a core judgment basis for subsequent adaptive adjustment of information matrix weights and compensation for weak constraint dimensions.

[0064] Please see Figure 3 This application provides an embodiment for obtaining an information matrix, including: 301. Obtain the IMU pre-integration factor in the back-end factor graph and extract the original information matrix of the IMU pre-integration factor; After completing the eigenvalue decomposition of the Hessian-like matrix, when the minimum eigenvalue is lower than a preset safety threshold, the current backend factor graph is accessed, and the corresponding IMU pre-integration factor is located according to the connection relationship between the current pose node and the previous pose node. The IMU pre-integration factor is used to record the motion constraint information obtained by integrating IMU data between adjacent pose nodes, and it contains the corresponding original information matrix.

[0065] After locating the IMU pre-integration factor, the original information matrix is ​​extracted from it. The original information matrix stores the weight data corresponding to each degree of freedom in matrix form, and its matrix dimension is consistent with the pose state dimension.

[0066] 302. Construct a direction compensation matrix based on the smallest eigenvector, and then superimpose the direction compensation matrix onto the original information matrix to obtain the information matrix.

[0067] Obtain the minimum eigenvector extracted in the preceding steps, and perform matrix operations on the minimum eigenvector to construct a direction compensation matrix with the same dimensions as the original information matrix. The direction compensation matrix is ​​calculated from the minimum eigenvector and its transpose, and the values ​​of each matrix element are determined by combining preset compensation parameters. For example, when the pose state is represented using six degrees of freedom, the minimum eigenvector is a six-dimensional column vector, and the direction compensation matrix corresponds to a sixth-order square matrix.

[0068] After constructing the orientation compensation matrix, the orientation compensation matrix and the original information matrix are superimposed on each other according to their corresponding elements to generate an information matrix. The generated information matrix is ​​then used to replace the data content corresponding to the original information matrix, which serves as the constraint parameter for the corresponding IMU pre-integration factor in the subsequent backend factor graph optimization process.

[0069] In this embodiment, by extracting the original information matrix corresponding to the IMU pre-integration factor in the back-end factor graph, the uncertainty weight benchmark of the IMU measurement noise during the integration propagation process is accurately obtained. This original information matrix can truly reflect the inherent measurement accuracy and error distribution characteristics of the sensor, providing basic parameters for the hardware measured state for subsequent matrix compensation optimization. A direction compensation matrix is ​​constructed based on the minimum eigenvector and superimposed on the original information matrix to complete the adaptive weight correction. The minimum eigenvector accurately corresponds to the motion dimension with the weakest scene constraints and the greatest likelihood of pose drift. The compensation matrix constructed based on it can specifically strengthen the weights of the weakly constrained and failed dimensions.

[0070] Please see Figure 4 This application provides an embodiment for constructing virtual topological edges, including: 401. When the graph construction process reaches the end, respond to the forced closure command and extract the memory address of the start node and the memory address of the end node from the backend factor graph through the factor graph manager. When the mapping process reaches the end and receives the forced closure instruction, the factor graph manager is started to search all pose nodes in the backend factor graph according to the node index. The pose node generated at the beginning of mapping is determined as the starting node, and the pose node generated at the end of mapping is determined as the ending node.

[0071] Based on the node indices corresponding to the start and end nodes, their memory locations are read, and the memory addresses of the start and end nodes are extracted. For example, when the first pose node in the backend factor graph corresponds to the graph construction start point and the last pose node corresponds to the graph construction end point, the factor graph manager obtains the corresponding memory addresses for both and saves the extracted memory addresses of the start and end nodes into the current closed-loop processing flow for use when establishing virtual topology edges later.

[0072] 402. Construct a relative odometer factor structure using the factor graph manager. The relative odometer factor structure is a graph data structure carrier with virtual topological edges. After extracting the memory addresses of the starting and ending nodes, a relative odometer factor structure is created in memory using the factor graph manager. This relative odometer factor structure serves as the data structure carrier in the backend factor graph, describing the constraint relationships between nodes. Internally, it reserves data members for storing node pointers, constraint information, and related parameters.

[0073] After creating the relative odometry factor structure, its data members are initialized. Data members related to node connections are kept idle, while data members related to constraint information retain their initial configuration, without writing the relative transformation relationship between the start and end nodes. Then, the initialized relative odometry factor structure is synchronized to the dataset maintained by the factor graph manager.

[0074] 403. Establish a non-local connection relationship by pointing the node pointers of the relative odometer factor structure to the memory addresses of the starting node and the ending node, respectively.

[0075] Read the already created relative odometer factor structure and obtain the node pointer members that represent the two ends of the constraint. Write one node pointer to the memory address of the starting node and the other node pointer to the memory address of the ending node, thus establishing an association between the relative odometer factor structure and the starting and ending nodes, respectively.

[0076] Since the starting node is located at the beginning of the mapping phase and the ending node is located at the end of the mapping phase, there is no continuous temporal adjacency between them. Therefore, after completing the node pointer association, a non-local connection relationship is established between the relative odometer factor structures across the entire mapping process. After completing the node connection, the relative odometer factor structure containing the node pointer information is added as a virtual topological edge to the data structure of the backend factor graph.

[0077] In this embodiment, a forced closure command is responded to at the end of the mapping process. The memory addresses of the start and end nodes of the backend factor graph are accurately extracted through the factor graph manager, which can directly lock the first and last key constraint nodes of the global mapping trajectory, providing a reliable node foundation for the construction of long-distance global closed-loop constraints. The relative odometry factor structure is constructed through the factor graph manager and used as the carrier of virtual topological edges. This can be adapted to the overall optimization architecture of the factor graph, realizing the standardized and structured access of virtual closed-loop constraints.

[0078] By binding the memory addresses of the first and last nodes to node pointers, a non-local topological connection relationship across the global scope is established. This can force the construction of a closed-loop constraint link between the first and last nodes under conditions of large distance deviation and no local point cloud overlap, providing effective topological constraint support for subsequent registration of the first and last point clouds, pose correction and global optimization.

[0079] Please see Figure 5 This application provides an embodiment for obtaining a relative transformation matrix, including: 501. Extract the neighborhood point cloud corresponding to the starting node as the starting local map, and at the same time extract the neighborhood point cloud corresponding to the ending node as the ending local map. After establishing the virtual topology edges, the neighboring point clouds corresponding to the starting node and the ending node are read from the offline point cloud, respectively, using the starting node and the ending node as centers. The neighboring point clouds can be extracted according to a preset time range or spatial range. For example, several consecutive frames of offline point clouds can be extracted using the starting node and the ending node as centers, or offline point cloud data located within a preset spatial range can be extracted.

[0080] After extracting the neighborhood point cloud, based on the pose relationships of the offline point clouds in each frame, the offline point clouds belonging to the same region are sequentially transformed to a unified coordinate system and then stitched together to form a starting point local map and an ending point local map. After the local maps are constructed, the starting point local map and the ending point local map are used as data inputs for subsequent registration processing.

[0081] 502. Perform global coarse registration on the starting point local map and the ending point local map through local feature matching to obtain the initial pose alignment result; Read the starting point local map and the ending point local map, perform local feature extraction on the two local maps respectively, and then select the corresponding feature point pairs with the highest similarity in the two sets of maps. Through the spatial position mapping relationship of the feature point pairs, calculate the preliminary rotation parameters and translation parameters between the starting point local map and the ending point local map, complete the global coarse registration, and obtain the initial pose alignment result.

[0082] 503. The initial attitude alignment result is finely registered using the point-to-surface ICP algorithm to obtain the relative transformation matrix between the starting local map and the ending local map. The relative transformation matrix represents the absolute closure difference between the starting node and the ending node in the real physical space.

[0083] The point-to-surface ICP algorithm is used, with the initial pose alignment result as the initial input, to perform calculations on the starting local map and the ending local map. During the calculation, the initial pose obtained from coarse registration is used as the starting point for iteration. The distance residual between the point cloud of the starting local map and the planar features of the ending local map is continuously calculated. The pose parameters are continuously corrected through iterative solution, gradually reducing the spatial positional deviation between the two sets of local maps, until the residual value converges to a preset accuracy threshold, at which point the iterative calculation terminates.

[0084] After completing the iterative calculation, a relative transformation matrix between the starting local map and the ending local map is generated based on the final position and attitude parameters. The relative transformation matrix is ​​then saved to the current closed-loop processing flow. This relative transformation matrix is ​​used to describe the absolute closure difference between the starting node and the ending node in the real physical space.

[0085] In this embodiment, local maps of the starting and ending points are constructed by extracting the neighborhood point clouds of the starting and ending nodes respectively. This eliminates interference from redundant and invalid point cloud data in the middle of long-distance mapping, providing an effective point cloud foundation for subsequent high-precision registration. Local feature matching is used to achieve global coarse registration of the starting and ending local maps. Based on this coarse registration, a point-to-surface ICP algorithm is combined to complete high-precision fine registration, obtaining the relative transformation matrix of the starting and ending nodes. Initial pose alignment is achieved through cross-regional matching of edge features and planar features, providing reliable initial iteration values ​​for fine registration. The point-to-surface ICP algorithm further refines and corrects residual pose errors from the coarse registration. The resulting relative transformation matrix can accurately quantify the absolute closure difference between the starting and ending frames in real physical space, accurately representing the accumulated overall pose drift in long-distance mapping, providing a high-precision constraint basis for subsequent virtual topology edge updates, factor graph global pose optimization, and map closure correction.

[0086] Please see Figure 6 This application provides an embodiment of a laser mapping device based on a Windows system, comprising: The reading unit 601 is used to read offline point cloud and IMU data, divide the point cloud space for each frame of offline point cloud, and extract point cloud features in all point cloud spaces in parallel. The point cloud features include edge features and planar features. The construction unit 602 is used to construct a Hessian-like matrix based on the original pose state, point cloud features and a preset observation information matrix, and to perform eigenvalue decomposition on the Hessian-like matrix to extract the minimum eigenvalue and the minimum eigenvector. The weight adjustment unit 603 is used to adjust the weight of the original information matrix according to the minimum eigenvector if the minimum eigenvalue is lower than the preset safety threshold, so as to obtain the information matrix. The original information matrix is ​​the inverse measure of the uncertainty formed by the IMU measurement noise during the integral propagation process. The processing unit 604 is used to respond to the forced closure command when the mapping process reaches the end, establish a virtual topological edge between the start node and the end node of the back-end factor graph, and perform registration based on the neighborhood point cloud corresponding to the start node and the end node to obtain the relative transformation matrix. The update optimization unit 605 is used to update the virtual topological edges according to the relative transformation matrix, and to optimize the pose nodes in the back-end factor graph using the information matrix and the updated virtual topological edges. The correction output unit 606 is used to correct the pose of the offline point cloud based on the optimized pose nodes and output a closed point cloud.

[0087] Optionally, the laser mapping device may also include: The determination unit 607 is used to determine that the current mapping process has reached its end when the total number of calculation frames of the offline point cloud in real time is equal to the total number of frames of the offline point cloud.

[0088] For detailed implementation methods, please refer to... Figures 1 to 5 Examples are not detailed here.

[0089] Please see Figure 7 This application provides a laser mapping device based on a Windows system, comprising: Processor 701, memory 702, input / output unit 703, and bus 704.

[0090] The processor 701 is connected to the memory 702, the input / output unit 703, and the bus 704.

[0091] The memory 702 stores a program, and the processor 701 calls the program to execute it, such as... Figures 1 to 5 The method in the middle.

[0092] This application provides a computer-readable storage medium on which a program is stored, and when the program is executed on a computer, it performs the following... Figures 1 to 5 The method in the middle.

[0093] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0094] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection between apparatuses or units through some interfaces, and may be electrical, mechanical, or other forms.

[0095] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0096] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0097] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

Claims

1. A laser mapping method based on a Windows system, characterized in that, include: Read offline point cloud and IMU data, divide the offline point cloud into point cloud space for each frame, and extract point cloud features in all the point cloud space in parallel. The point cloud features include edge features and planar features. Based on the original pose state, the point cloud features, and the preset observation information matrix, a Hessian-like matrix is ​​constructed, and the Hessian-like matrix is ​​decomposed into eigenvalues ​​to extract the minimum eigenvalue and the minimum eigenvector. If the minimum eigenvalue is lower than a preset safety threshold, the original information matrix is ​​weighted according to the minimum eigenvector to obtain an information matrix. The original information matrix is ​​a reverse measure of the uncertainty formed by the IMU measurement noise during the integral propagation process. When the graph construction process reaches the end, in response to the forced closure command, a virtual topological edge is established between the start node and the end node of the back-end factor graph. Based on the neighborhood point cloud corresponding to the start node and the end node, registration is performed to obtain the relative transformation matrix. The virtual topological edge is updated according to the relative transformation matrix, and the pose nodes in the back-end factor graph are optimized using the information matrix and the updated virtual topological edge; The offline point cloud is pose corrected based on the optimized pose nodes, and a closed point cloud is output.

2. The laser mapping method according to claim 1, characterized in that, The construction of a Hessian-like matrix based on the original pose state, the point cloud features, and a preset observation information matrix includes: Based on the edge features and the planar features, establish a point-to-line residual model and a point-to-plane residual model respectively; Based on the original pose state, the point-to-line residual model, and the point-to-plane residual model, the residual Jacobian matrix is ​​calculated. Based on the residual Jacobian matrix and the preset observation information matrix, a Hessian-like matrix is ​​constructed, which is a six-dimensional Gaussian-Newton Hessian matrix.

3. The laser mapping method according to claim 1, characterized in that, The step of performing eigenvalue decomposition on the Hessian-like matrix to extract the minimum eigenvalue and the minimum eigenvector includes: The Hessian-like matrix is ​​converted into a diagonal matrix, and several eigenvalues ​​and corresponding eigenvectors are calculated based on the diagonal matrix. Extract the minimum eigenvalue and the minimum eigenvector corresponding to the minimum eigenvalue from the eigenvalues.

4. The laser mapping method according to claim 1, characterized in that, The step of adjusting the weights of the original information matrix based on the minimum eigenvector to obtain the information matrix includes: Obtain the IMU pre-integration factor from the back-end factor graph and extract the original information matrix of the IMU pre-integration factor; A direction compensation matrix is ​​constructed based on the minimum eigenvector, and the direction compensation matrix is ​​superimposed on the original information matrix to obtain the information matrix.

5. The laser mapping method according to claim 1, characterized in that, When the graph construction process reaches the end, in response to the forced closure command, a virtual topological edge is established between the starting and ending nodes of the back-end factor graph, including: When the graph construction process reaches the end, in response to the forced closure command, the memory address of the start node and the memory address of the end node are extracted from the backend factor graph through the factor graph manager. The relative odometer factor structure is constructed through the factor graph manager, and the relative odometer factor structure is a graph data structure carrier with virtual topological edges; The node pointers of the relative odometer factor structure are respectively pointed to the memory addresses of the starting node and the ending node to establish a non-local connection relationship.

6. The laser mapping method according to claim 1, characterized in that, The registration based on the neighborhood point clouds corresponding to the start node and the end node to obtain the relative transformation matrix includes: Extract the neighborhood point cloud corresponding to the starting node as the starting local map, and simultaneously extract the neighborhood point cloud corresponding to the ending node as the ending local map. The initial pose alignment result is obtained by performing global coarse registration on the starting point local map and the ending point local map through local feature matching. The initial attitude alignment result is finely registered using the point-to-surface ICP algorithm to obtain the relative transformation matrix between the starting local map and the ending local map. The relative transformation matrix represents the absolute closure difference between the starting node and the ending node in the real physical space.

7. The laser mapping method according to any one of claims 1-6, characterized in that, When the mapping process reaches the end, in response to a forced closure command, a virtual topological edge is established between the start and end nodes of the backend factor graph. Before registration is performed based on the neighborhood point clouds corresponding to the start and end nodes to obtain the relative transformation matrix, the laser mapping method further includes: When the total number of solved frames of the offline point cloud equals the total number of frames of the offline point cloud, it is determined that the current mapping process has reached its end.

8. A laser mapping device based on a Windows system, characterized in that, include: The reading unit is used to read offline point cloud and IMU data, divide the offline point cloud into point cloud space for each frame of the offline point cloud, and extract point cloud features in all the point cloud space in parallel. The point cloud features include edge features and planar features. The construction unit is used to construct a Hessian-like matrix based on the original pose state, the point cloud features, and the preset observation information matrix, and to perform eigenvalue decomposition on the Hessian-like matrix to extract the minimum eigenvalue and the minimum eigenvector. The weight adjustment unit is used to adjust the weight of the original information matrix according to the minimum eigenvector if the minimum eigenvalue is lower than a preset safety threshold, so as to obtain an information matrix. The original information matrix is ​​a reverse measure of the uncertainty formed by the IMU measurement noise during the integral propagation process. The processing unit is used to respond to the forced closure command when the graph construction process reaches the end, establish a virtual topological edge between the start node and the end node of the back-end factor graph, and perform registration based on the neighborhood point cloud corresponding to the start node and the end node to obtain the relative transformation matrix. An update and optimization unit is used to update the virtual topological edge according to the relative transformation matrix, and to optimize the pose nodes in the back-end factor graph using the information matrix and the updated virtual topological edge. The correction output unit is used to correct the pose of the offline point cloud based on the optimized pose nodes and output a closed point cloud.

9. A laser mapping device based on a Windows system, characterized in that, include: The system includes a processor, a memory, an input / output unit, and a bus, wherein the processor is connected to the memory, the input / output unit, and the bus, the memory stores a program, and the processor calls the program to execute the laser mapping method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium contains a program that, when executed on a computer, performs the laser mapping method as described in any one of claims 1 to 7.