Method for optimizing visual inertial odometer based on laser point cloud

By synchronously acquiring and processing images, laser point clouds and inertial measurement data, calculating the depth and Plücker coordinates of feature points and straight lines, and performing nonlinear optimization, the stability and accuracy issues of the visual inertial odometry are solved and a more efficient calculate.

CN118758334APending Publication Date: 2024-10-11BEIHANG UNIV
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410945963.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

Existing methods for optimizing visual inertial odometry using laser point clouds have problems such as poor stability, low accuracy, poor robustness, and the algorithm takes a long time.

Method used

A method for optimizing visual inertial odometry based on laser point cloud is adopted, including synchronously acquiring image data, laser point cloud data and inertial measurement data, extracting feature points and feature straight lines, filtering laser point cloud data, and calculating the depth and characteristics of feature points. Plücker coordinates of the straight line, and perform nonlinear optimization based on these data to reduce the time consumption of the mileage calculation method and improve its stability and accuracy.

Benefits of technology

It effectively improves the stability of the visual inertial odometry in a structured environment, reduces the calculation time, and improves the accuracy and robustness of the odometry.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118758334A_ABST
    Figure CN118758334A_ABST
Patent Text Reader

Abstract

The invention discloses a method for optimizing a visual inertial odometer based on laser point cloud. The method comprises the following steps: S1, synchronously acquiring image data, laser point cloud data and inertial measurement data of a target carrier within a preset time period; feature points and feature straight lines of the image data are obtained, and feature tracking is carried out; screening out laser point cloud data in the view field of the camera; carrying out pre-integration on the inertial measurement data to obtain an IMU pre-integration value; s2, using the screened laser point cloud data to calculate the depth of a feature point and the Plcarbon coordinate of a feature straight line; and S3, based on the depth of the feature point, the Plcarbon coordinate of the feature straight line and the IMU pre-integral value, carrying out nonlinear optimization on the visual inertial odometer of the target carrier. According to the method, the stability of the mileage calculation method in a structured environment can be effectively improved, the time consumption of the mileage calculation method is effectively reduced, and the accuracy and robustness of the mileage calculation method are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of visual inertial odometers, and more particularly to a method for optimizing a visual inertial odometer based on laser point cloud. Background Art

[0002] With the rapid development of science and technology, the optimization of visual inertial odometry using laser point clouds has been widely studied.

[0003] However, existing methods of optimizing visual inertial odometry using laser point clouds have problems such as poor stability, low accuracy, poor robustness, and long algorithm time consumption.

[0004] Therefore, how to provide a method for optimizing visual inertial odometry based on laser point cloud, which can effectively improve the stability of the mileage calculation method in a structured environment, effectively reduce the time consumption of the mileage calculation method, and improve the accuracy and robustness of the mileage calculation method is a problem that technical personnel in this field urgently need to solve. Summary of the invention

[0005] In view of this, an object of the present invention is to provide a method for optimizing visual inertial odometer based on laser point cloud.

[0006] In order to achieve the above object, the present invention adopts the following technical solution:

[0007] A method for optimizing a visual inertial odometer based on a laser point cloud comprises the following steps:

[0008] S1: synchronously acquire image data, laser point cloud data and inertial measurement data of the target carrier within a preset time period;

[0009] Obtain feature points and feature lines of image data and perform feature tracking;

[0010] Filter out the laser point cloud data within the camera's field of view;

[0011] Pre-integrate the inertial measurement data to obtain the IMU pre-integration value;

[0012] S2: Calculate the depth of feature points and the Plücker coordinates of feature lines using the screened laser point cloud data;

[0013] S3: Nonlinear optimization of the visual inertial odometry of the target carrier based on the depth of feature points, Plücker coordinates of feature lines, and IMU pre-integrated values.

[0014] Preferably, S1 specifically includes:

[0015] S11: Acquire each frame of image data of the target carrier within a preset time period, and synchronously obtain the laser point cloud data and inertial measurement data corresponding to each frame of image data;

[0016] Each frame of image data and its corresponding laser point cloud data and inertial measurement data perform the following steps:

