High-precision positioning method based on multi-sensor fusion SLAM

Through multi-sensor fusion SLAM, combined with the optimization of IMU, lidar and visual data, it solves the problem of robot perception deviation and insufficient migration ability in complex environments, achieves high-precision and robust positioning and map construction, and improves the robot's performance in complex environments. Perception ability and accuracy of pose output in complex environments.

CN118746293APending Publication Date: 2024-10-08CHONGQING UNIV +1
View PDF 0 Cites 5 Cited by

Patent Information

Application Number
CN202410658476.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-27
Publication Date
2024-10-08

AI Technical Summary

Technical Problem

In complex environments, the existing single-sensor SLAM method is difficult to achieve high-precision and robust positioning and map construction due to problems such as robot perception deviation, weak migration ability, and time-consuming time.

Method used

Using the multi-sensor fusion SLAM method, through the fusion of camera, lidar and IMU data, IMU state recursion, lidar odometry and visual feature point optimization are used, combined with error Kalman filtering and back-end factor graph optimization, to achieve high accuracy location recognition and map construction.

Benefits of technology

It improves the robot's environmental perception ability and the accuracy and stability of pose output in complex environments, enhances the positioning robustness in dark light or textureless environments, and achieves real-time high-precision multi-sensor fusion SLAM.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118746293A_ABST
    Figure CN118746293A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of synchronous positioning and map construction, and particularly relates to a high-precision positioning method based on multi-sensor fusion SLAM. A camera, a laser radar and an IMU are used for data collection, the collected data are preprocessed, and meanwhile depth information and scale information of visual feature points are optimized; an IMU pre-integration factor is obtained in IMU data preprocessing, a visual reprojection constraint factor is obtained in camera data preprocessing, and a laser radar odometer factor is obtained in laser point cloud data preprocessing to form an optimization constraint, and a more accurate state quantity is output through error Kalman filtering optimization to be used for a multi-sensor fusion SLAM task. The environment sensing ability of the robot is improved through multi-sensor fusion, and pose output is optimized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of synchronous positioning and map construction, and in particular relates to a high-precision positioning method based on multi-sensor fusion SLAM. Background Art

[0002] Multi-sensor fusion SLAM (Simultaneous Localization and Mapping) is an advanced technology that plays an important role in the fields of robotics and autonomous driving. By fusing information from multiple sensors, such as cameras, lidar, inertial measurement units (IMUs), etc., the system can simultaneously locate its own position in real time and build a map of the surrounding environment. This technology has important theoretical and practical significance.

[0003] In robotics and autonomous driving systems, accurate positioning and mapping of the surrounding environment are key tasks. Traditional SLAM methods usually rely on a single sensor, such as a lidar or a camera. However, each sensor has its limitations. For example, lidar may not be able to detect transparent objects, and cameras are less effective in low-light conditions. The original intention of multi-sensor fusion SLAM is to overcome the limitations of a single sensor, fuse multiple sensor information, improve the accuracy and reliability of positioning and mapping, and achieve more accurate, stable, and robust autonomous positioning and environmental mapping. In complex and diverse indoor environments, if we want to change the current situation of fixed form and single function of indoor mobile robots, we must enable robots to have the ability to build high-precision and complete maps of environmental information. Therefore, it is necessary to improve the robot's environmental perception ability and optimize the robot's posture through multi-sensor fusion. Summary of the invention

[0004] The present invention aims to provide a high-precision positioning method based on multi-sensor fusion SLAM. In view of the problems of perception bias, weak migration ability and lengthy time consumption in complex environments in the prior art, the environmental perception ability of the robot is improved and the posture output is optimized through multi-sensor fusion.

[0005] The high-precision positioning method based on multi-sensor fusion SLAM in the present invention includes:

[0006] Step 1: When the carrier is moving, use the camera and lidar to collect environmental data, and use the IMU to collect acceleration and angular velocity data during the movement of the carrier;

[0007] Step 2: pre-process the collected data, including:

[0008] 1) Based on the data collected by the IMU, the state of the vehicle is recursively deduced to obtain the position of the IMU coordinate system, i.e., the b system, in the world coordinate system, i.e., the inertial navigation system where the IMU is located. speed attitude

[0009] At the same time, calculate the position pre-integration quantity in the period between key frames Speed ​​pre-integration and attitude pre-integration component The subscripts k and k+1 represent the indexes of two adjacent key frames;

[0010] 2) Extract the plane point P from the point cloud data obtained from the lidar key frame surf and edge point P edge At the same time, the output pose of the laser radar odometer is obtained by aligning the initial pose information obtained by recursive IMU state. The subscript l i It represents the laser radar coordinate system of the i-th frame, and the superscript The pose information is used to construct a local map coordinate system based on the first frame lidar coordinate system. The following is indicated;

[0011] 3) From the key frame image data collected by the camera, the feature points extracted frame by frame based on the sparse pyramid optical flow are tracked, and the depth information of the feature points with scale is obtained by triangulation calculation between frames, and the plane point P is used to obtain the depth information of the feature points with scale. surf The plane depth information is used to optimize the depth information of the feature points, and the scale information is restored using the output of the laser radar odometer;

[0012] Step 3: At each key frame, use the position obtained by IMU speed attitude The inverse depth λ of each visual feature point and the acceleration deviation b of the IMU itself a and gyro bias b g Establish the state quantity X, perform sliding window optimization with a length of n based on the error Kalman filter, and maintain the following state quantities at each key frame:

[0013]

[0014]

[0015] Where m is the number of all visual feature points to be optimized in the sliding window;

[0016] The optimized constraints consist of the IMU pre-integration factor obtained from the IMU data preprocessing, the visual reprojection constraint factor obtained from the camera data preprocessing, and the lidar odometry factor from the laser point cloud data preprocessing. The purpose of the optimization is to output more accurate state quantities for multi-sensor fusion SLAM tasks.

