A dynamic visual SLAM method integrated with inertial navigation

By fusing inertial navigation and visual data in the SLAM method, and using tightly coupled optimization of IMU integrals and visual data, the problem of insufficient positioning accuracy and robustness of the SLAM method in dynamic environments is solved, and more accurate predictions on the KITTI data set are achieved. High-precision and robust positioning effects.

CN114964276BActive Publication Date: 2024-09-13HARBIN INST OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210588384.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-26
Publication Date
2024-09-13
Estimated Expiration
2042-05-26

AI Technical Summary

Technical Problem

Existing SLAM methods have insufficient positioning accuracy and robustness in dynamic environments. Especially in unmanned driving scenarios, when the vehicle moves quickly or the light changes, conventional visual SLAM methods are difficult to provide stable positioning results.

Method used

A dynamic visual SLAM method that integrates inertial navigation is adopted. Through the tight coupling optimization of IMU and camera, the accuracy and robustness of the SLAM method are improved by using the complementarity of IMU integral and visual data, including IMU pose calculation and robustness. Camera pose estimation and tightly coupled optimization using sliding windows for highly accurate and robust state estimation.

Benefits of technology

The positioning accuracy and robustness are significantly improved on the KITTI data set, and it performs better than the purely dynamic visual SLAM method. It provides more stable positioning results, especially in scenes with rapid vehicle movement or light changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114964276B
    Figure CN114964276B
Patent Text Reader

Abstract

The invention relates to the field of dynamic visual positioning and mapping solutions, and more specifically to a dynamic visual SLAM method fused with inertial navigation. The method utilizes the complementarity of inertial navigation IMU and camera to improve the accuracy and robustness of the SLAM method. The method comprises the following steps: S1: calculating IMU posture; S2: robust camera posture estimation; S3: tight coupling optimization of fused IMU; firstly, obtaining the posture and speed in an IMU coordinate system according to IMU integration; secondly, when the camera vision condition is insufficient, that is, the vehicle moves quickly, the object is blocked, the light changes, etc., the IMU posture data can be used to provide the vehicle positioning result, so as to enhance the robustness of the dynamic visual SLAM system; a factor graph based on a Bayesian network is used to build a fusion optimization algorithm, and an IMU pre-integration factor is introduced for global constraint; by comparing the experimental results on a KITTI data set, it can be seen that the method is superior to pure visual dynamic SLAM in terms of accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of dynamic visual positioning and mapping solutions, and more specifically to a dynamic visual SLAM method integrating inertial navigation. Background Art

[0002] Real-time and accurate positioning technology is one of the key technologies for driverless cars. It provides key information such as the vehicle's position in the world coordinate system and its orientation. Real-time positioning usually uses the following three methods: 1) high-precision integrated navigation equipment using satellite signals and inertial measurement units (IMUs); 2) high-precision map alignment technology; 3) simultaneous localization and mapping (SLAM) technology. Although the positioning results of high-precision integrated navigation equipment are stable, there are some serious defects, such as satellite signal obstruction, high hardware cost, and algorithm black box. High-precision map alignment relies on high-precision maps drawn in advance, and has poor robustness to environmental changes. Therefore, the SLAM method has become a research hotspot to meet the needs of real-time and accurate positioning. There have been some very good results in the SLAM research direction, including vision-based SLAM positioning solutions and laser-based SLAM positioning solutions.

[0003] Conventional SLAM methods assume that all objects in the environment are stationary, while some SLAM systems that can operate in dynamic environments simply regard dynamic objects in the environment as outliers and remove them from the environment, and then use conventional SLAM methods to process them. This seriously affects the application of SLAM technology in unmanned driving scenarios. Conventional SLAM methods track visual geometric features between frames, namely points, lines, and surfaces, and then minimize reprojection or photometric errors through bundle adjustment (BA). However, in addition to these low-level elements in the environment, objects are also an important component of SLAM systems that has not been well explored. The introduction of object objects can provide more constraints for the BA adjustment stage. As a result, research on object-level dynamic visual SLAM has emerged in the past two years. However, they only use cameras as sensors, and the vehicle positioning results still have robustness problems in scenes such as fast movement, turning or light changes. Summary of the invention