[0017] S12: Use Harris corner detection algorithm to extract feature points of image data in the camera coordinate system at time t And match the feature points between two adjacent frames based on the sparse optical flow method; where time t is the time corresponding to the frame of image data currently being processed; i = 1, 2, 3, 4...;

[0018] S13: extracting a plurality of straight lines of the image data in the camera coordinate system at the tth moment by using the LSD algorithm, and screening out straight lines whose lengths are greater than a first preset threshold value according to the lengths of the plurality of straight lines, to obtain characteristic straight lines of the image data in the camera coordinate system at the tth moment And match the characteristic straight line between two adjacent frames based on the LBD algorithm; where i=1, 2, 3, 4...;

[0019] S14: transform the laser point cloud data in the laser radar coordinate system at the tth moment into the camera coordinate system, and then filter out the laser point cloud data in the camera coordinate system at the tth moment within the camera field of view according to the camera field of view Wherein, i=1, 2, 3, 4, ...;

[0020] S15: Pre-integrate the inertial measurement data in the IMU coordinate system at the tth moment to obtain an IMU pre-integration value between the tth moment and the t+Δtth moment, where Δt represents the time difference between two adjacent frames of image data.

[0021] Preferably, the IMU pre-integrated value between the tth moment and the t+Δtth moment includes the velocity pre-integrated value Δv between the tth moment and the t+Δtth moment Δt , the position pre-integrated value ΔT between time t and time t+Δt Δt and the rotation pre-integrated value ΔR between time t and time t+Δt Δt ;

[0022] Specific:

[0023]

[0024] Wherein, Δt represents the time difference between two adjacent frames of image data; and They represent the angular velocity and linear acceleration measured by the IMU in the IMU coordinate system at the tth moment respectively; and They represent the bias of angular velocity and linear acceleration at the tth moment respectively; and Represent the white noise of angular velocity and linear acceleration at time t respectively.

[0025] Preferably, S2 specifically includes:

[0026] S21: Based on the camera's intrinsic parameter matrix K, the feature points Back-project onto the unit sphere centered on the camera to obtain feature points

[0027] S22: Laser point cloud data Projecting onto the unit sphere, obtaining laser point cloud data

[0028] S23: Using KDTree from laser point cloud data Get feature points The surrounding k adjacent laser point cloud data are used to obtain the adjacent point set

[0029] S24: Calculate the adjacent point set The covariance matrix of

[0030] S25: for the covariance matrix Perform eigenvalue decomposition to obtain eigenvalues Eigenvalue and eigenvalues in

[0031] S26: Based on eigenvalue Eigenvalue and eigenvalues Calculate flatness like If it is greater than the second preset threshold, the plane normal vector is obtained. in is the eigenvalue The corresponding eigenvector; if If the value is less than or equal to the second preset threshold, execute S28;

[0032] S27: Get the adjacent point set Mid-range feature points The farthest laser point cloud data Calculate the feature point at time t Depth in camera coordinates

[0033] S28: Acquisition and feature points Matching feature points

[0034] S29: Use the camera internal parameter matrix K to transform the feature points and feature points Back-project onto the normalized plane to obtain feature points and feature points Using the formula Find the depth in, Represents the rotation matrix of the camera coordinate system from time t to time t+Δt; Represents the translation matrix of the camera coordinate system from time t to time t+Δt.

[0035] Preferably, S2 specifically further includes:

[0036] S21': Get the characteristic line Starting point and end point The starting point and end point Back-project onto the normalized plane to obtain the starting point and end point

[0037] S22': Calculate the origin of the camera coordinate system O c ,starting point and end point Composition plane The normal vector

[0038] S23': Calculate laser point cloud data To plane Distance Filter distance The laser point cloud data that is smaller than the third preset threshold constitutes a plane set

[0039] S24': Calculate the plane set The covariance matrix of

[0040] S25': covariance matrix Perform eigenvalue decomposition to obtain eigenvalues Eigenvalue and eigenvalues in

[0041] S26': Based on eigenvalue Eigenvalue and eigenvalues Calculate straightness like If it is greater than the fourth preset threshold, the characteristic straight line is obtained. Direction vector Then we get the characteristic straight line Plücker coordinates in the camera coordinate system