[0017] Furthermore, in step 2, the state recursion process is expressed as follows:

[0018]

[0019]

[0020] In the formula, Δt k is the time interval [t k ,t k+1 ], represents the attitude matrix from the w system to the b system at time t; a t and w t are acceleration and angular velocity respectively; n a and n g is the IMU measurement noise modeled using Gaussian white noise, where and are the acceleration and angular velocity bias modeled in a random walk manner, whose derivatives are Gaussian white noise; g w is the gravitational acceleration vector expressed in the w frame, with g w =[0,0,g] T .

[0021] Furthermore, in step 2, the pre-integration process is expressed as follows:

[0022]

[0023] Furthermore, in step 2, the LOAM (Lidar Odometry and Mapping in Real-time) series of methods are used to extract the plane point P in a frame of point cloud based on the curvature information of each point in the ring to which it belongs. surf and edge point P edge ;

[0024] Among them, the points with curvature less than the threshold are regarded as plane points, and the points with curvature greater than the threshold are regarded as edge points;

[0025] At the same time, the extraction of plane points also considers the curvature information between adjacent rings. If the neighboring points of the adjacent rings of the current feature point do not belong to plane points, the current feature point will not be regarded as a plane point.

[0026] Furthermore, in step 2, the laser odometer calculation part maintains a small-scale local map. After completing the feature extraction of the point cloud, the estimated posture of the IMU at the current moment is used as the initial value of the frame-local map matching, and the current frame is aligned with the local map to obtain the laser radar odometer posture.

[0027] Furthermore, in step 2, after a new key frame image is acquired from the camera, the feature points extracted from the previous key frame image are first tracked using sparse pyramid optical flow, and the feature points are screened using the RANSAC method to calculate the basic matrix. Points that do not meet the basic matrix or feature points that have been lost will be removed;

[0028] The tracking times of the tracked feature points will be updated. In order to ensure that the number of maintained feature points meets the requirements, a certain number of new feature points will be extracted based on the number of tracking points.

[0029] Based on the historical depth information of the feature points, the pose of the current key frame is obtained through the PnP algorithm. The pose data will be checked for consistency with the laser odometer result to determine whether the current system has degraded. If so, new feature points will be added.

[0030] For feature points whose observation times are equal to 2 and whose depth information has not been restored, the depth information is restored by triangulating the feature points through the posture of the current frame.

[0031] Furthermore, in step 2, using the plane point P surf The process of optimizing the depth information of visual feature points using the plane depth information includes:

[0032] In getting the latest plane point cloud P surf Then, P is converted into surf Projected to the pixel coordinate system of the visual sensor in the camera, only the point cloud p that falls within the pixel plane is retained c ;

[0033] Combined with visual feature points c Construct a Kd-Tree; traverse the visual feature points, and for the feature points that meet the depth information optimization conditions, that is, the feature points whose depth information and position in the image have a reasonable relationship, use the Kd-Tree to find the nearest n, n>3 laser points to each visual feature point, and return these points to the three-dimensional coordinate system for plane fitting;

[0034] Randomly select 3 points from these n laser points to construct a simplest plane, obtain the normal vector of the plane and the coordinates of the center point of the plane, construct a vector with the remaining points and the center point of the plane and calculate the vector dot product with the plane normal vector to verify whether the points together constitute a plane. If the three points are collinear or the sum of the vector dot products is greater than the threshold, it is necessary to re-screen the 3 points and repeat the above process; if a plane that meets the threshold condition is found, the depth information of the center point of the plane is compared with the depth information obtained by triangulating the current visual feature point. If the error between the two is less than a certain threshold, it is considered that the depth information optimization is completed, and the optimized depth is assigned to the visual feature point.

[0035] Furthermore, in step 2, the process of using the laser radar odometer to output the restored scale information includes:

[0036] The relative change of the laser point cloud data between key frames is used to calculate the movement speed of the carrier between key frames using a uniform speed model. and displacement δ p , and then align it with the position state quantity solved by the visual odometer to restore the scale information. The calculation method is as follows:

[0037]

[0038]

[0039] Where: i and j are two adjacent groups of key frames; The relative pose obtained by laser radar registration; is the external parameter of the laser radar to the camera coordinate system; The visual odometer estimates the relative pose through the image, which represents the camera motion between frame i and frame j; The translation information with scale is obtained by the visual odometer through image estimation; is the relative translation vector between frame i and frame j calculated by the lidar; is the translation vector from the laser radar to the camera coordinate system; Relative speed Multiply by the time difference between adjacent key frames, that is and relative displacement δ p Related; s is the scale to be restored.

[0040] Furthermore, in step 3, the optimization model based on error Kalman filtering is expressed as follows:

[0041]

[0042] in, is the Mahalanobis distance with covariance Σ, m l and m c Represents the number of feature point data of LiDAR and camera respectively; is the state variable obtained based on the prior distribution of lidar data, is the state variable obtained based on the posterior distribution of the camera data, is the error covariance matrix; r l is the residual function between the lidar data and the state variables, which is calculated as follows:

[0043]

[0044]

[0045] Where: and is the state quantity of the current lidar odometer observation constraint, that is, the posture of the IMU at time i and j; i and j are the sequence numbers of two adjacent key frames; is the transformation matrix between the IMU and the LiDAR coordinate system; ln(·) ∨ Represents the conversion between the attitude matrix and the Lie algebra; the R with superscripts and subscripts represents the attitude matrix between the corresponding coordinate systems, and the t with superscripts and subscripts represents the translation vector between the corresponding coordinate systems. Indicates an estimated value;

[0046] L p j is the observation value of the lidar, is the Jacobian matrix of the lidar data, which is calculated as follows:

[0047]

