Lidar calibration method and device for vehicle, electronic device and storage medium

By performing grid division and least-squares optimization on lidar point cloud data, the problem of low extrinsic parameter calibration accuracy in traditional methods is solved, improving the calibration accuracy of lidar and GNSS/INS systems and meeting the high-precision perception and positioning requirements of intelligent driving vehicles.

CN116973891BActive Publication Date: 2026-11-24GUANGZHOU AUTOMOBILE GROUP CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202310765720.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-26
Publication Date
2026-11-24
Estimated Expiration
2043-06-26

AI Technical Summary

Technical Problem

Traditional lidar and GNSS/INS extrinsic parameter calibration methods have low accuracy, making it difficult to meet the high-precision perception and positioning requirements of intelligent driving vehicles.

Method used

By dividing the irregular point cloud data collected by lidar into grids, plane points and corner points are determined. Least squares optimization is then performed in conjunction with GNSS/INS data to construct least squares optimization equations to improve the accuracy of extrinsic parameter calibration.

Benefits of technology

The accuracy of extrinsic parameter calibration between the lidar and inertial satellite integrated navigation unit has been improved, enhancing the accuracy of vehicle position information acquisition and environmental perception capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116973891B_ABST
    Figure CN116973891B_ABST
Patent Text Reader

Abstract

This application discloses a method, apparatus, electronic device, and readable storage medium for calibrating a vehicle's lidar. The method includes: acquiring point cloud data from a lidar and GNSS_INS data from an inertial satellite navigation unit; dividing the point cloud data into a grid, and determining the type characteristics of the point cloud data based on the principal component analysis results; transforming the planar points and corner points of multiple frames of point cloud data to the target coordinate system based on the GNSS_INS data and the initial values ​​of the lidar's extrinsic parameters to obtain a point cloud map; voxelizing the point cloud map to obtain multiple voxels; determining the fitting characteristics of the voxels based on the principal component analysis results; constructing a least-squares optimization equation based on the distances and residuals between all three-dimensional points within the voxels and the fitting characteristics; and solving the least-squares optimization equation to obtain the optimized extrinsic parameter values ​​of the lidar. In this application, the accuracy of determining the planar points and corner points corresponding to the point cloud data is high, improving the accuracy of lidar extrinsic parameter calibration.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of intelligent driving technology, and more specifically, to a LiDAR calibration method, apparatus, electronic device, and computer-readable storage medium for a vehicle. Background Technology

[0002] With the development of information technology, autonomous driving technology has also developed rapidly. To achieve high-precision perception and positioning capabilities for intelligent driving vehicles, LiDAR has become one of the core sensors for advanced intelligent driving. To accurately obtain the vehicle's position information and perceive its surrounding environment, it is necessary to first obtain the extrinsic parameters of the LiDAR relative to the vehicle body. Since the vehicle coordinate system coincides with the inertial navigation system (GNSS / INS) coordinate system, the extrinsic parameters of the LiDAR relative to the vehicle body are obtained by calibrating the extrinsic parameters of both the LiDAR and GNSS / INS.

[0003] Traditional methods for extrinsic parameter calibration of lidar and GNSS / INS involve constructing a hand-eye calibration problem based on lidar odometry information and GNSS / INS pose information, and then solving this problem to obtain the extrinsic parameters of the lidar and GNSS / INS. However, this method yields extrinsic parameters with low accuracy.

[0004] Therefore, there is an urgent need for a vehicle lidar calibration method to improve the accuracy of extrinsic parameter calibration between lidar and GNSS / INS. Summary of the Invention

[0005] This application proposes a method, apparatus, electronic device, and computer-readable storage medium for calibrating a vehicle's lidar, in order to improve upon the aforementioned deficiencies.

[0006] In a first aspect, embodiments of this application provide a method for calibrating a vehicle's lidar. The method includes: acquiring multiple frames of irregular point cloud data scanned by the vehicle's lidar and GNSS_INS data acquired by an inertial satellite navigation unit; dividing each frame of point cloud data into a grid, and determining the type characteristics of the point cloud data based on the principal component analysis results of the point cloud data in the grid, the type characteristics including planar points and corner points; transforming the planar points and corner points corresponding to the multiple frames of point cloud data into the target coordinate system based on the GNSS_INS data and the initial values ​​of the lidar's extrinsic parameters to obtain a point cloud map; the initial values ​​of the extrinsic parameters are used to indicate the relative positional relationship between the inertial satellite navigation unit and the lidar; voxelizing the point cloud map to obtain multiple voxels; determining the fitting characteristics of each voxel based on the principal component analysis results of each voxel; the fitting characteristics are used to characterize whether the voxel can be fitted according to planar or linear features; constructing a least-squares optimization equation based on the distances and residuals between all three-dimensional points within each voxel and the fitting characteristics; and solving the least-squares optimization equation to obtain the optimized extrinsic parameter values ​​of the vehicle's lidar.

[0007] Secondly, embodiments of this application also provide a LiDAR calibration device for a vehicle, the device comprising:

[0008] The acquisition module is used to acquire multi-frame irregular point cloud data from the vehicle's lidar scan and GNSS_INS data acquired by the inertial satellite navigation unit.

[0009] The partitioning module is used to divide each frame of point cloud data into grids.

[0010] The first determination module is used to determine the type characteristics of the point cloud data based on the principal component analysis results of the point cloud data in the grid. The type characteristics include planar points and corner points.

[0011] The second determining module is used to transform the plane points and corner points corresponding to multiple frames of point cloud data into the target coordinate system based on GNSS_INS data and the initial values ​​of the extrinsic parameters of the lidar, so as to obtain a point cloud map; the initial values ​​of the extrinsic parameters are used to indicate the relative positional relationship between the inertial satellite navigation unit and the lidar.

[0012] The voxelization module is used to voxelize the point cloud map to obtain multiple voxels;

[0013] The third determination module is used to determine the fitting characteristics of each voxel based on the principal component analysis results; the fitting characteristics are used to characterize whether the voxel can be fitted according to planar or linear features.

[0014] The module is used to construct the least squares optimization equation based on the distances and residuals between all 3D points within each voxel and the fitted features.

[0015] The output module is used to solve the least squares optimization equation to obtain the optimized extrinsic parameters of the vehicle's LiDAR.

[0016] Thirdly, embodiments of this application also provide an electronic device, characterized in that the electronic device includes: one or more processors; a memory; one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, and the one or more application programs are configured to perform the above-described methods.

[0017] Fourthly, embodiments of this application also provide a computer-readable storage medium storing processor-executable program code, which, when executed by the processor, causes the processor to perform the above-described method.