[0042] in, is the eigenvalue The corresponding eigenvector; if is less than or equal to the fourth preset threshold, executing S27';

[0043] S27': Get the characteristic line Matching feature lines

[0044] S28': Get the characteristic line and the origin of the camera coordinate system O c The plane formed

[0045] Get characteristic line and the origin of the camera coordinate system O c The plane formed

[0046] S29': Plane-based and plane Find the characteristic line Plücker coordinates in the camera coordinate system in,[.] × Represents the antisymmetric matrix of a vector.

[0047] Preferably, S3 specifically includes:

[0048] S31: Calculate feature points The residual of

[0049] S32: Calculate characteristic straight line The residual of

[0050] S33: Based on feature points The residual and characteristic straight line The residual error, the velocity pre-integrated value Δv between the tth moment and the t+Δtth moment Δt , the position pre-integrated value ΔT between time t and time t+Δt Δt and the rotation pre-integrated value ΔR between time t and time t+Δt Δt Optimize the visual inertial odometry of the target vehicle at time t.

[0051] Preferably, the feature points are calculated based on the following formula The residual of:

[0052]

[0053] in, and They represent the rotation matrix and translation matrix from the camera coordinate system to the IMU coordinate system respectively; Represents the rotation matrix from the IMU coordinate system to the world coordinate system at time t+Δt; Represents the translation matrix from the IMU coordinate system to the world coordinate system at time t+Δt; Represents the rotation matrix from the IMU coordinate system to the world coordinate system at time t; represents the translation matrix from the IMU coordinate system to the world coordinate system at time t; b 1 ,b 2 express two orthogonal bases in the tangent plane of the unit sphere;

[0054] Representing feature points The residual of ; χ represents the state variable in the sliding window.

[0055] Preferably, the characteristic straight line The residual of is obtained based on the following formula:

[0056]

[0057] in, Characteristic line Plücker coordinates in the world coordinate system; Represents the rotation matrix from the camera coordinate system to the world coordinate system at time t; Represents the translation matrix from the camera coordinate system to the world coordinate system at the tth moment; Characteristic line Plücker coordinates of the camera coordinate system at time t; Characteristic line Plücker coordinates of the camera coordinate system at time t+Δt; Represents the rotation matrix from the camera coordinate system to the world coordinate system at time t+Δt; K represents the translation matrix from the camera coordinate system to the world coordinate system at time t+Δt; L represents the projection matrix; [f x f y ] and [u x u y ] represent the focal length and principal point of the camera respectively; Characteristic line The residual; d(,) represents the distance from the point to the line; and Characteristic line The starting point and end point of and express The first two coordinates of .

[0058] Preferably, S33 is implemented based on the following formula:

[0059]

[0060] Where, χ* represents the visual inertial odometer of the optimized target carrier; f p (χ) represents the marginalized prior error; Represents the IMU pre-integration error.

[0061] Preferably, The calculation formula is:

[0062]

[0063] in, and They represent the bias of angular velocity and linear acceleration at time t+Δt respectively; Represents the velocity transformation matrix from the IMU coordinate system to the world coordinate system at time t; represents the velocity transformation matrix from the IMU coordinate system to the world coordinate system at time t+Δt; g W Represents the gravity vector in the world coordinate system.

[0064] It can be seen from the above technical solution that, compared with the prior art, the present invention discloses a method for optimizing the visual inertial odometer based on laser point cloud, which can effectively improve the stability of the odometer calculation method in a structured environment, effectively reduce the time consumption of the odometer calculation method, and improve the accuracy and robustness of the odometer calculation method. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0066] Figure 1 The present invention provides a flowchart of a method for optimizing a visual inertial odometer based on a laser point cloud in an embodiment of the present invention. DETAILED DESCRIPTION

[0067] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0068] like Figure 1 As shown, an embodiment of the present invention discloses a method for optimizing a visual inertial odometer based on a laser point cloud, comprising the following steps:

[0069] S1: synchronously acquire image data, laser point cloud data and inertial measurement data of the target carrier within a preset time period;

[0070] Obtain feature points and feature lines of image data and perform feature tracking;