[0004] The purpose of the present invention is to provide a dynamic visual SLAM method integrated with inertial navigation, which can utilize the complementary advantages of inertial navigation and camera to improve the accuracy and robustness of the SLAM method; its positioning accuracy and robustness are better than those of the pure dynamic visual SLAM method on the KITTI dataset.

[0005] The purpose of the present invention is achieved through the following technical solutions:

[0006] A dynamic visual SLAM method integrating inertial navigation is provided, which utilizes the complementarity between inertial navigation IMU and camera to improve the accuracy and robustness of the SLAM method. The method comprises the following steps:

[0007] S1: Calculate IMU pose;

[0008] S2: Robust camera pose estimation;

[0009] S3: Tightly coupled optimization of fused IMU;

[0010] The IMU posture calculation is to obtain the posture and velocity in the IMU coordinate system according to the IMU integral.

[0011] The steps for calculating the IMU pose are as follows:

[0012] The IMU's measurements are the gyroscope readings and accelerometer readings The additive noise during measurement is Gaussian white noise. And the bias model is a random walk, that is, the derivative obeys the Gaussian distribution, then:

[0013]

[0014]

[0015] The variables are: a: accelerometer in IMU; g: gyroscope in IMU; b: IMU coordinate system; w: world coordinate system; q: bw Represents the rotation quaternion from the world coordinate system to the IMU coordinate system; g w is the acceleration due to gravity;

[0016] IMU displacement change from frame k to frame k+1 Speed ​​Change Posture changes for:

[0017]

[0018]

[0019]

[0020] Then at time k+1, the IMU's pose estimation is:

[0021]

[0022]

[0023]

[0024] The steps of the robust camera pose estimation are as follows:

[0025] Get the current frame from the current input image, extract point features from the image, match the feature points of adjacent frames, and estimate the camera pose based on the pinhole camera model and the matching results of adjacent frames to minimize the visual reprojection error. It can be seen that good visual conditions are an important condition for successful pose estimation. In scenes where the vehicle moves too fast or the light changes, it is impossible to obtain enough feature points.

[0026] Furthermore, in order to enhance the robustness of camera pose estimation, when sufficient visual information is not available, the IMU pose obtained by IMU integration is used to obtain a better camera pose estimation by converting the camera and IMU external parameter matrices. The camera pose estimation result is usually used as the vehicle positioning result.

[0027] That is: T cw =T cb T bw ;

[0028] Among them, T cw : The transformation matrix from the world coordinate system to the camera coordinate system, that is, the camera world coordinate system pose; T cb : The transformation matrix from the IMU coordinate system to the camera coordinate system, also called the external parameter from IMU to the camera; T bw : The transformation matrix from the world coordinate system to the IMU coordinate system, that is, the IMU world coordinate system pose;

[0029] The transformation matrix T is composed of the rotation matrix R and the translation vector t. The rotation quaternion q is a more compact way to express rotational motion and can be converted to and from the rotation matrix R.

[0030] The steps of the tight coupling optimization of the fused IMU are as follows:

[0031] Let p i,k (i=1,2,...,s;k=1,2,...,n) is the 2D association of the i-th static feature point in the k-th frame image, then the reprojection error is:

[0032]

[0033] Where f represents the camera model, is the 3D coordinate value of the i-th feature point observed in the k-1-th frame in the world coordinate system; T k is the world coordinate position of the camera when the kth frame is captured;

[0034] Assume the object motion k-1H k is the relative motion of the dynamic object from frame k-1 to frame k, and the dynamic feature points on the dynamic object The 2D correlation in the k-th frame image is p j,k (j=1,2,...,d;k=1,2,...,n), then the reprojection error is:

[0035]

[0036] Furthermore, in order to obtain a relatively real-time posture, the posture optimization adopts a sliding window-based tightly coupled VIO for high-precision and robust state estimation;

[0037] Assume there are N frames in the sliding window, and the complete state vector is defined as follows:

[0038] χ=[y0,y1,…,y N ,T cb ,m1,m2,…,m l ]

[0039]

[0040] T cb =[p cb ,q cb ]

[0041] y k is the IMU state when the kth frame image is captured, including displacement, velocity, attitude, accelerometer bias and gyroscope bias in the world coordinate system; l is the total number of visual static and dynamic features in the window;

[0042] Perform nonlinear optimization on the state vector within the sliding window:

[0043]

[0044] Where p(s) is the kernel function; the specific value is:

[0045]