[0048]

[0049]

[0050]

[0051] Where: is the right Jacobian at φ under the special orthogonal group SO(3); is the left Jacobian at φ under the special orthogonal group SO(3); I 3×3 is the identity matrix;

[0052] is the covariance moment of the lidar observations;

[0053] r C is the residual function between the camera data and the state variables, which is calculated as follows:

[0054]

[0055]

[0056] Where: is the feature point p k The coordinates of the i-th frame image on the normalized plane; is the feature point p k Theoretically normalized plane coordinates on the j-th frame image, is the normalized plane coordinate actually measured on the j-th frame image; It is the external parameter of IMU to the camera. is the feature point p k Depth information at the i-th frame;

[0057] C p s is the observation value of the camera, is the Jacobian matrix of the camera data, which is calculated as follows:

[0058]

[0059] is the covariance matrix of visual observations;

[0060] make:

[0061]

[0062]

[0063]

[0064]

[0065] Get the Kalman gain:

[0066] K=(H T R -1 H+P -1 ) -1 H T R -1

[0067] The updated status is estimated as follows:

[0068]

[0069] Repeat the above process until the fit is:

[0070]

[0071]

[0072] The key frame in the present invention refers to a special frame in a group of frames selected for subsequent calculations during the map construction process. The key frame usually contains important environmental information, such as unique feature points or landmarks. The key frame plays a role in time synchronization and data integration. Since the acquisition frequencies of cameras, lidars, and IMUs are different, the collected data need to be aligned. At certain moments, the three data are collected at the same time. The data frames at these moments are key frames. For example, the sampling frequency of IMU is 200HZ, radar is 10HZ, and camera is 20HZ. In this way, there are up to 10 key frames per second.

[0073] In the present invention, (.) w Defined as the world coordinate system, (.) b The carrier coordinate system coincides with the IMU coordinate system, (.) c Defined as the camera coordinate system. Unless otherwise specified, the R with subscripts and subscripts represents the attitude matrix between the corresponding coordinate systems, and the t with subscripts and subscripts represents the translation vector between the corresponding coordinate systems. Represents a noisy observation or an estimate of some quantity.

[0074] Aiming at the problems of perception bias, weak migration ability, and time-consuming in robots in complex environments, the present invention adopts extended Kalman filtering on the basis of a complete VSLAM framework, and designs a multi-sensor fusion SLAM, which provides accurate distance estimation priors for visual feature points based on the stable and accurate point cloud information provided by LIDAR (Laser Radar), thereby achieving high-precision position recognition and matching. In addition, LIDAR can make up for the noise and abnormalities of VSLAM in dark, smooth or textureless environments, thereby achieving more robust positioning and map construction in various types of scenes.

[0075] To ensure real-time performance, the multi-source information fusion state is estimated within the framework of the error state iterative Kalman filter, and the overall accuracy is further improved through back-end factor graph optimization. Using measurements from all individual sensors, the algorithm is robust enough to various visual failures, LIDAR degradation scenarios, and can run in real time on a robotic computing platform. BRIEF DESCRIPTION OF THE DRAWINGS

[0076] Figure 1 Schematic diagram of the process of a high-precision positioning method based on multi-sensor fusion SLAM in an embodiment of the present invention;

[0077] Figure 2 Schematic diagram of the hardware of the multi-sensor fusion perception module in an embodiment of the present invention;

[0078] Figure 3 A diagram of a laser radar odometer calculation process in an embodiment of the present invention;

[0079] Figure 4 Schematic diagram of the process of optimizing the depth information of visual feature points in an embodiment of the present invention.

[0080] Figure 5 It is a backend state estimation constraint factor graph in an embodiment of the present invention. DETAILED DESCRIPTION

[0081] Due to the problems of perception bias, weak migration ability, and lengthy time consumption of robots in complex environments, a high-precision positioning method based on multi-sensor fusion SLAM is proposed. The basic process is as follows: Figure 1 As shown, it is divided into three stages: sensor data acquisition, front-end preprocessing of sensor data, and back-end optimization based on constraint factors.

[0082] The method in this example is based on a multi-sensor fusion SLAM system. The sensors used for data collection in the present invention include, but are not limited to, cameras for image data collection, laser radars for laser point cloud data collection, and IMUs for inertial data collection. Specifically, a multi-sensor fusion perception module is used in this example, which uses a six-wheel mobile robot platform as a carrier. The module includes the following equipment: a six-wheel mobile chassis, an Intel Realsense camera, a DJI livox horizon solid-state laser radar, an Intel NUC11 industrial computer, and a Huace CGI-410 combined navigation device (RTK device). The system framework is as follows: Figure 2 shown.

[0083] Initially, each sensor has been time-synchronized. Through synchronous triggering, the camera, lidar, and IMU can start collecting data at the same time. The sensor external parameters have been calibrated, the lidar is set to be dedistorted by the IMU, and the IMU, lidar, and camera are fixed together.

[0084] In this example, a keyframe refers to a special frame in a group of frames that is selected for subsequent calculations during the map construction process. A keyframe usually contains important environmental information, such as unique feature points or landmarks. Keyframes play a role in time synchronization and data integration. Since the acquisition frequencies of cameras, radars, and IMUs are different, the collected data needs to be aligned. At certain moments, the three data are collected at the same time. The data frames at these moments are keyframes. For example, the sampling frequency of the IMU is 200HZ, the radar is 10HZ, and the camera is 20HZ. In this way, there are up to 10 keyframes per second.

[0085] Here are some basic symbol definitions in this example:

[0086] Will(.) w Defined as the world coordinate system, (.) b is the carrier coordinate system, which is defined to coincide with the IMU coordinate system in this example. c Defined as the camera coordinate system.