[0071] Filter out the laser point cloud data within the camera's field of view;

[0072] Pre-integrate the inertial measurement data to obtain the IMU pre-integration value;

[0073] It can be understood that the target carrier of the present invention is a car, a robot, etc.

[0074] S2: Calculate the depth of feature points and the Plücker coordinates of feature lines using the screened laser point cloud data;

[0075] S3: Nonlinear optimization of the visual inertial odometry of the target carrier based on the depth of feature points, Plücker coordinates of feature lines, and IMU pre-integrated values.

[0076] Furthermore, S1 specifically includes:

[0077] S11: Acquire each frame of image data of the target carrier within a preset time period, and synchronously obtain the laser point cloud data and inertial measurement data corresponding to each frame of image data;

[0078] Each frame of image data and its corresponding laser point cloud data and inertial measurement data perform the following steps:

[0079] S12: Use Harris corner detection algorithm to extract feature points of image data in the camera coordinate system at time t And match the feature points between two adjacent frames based on the sparse optical flow method; where time t is the time corresponding to the frame of image data currently being processed; i = 1, 2, 3, 4...;

[0080] It is understandable that: Specifically represents the i-th feature point of the image data in the camera coordinate system at the t-th time;

[0081] S13: extracting a plurality of straight lines of the image data in the camera coordinate system at the tth moment by using the LSD algorithm, and screening out straight lines whose lengths are greater than a first preset threshold value according to the lengths of the plurality of straight lines, to obtain characteristic straight lines of the image data in the camera coordinate system at the tth moment And match the characteristic straight line between two adjacent frames based on the LBD algorithm; where i=1, 2, 3, 4...;

[0082] It is understandable that: Specifically, it represents the i-th characteristic straight line of the image data in the camera coordinate system at the t-th moment.

[0083] S14: transform the laser point cloud data in the laser radar coordinate system at the tth moment into the camera coordinate system, and then filter out the laser point cloud data in the camera coordinate system at the tth moment within the camera field of view according to the camera field of view Wherein, i=1, 2, 3, 4, ...;

[0084] Specific:

[0085] 1) Based on the formula The laser point cloud data in the laser radar coordinate system at time t Transform to the camera coordinate system in, Represents the extrinsic parameters from the lidar coordinate system to the camera coordinate system.

[0086] 2) According to the camera field of view Filter out

[0087] The screening process is as follows:

[0088] for Calculate its azimuth angle θ and inclination angle φ:

[0089] θ=arctan(x / z)

[0090]

[0091] According to the camera field of view, the laser point cloud data outside the field of view is filtered. That is, if θ min ≤θ≤θ max And φ min ≤φ≤φ max , then the laser point cloud data is retained, otherwise it is discarded, where θ min and θ max are the minimum and maximum values ​​of the camera’s horizontal field of view, φ min and φ max are the minimum and maximum vertical field of view of the camera, respectively.

[0092] It is understandable that: Specifically, it represents the i-th laser point cloud data within the camera field of view in the camera coordinate system at the t-th moment.

[0093] S15: Pre-integrate the inertial measurement data in the IMU coordinate system at the tth moment to obtain an IMU pre-integration value between the tth moment and the t+Δtth moment, where Δt represents the time difference between two adjacent frames of image data.

[0094] Further, the IMU pre-integrated value between the tth moment and the t+Δtth moment includes the velocity pre-integrated value Δv between the tth moment and the t+Δtth moment Δt , the position pre-integrated value ΔT between time t and time t+Δt Δt and the rotation pre-integrated value ΔR between time t and time t+Δt Δt ;

[0095] Specific:

[0096]

[0097] Wherein, Δt represents the time difference between two adjacent frames of image data; and They represent the angular velocity and linear acceleration (i.e., inertial measurement data) measured by the IMU in the IMU coordinate system at the tth moment respectively; and They represent the bias of angular velocity and linear acceleration at the tth moment respectively; and Represent the white noise of angular velocity and linear acceleration at time t respectively.

[0098] Furthermore, S2 specifically includes:

[0099] S21: Based on the camera's intrinsic parameter matrix K, the feature points Back-project onto the unit sphere centered on the camera to obtain feature points