[0018] This application provides a method, apparatus, electronic device, and computer-readable storage medium for calibrating a vehicle's lidar. In this application, point cloud data collected by the vehicle's lidar is divided to obtain a target grid corresponding to the point cloud data. Then, based on the principal component analysis results of the point cloud data in the target grid, planar points and corner points are determined. The accuracy of the determined planar points and corner points corresponding to the point cloud data is high, resulting in a high precision point cloud map determined based on these points. This, in turn, improves the accuracy of solving the least squares optimization equation constructed based on the fitting characteristics of multiple voxels corresponding to the point cloud map to obtain the optimized extrinsic parameter values ​​of the lidar, thereby enhancing the accuracy of extrinsic parameter calibration between the lidar and the inertial satellite integrated navigation unit.

[0019] Other features and advantages of the embodiments of this application will be set forth in the following description, and will be apparent in part from the description, or may be learned by practicing the embodiments of this application. The objects and other advantages of the embodiments of this application may be realized and obtained by means of the structures particularly pointed out in the written description, claims, and drawings. Attached Figure Description

[0020] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying 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 of a LiDAR calibration method for a vehicle according to an embodiment of this application is shown.

[0022] Figure 2 A schematic diagram of a polar coordinate grid is shown in an embodiment of this application.

[0023] Figure 3 A schematic diagram of a voxel in an embodiment of this application is shown.

[0024] Figure 4 A schematic diagram of an octree representing a voxel is shown in an embodiment of this application.

[0025] Figure 5 A flowchart of a LiDAR calibration method for a vehicle according to yet another embodiment of this application is shown.

[0026] Figure 6 A flowchart of a LiDAR calibration method for a vehicle according to another embodiment of this application is shown.

[0027] Figure 7 A structural block diagram of a vehicle lidar calibration device according to an embodiment of this application is shown.

[0028] Figure 8 A schematic diagram of an electronic device provided in an embodiment of this application is shown. Detailed Implementation

[0029] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, and not all of them. The components of the embodiments of the present application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of the present application. All other embodiments obtained by those skilled in the art based on the embodiments of the present application without inventive effort are within the scope of protection of the present application.

[0030] It should be noted that similar reference numerals and letters in the following figures indicate clustered similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Furthermore, in the description of this application, the terms "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0031] To achieve high-precision perception and positioning capabilities for autonomous vehicles, lidar has become one of the core sensors for advanced autonomous driving in recent years. To accurately obtain the vehicle's position information and perceive its surrounding environment, it is necessary to first acquire the lidar's extrinsic parameters relative to the vehicle. Since the vehicle's coordinate system coincides with the inertial navigation system (GNSS / INS) coordinate system, the lidar's extrinsic parameters relative to the vehicle are obtained by calibrating the lidar and GNSS / INS extrinsic parameters.

[0032] Traditional methods for extrinsic parameter calibration of lidar and GNSS / INS involve constructing a hand-eye calibration problem based on lidar odometry information and GNSS / INS pose information, and then solving this problem to obtain the extrinsic parameters of the lidar and GNSS / INS. However, this method yields extrinsic parameters with low accuracy.

[0033] Existing methods for extrinsic parameter calibration of lidar and GNSS / INS involve calculating the curvature of points on each line beam of the lidar, extracting corner points and planar points, and thus obtaining the extrinsic parameters of the lidar and GNSS / INS.

[0034] However, the inventors discovered in their research that if the determined point cloud is an irregular point cloud, there are a large number of non-linear structures in the irregular point cloud, making it difficult to determine the curvature of each point in the point cloud, resulting in a low accuracy of the determined plane points and corner points, which in turn leads to a low accuracy of the extrinsic parameter calibration between the lidar and GNSS / INS.

[0035] Therefore, to overcome the above-mentioned shortcomings, the inventors proposed a vehicle lidar calibration method, device, electronic device, and computer-readable storage medium. By dividing the point cloud data collected by the vehicle's lidar, a target grid corresponding to the point cloud data is obtained. Then, based on the principal component analysis results of the point cloud data in the target grid, planar points and corner points are determined. The accuracy of the determined planar points and corner points corresponding to the point cloud data is high, resulting in a high precision of the point cloud map determined based on the planar points and corner points corresponding to the point cloud data. This further improves the accuracy of solving the least squares optimization equation constructed based on the fitting characteristics of multiple voxels corresponding to the point cloud map to obtain the optimized extrinsic parameter values ​​of the lidar, thereby improving the accuracy of extrinsic parameter calibration between the lidar and the inertial satellite integrated navigation unit.

[0036] Please see Figure 1 , Figure 1 A flowchart of a LiDAR calibration method for a vehicle according to an embodiment of this application is shown. The method is for use in an electronic device and includes:

[0037] S101. Collects multi-frame irregular point cloud data from the vehicle's lidar scan and GNSS_INS data from the inertial satellite navigation unit.

[0038] LiDAR can be a MEMS semi-solid-state LiDAR. The core of a MEMS semi-solid-state LiDAR is a centimeter-scale galvanometer, which changes the direction of laser reflection by a cantilever beam moving at high speed along the horizontal and vertical axes, thereby achieving scanning and outputting point cloud data.

[0039] The point cloud data is obtained by scanning the external environment using MEMS semi-solid-state LiDAR, and includes multiple irregular three-dimensional points.

[0040] The Inertial Satellite Integrated Navigation Unit (GNSS / INS) combines the Global Navigation Satellite System (GNSS) and the Inertial Navigation System (INS) to achieve high-precision global positioning of the vehicle.

[0041] Among them, GNSS_INS data is the pose information of the inertial satellite integrated navigation unit (GNSS / INS). GNSS_INS data has 6DoF (degrees of freedom) and includes roll, pitch, yaw, x, y, and z.

[0042] In some implementations, the point cloud data collected by the vehicle's lidar and the GNSS_INS data collected by the inertial satellite navigation unit can be collected at regular time intervals while the vehicle is traveling in a straight line at a certain speed on a feature-rich road. Here, the vehicle speed can be 10 km / h, and the time interval can be 1 second.

[0043] S102. Divide each frame of point cloud data into a grid, and determine the type characteristics of the point cloud data based on the principal component analysis results of the point cloud data in the grid.

[0044] Among them, the type features include planar points and corner points.

[0045] Before dividing the point cloud data, in order to reduce the consumption of computational resources and eliminate noise points with low reflectivity in the distance, the point cloud data is preprocessed to filter out three-dimensional points beyond a certain distance, which can be 100m.