[0087] In this example, the attitude matrix R and Hamilton quaternion q are used to represent the attitude. represents the posture and translation (position) from the carrier coordinate system to the world coordinate system, b k represents the carrier coordinate system when the kth frame image is taken, ck represents the camera coordinate system when taking the kth frame of image, Represents the multiplication operation between quaternions, g w is the gravity vector in the world coordinate system, with g w =[0,0,g] T , Represents a noisy observation or an estimate of some quantity.

[0088] The front-end preprocessing of sensor data is as follows:

[0089] (1) IMU data front-end processing

[0090] IMU can obtain the noisy acceleration of the carrier expressed in its own coordinate system. and angular velocity The measured value of , the following relationship holds:

[0091]

[0092] Where: represents the attitude matrix from the w system to the b system at time t; a t and w t are acceleration and angular velocity respectively; n a and n g is the IMU measurement noise modeled using Gaussian white noise, where and are the acceleration and angular velocity bias modeled in a random walk manner, whose derivatives are Gaussian white noise; g w is the gravitational acceleration vector expressed in the w frame.

[0093] If two states corresponding to IMU data frames are given, the robot's position, velocity, and posture can be calculated by the time interval [t k ,t k+1 ] is used to propagate inertial measurements. When a new frame of IMU data is received, the system will estimate the current state based on the state at the previous moment until the latest visual measurement or laser odometer data is received. Assuming that the last set of key frame data is received at time k, the estimated value of the system state at time k+1 is:

[0094]

[0095] The system state includes the position of the IMU coordinate system, i.e., the b system, in the world coordinate system w system (the inertial navigation system where the IMU is located). speed attitude In the formula, Δt kis the time interval [t k ,t k+1 ], It is the position, velocity, and attitude corresponding to the k+1 frame IMU's own coordinate system b in the world coordinate system.

[0096] The above formula can be used to update the IMU position, velocity and attitude, that is, the estimated value of the state at time k+1 can be obtained from the state of the IMU at time k relative to the world system;

[0097] In order to save the computing resources of the system and avoid multiple integration of IMU data in adjacent key frames in the optimization process, the IMU sensor data is processed by pre-integration in this example, that is, the reference coordinate system is changed from the world coordinate system to the local coordinate system b k After that, all IMU data in adjacent keyframes are pre-integrated separately to obtain a set of separate constraints. In the subsequent optimization process, this set of constraints is only related to the acceleration and angular velocity bias of the IMU, thereby achieving decoupling from the relevant state quantities in the back-end optimization stage. By replacing the integral term in the above formula, the pre-integrated quantities of position, velocity and attitude can be obtained as follows:

[0098]

[0099] Where: is the position pre-integrated quantity; is the velocity pre-integrated quantity; is the attitude pre-integrated quantity; the pre-integrated quantity can be expressed as the state change quantity with each key frame as the reference system.

[0100] After completing the IMU pre-integration operation, the constraint relationship between adjacent state quantities can be constructed for the back-end state estimation link.

[0101] (2) LiDAR odometer

[0102] In this example, the structural feature information is extracted from the LiDAR point cloud for the calculation of the LiDAR odometer. The calculation process is as follows: Figure 3 shown.

[0103] After the system is running normally, a local map coordinate system is constructed based on the first frame laser radar coordinate system. Make the first frame laser radar coordinate system consistent with The transformation relationship of the system is the unit matrix, It is called the laser radar odometer coordinate system, and the latest posture of the subsequent point cloud frame will be in The following is indicated.

[0104] The method of laser radar point cloud feature extraction is inherited from the LOAM (Lidar Odometry and Mapping in Real-time) series of methods. Based on the curvature information of each point in the ring to which it belongs, a plane point P is extracted in a frame of point cloud. surf and edge point P edge . Points with curvature less than the threshold are considered plane points, and points with curvature greater than the threshold are considered edge points. Unlike LOAM, in order to facilitate the subsequent optimization of the depth information of visual feature points, the extraction of plane features will consider the curvature information between adjacent rings, rather than only the information of the ring to which the feature point belongs. If the neighboring points of the adjacent rings of the current feature point do not belong to the plane feature point, the current feature point will not be considered as a plane point. The improvement of the plane feature extraction part is conducive to the optimization of the depth information of the visual feature in the subsequent steps.

[0105] The laser odometry part maintains a small-scale local map. After completing the feature extraction of the point cloud, the estimated posture of the IMU at the current moment is used as the initial value of the frame-local map matching, and the current frame is aligned with the local map to obtain the laser radar odometry posture. l i It represents the laser radar coordinate system of the i-th frame, which participates in the joint optimization as the laser radar observation in the back-end state estimator. In this example, the ICP registration method is specifically adopted, which will not be described in detail.

[0106] (3) Visual feature processing

[0107] After the visual front end receives a new key frame image, it first uses sparse pyramid optical flow to track the feature points extracted from the previous frame image, and uses RANSAC (random sampling consensus) to filter the feature points to calculate the basic matrix. Points that do not meet the basic matrix or feature points that have been lost will be eliminated, thereby determining the tracking quality of each feature point and retaining feature points with higher tracking quality.

[0108] The tracking times of the tracked feature points will be updated, and the maintained feature points will be used in the backend to construct visual reprojection constraints, thereby constraining the relative postures between state quantities. In order to ensure that the number of maintained feature points meets the requirements, a certain number of new feature points will be extracted based on the number of tracking points. The visual front end obtains the posture of the current key frame through the PnP algorithm based on the historical depth information of the feature points. The posture data will be judged for consistency with the laser odometer results to determine whether the current system has degraded. If degraded, new feature points will be added. For feature points with an observation count of 2 and no depth information has been restored, before using the lidar point cloud features for depth information optimization, it is necessary to triangulate the feature points through the posture of the current frame to restore the depth information.