[0100] Specific:

[0101] Among them, ||·|| represents the bi-norm of the vector; is the camera’s intrinsic parameter matrix; [f x f y ] and [u x u y ] represent the focal length and principal point of the camera respectively.

[0102] S22: Laser point cloud data Projecting onto the unit sphere, obtaining laser point cloud data

[0103] Specific: ||·|| represents the bi-norm of a vector.

[0104] S23: Using KDTree from laser point cloud data Get feature points The surrounding k adjacent laser point cloud data are used to obtain the adjacent point set

[0105] S24: Calculate the adjacent point set The covariance matrix of

[0106] Specific:

[0107]

[0108]

[0109] in, Represents a set of adjacent points The sth adjacent laser point cloud data in x s ,y s ,z s express The three-dimensional coordinates of Represents a set of adjacent points The mean coordinates of all neighboring laser point cloud data in ;

[0110] S25: for the covariance matrix Perform eigenvalue decomposition to obtain eigenvalues Eigenvalue and eigenvalues in

[0111] S26: Based on eigenvalue Eigenvalue and eigenvalues Calculate flatness like If it is greater than the second preset threshold, the plane normal vector is obtained. in is the eigenvalue The corresponding eigenvector; if If the value is less than or equal to the second preset threshold, execute S28;

[0112] S27: Get the adjacent point set Mid-range feature points The farthest laser point cloud data Calculate the feature point at time t Depth in camera coordinates

[0113] S28: Acquisition and feature points Matching feature points (obtained based on sparse optical flow method);

[0114] S29: Use the camera internal parameter matrix K to transform the feature points and feature points Back-project onto the normalized plane to obtain feature points and feature points Using the formula Find the depth in, Represents the rotation matrix of the camera coordinate system from time t to time t+Δt; Represents the translation matrix of the camera coordinate system from time t to time t+Δt.

[0115] Specific:

[0116]

[0117] It can be understood that the normalized plane refers to the plane with the camera coordinate system as the origin, along the camera Z axis, and a distance of 1 from the origin;

[0118] It is understandable that: feature points and The depths in the camera coordinate system are and Then the following formula holds:

[0119]

[0120] Cross-multiply both sides of the above equation

[0121] We can get:

[0122]

[0123] The formula There is only one unknown number in By solving You can get On this basis, solve the formula You can get

[0124] Furthermore, S2 specifically includes:

[0125] S21': Get the characteristic line Starting point and end point The starting point and end point Back-project onto the normalized plane to obtain the starting point and end point

[0126] Specific:

[0127]

[0128] S22': Calculate the origin of the camera coordinate system O c ,starting point and end point Composition plane The normal vector

[0129] Specific:

[0130] S23': Calculate laser point cloud data To plane Distance Filter distance The laser point cloud data that is smaller than the third preset threshold constitutes a plane set

[0131] Specific:

[0132] S24': Calculate the plane set The covariance matrix of

[0133] Specific:

[0134]

[0135] in, Represents a flat collection The mth laser point cloud data in x m ,y m 、z m express The three-dimensional coordinates of Represents a flat collection The mean coordinates of all laser point cloud data in K 1 Represents a flat collection The number of all laser point cloud data in .

[0136] S25': covariance matrix Perform eigenvalue decomposition to obtain eigenvalues Eigenvalue and eigenvalues in

[0137] S26': Based on eigenvalue Eigenvalue and eigenvalues Calculate straightness like If it is greater than the fourth preset threshold, the characteristic straight line is obtained. Direction vector Then we get the characteristic straight line Plücker coordinates in the camera coordinate system

[0138] in, is the eigenvalue The corresponding eigenvector; if is less than or equal to the fourth preset threshold, executing S27';

[0139] S27': Get the characteristic line Matching feature lines (obtained based on LBD algorithm matching);

[0140] S28': Get the characteristic line and the origin of the camera coordinate system O c The plane formed

[0141] Get characteristic line and the origin of the camera coordinate system O c The plane formed

[0142] S29': Plane-based and plane Find the characteristic line Plücker coordinates in the camera coordinate system in,[.] × Represents the antisymmetric matrix of a vector.