[0046] Σ s is the static 3D point measurement noise covariance matrix; Σ b is the IMU noise covariance matrix; Σ d is the dynamic 3D point measurement noise covariance matrix; n b is the set of all IMU measurements in the current window; n s and n d is the set of 3D points that have been observed at least twice in the current window; p ,H p} is the marginalized prior information;

[0047] After completing the estimation of relevant state quantities of all camera and IMU data, global optimization of vision and IMU is performed uniformly to improve the accuracy of positioning and mapping.

[0048] The advantages and beneficial effects of the present invention are as follows:

[0049] Firstly, the pose and velocity in the IMU coordinate system are obtained according to the IMU integration; secondly, when the camera vision conditions are insufficient, that is, the vehicle moves quickly, objects are blocked, the light changes, etc., the IMU pose data can be used to provide vehicle positioning results to enhance the robustness of the dynamic visual SLAM system; a fusion optimization algorithm based on the Bayesian network is built, and the IMU pre-integration factor is introduced for global constraint; by comparing the experimental results on the KITTI dataset, it can be seen that this method is superior to pure visual dynamic SLAM in terms of accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] The present invention is further described in detail below with reference to the accompanying drawings and specific implementation methods.

[0051] Figure 1 is a schematic diagram of a global optimization factor graph of the present invention;

[0052] Figure 2 It is a schematic diagram of the positioning accuracy of the present invention;

[0053] Figure 3 This is a schematic diagram of the positioning accuracy of pure visual dynamic SLAM;

[0054] Figure 4 It is a trajectory schematic diagram of the present invention;

[0055] Figure 5 It is a schematic diagram of the trajectory of pure visual dynamic SLAM. DETAILED DESCRIPTION

[0056] The present invention is further described in detail below with reference to the accompanying drawings.

[0057] like Figure 2 and 3 As shown, through Figure 2 and Figure 3 By comparing the positioning accuracy of the proposed method, it can be seen that the accuracy of this method is better than that of pure visual dynamic SLAM; Figure 4 and 5 As shown, through Figure 4 and Figure 5 By comparing the trajectories of , we can see that this method is superior to pure visual dynamic SLAM in terms of robustness;

[0058] like Figures 1 to 5As shown, in order to solve the technical problem of "how to improve the accuracy and robustness of the SLAM method", the steps and functions of a visual dynamic SLAM method integrating IMU are described in detail below;

[0059] The visual dynamic SLAM method of the present invention fused with IMU uses a dynamic visual SLAM framework of VDO-SLAM, and replaces its instance segmentation algorithm with a more advanced BlendMask algorithm. Secondly, the integral calculation of IMU data is introduced to estimate the translation, speed and posture of IMU. Secondly, when the visual conditions are not good, the IMU posture is used to compensate for the camera positioning. At the same time, when the number of sliding windows reaches 20, the IMU state variables are introduced to combine the dynamic visual tight coupling optimization to obtain a relatively real-time and accurate positioning result. Finally, the IMU factor is increased for global constraint.

[0060] The specific implementation steps are as follows:

[0061] S1: Calculate IMU pose;

[0062] The IMU's measurements are the gyroscope readings and accelerometer readings Assuming that the additive noise during measurement is Gaussian white noise, And the bias model is a random walk, that is, the derivative obeys the Gaussian distribution. Then:

[0063]

[0064]

[0065] Among them, the variable subscript a: accelerometer in IMU, g: gyroscope in IMU, b: IMU coordinate system, w: world coordinate system, select the coordinate system of the first frame image as the origin of the world coordinate system. w is the acceleration due to gravity, and its value is 9.8m / s 2 .

[0066] The noise and random walk data of the IMU are given by the IMU calibration. The IMU measurement values ​​in this paper are from the corrected data after the KITTI dataset is aligned with the camera, with a frequency of 10 Hz.

[0067] Let k represent the moment when the kth frame is captured. Then, from frame k to frame k+1, the displacement change of IMU is Speed ​​Change Posture changes for:

[0068]

[0069]

[0070]

[0071] The ω and a in the formula use the Euler method to select the measured value at time k to calculate the k to k+1 time Then at frame k+1, the IMU pose estimation is:

[0072]

[0073]

[0074]

[0075] S2: Robust camera pose estimation;