[0109] In monocular visual odometry, since a single camera does not have the ability to accurately measure depth information, it can only make a scaled estimate of the depth of feature points. If the number of observations of feature points is small or the parallax is insufficient, the depth estimation will have a lot of noise. In the framework of multimodal sensor fusion, the depth information of visual feature points can be optimized using lidar point clouds, thereby improving the robustness and accuracy of visual inertial odometry.

[0110] In the LiDAR odometer stage, the LiDAR point cloud will be feature extracted to match the local map and output the odometer information. Here is the flowchart of optimizing the depth information of visual feature points through the LiDAR point cloud. Figure 4 shown.

[0111] Specifically, after obtaining the latest plane point cloud P surf Then, P is converted into surf Projected to the pixel coordinate system of the visual sensor, only the point cloud p that falls within the pixel plane is retained c In order to retrieve the laser points near the visual feature points, the visual feature points are combined with p c Construct a Kd-Tree (K-dimensionaltree); traverse the visual feature points, for the feature points that meet the depth information optimization conditions, that is, the feature points whose depth information and their position in the image have a reasonable relationship, such as the depth information of the distant feature points should be a large value, and the depth information of the nearby feature points should be a small value; use Kd-Tree to find the nearest n (n>3) laser points to each visual feature point, and return these points to the three-dimensional coordinate system for plane fitting. Since the point cloud block here has a strong plane assumption, the plane fitting steps can be simplified. Specifically, 3 points are randomly selected from the n laser points to construct a simplest plane, and the normal vector of the plane and the coordinates of the center point of the plane can be obtained. The remaining points and the center point of the plane construct a vector and calculate the vector dot product with the plane normal vector to verify whether the point together constitutes a plane. If the three points are collinear or the sum of the vector dot products (the dot product here is the error, and the sum of the dot products is the sum of the errors) is greater than the threshold, it is necessary to re-screen the three points and repeat the above steps. If a plane that meets the threshold conditions is found, the depth information of the center point of the plane can be provided to the visual feature point and compared with the depth information obtained by triangulation. If the error between the two is less than a certain threshold, the depth information optimization is considered to be completed, and the optimized depth is assigned to the feature point. In this example, there are two ways to process the visual feature points observed for the first time. One is to not perform depth optimization first and wait for subsequent observations. If it can still be observed in subsequent frames, triangulation calculations can be performed after at least two observations. The second is to directly use the point cloud depth information of the lidar.

[0112] It should be specifically noted that in order to reduce the computational complexity of the system, for visual feature points whose number of observations is greater than a threshold, since the depth information of the feature points has reached a relatively high accuracy after multiple iterative optimizations in the back-end optimization framework, there is no need to use laser point clouds to optimize the depth information.

[0113] In the aforementioned screening of point cloud features, the screening of plane feature point clouds is optimized to ensure that this part of the point cloud has sufficiently strong plane characteristics. Compared with the solution of projecting the complete point cloud and then screening and fitting, the method proposed in the present invention can avoid the point cloud blocks located in the dense area of ​​visual feature points from being extracted and fitted multiple times.

[0114] The method proposed in this example is coupled with the laser radar odometer link, and no additional feature extraction or fitting operations are required for the point cloud data, so it can reduce the occupation of system resources and optimize the depth information of visual feature points on the basis of ensuring the real-time performance of the system. In addition, the point cloud block with a strong plane assumption can further reduce the requirement for plane fitting of the point cloud in the subsequent process, thereby improving the real-time performance of the system.

[0115] In addition, since the visual odometer cannot observe the scale information, it needs to cooperate with the IMU to complete the initial value calculation of the scale. However, scale recovery has high requirements for motion excitation. Degraded motion forms such as uniform motion or fast pure posture will cause initialization failure. Therefore, this example proposes a method to optimize the recovery of scale information using the lidar odometer.

[0116] First, after completing the visual posture calculation using the feature points with known depth information, the corresponding lidar odometer results are received, and the relative change in the laser point cloud data between key frames is used to calculate the movement speed of the carrier between key frames using a uniform speed model. and displacement δ p , and then align it with the position state quantity solved by the visual odometer to restore the scale information. The calculation method is as follows:

[0117]

[0118]

[0119] Where: i and j are two adjacent groups of key frames; The relative pose obtained by laser radar registration; is the external parameter of the laser radar to the camera coordinate system; The visual odometer estimates the relative pose through the image, which represents the camera motion between frame i and frame j; The translation information with scale is obtained by the visual odometer through image estimation; is the relative translation vector between frame i and frame j calculated by the lidar; is the translation vector from the laser radar to the camera coordinate system; Relative speed Multiply by the time difference between adjacent key frames, that is and relative displacement δ p Related; s is the scale to be optimized.

[0120] By optimizing the scale factor s, the displacement calculated by the lidar can be aligned with the position state quantity solved by the visual odometer, thereby restoring the scale information. In addition, and δ p It is added as a relative constraint to the back-end state estimation optimization to limit the speed and position state quantities solved by vision.

[0121] After completing the front-end data processing, the back-end state estimation module will receive the front-end data and perform optimization solutions under multiple constraints.

[0122] This example optimizes the backend constraint construction method. On the basis of visual and inertial odometry, the lidar odometry results are directly added as inter-keyframe constraints to improve the robustness and accuracy of the system, rather than independently processing the results of visual, inertial odometry and laser inertial odometry and then optimizing the pose graph of their results, thereby saving the system's computing resources.

[0123] The back-end state estimation module uses a tightly coupled sliding window optimization algorithm, which combines the observation constraints of IMU, lidar and vision to optimize the entire state estimation problem into a fixed-size window and optimize the state within the window. By sliding the window, the state estimation of the system can be gradually updated and optimized while maintaining the continuity and consistency of the state. This can effectively deal with the noise and uncertainty of sensor measurement data, and use historical information to constrain the system state, thereby improving the accuracy of state estimation.