[0143] Furthermore, S3 specifically includes:

[0144] S31: Calculate feature points The residual of

[0145] S32: Calculate characteristic straight line The residual of

[0146] S33: Based on feature points The residual and characteristic straight line The residual error, the velocity pre-integrated value Δv between the tth moment and the t+Δtth moment Δt , the position pre-integrated value ΔT between time t and time t+Δt Δtand the rotation pre-integrated value ΔR between time t and time t+Δt Δt Optimize the visual inertial odometry of the target vehicle at time t.

[0147] Furthermore, the feature points are calculated based on the following formula: The residual of:

[0148]

[0149] in, and They represent the rotation matrix and translation matrix from the camera coordinate system to the IMU coordinate system respectively; Represents the rotation matrix from the IMU coordinate system to the world coordinate system at time t+Δt; Represents the translation matrix from the IMU coordinate system to the world coordinate system at time t+Δt; Represents the rotation matrix from the IMU coordinate system to the world coordinate system at time t; represents the translation matrix from the IMU coordinate system to the world coordinate system at time t; b 1 ,b 2 express two orthogonal bases in the tangent plane of the unit sphere;

[0150] Representing feature points The residual of ; χ represents the state variable in the sliding window.

[0151] Furthermore, the characteristic line The residual of is obtained based on the following formula:

[0152]

[0153] It can be understood that: This formula represents the Plücker coordinates under the camera coordinates Convert to Plücker coordinates in the world coordinate system

[0154]

[0155] It can be understood that: This formula means that Transform to the matching t+Δt keyframe;

[0156]

[0157] It can be understood that this formula represents the projection of a straight line onto a plane image.

[0158]

[0159] in, Characteristic line Plücker coordinates in the world coordinate system; Represents the rotation matrix from the camera coordinate system to the world coordinate system at time t; Represents the translation matrix from the camera coordinate system to the world coordinate system at the tth moment; Characteristic line Plücker coordinates of the camera coordinate system at time t; Characteristic line Plücker coordinates of the camera coordinate system at time t+Δt; Represents the rotation matrix from the camera coordinate system to the world coordinate system at time t+Δt; K represents the translation matrix from the camera coordinate system to the world coordinate system at time t+Δt; L represents the projection matrix; [f x f y ] and [u x u y ] represent the focal length and principal point of the camera respectively; Characteristic line The residual of; d(,) represents the distance from the point to the line; and Characteristic line The starting point and end point of and express The first two coordinates of .

[0160] Furthermore, S33 is implemented based on the following formula:

[0161]

[0162] Where, χ* represents the visual inertial odometer of the optimized target carrier; f p (χ) represents the marginalized prior error; Represents the IMU pre-integration error.

[0163] It can be understood that: χ represents the state variable of the target carrier in the sliding window;

[0164] χ={χ t-n1Δt ... t-Δt ,x t ,x t+Δt ... t+n2Δt};

[0165] χ t =[x t ,δ t ,o t ];

[0166]

[0167] Among them, n 1 and n 2 are all positive integers greater than or equal to 0; for 4-parameter orthogonal representation of ; express The quaternion representation of ;

[0168] Similarly:

[0169]

[0170] Furthermore, The calculation formula is:

[0171]

[0172] in, and They represent the bias of angular velocity and linear acceleration at time t+Δt respectively; Represents the velocity transformation matrix from the IMU coordinate system to the world coordinate system at time t; represents the velocity transformation matrix from the IMU coordinate system to the world coordinate system at time t+Δt; g W Represents the gravity vector in the world coordinate system.

[0173] The present invention can obtain the optimal solution by using factor graph and incremental smoothing of Bayes tree for optimization.

[0174] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0175] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for optimizing visual inertial odometer based on laser point cloud, characterized in that: The following steps are involved: S1: synchronously acquire image data, laser point cloud data and inertial measurement data of the target carrier within a preset time period; Obtain feature points and feature lines of image data and perform feature tracking; Filter out the laser point cloud data within the camera's field of view; Pre-integrate the inertial measurement data to obtain the IMU pre-integration value; S2: Calculate the depth of feature points and the Plücker coordinates of feature lines using the screened laser point cloud data; S3: Nonlinear optimization of the visual inertial odometry of the target carrier based on the depth of feature points, Plücker coordinates of feature lines, and IMU pre-integrated values.