[0046] Principal Component Analysis (PCA) is a multivariate statistical analysis method that uses linear transformations to select a smaller number of important variables from multiple variables. The results of PCA include at least the eigenvalues ​​and eigenvectors corresponding to the point cloud data.

[0047] In some implementations, dividing each frame of point cloud data into grids may include: for each frame of irregular point cloud data, dividing the irregular point cloud data into grids centered on the location of the lidar in the irregular point cloud data, according to a preset radial distance interval and a preset horizontal angle interval, with each frame of irregular point cloud data corresponding to multiple target grids.

[0048] Centered on the lidar, each frame of point cloud data is divided into multiple target grids. This can be achieved by first dividing the point cloud data radially into multiple rings according to a preset radial distance interval, and then further dividing these rings circumferentially according to a preset horizontal angle interval. Alternatively, the point cloud data can be first divided circumferentially into multiple sectors according to a preset horizontal angle interval, and then these sectors can be further divided radially according to a preset radial distance interval.

[0049] In some implementations, for any three-dimensional point p in the point cloud data i ={x i ,y i ,z i The radial distance of this point is} The horizontal angle at this point is θ. i =arctan2(y i ,x i The division is based on a preset radial distance interval, which can be Δd = 0.16m; and based on a preset horizontal angle interval, which can be Δθ = 10°.

[0050] like Figure 2 As shown, Figure 2 The middle part represents the grid corresponding to a frame of point cloud data, including multiple target grids. Figure 2 One grid cell represents a target grid, and each target grid cell contains multiple 3D points. Figure 2 In region 210, the black dots are the filtered-out 3D points. Figure 2 The black dots in region 220 are valid 3D dots.

[0051] S103. Based on the GNSS_INS data and the initial values ​​of the external parameters of the lidar, the plane points and corner points corresponding to the multi-frame point cloud data are transformed into the target coordinate system to obtain the point cloud map.

[0052] The initial values ​​of the external parameters are used to indicate the relative positional relationship between the inertial satellite navigation unit and the lidar.

[0053] The initial values ​​of the extrinsic parameters of the lidar were obtained based on the vehicle's CAD design values. The initial extrinsic parameters are 6DoF (degrees of freedom), including roll, pitch, yaw, x, y, and z.

[0054] In some implementations, a point cloud map can be obtained by transforming the planar points and corner points corresponding to a single frame of point cloud data to a target coordinate system, or by transforming the planar points and corner points corresponding to multiple frames of point cloud data to a target coordinate system. The target coordinate system can be the world coordinate system.

[0055] By transforming the planar points and corner points corresponding to multiple frames of point cloud data into the target coordinate system, a point cloud map is obtained. For time j t... j The point cloud data, whose corner point set and planar point set can be represented as follows: and The GNSS_INS data collected at that moment was The initial values ​​of the vehicle's external parameters are Therefore, the set of lower corner points in the world coordinate system can be represented as: The set of points in a plane can be represented as Therefore, a point cloud map formed from multiple frames of point cloud data can be represented as in Represents a set of corner points across multiple frames (i.e.) ), Represents a set of planar points across multiple frames (i.e.) ).

[0056] S104. Voxelize the point cloud map to obtain multiple voxels.

[0057] Voxelization of a point cloud map involves finding the voxel corresponding to each 3D point on the point cloud map and transforming it into a voxel map. A voxel is a "volume element," and each voxel represents a spatial volume within a 3D mesh, typically a cube. For example... Figure 3 As shown, Figure 3 Each cube in the diagram represents a voxel.

[0058] In some implementations, such as Figure 4 As shown, each voxel is represented by an octree. For each 3D point in the point cloud map whose corresponding voxel can be found, the 3D point is added to the leaf node of the octree corresponding to its voxel. If no voxel is found for a 3D point, then a new octree is created with that 3D point as the root node, that is, a new voxel is created as the voxel corresponding to that 3D point. This process completes the voxelization of the point cloud map, resulting in multiple voxels. An octree is a tree-like data structure used to describe 3D space. Each node in an octree represents a voxel, and each root node has eight leaf nodes. The sum of the voxels represented by these eight leaf nodes equals the volume of the parent node. Figure 4 610 is the root node. Figure 4 In this context, 620 is both the root node and a leaf node. Figure 4 All nodes except those shown in 610 and 620 are leaf nodes.

[0059] S105. Determine the fitting characteristics of each voxel based on the principal component analysis results.

[0060] Among them, the fitting features are used to characterize voxels and can be fitted according to planar features or line features.

[0061] Principal component analysis is performed on each voxel. Based on the principal component analysis results for each voxel, it is determined whether the voxel can be fitted into a plane according to planar features or into a line according to line features.

[0062] S106. Construct a least-squares optimization equation based on the distances and residuals between all 3D points and fitted features within each voxel.

[0063] The fitting features include planar features and line features. After determining the fitting features corresponding to each voxel, the distance between the voxel and its corresponding fitting features is calculated. The residual is determined based on the distance. Based on the residual and the residual constraints, the least squares optimization equation is constructed.

[0064] In some implementations, S106 may include: for a first voxel whose fitted feature is a planar feature, calculating the distance between all three-dimensional points in the first voxel and the planar feature corresponding to the first voxel; determining a first residual corresponding to the first voxel based on the distance between all three-dimensional points in the first voxel and the planar feature corresponding to the first voxel; for a second voxel whose fitted feature is a line feature, calculating the distance between all three-dimensional points in the second voxel and the line feature corresponding to the second voxel; determining a second residual corresponding to the second voxel based on the distance between all three-dimensional points in the second voxel and the line feature corresponding to the first voxel; and constructing a least-squares optimization equation based on the first residual, the second residual, and the residual constraints.

[0065] For the first voxel, that is, the voxel whose fitted feature is a planar feature, the planar feature of the p-th first voxel can be represented as {n p ,q p}, where n p Let q be the plane normal vector. p Let the center of the first voxel be a point within the first voxel. Therefore, the first residual corresponding to the first voxel is Where, N p The number of points within the first voxel.

[0066] For the second voxel, that is, the voxel whose fitted feature is a line feature, the line feature of the e-th second voxel can be represented as {n e ,q e}, where n e Let q be the line direction vector. e Let be the center point of the second voxel. Let a point within the second voxel be... Therefore, the second residual corresponding to the second voxel is: Where, N eLet I be the number of points inside the second voxel, and let I be the identity matrix.

[0067] According to the first residual and the second residual And with residual constraints, construct the least squares optimization problem:

[0068]

[0069] Where, p k and p l The value is related to the GNSS_INS data and extrinsic parameters of the inertial satellite integrated navigation unit. For time j t j GNSS_INS data of the inertial satellite navigation unit. N is the initial value of the external parameter. p N represents the number of points within a plane voxel. e n is the number of points inside the voxel of the line segment. p Let q be the plane normal vector. p n is the center point of the planar voxel. e Let q be the line direction vector. e Let I be the center point of the line segment voxel, and let I be the identity matrix.

[0070] S107. Solve the least squares optimization equation to obtain the optimized external parameter values ​​of the vehicle's lidar.

[0071] After obtaining the least squares optimization equation, solve the least squares optimization problem to obtain the optimized external parameter values ​​of the lidar.

[0072] In some implementations, the least squares optimization equations can be solved using Ceres Solver.

[0073] In this embodiment, the point cloud data collected by the vehicle's LiDAR is divided to obtain the target grid corresponding to the point cloud data. Then, the plane points and corner points are determined based on the principal component analysis results of the point cloud data in the target grid. The accuracy of the determined plane points and corner points corresponding to the point cloud data is high, resulting in a high precision of the point cloud map determined based on the plane points and corner points corresponding to the point cloud data. This further improves the accuracy of solving the least squares optimization equation based on the fitting features of multiple voxels corresponding to the point cloud map to obtain the optimized extrinsic parameter values ​​of the LiDAR, thereby improving the accuracy of the extrinsic parameter calibration between the LiDAR and the inertial satellite integrated navigation unit.

[0074] Please see Figure 5 , Figure 5 This illustration shows a flowchart of a LiDAR calibration method for a vehicle according to another embodiment of this application, used in an electronic device. The method includes:

[0075] S201. Collect multiple frames of irregular point cloud data from the vehicle's lidar scan and GNSS_INS data collected by the inertial satellite navigation unit.

[0076] The description of S201 is the same as that of S101 above, and will not be repeated here.

[0077] S202. For each target grid in each frame of irregular point cloud data, determine the covariance matrix corresponding to the target grid based on the coordinate values ​​of each three-dimensional point in the target grid.

[0078] Any 3D point in the target mesh can be represented as p i ={x i ,y i ,z i The covariance matrix corresponding to the target mesh is:

[0079]

[0080] Where cov is the covariance, and cov(x) is the variance. i ,y i For example, cov(x) i ,y i )=E[(x i -E(x i ))(y i -E(y i E represents the expected value. Covariance is used to measure the overall error between two variables, while the expected value is the sum of the probabilities of each possible outcome in a discrete random variable experiment multiplied by its result.

[0081] S203. For each target grid in each frame of irregular point cloud data, determine multiple eigenvalues ​​corresponding to the target grid based on the covariance matrix of the target grid, and use them as the principal component analysis results of the target grid.

[0082] Each frame of point cloud data corresponds to multiple target meshes, and the coordinates of each 3D point can be represented by (x, y). i ,y i ,z i This means that the covariance matrix formed by all three-dimensional points in each target grid is decomposed into eigenvalues ​​to obtain multiple eigenvalues ​​corresponding to each target grid. Since the coordinate value of a three-dimensional point is a three-dimensional data, there are three eigenvalues ​​corresponding to each target grid.

[0083] S241. If multiple feature values ​​corresponding to the target mesh satisfy the first condition, obtain all three-dimensional points in the target mesh as planar points. The first condition represents the ratio threshold between multiple feature values ​​corresponding to the target mesh.

[0084] In some implementations, the first condition may be that the ratio of the smallest eigenvalue to the second largest eigenvalue among the three eigenvalues ​​corresponding to the target mesh is less than a first ratio threshold. The first ratio threshold may be 0.3. If the ratio of the smallest eigenvalue to the second largest eigenvalue corresponding to the target mesh is less than 0.3, then all three-dimensional points in the target mesh are obtained as planar points corresponding to the point cloud data.

[0085] S242. If multiple eigenvalues ​​corresponding to the target mesh do not satisfy the first condition, determine the principal component analysis result of the target 3D point based on the target 3D point and multiple 3D points around the target 3D point, and determine the classification result of the target 3D point based on the principal component analysis result of the target 3D point.

[0086] The target 3D point is any 3D point in the target grid, and the 3D points around the target 3D point are 3D points within the target grid; the classification result of the target 3D point includes whether the target 3D point is a planar point or a corner point.

[0087] In some implementations, if multiple feature values ​​corresponding to the target grid do not meet the first condition, multiple three-dimensional points around the target three-dimensional point can be determined from the target grid in order of distance from the target three-dimensional point to the farthest point, thereby determining the principal component analysis result of the target three-dimensional point and the classification result of the target three-dimensional point.

[0088] Among them, multiple three-dimensional points around the target three-dimensional point can be obtained by the k-nearest neighbor algorithm (KNN). The three most important elements of the k-nearest neighbor algorithm (KNN) are the distance metric, the selection of the k value, and the decision rule. The distance metric can be Euclidean distance, and the k value can be selected as k=8, selecting the 8 three-dimensional points around the target three-dimensional point with the smallest distance metric from the target three-dimensional point.

[0089] In some implementations, determining the principal component analysis (PCA) result of the target 3D point based on the target 3D point and multiple 3D points surrounding the target 3D point, and determining the classification result of the target 3D point based on the PCA result, may include: determining the covariance matrix of the target 3D point based on the coordinates of the target 3D point and multiple 3D points surrounding the target 3D point; determining multiple eigenvalues ​​corresponding to the target 3D point based on the covariance matrix of the target 3D point, as the PCA result corresponding to the target 3D point; determining the curvature of the target 3D point based on the multiple eigenvalues ​​corresponding to the target 3D point; and determining the classification result of the target 3D point based on the curvature of the target 3D point.

[0090] After obtaining multiple 3D points around the target 3D point, principal component analysis is performed on the target 3D point and its surrounding 3D points, a total of 9 3D points. The coordinates of each 3D point can be represented by (x... i ,y i,z i This means that the covariance matrix formed by the nine three-dimensional points is decomposed into eigenvalues ​​to obtain multiple eigenvalues ​​corresponding to the target three-dimensional point. Since the coordinate value of the three-dimensional point is a three-dimensional data, there are three eigenvalues ​​corresponding to each target three-dimensional point. Since the target three-dimensional point can be any three-dimensional point, there are three eigenvalues ​​corresponding to each three-dimensional point.

[0091] After obtaining the three eigenvalues ​​corresponding to each three-dimensional point, the eigenvalue with the smallest value among the three eigenvalues ​​can be taken as the curvature corresponding to that three-dimensional point.

[0092] In some implementations, 3D points with curvature less than a first value can be obtained as planar points corresponding to the point cloud data, and 3D points with curvature greater than a second value can be obtained as corner points corresponding to the point cloud data. 3D points with curvature greater than or equal to the first value and less than or equal to the second value are not retained. The first value can be 0.05, and the second value can be 0.2.

[0093] S205. Based on the GNSS_INS data and the initial values ​​of the external parameters of the lidar, the plane points and corner points corresponding to the multi-frame point cloud data are transformed to the target coordinate system to obtain the point cloud map.

[0094] S206. Voxelize the point cloud map to obtain multiple voxels; determine the fitting features of each voxel based on the principal component analysis results.

[0095] S207. Based on the distances and residuals between all three-dimensional points within each voxel and the fitted features, construct a least-squares optimization equation; solve the least-squares optimization equation to obtain the optimized external parameter values ​​of the vehicle's lidar.

[0096] The descriptions of S205 to S207 are the same as those of S103 to S107 above, and will not be repeated here.

[0097] In this embodiment, the point cloud data collected by the vehicle's LiDAR is divided to obtain the target grid corresponding to the point cloud data. Then, multiple feature values ​​corresponding to each target grid are determined. Based on whether the multiple feature values ​​satisfy a first condition, the plane points and corner points corresponding to the point cloud data are determined. The accuracy of the plane points and corner points corresponding to the point cloud data is high, resulting in a high precision of the point cloud map determined based on the plane points and corner points corresponding to the point cloud data. This further improves the accuracy of solving the least squares optimization equation based on the fitting features of multiple voxels corresponding to the point cloud map to obtain the optimized extrinsic parameter values ​​of the LiDAR, thereby improving the accuracy of the extrinsic parameter calibration between the LiDAR and the inertial satellite integrated navigation unit.

[0098] Please see Figure 6 , Figure 6This paper illustrates a flowchart of a LiDAR calibration method for a vehicle according to another embodiment of the present application, used in an electronic device. The method includes:

[0099] S301. Collects multi-frame irregular point cloud data from the vehicle's lidar scan and GNSS_INS data from the inertial satellite navigation unit.

[0100] S302. Divide each frame of point cloud data into a grid, and determine the type characteristics of the point cloud data based on the principal component analysis results of the point cloud data in the grid.

[0101] S303. Based on GNSS_INS data and the initial values ​​of the external parameters of the lidar, the plane points and corner points corresponding to the multi-frame point cloud data are transformed to the target coordinate system to obtain the point cloud map.

[0102] S304. Voxelize the point cloud map to obtain multiple voxels.

[0103] The descriptions of S301 to S304 are the same as those of S101 to S104 above, and will not be repeated here.

[0104] S305. Determine the covariance matrix of each voxel based on the coordinates of each three-dimensional point in each voxel; determine multiple eigenvalues ​​of each voxel based on the covariance matrix of each voxel, which serve as the principal component analysis results for each voxel.

[0105] Each voxel contains multiple three-dimensional points. The covariance matrix of each voxel is determined based on the coordinates of the multiple three-dimensional points in each voxel. Eigenvalue decomposition is performed on the covariance matrix of each voxel to obtain multiple eigenvalues ​​corresponding to each voxel, typically three.

[0106] S361. If multiple feature values ​​corresponding to a voxel satisfy the second condition, determine the fitting feature of the voxel. The second condition characterizes the ratio threshold between multiple feature values ​​corresponding to a voxel.

[0107] In some implementations, the second condition may be that the ratio of the smallest eigenvalue to the second largest eigenvalue among the three eigenvalues ​​corresponding to the voxel is less than a second ratio threshold, or that the ratio of the second largest eigenvalue to the largest eigenvalue among the three eigenvalues ​​corresponding to the voxel is less than a third ratio threshold.

[0108] The second ratio threshold can be 0.3. If the ratio of the smallest eigenvalue to the second largest eigenvalue of a voxel is less than 0.3, then the fitting feature of the voxel is planar, and the voxel can be fitted to a plane. The voxel can be represented by its center point and a planar vector, where the planar vector is the eigenvector corresponding to the smallest eigenvalue of the voxel. The third ratio threshold can be 0.25. If the ratio of the second largest eigenvalue to the largest eigenvalue among the three eigenvalues ​​of a voxel is less than 0.25, then the fitting feature of the voxel is linear, and the voxel can be fitted to a line segment. The voxel can be represented by its center point and a line vector, where the line vector is the eigenvector corresponding to the largest eigenvalue of the voxel.

[0109] S362. If multiple feature values ​​corresponding to a voxel do not satisfy the second condition, divide the voxel into multiple sub-voxels; obtain each sub-voxel as a new voxel, and return to execute the step of determining the covariance matrix of each voxel based on the coordinates of each three-dimensional point in each voxel, until the second condition is satisfied, and determine the fitting features of the voxel.

[0110] In some implementations, if multiple eigenvalues ​​corresponding to a voxel do not satisfy the second condition, such as Figure 5 As shown, the voxel is divided into 8 smaller sub-voxels. The sub-voxels are used as new voxels. The process is repeated to determine the covariance matrix of each voxel based on the coordinates of each three-dimensional point in each voxel until the second condition is met, and the fitting features of the voxel are determined.

[0111] If, after dividing a voxel multiple times, the sub-voxel corresponding to the last division still does not meet the second condition, and the size of the sub-voxel does not meet the condition for further division, then the voxel will not be retained and will not have the corresponding fitting feature. The condition for further division can be that the voxel size is greater than a preset size, which can be 0.02 m × 0.02 m × 0.02 m.

[0112] S307. Construct a least-squares optimization equation based on the distances and residuals between all 3D points and fitted features within each voxel.

[0113] The description of S307 is the same as that of S106 above, and will not be repeated here.

[0114] S308. Substitute the GNSS_INS data into the least squares optimization equation to obtain the first external parameter value; substitute the first external parameter value into the least squares optimization equation to obtain the first GNSS_INS data.

[0115] After obtaining the least squares optimization equation, to avoid simultaneously solving for the optimized extrinsic parameter values ​​and the optimized GNSS_INS data, which could lead to a local minimum instead of the global optimum, we first fix the GNSS_INS data and substitute it into the least squares optimization equation to obtain the first extrinsic parameter value. Then, we fix the first extrinsic parameter value and substitute it into the least squares optimization equation again to obtain the first GNSS_INS data.

[0116] S309. Substitute the first external parameter value and the first GNSS_INS data into the least squares optimization equation to solve for the second external parameter value and the second GNSS_INS data.

[0117] After obtaining the first extrinsic parameter values ​​and the first GNSS_INS data to eliminate local minima, these are substituted into the least squares optimization equation to obtain the second extrinsic parameter values ​​and the second GNSS_INS data. The entire solution process can be executed using Ceres Solver, a tool specifically designed for solving least squares optimization problems.

[0118] S310. Obtain the second extrinsic parameter value as the initial extrinsic parameter value, obtain the second GNSS_INS data as the GNSS_INS data, return to execute the steps of converting the plane points and corner points corresponding to each of the multiple frames of irregular point cloud data to the target coordinate system according to the GNSS_INS data and the initial extrinsic parameter value of the LiDAR, and obtain the point cloud map, until the preset conditions are met, obtain the last obtained second extrinsic parameter value as the optimized extrinsic parameter value of the vehicle's LiDAR.

[0119] In the process of solving the least squares optimization equation, not only were the optimized extrinsic parameter values ​​of the lidar obtained, but the GNSS_INS data collected by the inertial satellite navigation unit were also optimized. This effectively solves the problem of the calibration accuracy being affected when the GNSS_INS data of the inertial satellite navigation unit is blocked or interfered with, and effectively improves the accuracy and robustness of the extrinsic parameter calibration.

[0120] The preset conditions can be that the corresponding residual is less than the residual threshold and the number of times the second external parameter value is obtained reaches a preset number. The residual threshold can be 0.05m and the preset number can be 10 times.

[0121] The process involves obtaining the second extrinsic parameter value as the initial extrinsic parameter value, obtaining the second GNSS_INS data as the GNSS_INS data, and then returning to execute the steps of transforming the plane points and corner points corresponding to each frame of irregular point cloud data to the target coordinate system based on the GNSS_INS data and the initial extrinsic parameter value of the lidar, to obtain the point cloud map. This process continues until the corresponding residual is less than the residual threshold and the number of times the second extrinsic parameter value is obtained reaches a preset number. Finally, the last obtained second extrinsic parameter value is used as the optimized extrinsic parameter value for the lidar.

[0122] In this embodiment, the point cloud data collected by the vehicle's LiDAR is divided to obtain the target grid corresponding to the point cloud data. Then, multiple feature values ​​corresponding to each target grid are determined. Based on whether the multiple feature values ​​satisfy a first condition, the plane points and corner points corresponding to the point cloud data are determined. The accuracy of the determined plane points and corner points corresponding to the point cloud data is relatively high. Then, a point cloud map is determined based on the plane points and corner points corresponding to the point cloud data. The point cloud map is voxelized, and the fitting features corresponding to each voxel are determined. Thus, the distance between the points in each voxel and the fitting features and their residuals are determined. A least squares optimization problem is constructed, and the problem is solved by fixing the voxels. The method involves substituting GNSS_INS data into the solution to obtain the first extrinsic parameter value, and then using the first extrinsic parameter value to obtain the first GNSS_INS data to optimize the extrinsic parameter value of the vehicle's lidar according to preset conditions. This results in higher calibration accuracy for the initial values ​​of the extrinsic parameters, improving the accuracy of the extrinsic parameter calibration between the lidar and the inertial satellite navigation unit. At the same time, the GNSS_INS data of the inertial satellite navigation unit is optimized, effectively solving the problem that the calibration accuracy is affected when the GNSS_INS data of the inertial satellite navigation unit is blocked or interfered with, thus improving the accuracy and robustness of the extrinsic parameter calibration.

[0123] See appendix Figure 7 , Figure 7 This illustration shows a structural block diagram of a lidar calibration device for a vehicle according to one embodiment of this application. For use in electronic devices, the device 400 includes:

[0124] The acquisition module 401 is used to acquire multi-frame irregular point cloud data from the vehicle's lidar scan and GNSS_INS data acquired by the inertial satellite navigation unit.

[0125] The partitioning module 402 is used to partition each frame of point cloud data into a grid.

[0126] The first determining module 403 is used to determine the type characteristics of the point cloud data based on the principal component analysis results of the point cloud data in the grid. The type characteristics include planar points and corner points.

[0127] The second determining module 404 is used to transform the plane points and corner points corresponding to multiple frames of point cloud data into the target coordinate system based on GNSS_INS data and the initial values ​​of the extrinsic parameters of the lidar, so as to obtain a point cloud map; the initial values ​​of the extrinsic parameters are used to indicate the relative positional relationship between the inertial satellite integrated navigation unit and the lidar.

[0128] The voxelization module 405 is used to voxelize the point cloud map to obtain multiple voxels;

[0129] The third determination module 406 is used to determine the fitting characteristics of each voxel based on the principal component analysis results; the fitting characteristics are used to characterize whether the voxel can be fitted according to planar features or line features.

[0130] Module 407 is used to construct a least-squares optimization equation based on the distances between all 3D points within each voxel and the fitted features and their residuals.

[0131] Output module 408 is used to solve the least squares optimization equation to obtain the optimized extrinsic parameters of the vehicle's lidar.

[0132] Optionally, the partitioning module 402 is also used to partition the irregular point cloud data into grids for each frame of irregular point cloud data, with the location of the lidar in the irregular point cloud data as the center, according to a preset radial distance interval and a preset horizontal angle interval, with each frame of irregular point cloud data corresponding to multiple target grids.

[0133] Optionally, the first determining module 403 is further configured to: for each target grid in each frame of irregular point cloud data, determine the covariance matrix corresponding to the target grid based on the coordinate values ​​of each three-dimensional point in the target grid; for each target grid in each frame of irregular point cloud data, determine multiple eigenvalues ​​corresponding to the target grid based on the covariance matrix corresponding to the target grid, as the principal component analysis result of the target grid; if the multiple eigenvalues ​​corresponding to the target grid satisfy a first condition, obtain all three-dimensional points in the target grid as planar points, the first condition representing the ratio threshold between the multiple eigenvalues ​​corresponding to the target grid; if the multiple eigenvalues ​​corresponding to the target grid do not satisfy the first condition, determine the principal component analysis result of the target three-dimensional point based on the target three-dimensional point and multiple three-dimensional points around the target three-dimensional point, and determine the classification result of the target three-dimensional point based on the principal component analysis result of the target three-dimensional point; the target three-dimensional point is any three-dimensional point in the target grid, and the three-dimensional points around the target three-dimensional point are three-dimensional points within the target grid; the classification result of the target three-dimensional point includes whether the target three-dimensional point is a planar point or a corner point.

[0134] Optionally, the first determining module 403 is further configured to: determine the covariance matrix of the target three-dimensional point based on the coordinates of the target three-dimensional point and the coordinates of multiple three-dimensional points surrounding the target three-dimensional point; determine multiple eigenvalues ​​corresponding to the target three-dimensional point based on the covariance matrix of the target three-dimensional point, as the principal component analysis result corresponding to the target three-dimensional point; determine the curvature of the target three-dimensional point based on the multiple eigenvalues ​​corresponding to the target three-dimensional point; and determine the classification result of the target three-dimensional point based on the curvature of the target three-dimensional point.

[0135] Optionally, the third determining module 406 is further configured to: determine the covariance matrix of each voxel based on the coordinates of each three-dimensional point in each voxel; determine multiple eigenvalues ​​of each voxel based on the covariance matrix of each voxel, as the principal component analysis results of each voxel; if the multiple eigenvalues ​​corresponding to the voxel satisfy the second condition, determine the fitting characteristics of the voxel, the second condition representing the ratio threshold between the multiple eigenvalues ​​corresponding to the voxel; if the multiple eigenvalues ​​corresponding to the voxel do not satisfy the second condition, divide the voxel into multiple sub-voxels; obtain each sub-voxel as a new voxel, and return to execute the step of determining the covariance matrix of each voxel based on the coordinates of each three-dimensional point in each voxel, until the second condition is satisfied and the fitting characteristics of the voxel are determined.

[0136] Optionally, the construction module 407 is further configured to: calculate the distance between all three-dimensional points in the first voxel and the corresponding planar feature of the first voxel for a first voxel whose fitted feature is a planar feature; determine the first residual corresponding to the first voxel based on the distance between all three-dimensional points in the first voxel and the corresponding planar feature of the first voxel; calculate the distance between all three-dimensional points in the second voxel and the corresponding line feature of the second voxel for a second voxel whose fitted feature is a line feature; determine the second residual corresponding to the second voxel based on the distance between all three-dimensional points in the second voxel and the corresponding line feature of the first voxel; and construct a least-squares optimization equation based on the first residual, the second residual, and the residual constraints.

[0137] Optionally, the output module 407 is further configured to: substitute GNSS_INS data into the least squares optimization equation to obtain a first extrinsic parameter value; substitute the first extrinsic parameter value into the least squares optimization equation to obtain a first GNSS_INS data; substitute the first extrinsic parameter value and the first GNSS_INS data into the least squares optimization equation to obtain a second extrinsic parameter value and a second GNSS_INS data; obtain the second extrinsic parameter value as the initial extrinsic parameter value, obtain the second GNSS_INS data as the GNSS_INS data, and return to execute the steps of transforming the plane points and corner points corresponding to each of the multiple frames of irregular point cloud data into the target coordinate system based on the GNSS_INS data and the initial extrinsic parameter value of the LiDAR to obtain a point cloud map, until the preset conditions are met, and obtain the last obtained second extrinsic parameter value as the optimized extrinsic parameter value of the vehicle's LiDAR.

[0138] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described device and module can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

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

[0140] Please refer to Figure 8 This document illustrates a structural block diagram of an electronic device according to an embodiment of this application. The electronic device 600 can be a smartphone, tablet computer, e-reader, vehicle, or other electronic device capable of running applications. The electronic device 600 in this application may include one or more components: a processor 610, a memory 620, and one or more applications. One or more applications may be stored in the memory 620 and configured to be executed by one or more processors 610, and the one or more applications are configured to perform the methods described in the foregoing method embodiments.

[0141] Processor 610 may include one or more processing cores. Processor 610 connects to various parts within the electronic device 600 using various interfaces and lines, and performs various functions and processes data of the electronic device 600 by running or executing instructions, programs, code sets, or instruction sets stored in memory 620, and by calling data stored in memory 620. Optionally, processor 610 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). Processor 610 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the displayed content; and the modem handles wireless communication. It is understood that the modem may also not be integrated into processor 610 and may be implemented separately using a communication chip.

[0142] The memory 620 may include random access memory (RAM) or read-only memory (ROM). The memory 620 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 620 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as touch functionality, sound playback functionality, image playback functionality, etc.), and instructions for implementing the various method embodiments described below. The data storage area may also store data created by the electronic device 600 during use (such as phonebook data, audio and video data, chat log data, etc.).

[0143] In another aspect, this application also provides a computer-readable storage medium storing program code that can be invoked by a processor to execute the methods described in the above method embodiments.

[0144] Computer-readable storage media can be electronic storage devices such as flash memory, EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM, hard disk, or a cluster of ROMs. Optionally, computer-readable storage media include non-transitory computer-readable storage media. The computer-readable storage medium has storage space for program code that performs any of the method steps described above. This program code can be read from or written to one or more computer program products. The program code can be compressed, for example, in a suitable form.

[0145] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. A method of laser radar calibration of a vehicle, characterized by, The method includes: Collect multiple frames of irregular point cloud data from the vehicle's lidar scan and GNSS_INS data collected by the inertial satellite navigation unit; Divide each frame of point cloud data into a grid; For each target grid in each frame of the irregular point cloud data, the covariance matrix corresponding to the target grid is determined based on the coordinate values ​​of each three-dimensional point in the target grid, and multiple feature values ​​corresponding to the target grid are determined based on the covariance matrix corresponding to the target grid. If the multiple feature values ​​corresponding to the target mesh satisfy the first condition, all three-dimensional points in the target mesh are obtained as planar points, and the first condition represents the ratio threshold between the multiple feature values ​​corresponding to the target mesh. If the multiple feature values ​​corresponding to the target mesh do not satisfy the first condition, based on the coordinates of the target 3D point, the coordinates of multiple 3D points surrounding the target 3D point are selected within the target mesh. The coordinates of the multiple 3D points and the target 3D point form the covariance matrix of the target 3D point, where the target 3D point is any 3D point in the target mesh. The covariance matrix of the target 3D point is subjected to eigenvalue decomposition to obtain multiple feature values ​​corresponding to the target 3D point. The feature value with the smallest value among the multiple feature values ​​corresponding to the target 3D point is determined as the curvature of the target 3D point. 3D points with curvature less than a first value are obtained as plane points, and 3D points with curvature greater than a second value are obtained as corner points. 3D points with curvature greater than or equal to the first value and less than or equal to the second value are filtered out. Based on the GNSS_INS data and the initial values ​​of the extrinsic parameters of the lidar, the plane points and corner points corresponding to multiple frames of point cloud data are transformed to the target coordinate system to obtain a point cloud map; the initial values ​​of the extrinsic parameters are used to indicate the relative positional relationship between the inertial satellite navigation unit and the lidar. The point cloud map is voxelized to obtain multiple voxels; The fitting features of each voxel are determined based on the principal component analysis results; the fitting features are used to characterize whether the voxel can be fitted according to planar features or line features. Based on the distances and residuals between all 3D points and fitted features within each voxel, a least-squares optimization equation is constructed. Solve the least squares optimization equation to obtain the optimized extrinsic parameters of the vehicle's lidar.

2. The method according to claim 1, characterized in that, The process of dividing each frame of point cloud data into grids includes: For each frame of the irregular point cloud data, the irregular point cloud data is divided into grids based on the location of the lidar in the irregular point cloud data as the center, according to the preset radial distance interval and the preset horizontal angle interval. Each frame of the irregular point cloud data corresponds to multiple target grids.

3. The method according to claim 1, characterized in that, The step of determining the fitting features of each voxel based on the principal component analysis results of each voxel includes: The covariance matrix of each voxel is determined based on the coordinates of each three-dimensional point in each voxel; Based on the covariance matrix of each voxel, multiple eigenvalues ​​of each voxel are determined as the principal component analysis results for each voxel. If the multiple feature values ​​corresponding to the voxel satisfy the second condition, the fitting feature of the voxel is determined, and the second condition characterizes the ratio threshold between the multiple feature values ​​corresponding to the voxel. If multiple feature values ​​corresponding to the voxel do not satisfy the second condition, the voxel is divided into multiple sub-voxels; each sub-voxel is obtained as a new voxel, and the step of determining the covariance matrix of each voxel based on the coordinates of each three-dimensional point in each voxel is returned to be executed until the second condition is satisfied, and the fitting features of the voxel are determined.

4. The method according to claim 1, characterized in that, The least squares optimization equation is constructed based on the distances and residuals between all 3D points within each voxel and the fitted features, including: For a first voxel whose fitted feature is a planar feature, calculate the distance between all three-dimensional points in the first voxel and the planar feature corresponding to the first voxel; The first residual corresponding to the first voxel is determined based on the distance between all three-dimensional points in the first voxel and the planar features corresponding to the first voxel. For the fitted feature being a second voxel with line features, calculate the distance between all three-dimensional points in the second voxel and the line features corresponding to the second voxel; The second residual corresponding to the second voxel is determined based on the distance between all three-dimensional points in the second voxel and the line features corresponding to the first voxel. Based on the first residual, the second residual, and the residual constraints, a least-squares optimization equation is constructed.

5. The method according to claim 1, characterized in that, Solving the least-squares optimization equation to obtain the optimized extrinsic parameters of the vehicle's lidar includes: Substitute the GNSS_INS data into the least squares optimization equation to solve for the first extrinsic parameter value; Substitute the first extrinsic parameter value into the solution of the least squares optimization equation to obtain the first GNSS_INS data; Substitute the first extrinsic parameter value and the first GNSS_INS data into the least squares optimization equation to solve for the second extrinsic parameter value and the second GNSS_INS data. The second extrinsic parameter value is obtained as the initial extrinsic parameter value, and the second GNSS_INS data is obtained as the GNSS_INS data. The process of converting the plane points and corner points corresponding to each of the multiple frames of irregular point cloud data to the target coordinate system based on the GNSS_INS data and the initial extrinsic parameter value of the lidar is returned to execute the step of obtaining a point cloud map. This process continues until the preset conditions are met, and the last obtained second extrinsic parameter value is obtained as the optimized extrinsic parameter value of the lidar of the vehicle.

6. A lidar calibration device for a vehicle, characterized in that, The device includes: The acquisition module is used to acquire multi-frame irregular point cloud data from the vehicle's lidar scan and GNSS_INS data acquired by the inertial satellite navigation unit. The partitioning module is used to divide each frame of point cloud data into grids. The first determining module is configured to, for each target grid in each frame of the irregular point cloud data, determine the covariance matrix corresponding to the target grid based on the coordinate values ​​of each three-dimensional point in the target grid, and determine multiple eigenvalues ​​corresponding to the target grid based on the covariance matrix; if the multiple eigenvalues ​​corresponding to the target grid satisfy a first condition, obtain all three-dimensional points in the target grid as planar points, where the first condition represents a ratio threshold between the multiple eigenvalues ​​corresponding to the target grid; if the multiple eigenvalues ​​corresponding to the target grid do not satisfy the first condition, select points within the target grid based on the coordinates of the target three-dimensional points. The coordinates of multiple 3D points surrounding the target 3D point are used to form the covariance matrix of the target 3D point, where the target 3D point is any 3D point in the target mesh. Eigenvalue decomposition is performed on the covariance matrix of the target 3D point to obtain multiple eigenvalues ​​corresponding to the target 3D point. The eigenvalue with the smallest value among the multiple eigenvalues ​​corresponding to the target 3D point is determined as the curvature of the target 3D point. 3D points with curvature less than a first value are selected as planar points, and 3D points with curvature greater than a second value are selected as corner points. 3D points with curvature greater than or equal to the first value and less than or equal to the second value are filtered out. The second determining module is used to convert the plane points and corner points corresponding to multiple frames of point cloud data to the target coordinate system based on the GNSS_INS data and the initial values ​​of the extrinsic parameters of the lidar, thereby obtaining a point cloud map; the initial values ​​of the extrinsic parameters are used to indicate the relative positional relationship between the inertial satellite navigation unit and the lidar. A voxelization module is used to voxelize the point cloud map to obtain multiple voxels; The third determining module is used to determine the fitting features of each voxel based on the principal component analysis results of each voxel; the fitting features are used to characterize whether the voxel can be fitted according to planar features or line features; The module is used to construct the least squares optimization equation based on the distances and residuals between all 3D points within each voxel and the fitted features. The output module is used to solve the least squares optimization equation to obtain the optimized extrinsic parameters of the vehicle's lidar.

7. An electronic device, characterized in that, include: One or more processors; Memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications being configured to perform the method as described in any one of claims 1-5.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores processor-executable program code, which, when executed by the processor, causes the processor to perform the method according to any one of claims 1-5.

Citation Information

Patent Citations

  • Airborne laser radar data-based building three-dimensional reconstruction method

    CN106097311A

  • Plane detection method, computing device and circuit system

    CN110458805A

  • Data processing method and device

    CN113628256A

  • Multi-line laser radar and GNSS SINS joint calibration method, system and medium

    CN115639547A

  • Method and system for reconstructing and positioning underground mine

    CN116309179A