[0124] Specifically, the state quantities maintained in the backend are as follows:

[0125]

[0126]

[0127] In the formula Represents the kth state vector of the IMU in the sliding window, including the position p, velocity v, attitude q of the IMU in the world coordinate system, and the acceleration deviation of the IMU itself in the carrier coordinate system and the gyroscope deviation (bias error) b a and b g, which is the IMU state when the kth frame of image was taken. n represents the number of state vectors in the sliding window, that is, the length of the sliding window, that is, the total number of key frames in the sliding window, and m is the number of all feature points to be optimized in the sliding window. At the same time, the backend will also synchronously optimize the depth information of the visual feature points. The depth information here refers to the depth distance of this feature point in the camera coordinate system of the image where the feature point is first observed. In this example, the inverse of the depth distance of the visual feature point, that is, the inverse depth, is used to parameterize the feature point information, λ j Represents the inverse depth of the jth visual feature point detected in the sliding window.

[0128] The sensor data preprocessing part provides three types of constraint factors, namely IMU pre-integration factor, visual reprojection constraint factor and lidar odometer factor. They constrain the state quantities to be optimized in the sliding window, namely speed, position, attitude and IMU bias. Figure 5 As shown, each different factor can be regarded as the role played by the corresponding sensor in the system. Figure 5 In, T i Indicates position and posture, M i The speed and the IMU's own bias information are both state quantities to be optimized in the system. Each key frame has a set of corresponding state quantity information. i represents the IMU pre-integration factor, γ c is the visual reprojection constraint factor, L i is the LiDAR odometer factor. Between adjacent keyframes, IMU observations construct independent pre-integration factors through pre-integration operations to constrain the speed, position, attitude, and bias state. The LiDAR odometer provides relative pose constraint information for keyframes. At the same time, for the visual feature points observed in the sliding window, if the depth information has been restored, then other images that observe the feature point can construct visual reprojection constraints with the image that first observed the feature point, thereby constructing corresponding constraints on the position and attitude of the frame.

[0129] The optimization model in this example can be expressed as follows:

[0130]

[0131] The optimization goal is to minimize the residual function by adjusting the value of the state quantity X Thus, the optimal state quantity X* is obtained, where:

[0132] X is all the state variables in the sliding window, is the set of observations;

[0133] for b k to b k+1Observed IMU constraints between frames;

[0134] Denote the observation of the k-th visual feature point in the constraint frame, i.e., the normalized plane coordinates;

[0135] Is the observation value of the lidar odometer;

[0136] r(·) represents the residual between the observation value and the state quantity to be optimized;

[0137] ∑ is the corresponding covariance matrix.

[0138] Constraint frames refer to the key frames used to constrain state estimation in the SLAM system. They are the key reference points for camera pose estimation, used to determine the position and pose of the camera in three-dimensional space. Constraint frames will be part of the key frames, but not all key frames must become constraint frames.

[0139] B represents the set of IMU constraints, including the IMU observation constraints between different moments within the sliding window;

[0140] C represents the set of visual constraints, and each element in it represents the residual between the observation value of a feature point in the constraint frame and the state quantity;

[0141] L: represents the set of lidar constraints, and each element in it represents the residual between the lidar odometer observation value and the state quantity.

[0142] The visual constraint factor is composed of reprojection constraints. The back-end of state estimation receives the data preprocessed by the front-end. The feature points with depth values will construct visual reprojection residual constraints in the back-end state estimation.

[0143] Suppose there are M qualified feature point data in the sliding window, and the depth information of these feature points is stored in the state quantity when they are first observed in the sliding window. Traverse all qualified feature points. For a certain feature point p k , 0 ≤ k < M, let the frame sequence number when it is first observed be i, and its depth information be It is also observed by the j-th frame, where i ≠ j. Then this observation can construct a reprojection constraint between the i-th frame and the j-th frame. First, recover p through the depth information k The coordinate value of p in the camera coordinate system of the i-th frame And through the state quantity estimation And the external parameters between the camera and the IMU Convert it to the camera coordinate system at the j-th moment, and then normalize the depth to obtain the theoretical value of the normalized coordinates of the feature point. The residual is the difference between the actual value and the theoretical value of the normalized coordinates of the feature point. The specific formula is as follows:

[0144]

[0145]

[0146] Where: is the feature point p k The coordinates of the normalized plane of the i-th frame image; Its theoretical normalized plane coordinates on the j-th frame image; is the normalized plane coordinate actually measured on the j-th frame image; r c (·) is the visual reprojection residual equation, which relates the visual observation to the state quantity.

[0147] After solving the residual, solve the related Jacobian matrix:

[0148]

[0149] Where x represents the state quantity related to the current visual reprojection constraint. If fixed, the Jacobian matrices that need to be solved are, respectively, the residual phase r c For IMU attitude at time i and j The Jacobian matrix of c Relative feature point inverse depth The Jacobian matrix of .

[0150] The state estimation backend accepts the lidar odometer information as the inter-frame constraint of the key frame, namely the lidar factor, to improve the overall robustness of the system and avoid system failure caused by large deviations in IMU pre-integration or visual odometer. Assume that the latest odometer information received is Since the LiDAR represents the attitude in its own odometer coordinate system, i.e., the w′ system, it is necessary to compare the attitude of the previous frame with the attitude of the previous frame. The relative amount is calculated as the odometer constraint. At the same time, the key frame posture calculated by IMU pre-integration can be obtained through the previous formula. The relative error between the posture calculated by the lidar and the IMU should be controlled within a certain range to ensure the correct operation of the system. Therefore, a failure detection mechanism is designed in this example to implement data verification. In addition to ensuring that the posture obtained by the lidar and the posture obtained by the IMU are kept within a certain error range, a speed constraint mechanism is also added, that is, the relative motion distance of the carrier is constrained by a uniform speed model between the two sets of key frames, thereby ensuring that the data obtained by various sensors are within a reasonable range.