2. The method for optimizing visual inertial odometer based on laser point cloud according to claim 1, characterized in that: S1 specifically includes: S11: Acquire each frame of image data of the target carrier within a preset time period, and synchronously obtain the laser point cloud data and inertial measurement data corresponding to each frame of image data; Each frame of image data and its corresponding laser point cloud data and inertial measurement data perform the following steps: S12: Use Harris corner detection algorithm to extract feature points of image data in the camera coordinate system at time t And match the feature points between two adjacent frames based on the sparse optical flow method; where time t is the time corresponding to the frame of image data currently being processed; i = 1, 2, 3, 4...; S13: extracting a plurality of straight lines of the image data in the camera coordinate system at the tth moment by using the LSD algorithm, and screening out straight lines whose lengths are greater than a first preset threshold value according to the lengths of the plurality of straight lines, to obtain characteristic straight lines of the image data in the camera coordinate system at the tth moment And match the characteristic straight line between two adjacent frames based on the LBD algorithm; where i=1, 2, 3, 4...; S14: transform the laser point cloud data in the laser radar coordinate system at the tth moment into the camera coordinate system, and then filter out the laser point cloud data in the camera coordinate system at the tth moment within the camera field of view according to the camera field of view Wherein, i=1, 2, 3, 4, ...; S15: Pre-integrate the inertial measurement data in the IMU coordinate system at the tth moment to obtain an IMU pre-integration value between the tth moment and the t+Δtth moment, where Δt represents the time difference between two adjacent frames of image data.

3. The method for optimizing visual inertial odometer based on laser point cloud according to claim 2, characterized in that: The IMU pre-integrated value between the tth time and the t+Δtth time includes the velocity pre-integrated value Δv between the tth time and the t+Δtth time Δt , the position pre-integrated value ΔT between time t and time t+Δt Δt and the rotation pre-integrated value ΔR between time t and time t+Δt Δt ; Specific: Wherein, Δt represents the time difference between two adjacent frames of image data; and They represent the angular velocity and linear acceleration measured by the IMU in the IMU coordinate system at the tth moment respectively; and They represent the bias of angular velocity and linear acceleration at the tth moment respectively; and Represent the white noise of angular velocity and linear acceleration at time t respectively.

4. The method for optimizing visual inertial odometer based on laser point cloud according to claim 3, characterized in that: S2 specifically includes: S21: Based on the camera's intrinsic parameter matrix K, the feature points Back-project onto the unit sphere centered on the camera to obtain feature points S22: Laser point cloud data Projecting onto the unit sphere, obtaining laser point cloud data S23: Using KDTree from laser point cloud data Get feature points The surrounding k adjacent laser point cloud data are used to obtain the adjacent point set S24: Calculate the adjacent point set The covariance matrix of S25: for the covariance matrix Perform eigenvalue decomposition to obtain eigenvalues Eigenvalue and eigenvalues in S26: Based on eigenvalue Eigenvalue and eigenvalues Calculate flatness like If it is greater than the second preset threshold, the plane normal vector is obtained. in is the eigenvalue The corresponding eigenvector; if If the value is less than or equal to the second preset threshold, execute S28; S27: Get the adjacent point set Mid-range feature points The farthest laser point cloud data Calculate the feature point at time t Depth in camera coordinates S28: Acquisition and feature points Matching feature points S29: Use the camera internal parameter matrix K to transform the feature points and feature points Back-project onto the normalized plane to obtain feature points and feature points Using the formula Find the depth in, Represents the rotation matrix of the camera coordinate system from time t to time t+Δt; Represents the translation matrix of the camera coordinate system from time t to time t+Δt.