[0076] Get the current frame from the current input image, extract the ORB point features from the image, match the feature points of adjacent frames, and estimate the camera pose based on the camera model and the matching results of adjacent frames to minimize the visual reprojection error. This paper uses the pinhole camera model, that is:

[0077]

[0078] Where K is the camera intrinsic parameter matrix, T cw is the transformation matrix from the world coordinate system to the camera coordinate system, that is, the external parameter of the camera. w is the world point, [u,v] is the pixel value corresponding to the world point in the image, and Z c The depth value from the world point to the camera's optical center.

[0079] In the scene where the vehicle moves too fast or the light changes, it is impossible to obtain enough feature points. In order to ensure the robustness of the camera pose estimation, the IMU pose obtained by IMU integration is used to obtain a better camera pose estimation by converting the camera and IMU external parameter matrix. The camera pose estimation result is used as the vehicle positioning result.

[0080] Right now

[0081] T cw =T cb T bw

[0082] T cw : The transformation matrix from the world coordinate system to the camera coordinate system, that is, the camera world coordinate system pose; T cb : The transformation matrix from the IMU coordinate system to the camera coordinate system, also called the external parameter from IMU to the camera; T bw: The transformation matrix from the world coordinate system to the IMU coordinate system, that is, the IMU world coordinate system posture. The transformation matrix T is composed of the rotation matrix R and the translation vector t. The rotation quaternion q is a more compact way to express rotational motion and can be converted to and from the rotation matrix R;

[0083] S3: Tightly coupled optimization of fused IMU;

[0084] Assume that p i,k (i=1,2,...,s;k=1,2,...,n) is the 2D association of the i-th static feature point in the k-th frame image, then the reprojection error is:

[0085]

[0086] f represents the pinhole camera model, is the 3D coordinate value of the i-th feature point observed in the k-1th frame in the world coordinate system. k is the world coordinate pose of the camera when the kth frame is captured.

[0087] Assuming object motion k-1 H k is the relative motion of the dynamic object from frame k-1 to frame k, and the dynamic feature points on the dynamic object The 2D correlation in the k-th frame image is p j,k (j=1,2,...,d;k=1,2,...,n), then the reprojection error is:

[0088]

[0089] In order to obtain a relatively real-time pose, pose optimization uses a sliding window-based tightly coupled VIO for high-precision and robust state estimation. Assuming there are N frames in the sliding window, N = 20 is selected. The complete state vector is defined as follows:

[0090] χ=[y0,y1,…,y N ,T cb ,m1,m2,…,m l ]

[0091]

[0092]

[0093] y kis the IMU state when the kth frame image is captured, including displacement, velocity, attitude, accelerometer bias and gyroscope bias in the world coordinate system. l is the total number of visual static and dynamic features in the window. From this, the maximum a posteriori estimation problem can be constructed, that is, the Levenberg-Marquardt method minimizes all error functions, thereby performing nonlinear optimization on the state vector in the sliding window:

[0094]

[0095] Where p(s) is the kernel function. The specific value is:

[0096]

[0097] Σ s is the static 3D point measurement noise covariance matrix, Σ b is the IMU noise covariance matrix, Σ d is the dynamic 3D point measurement noise covariance matrix. b is the set of all IMU measurements in the current window, n s and n d is the set of 3D points that have been observed at least twice in the current window. p ,H p} is the marginalized prior information.

[0098] After completing the estimation of the relevant state quantities of all camera and IMU data, the global optimization of vision and IMU is unified to improve the accuracy of positioning and mapping. The global optimization factor graph is as follows: Figure 1 shown.

[0099] The positioning accuracy of the technical solution of the present invention is compared and verified based on the data set experiment. The KITTI tracking data set is used to evaluate the pose estimation results of the algorithm in outdoor driving scenes with stable driving and good lighting. The evaluation strategy is to compare the true value of the data set with the pose result output by the algorithm, and calculate the relative root mean square error of the pose estimation of the camera and the tracked object, as shown in Table 1. At the same time, the comparison results of the camera pose estimation are shown in Table 1. Figure 2 and 3 As shown in the figure, rmse represents the root mean square of the pose error, mean represents the mean of the pose error, and median represents the median of the pose error. Figure 4 and 5 As shown in the figure, reference represents the trajectory of the true value, and the color represents the trajectory of the camera pose. The KITTI tracking dataset has 21 sequences. VDO-SLAM is only applicable to rigid dynamic object tracking, so the above data sequences exclude sequences with non-rigid objects.