[0151] After the data is verified, the lidar odometer can build constraints between adjacent keyframes. In order to facilitate the solution of the residual and Jacobian matrix, this example decomposes the attitude from the special Euclidean group T∈SE(3) into the special orthogonal group R∈SO(3) and the translation vector

[0152] At this time, the residual calculation method is as follows:

[0153]

[0154]

[0155] Where: and is the state quantity of the current lidar odometer observation constraint, i and j are the sequence numbers of two adjacent key frames; is the transformation matrix between the IMU and the LiDAR coordinate system; ln(·) ∨ Represents the transformation from attitude matrix to Lie algebra; finally the residual is obtained

[0156] After completing the residual calculation, it is necessary to solve the Jacobian matrix of the residual relative to the state quantity, that is, the attitude matrix at time i And the posture matrix at time j and location Derivative, the calculation formula is as follows:

[0157]

[0158]

[0159]

[0160]

[0161] Where: is the right Jacobian at φ under the special orthogonal group SO(3); is the left Jacobian at φ under the special orthogonal group SO(3); I 3×3 is the identity matrix.

[0162] The overall optimization uses error Kalman filter update, combining the prior distribution, the radar-based posterior distribution, and the vision-based posterior distribution to obtain the error The maximum likelihood estimate of is:

[0163]

[0164] In this formula, is the Mahalanobis distance with covariance ∑, m l and mc Represents the number of lidar and camera data respectively;

[0165] is the state variable obtained based on the radar’s prior distribution, is the state variable obtained based on the posterior distribution of vision, is the error covariance matrix;

[0166] r l is the residual function between the lidar data and the state variables, L p j is the observation value of the lidar, is the Jacobian matrix of the lidar data, is the covariance moment of the lidar observations;

[0167] r C is the residual function between the visual data and the state variables, C p s is the visual observation value, is the Jacobian matrix of the visual data, is the covariance matrix of the visual observations.

[0168] make:

[0169]

[0170]

[0171]

[0172]

[0173] So the Kalman gain can be obtained:

[0174] K=(H T R -1 H+P -1 ) -1 H T R -1

[0175] The state estimate can then be updated:

[0176]

[0177] Repeat the above process until the fit is achieved. The result can be used to: convert the current point cloud from the radar coordinate system to the world coordinate system and add it to the existing point cloud map; triangulate the new visual landmark point. If the current frame is a key frame, it is used as the starting point of the next cycle.

[0178]

[0179]

Claims

1. A high-precision positioning method based on multi-sensor fusion SLAM, characterized in that: include: Step 1: When the carrier is moving, use the camera and lidar to collect environmental data, and use the IMU to collect acceleration and angular velocity data during the movement of the carrier; Step 2: pre-process the collected data, including: 1) Based on the data collected by the IMU, the state of the vehicle is recursively deduced to obtain the position of the IMU coordinate system, i.e., the b system, in the world coordinate system, i.e., the inertial navigation system where the IMU is located. speed attitude At the same time, calculate the position pre-integration quantity in the period between key frames Speed ​​pre-integration and attitude pre-integration component The subscripts k and k+1 represent the indexes of two adjacent key frames; 2) Extract the plane point P from the point cloud data obtained from the lidar key frame surf and edge point P edge At the same time, the output pose of the laser radar odometer is obtained by aligning the initial pose information obtained by recursive IMU state. The subscript l i It represents the laser radar coordinate system of the i-th frame, and the superscript The pose information is used to construct a local map coordinate system based on the first frame lidar coordinate system. The following is indicated; 3) From the key frame image data collected by the camera, the feature points extracted frame by frame based on the sparse pyramid optical flow are tracked, and the depth information of the feature points with scale is obtained by triangulation calculation between frames, and the plane point P is used to obtain the depth information of the feature points with scale. surf The plane depth information is used to optimize the depth information of the feature points, and the scale information is restored using the output of the laser radar odometer; Step 3: At each key frame, use the position obtained by IMU speed attitude The inverse depth λ of each visual feature point and the acceleration deviation b of the IMU itself a and gyro bias b g Establish the state quantity X, perform sliding window optimization with a length of n based on the error Kalman filter, and maintain the following state quantities at each key frame: Where m is the number of all visual feature points to be optimized in the sliding window; The optimized constraints consist of the IMU pre-integration factor obtained from the IMU data preprocessing, the visual reprojection constraint factor obtained from the camera data preprocessing, and the lidar odometry factor from the laser point cloud data preprocessing. The purpose of the optimization is to output more accurate state quantities for multi-sensor fusion SLAM tasks.

2. The method according to claim 1, characterized in that In step 2, the state recursion process is expressed as follows: In the formula, Δt k is the time interval [t k ,t k+1 ], represents the attitude matrix from the w system to the b system at time t; a t and w t are acceleration and angular velocity respectively; n a and n g is the IMU measurement noise modeled using Gaussian white noise, where and are the acceleration and angular velocity bias modeled in a random walk manner, whose derivatives are Gaussian white noise; g w is the gravitational acceleration vector expressed in the w frame, with g w =[0,0,g] T .

3. The method according to claim 2, characterized in that In step 2, the pre-integration process is expressed as follows:

4. The method according to claim 1, characterized in that: In step 2, the LOAM series of methods are used to extract the plane point P in a frame of point cloud based on the curvature information of each point in the ring to which it belongs. surf and edge point P edge ; Among them, the points with curvature less than the threshold are regarded as plane points, and the points with curvature greater than the threshold are regarded as edge points; At the same time, the extraction of plane points also considers the curvature information between adjacent rings. If the neighboring points of the adjacent rings of the current feature point do not belong to plane points, the current feature point will not be regarded as a plane point.