5. The method for optimizing visual inertial odometer based on laser point cloud according to claim 4, characterized in that: S2 specifically includes: S21': Get the characteristic line Starting point and end point The starting point and end point Back-project onto the normalized plane to obtain the starting point and end point S22': Calculate the origin of the camera coordinate system O c ,starting point and end point Composition plane The normal vector S23': Calculate laser point cloud data To plane Distance Filter distance The laser point cloud data that is smaller than the third preset threshold constitutes a plane set S24': Calculate the plane set The covariance matrix of S25': covariance matrix Perform eigenvalue decomposition to obtain eigenvalues Eigenvalue and eigenvalues in S26': Based on eigenvalue Eigenvalue and eigenvalues Calculate straightness like If it is greater than the fourth preset threshold, the characteristic straight line is obtained. Direction vector Then we get the characteristic straight line Plücker coordinates in the camera coordinate system in, is the eigenvalue The corresponding eigenvector; if is less than or equal to the fourth preset threshold, executing S27'; S27': Get the characteristic line Matching feature lines S28': Get the characteristic line and the origin of the camera coordinate system O c The plane formed Get characteristic line and the origin of the camera coordinate system O c The plane formed S29': Plane-based and plane Find the characteristic line Plücker coordinates in the camera coordinate system in,[.] × Represents the antisymmetric matrix of a vector.

6. The method for optimizing visual inertial odometer based on laser point cloud according to claim 5, characterized in that: S3 specifically includes: S31: Calculate feature points The residual of S32: Calculate characteristic straight line The residual of S33: Based on feature points The residual and characteristic straight line The residual error, the velocity pre-integrated value Δv between the tth moment and the t+Δtth moment Δt , the position pre-integrated value ΔT between time t and time t+Δt Δt and the rotation pre-integrated value ΔR between time t and time t+Δt Δt Optimize the visual inertial odometry of the target vehicle at time t.

7. The method for optimizing visual inertial odometer based on laser point cloud according to claim 6, characterized in that: The feature points are calculated based on the following formula The residuals: in, and They represent the rotation matrix and translation matrix from the camera coordinate system to the IMU coordinate system respectively; Represents the rotation matrix from the IMU coordinate system to the world coordinate system at time t+Δt; Represents the translation matrix from the IMU coordinate system to the world coordinate system at time t+Δt; Represents the rotation matrix from the IMU coordinate system to the world coordinate system at time t; Represents the translation matrix from the IMU coordinate system to the world coordinate system at time t; b1, b2 represent two orthogonal bases in the tangent plane of the unit sphere; Representing feature points The residual of ; χ represents the state variable in the sliding window.

8. The method for optimizing visual inertial odometer based on laser point cloud according to claim 7, characterized in that: Feature Line The residual of is obtained based on the following formula: in, Characteristic line Plücker coordinates in the world coordinate system; Represents the rotation matrix from the camera coordinate system to the world coordinate system at time t; Represents the translation matrix from the camera coordinate system to the world coordinate system at the tth moment; Characteristic line Plücker coordinates of the camera coordinate system at time t; Characteristic line Plücker coordinates of the camera coordinate system at time t+Δt; Represents the rotation matrix from the camera coordinate system to the world coordinate system at time t+Δt; K represents the translation matrix from the camera coordinate system to the world coordinate system at time t+Δt; L represents the projection matrix; [f x f y ] and [u x u y ] represent the focal length and principal point of the camera respectively; Characteristic line The residual of; d(,) represents the distance from the point to the line; and Characteristic line The starting point and end point of and express The first two coordinates of .

9. The method for optimizing visual inertial odometer based on laser point cloud according to claim 8, characterized in that: S33 is implemented based on the following formula: Where, χ* represents the visual inertial odometer of the optimized target carrier; f p (χ) represents the marginalized prior error; Represents the IMU pre-integration error.

10. The method for optimizing visual inertial odometer based on laser point cloud according to claim 9, characterized in that: The calculation formula is: in, and The second represents the bias of angular velocity and linear acceleration at time t+Δt; Represents the velocity transformation matrix from the IMU coordinate system to the world coordinate system at time t; represents the velocity transformation matrix from the IMU coordinate system to the world coordinate system at time t+Δt; g W Represents the gravity vector in the world coordinate system.

Citation Information

Cited By

  • Method for improving positioning robustness of laser speedometer

    CN120558207A

  • Point cloud and camera image matching method and device and point cloud coloring method and system

    CN121213627A