[0100] The test results of the data set are shown in the following table:

[0101] Table 1 Positioning error of dynamic visual SLAM and dynamic visual SLAM method fused with IMU:

[0102]

[0103] It can be seen from the above table that in the KITTI dataset experiment, thanks to the dual effects of the camera pose estimation of the fused IMU and the VIO tightly coupled optimization algorithm, this algorithm is better than the pure dynamic visual SLAM method and can obtain more accurate positioning results under good visual conditions.

[0104] It should be noted that the above content merely illustrates the technical idea of ​​the present invention and cannot be used to limit the protection scope of the present invention. For ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications all fall within the protection scope of the claims of the present invention.

Claims

1. A dynamic visual SLAM method integrating inertial navigation, which uses the complementary effect of inertial navigation IMU and camera to improve the accuracy and robustness of the SLAM method, characterized by: The method comprises the following steps: S1: Calculate IMU pose; S2: Robust camera pose estimation; S3: Tightly coupled optimization of fused IMU; The calculation of the IMU posture is to obtain the posture and velocity in the IMU coordinate system according to the IMU integration; The steps for calculating the IMU pose are as follows: The IMU's measurements are the gyroscope readings and accelerometer readings The additive noise during measurement is Gaussian white noise. And the bias model is a random walk, that is, the derivative obeys the Gaussian distribution, then: The variables are: a: accelerometer in IMU; g: gyroscope in IMU; b: IMU coordinate system; w: world coordinate system; qb: w Represents the rotation quaternion from the world coordinate system to the IMU coordinate system; g w is the acceleration due to gravity; IMU displacement change from frame k to frame k+1 Speed ​​Change Posture changes for: Then at time k+1, the IMU's pose estimation is: Get the current frame from the current input image, extract point features from the image, match the feature points of adjacent frames, and estimate the camera pose by minimizing the visual reprojection error based on the pinhole camera model and the matching results of adjacent frames; The IMU pose obtained by IMU integration is used to obtain the camera pose estimate by converting the camera and IMU external parameter matrices; The camera pose estimation result is used as the positioning result, that is: T cw =T cb T bw ; Among them, Tcw: the transformation matrix from the world coordinate system to the camera coordinate system, that is, the camera world coordinate system pose; Tcb: the transformation matrix from the IMU coordinate system to the camera coordinate system, that is, the external parameters from IMU to the camera; Tbw: the transformation matrix from the world coordinate system to the IMU coordinate system, that is, the IMU world coordinate system pose; The steps of the tight coupling optimization of the fused IMU are as follows: Let p i,k (i=1,2,...,s;k=1,2,...,n) is the 2D association of the i-th static feature point in the k-th frame image, then the reprojection error is: Where f represents the camera model, is the 3D coordinate value of the i-th feature point observed in the k-1-th frame in the world coordinate system; T k is the world coordinate position of the camera when the kth frame is captured; Assume object motion k-1 H k is the relative motion of the dynamic object from frame k-1 to frame k, and the dynamic feature points on the dynamic object The 2D correlation in the k-th frame image is p j,k (j=1,2,…,d;k=1,2,…,n), then the reprojection error is: The pose optimization uses a sliding window-based tightly coupled VIO for high-precision and robust state estimation; Assume there are N frames in the sliding window, and the complete state vector is defined as follows: χ=[y0,y1,…,y N ,T cb ,m1,m2,…,m l ] T cb =[p cb ,q cb ] y k is the IMU state when the kth frame image is captured, including displacement, velocity, attitude, accelerometer bias and gyroscope bias in the world coordinate system; l is the total number of visual static and dynamic features in the window; Perform nonlinear optimization on the state vector within the sliding window: Where p(s) is the kernel function; the specific value is: Σ s is the static 3D point measurement noise covariance matrix; Σ b is the IMU noise covariance matrix; Σ d is the dynamic 3D point measurement noise covariance matrix; n b is the set of all IMU measurements in the current window; n s and n d is the set of 3D points that have been observed at least twice in the current window; p ,H p } is the marginalized prior information.

2. A dynamic visual SLAM method integrating inertial navigation according to claim 1, characterized in that: The transformation matrix T is composed of the rotation matrix R and the translation vector t. The rotation quaternion q is a more compact way to express rotational motion and can be converted into each other with the rotation matrix R.