5. The method according to claim 2, characterized in that: In step 2, the laser odometer calculation part maintains a small-scale local map. After completing the feature extraction of the point cloud, the estimated posture of the IMU at the current moment is used as the initial value of the frame-local map matching, and the current frame is aligned with the local map to obtain the laser radar odometer posture.

6. The method according to claim 2, characterized in that In step 2, after a new key frame image is acquired from the camera, the sparse pyramid optical flow is first used to track the feature points extracted from the previous key frame image, and the RANSAC method is used to filter the feature points to calculate the basic matrix. Points that do not meet the basic matrix or feature points that have been lost will be eliminated; The tracking times of the tracked feature points will be updated. In order to ensure that the number of maintained feature points meets the requirements, a certain number of new feature points will be extracted based on the number of tracking points. According to the historical depth information of the feature points, the pose of the current key frame is obtained through the PnP algorithm. The pose data is consistent with the laser odometer result to determine whether the current system has degraded. If it has degraded, new feature points are added. For feature points whose observation times are equal to 2 and whose depth information has not been restored, the depth information is restored by triangulating the feature points through the posture of the current frame.

7. The method according to claim 6, characterized in that In step 2, use the plane point P surf The process of optimizing the depth information of visual feature points using the plane depth information includes: In getting the latest plane point cloud P surf Then, P is converted into surf Projected to the pixel coordinate system of the visual sensor in the camera, only the point cloud p that falls within the pixel plane is retained c ; Combined with visual feature points c Construct a Kd-Tree; traverse the visual feature points, and for the feature points that meet the depth information optimization conditions, that is, the feature points whose depth information and position in the image have a reasonable relationship, use the Kd-Tree to find the nearest n, n>3 laser points to each visual feature point, and return these points to the three-dimensional coordinate system for plane fitting; Randomly select 3 points from these n laser points to construct a simplest plane, obtain the normal vector of the plane and the coordinates of the center point of the plane, construct a vector with the remaining points and the center point of the plane and calculate the vector dot product with the plane normal vector to verify whether the points together constitute a plane. If the three points are collinear or the sum of the vector dot products is greater than the threshold, it is necessary to re-screen the 3 points and repeat the above process; if a plane that meets the threshold condition is found, the depth information of the center point of the plane is compared with the depth information obtained by triangulating the current visual feature point. If the error between the two is less than a certain threshold, it is considered that the depth information optimization is completed, and the optimized depth is assigned to the visual feature point.

8. The method according to claim 7, characterized in that In step 2, the process of using the laser radar odometer output to restore the scale information includes: The relative change of the laser point cloud data between key frames is used to calculate the movement speed of the carrier between key frames using a uniform speed model. and displacement δ p , and then align it with the position state quantity solved by the visual odometer to restore the scale information. The calculation method is as follows: Where: i and j are two adjacent groups of key frames; The relative pose obtained by laser radar registration; is the external parameter of the laser radar to the camera coordinate system; The visual odometer estimates the relative pose through the image, which represents the camera motion between frame i and frame j; The translation information with scale is obtained by the visual odometer through image estimation; is the relative translation vector between frame i and frame j calculated by the lidar; is the translation vector from the laser radar to the camera coordinate system; Relative speed Multiply by the time difference between adjacent key frames, that is and relative displacement δ p Related; s is the scale to be restored.

9. The method according to claim 8, characterized in that In step 3, the optimization model based on error Kalman filtering is expressed as follows: in, is the Mahalanobis distance with covariance ∑, m l and m c Represents the number of feature point data of LiDAR and camera respectively; is the state variable obtained based on the prior distribution of lidar data, is the state variable obtained based on the posterior distribution of the camera data, is the error covariance matrix; r l is the residual function between the lidar data and the state variables, which is calculated as follows: Where: and is the state quantity of the current lidar odometer observation constraint, that is, the posture of the IMU at time i and j; i and j are the sequence numbers of two adjacent key frames; is the transformation matrix between the IMU and the LiDAR coordinate system; ln(·) ∨ Represents the conversion between the attitude matrix and the Lie algebra; the R with superscripts and subscripts represents the attitude matrix between the corresponding coordinate systems, and the t with superscripts and subscripts represents the translation vector between the corresponding coordinate systems. Indicates an estimated value; L p j is the observation value of the lidar, is the Jacobian matrix of the lidar data, which is calculated as follows: Where: is the right Jacobian at φ under the special orthogonal group SO(3); is the left Jacobian at φ under the special orthogonal group SO(3); I 3×3 is the identity matrix; is the covariance moment of the lidar observations; r C is the residual function between the camera data and the state variables, which is calculated as follows: Where: is the feature point p k The coordinates of the normalized plane of the i-th frame image; is the feature point p k Theoretically normalized plane coordinates on the j-th frame image, is the normalized plane coordinate actually measured on the j-th frame image; It is the external parameter of IMU to the camera. is the feature point p k Depth information at the i-th frame; C p s is the observation value of the camera, is the Jacobian matrix of the camera data, which is calculated as follows: is the covariance matrix of visual observations; make: Get the Kalman gain: K=(H T R -1 H+P -1 ) -1 H T R -1 The updated status is estimated as follows: Repeat the above process until the fit is:

Citation Information

Cited By

  • Aircraft motion estimation method, device and equipment and storage medium

    CN119594980A

  • Nuclear industry complex environment multi-sensor fusion point cloud reconstruction method and system

    CN119991956A

  • Multi-sensor fusion equipment state estimation method and device

    CN120493187A

  • Map construction method and device, computer equipment and storage medium

    CN121409215A

  • Anti-degradation positioning method and system fusing multiple sensors

    CN122360536A