Vision-infrared-inertia fusion positioning and mapping method

Through the visual-infrared-inertial fusion positioning and mapping method, combined with image quality assessment and adaptive weight adjustment, the problem of insufficient positioning accuracy and robustness in visually degraded environments is solved, and high accuracy and stability in complex environments are achieved. sex.

CN118710705AActive Publication Date: 2024-09-27HARBIN INSTITUTE OF TECHNOLOGY (SHENZHEN) (INSTITUTE OF SCIENCE AND TECHNOLOGY INNOVATION HARBIN INSTITUTE OF TECHNOLOGY SHENZHEN)

Patent Information

Application Number
CN202410716979.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-09-27
Estimated Expiration
2044-06-04

AI Technical Summary

Technical Problem

Existing visual SLAM systems have insufficient positioning accuracy and stability in visually degraded environments. The accuracy of infrared SLAM systems in normal environments is difficult to catch up with traditional visual SLAM systems. Multi-sensor fusion SLAM systems are prone to introduce observation errors in complex environments, resulting in System performance degrades.

Method used

Using the visual-infrared-inertial fusion positioning and mapping method, by acquiring RGB images, infrared images and IMU data, the image quality is evaluated, confidence is added, and the fusion is performed in the loose coupling factor graph management module, and the weights are adaptively adjusted. to achieve a balance between accuracy and robustness.

Benefits of technology

It improves positioning accuracy and robustness in visually degraded environments while maintaining high accuracy in normal environments, solving the problems of visual SLAM performance degradation and low infrared SLAM accuracy, and achieving system stability and accuracy in complex environments. Take into consideration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118710705A
    Figure CN118710705A
Patent Text Reader

Abstract

The invention discloses a vision-infrared-inertia fusion positioning and mapping method. The method comprises the following steps: S100, respectively carrying out image quality evaluation on an obtained RGB image and an obtained infrared image; s200, respectively adding confidence coefficients to the estimation result of the VIO and the estimation result of the TIO according to the image quality evaluation result, and outputting; and S300, inputting the estimation result of the VIO with confidence, the estimation result of the TIO with confidence and IMU data into a factor graph management module for fusion in a loose coupling mode to obtain fused pose estimation. According to the method, the confidence coefficient based on image quality evaluation is introduced into both the VIO and the TIO, image quality evaluation is added into a traditional factor graph-based loose coupling fusion framework, and a factor graph management module is adaptively adjusted according to the confidence coefficient, so that the method has relatively good performance in precision and robustness in a visual degradation environment; and meanwhile, the stability of the system in a visual degradation environment and the precision of the system in a normal environment can be considered.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of real-time positioning and map construction, and specifically relates to a vision-infrared-inertial fusion positioning and mapping method. Background Art

[0002] With the rapid development of robotics technology, autonomous robots have been widely used in industrial manufacturing, military operations, and civilian life, especially in dangerous environments. One of the main challenges facing autonomous robot systems is the need for accurate and reliable perception capabilities. In the field of robot perception, the ability of simultaneous localization and mapping (SLAM) is particularly critical. Stable and accurate positioning capabilities are an important basis for robots to achieve upper-level tasks such as planning and decision-making. Among them, visual inertial SLAM systems have attracted much attention due to their compact structure, low cost, and high accuracy.

[0003] Traditional operational robot technology is mainly used in industrial production and movement in simple scenarios. Its task scenarios are relatively structured or semi-structured, and the environment is relatively stable. However, in practical applications, robots face various complex and challenging environmental conditions. For example, in complex and dangerous tasks such as underground environments, industrial inspections, and search and rescue, there are often scenes with lack of features, poor lighting, drastic changes in lighting, and large sensor noise. In these visually degraded environments, traditional visual SLAM systems may experience significant performance degradation or even fail to work properly, such as increased robot positioning errors, inaccurate map building, and even positioning system crashes, thereby affecting the robot's navigation, path planning, and task execution functions. In summary, positioning and mapping in visually degraded environments remains a challenging problem.

[0004] In visually degraded environments such as illumination changes and visual occlusion (smoke, dust, etc.), the positioning accuracy and stability of existing visual SLAM systems often drop significantly. However, thermal infrared cameras are insensitive to illumination changes and can receive infrared radiation that penetrates smoke, which makes them more advantageous than visual cameras in visually degraded environments. In response to the above phenomenon, some works apply temperature radiation images (hereinafter referred to as infrared images) obtained by thermal infrared cameras to traditional visual SLAM systems to overcome the challenges brought by visually degraded environments. In addition, in recent years, many SLAM frameworks based on multi-external sensor fusion have been proposed. Multi-sensor fusion SLAM systems design different multi-sensor data fusion frameworks based on different external sensor combinations and the assistance of inertial measurement units (IMUs). Compared with the single external sensor method, these frameworks can not only improve the positioning accuracy, but also improve the stability of the system in various visually degraded environments, broadening the application scenarios of SLAM systems.

[0005] Although infrared SLAM systems and multi-sensor fusion SLAM systems can overcome the impact of visual degradation environments to a certain extent, they are still not perfect in terms of the balance between accuracy and stability and system structure. Although infrared cameras have stable imaging and high consistency in environments with dynamic changes in lighting or even without lighting, they have problems such as low signal-to-noise ratio and high temperature drift, resulting in low positioning accuracy of infrared SLAM systems. In some current multi-sensor fusion SLAM systems, tightly coupled solutions can maximize the use of measurement data from all sensors and achieve higher positioning accuracy, but in the face of complex perception-degraded environments, it is easy to introduce additional observation errors, which are then directly propagated to the entire system, causing the overall performance of the system to degrade or even collapse. The loose coupling solution corresponds to the tightly coupled solution. Since the modes are completely isolated or not fully integrated, they have stronger robustness in complex perception-degraded scenarios, but the fusion results cannot achieve the accuracy of tightly coupled systems in good environments. Some redundant SLAM systems equipped with multiple sensors can overcome various complex perception-degraded scenarios, but their systems are too large and costly, and require detailed parameter adjustments, and their reproducibility is not high. In summary, the current infrared SLAM systems and multi-sensor SLAM systems are not perfect in balancing accuracy and robustness. Some systems are too redundant, bulky, and difficult to debug. The present invention proposes a visual-infrared-inertial fusion positioning and mapping technology for visually degraded environments based on these requirements.

[0006] Thermal infrared cameras acquire 14- or 16-bit temperature radiation images with low contrast and noise accumulation. A common solution is to scale 14- or 16-bit thermal infrared images to 8-bit to enhance the contrast of thermal infrared images and improve the performance of feature point extraction and matching, and then use the visual SLAM system for state estimation. The article "Practical infrared visual odometry" published in "IEEE Transactions on Intelligent Transportation Systems" in 2016 adopted this solution. Since scaling thermal infrared image data will lead to information loss, amplify the effects of noise and image saturation, the article "Keyframe-based thermal–inertial odometry" published in "Journal of Field Robotics" in 2020 improves the traditional visual SLAM system and chooses to directly use the original infrared image for motion estimation to avoid significant changes in image texture due to scaling operations. "A Monocular Thermal Imaging Simultaneous Positioning and Mapping Method and System" (Publication No.: CN117036404A) uses two modules, the collector and the processor. The collector collects infrared image sequences that are not interrupted by non-uniformity correction. The processor module performs real-time denoising on the collected images, which can effectively improve the signal-to-noise ratio of infrared images, and then extracts and tracks point features and line features in the image, constructs and solves nonlinear least squares problems, obtains pose estimation results, and broadens the use boundaries of traditional visual SLAM on infrared images. Although infrared SLAM systems can effectively cope with visually degraded environments, their accuracy in normal environments is still difficult to surpass traditional visual SLAM systems, limiting their scope of application.

[0007] The article "MIMOSA: A Multi-Modal SLAM Framework for Resilient Autonomy against Sensor Degradation" published in the 2022 "IEEE International Conference on Intelligent Robots and Systems" is one of the most advanced loosely coupled multi-sensor fusion SLAM systems. MIMOSA uses nonlinear factor graphs as the underlying representation, supports input of four modalities: lidar point cloud, visual odometer, infrared odometer, and IMU. Through health detection, it automatically decides whether to include the modal information in the factor graph to achieve robust positioning in a perceptually degraded environment. MIMOSA is a highly flexible and robust multi-sensor fusion SLAM system, but its health detection methods are limited to covariance matrix and eigenvalue analysis. These methods do not respond quickly enough to environmental changes, and the accuracy of positioning and mapping is relatively limited.

[0008] "Positioning and Mapping Method and System Based on Fusion of Infrared Vision, Millimeter-wave Radar and IMU" (Publication No.: CN117330052A). This invention first obtains the first odometer by fusing the sensor data of the infrared camera and IMU, constructs a nonlinear optimization problem, and then obtains the second odometer and three-dimensional body velocity through the self-motion estimation and posture solution module of the 4D millimeter-wave radar. Finally, the first odometer, the second odometer and the three-dimensional body velocity are fused based on the graph optimization model to optimize and solve the information of the optimal odometer, which can show good robustness in visually degraded environments such as insufficient lighting conditions. Infrared cameras and 4D millimeter-wave radars have good robustness in visually degraded environments, but their sensor data has the disadvantage of low signal-to-noise ratio, and it is difficult to match the accuracy of visual cameras and lidars. In addition, when fusing multiple data based on factor graphs, this method does not take into account the impact of the environment on sensor performance, and it is difficult to reasonably allocate the weights of various measurements, which may lead to a decrease in the accuracy of the system. Summary of the invention

[0009] The purpose of the present invention is to provide a visual-infrared-inertial fusion positioning and mapping method to solve the above-mentioned technical problems, which has good performance in accuracy and robustness in visually degraded environments, while taking into account the stability of the system in visually degraded environments and the accuracy in normal environments.

[0010] In order to achieve the above-mentioned invention object, the technical solution adopted by the present invention is as follows:

[0011] A visual-infrared-inertial fusion positioning and mapping method comprises the following steps:

[0012] S100, acquiring an RGB image, an infrared image, and IMU data, obtaining a VIO estimation result and a TIO estimation result, and performing image quality assessment on the acquired RGB image and infrared image respectively;

[0013] S200, adding confidence to the estimation results of VIO and TIO respectively based on the image quality assessment results and outputting them;

[0014] S300, setting a factor graph management module for fusing the VIO estimation result, the TIO estimation result and the IMU data, inputting the VIO estimation result with confidence, the TIO estimation result and the IMU data into the factor graph management module for fusion in a loosely coupled manner, and obtaining a fused pose estimate.

[0015] Preferably, the image quality assessment is performed based on a comprehensive assessment of a gradient index and a noise index.

[0016] Preferably, the gradient index is defined as:

[0017]

[0018] Among them, G represents the gradient index of the image, N t is the total number of pixels in the image, N e is the number of edge pixels, and λ is the parameter for adjusting the rate of change of the index.

[0019] Preferably, in the noise index, the noise model is based on additive zero-mean Gaussian noise, and the noise of each pixel in the image has a standard deviation δ n ; Use mask M as the noise evaluation operator to judge the uniform area and the unsaturated area operator H(i) and sub-U(i) combined with mask M to obtain the noise index, where the noise standard deviation δ n The estimation formula is as follows:

[0020]

[0021] Among them, N s is the number of valid pixels after convolution; |I*M|(i) is the result of taking the absolute value of the image after mask convolution.

[0022] Preferably, the operators H(i) and U(i) for determining the uniform region and the unsaturated region are defined as:

[0023]

[0024]

[0025] Among them, g iis the gradient value of the i-th pixel in the gradient image, σ is the gradient intensity threshold; I(i) is the i-th pixel value in the original image, ε l and ε u are the upper and lower saturation bounds respectively.

[0026] Preferably, the mask M is:

[0027]

[0028] Preferably, in S300,

[0029] Also included is S301, the estimation result of the VIO, the estimation result of the TIO, and the IMU data all include a timestamp, and time synchronization processing is performed on the timestamps of the VIO, TIO, and IMU;

[0030] When a new frame TIO estimates T WT,k+1 When it arrives, the timestamps of the two adjacent frames of TIO are used. The data is packaged for the benchmark, and the packaged set of measurements Includes the following data:

[0031]

[0032] The pose T corresponding to VIO WV , TIO corresponding posture T WT 、IMU measurement value M I The corresponding timestamps are t V , t T , t I , T WV,k , T WV,k+1 Timestamp satisfy For VIO synchronization The interpolation result of The timestamp satisfies Used for IMU pre-integration calculation; After the package is packaged, it is passed to the factor graph management module.

[0033] Preferably, the factor graph management module includes a VIO intermediate factor, a TIO intermediate factor, and an IMU pre-integration factor;

[0034] And the weights of VIO and TIO in factor graph fusion are adjusted according to the confidence, where the system state X is defined as:

[0035] X = [R, p, v, b] T ,

[0036] Where R∈SO(3) is the rotation matrix, p∈R3 is the coordinate of the robot, v∈R 3 is the speed of the robot, b∈R 6 is the bias of IMU;

[0037] Calculate the residual of the VIO intermediate factor, the residual of the TIO intermediate factor, the residual of the IMU pre-integration factor and the corresponding covariance matrix respectively; create a least squares problem based on the residual of the VIO intermediate factor, the residual of the TIO intermediate factor, the residual value of the IMU pre-integration factor and the covariance matrix:

[0038]

[0039] IMU pre-integration factor residual VIO intermediate factor residual TIO intermediate factor residual The corresponding covariance matrices are ∑ I ,∑ V ,∑ T ,

[0040] The factor graph is constructed based on the GTSAM library, and ISAM2 is used to optimize and solve the above least squares problem to obtain the fused pose estimation.

[0041] Preferably, the VIO intermediate factor and the TIO intermediate factor are calculated by the gradient index G and the noise index δ n Detect changes in the environment and adaptively set the size of the covariance matrix to adjust its weight in the optimization problem. The calculation formula of the covariance matrix is:

[0042]

[0043] ∑=ω∑ base ;

[0044] Among them, ω is the covariance weight parameter; δ n , G are noise index and gradient index respectively; λ n Used to adjust the magnitude of ω to adapt to different IMU noise levels; λ G Used to balance the impact of noise index and gradient index on ω, λ G The larger the value, the greater the influence of the gradient index on ω; ∑ is the covariance matrix corresponding to the residual; ∑ base is the basic covariance matrix, set to a diagonal constant matrix;

[0045] The covariance matrix of the IMU pre-integration factor is calculated through error propagation.

[0046] Preferably, wherein the frequency of the factor graph is synchronized with the TIO,

[0047] VIO intermediate factor construction:

[0048] Use the interpolation function f inter and Medium T WV,k , T WV,k+1 calculate VIO estimate at time

[0049]

[0050] The interpolation method selected is spherical linear interpolation of quaternion; the VIO intermediate factor is calculated by and The relative pose transformation between them is:

[0051]

[0052] Furthermore, the residual of the VIO intermediate factor It can be calculated that:

[0053]

[0054] Among them, T k , T k+1 ∈SE(3) is the factor graph node state X k , X k+1 The corresponding amount in

[0055] TIO intermediate factor construction:

[0056] The TIO intermediate factor is T WT,k and T WT,k+1 The relative transformation between them is obtained:

[0057]

[0058] Then, the residual of the TIO intermediate factor can be calculated as:

[0059]

[0060] This application has achieved beneficial technical effects:

[0061] In the present invention, both VIO and TIO introduce confidence based on image quality assessment, add image quality assessment and adaptive weight adjustment factor graph management module according to confidence into the traditional loosely coupled fusion framework based on factor graph, which has good performance in accuracy and robustness in visually degraded environments, and can take into account the stability of the system in visually degraded environments and the accuracy in normal environments. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] Figure 1 The visual-infrared-inertial fusion SLAM system framework of the present invention is shown;

[0063] Figure 2 Shown is a schematic diagram of the factor graph structure of the vision-infrared-inertial fusion system of the present invention.

[0064] Figure 3 Shown is a comparative trajectory comparison diagram of the present invention under outdoor daytime lighting conditions;

[0065] Figure 4 Shown is a comparative trajectory comparison diagram of the present invention under outdoor night lighting conditions;

[0066] Figure 5 The figure shows the trajectory error corresponding to the present invention. DETAILED DESCRIPTION

[0067] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the specific implementation methods of the present invention will be described below with reference to the accompanying drawings. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings and other implementation methods can be obtained based on these drawings without creative work.

[0068] The technical solution of the present invention is described in detail below with specific embodiments.

[0069] Reference Figures 1 to 2 In order to solve the problem that the visual SLAM system cannot operate normally and the infrared SLAM system has limited accuracy in visually degraded scenes, a visual-infrared-inertial fusion positioning and mapping method for visually degraded environments is proposed. A visual-infrared-inertial fusion positioning and mapping method includes the following steps:

[0070] S100, acquiring an RGB image, an infrared image, and IMU data, obtaining a VIO estimation result and a TIO estimation result, and performing image quality assessment on the acquired RGB image and infrared image respectively;

[0071] S200, adding confidence to the estimation results of VIO and TIO respectively based on the image quality assessment results and outputting them;

[0072] S300, setting a factor graph management module for fusing the VIO estimation result, the TIO estimation result and the IMU data, inputting the VIO estimation result with confidence, the TIO estimation result and the IMU data into the factor graph management module for fusion in a loosely coupled manner, and obtaining a fused pose estimate.

[0073] The image quality assessment is performed based on a comprehensive assessment of the gradient index and the noise index.

[0074] The visual-infrared-inertial fusion system framework proposed in this invention is as follows Figure 1 As shown in the figure. The system can be based on any visual odometry and infrared odometry for fusion positioning. The image quality assessment module calculates the indicators of different image attributes of the infrared image and provides confidence for the estimation results of the visual odometry (VIO) and infrared odometry (TIO). The VIO and TIO estimates with confidence and the IMU data are input into the factor graph framework for loosely coupled fusion to obtain the fused pose estimate.

[0075] During the processing, RGB images and infrared images are acquired, and edge extraction is performed and respectively input into VIO or TIO, and image quality evaluation is performed on the acquired original image and the edge image obtained by edge extraction; the present invention comprehensively considers the image quality based on two indicators: gradient and noise. Under different lighting conditions, there will be significant differences in the edge and texture information contained in the image. The goal of the gradient indicator is to effectively reflect the number of edges and textures in the image. In order to filter out the influence of noise and low-contrast areas, we first used the DoG edge extraction algorithm to obtain the edge image, and then further calculated the gradient indicator based on the ratio of edge pixels. The definition of the gradient indicator is as follows:

[0076]

[0077] Among them, G represents the gradient index of the image, N t is the total number of pixels in the image, N e is the number of edge pixels, and λ is the parameter for adjusting the rate of change of the index.

[0078] When the environmental conditions are ideal, both RGB images and infrared images contain rich edges and textures. In this case, the gradient index alone is not enough to distinguish the performance of the two cameras, so we introduce the noise index to comprehensively evaluate the image quality. Considering the complexity of the calculation, the present invention uses a filtering method to quickly evaluate the noise level in the image, thereby providing confidence for VIO and TIO in real time. In the noise estimation, we assume that the noise model is additive zero-mean Gaussian noise, and the noise of each pixel in the image has a standard deviation δ n The present invention uses the following mask as the noise evaluation operator:

[0079]

[0080] The mask is sensitive to the edges and textures of the image, and may treat areas with strong gradients as noise. In addition, the same level of noise is much more obvious in a flat area with moderate saturation than in an area with bright colors or too dim. Considering the above two factors, the present invention first extracts the unsaturated uniform area in the image, and then uses the mask M to process the image in this area.

[0081] The operators H(i) and U(i) for judging uniform and unsaturated regions are defined as follows:

[0082]

[0083]

[0084] Among them, g i is the gradient value of the i-th pixel in the gradient image, σ is the gradient intensity threshold; I(i) is the i-th pixel value in the original image, ε l and ε u are the upper and lower bounds of saturation respectively. Noise standard deviation δ n The estimation formula is as follows:

[0085]

[0086] Among them, N s is the number of valid pixels after passing. We use δ n As the final noise index, |I*M|(i) is the result of taking the absolute value of the image after mask convolution. The gradient index and noise index are stored in VIO and TIO as their confidence, and are simultaneously transmitted to the factor graph management module for subsequent fusion positioning.

[0087] The system of the present invention involves three different modal measurements: the posture T corresponding to VIO WV , TIO corresponding posture T WT , IMU measurement value M I , where the frequency of VIO and TIO is 10Hz, and the frequency of IMU is 200Hz. Since TIO is more stable than VIO under different lighting conditions, and the pose transmitted by IMU alone will have errors, the update frequency of the factor graph is based on TIO, that is, factor graph fusion optimization is performed once each frame of TIO is received, and the frequency of the fused pose estimation is 10Hz.

[0088] Since each sensor generates RGB images, infrared images and IMU data at different times, the timestamps of the three measurements are different. However, the fused pose estimation can only have one definite timestamp. Therefore, the present invention needs to synchronize the timestamps of the three measurements before fusion. The timestamps of these measurements are defined as t V, t T , t I , note that since from receiving the image to calculating T WV or T WT There is a delay t V and t T The time when the RGB image and infrared image are received is used to avoid the influence of calculation delay on the timestamp calculation.

[0089] When a new frame TIO estimates T WT,k+1 When it arrives, we use the timestamps of the two adjacent frames of TIO The data is packaged for the benchmark. The packaged set of measurements Includes the following data:

[0090]

[0091] Among them, T WV,k , T WV,k+1 Timestamp satisfy For VIO synchronization The interpolation result of The timestamp satisfies Used for IMU pre-integration calculation. After the package is packaged, it will be passed to the factor graph management module for further processing and construction of different factors.

[0092] In view of the problems that the loosely coupled fusion method does not respond quickly enough to environmental changes and has limited positioning and mapping accuracy, the present invention proposes an adaptive weight factor graph fusion method, which adaptively adjusts the weights of VIO and TIO in factor graph fusion according to the confidence level, thereby taking into account both the stability of the system in a visually degraded environment and the accuracy in a normal environment.

[0093] The system state X is defined as follows:

[0094] X = [R, p, v, b] T

[0095] Where R∈SO(3) is the rotation matrix, p∈R 3 is the coordinate of the robot, v∈R 3 is the speed of the robot, b∈R 6 is the bias of the IMU. The complete pose of the robot in the world coordinate system is represented by T = [R|p]∈SE(3). The pose transformation between different coordinate systems is represented by the lower right subscript, for example, T WB represents the relative transformation from the body coordinate system B to the world coordinate system W. In addition, we use the lower left subscript to indicate the coordinate system where a variable is located, for example Bv represents the velocity in the body coordinate system.

[0096] Figure 2 The factor graph structure constructed by the present invention is shown, where T k ∈SE(3),V k ∈R3,B k ∈R 6 . Represent the factor graphs in The update frequency of the factor graph is consistent with the TIO rate. Every time a frame of TIO arrives, a new node state X k+1 will be initialized and used Construction factor, X k+1 and X k The factors are connected to form constraints between states, and then the factor graph is optimized to obtain the fused state estimate. The following introduces the factor construction method and the optimization solution of the factor graph.

[0097] In addition to the first frame TIO as a priori factor, the factor graph contains three factors: (1) IMU pre-integration factor; (2) VIO intermediate factor; (3) TIO intermediate factor. Then, the above three factors are constructed respectively.

[0098] IMU pre-integration factor construction:

[0099] IMU obtains the measured values ​​of acceleration and angular velocity in the B frame and

[0100]

[0101]

[0102] in, W g is the gravitational acceleration in the W frame, defined as a constant; is the rotation matrix of the W system relative to the B system; w a (t) and w g (t) are the noise of the accelerometer and gyroscope, respectively, and obey the zero-mean Gaussian distribution w a (t)~N(0,∑ a ) and w g (t)~N(0,∑ g );b a (t) and b g (t) are the biases of the accelerometer and gyroscope, respectively, which are modeled as a random walk process.

[0103] Assumptions and If the time span [t, t+Δt] of the two adjacent frames of IMU measurement remains unchanged, the state change of the system at [t, t+Δt] can be calculated as:

[0104]

[0105] right The IMU measurements at time n=i~j are calculated in sequence using the above formula, and the obtained IMU pre-integrated quantity is:

[0106]

[0107] in, The noise-related quantity δΦ ij ,δv ij ,δp ij , is the covariance matrix ∑ a ,∑ g ,∑ ba ,∑ bg The residual and covariance matrices corresponding to the pre-integration factors are and This part of the calculation is implemented based on gtsam

[0108] VIO intermediate factor construction:

[0109] Since the frequency of the factor graph is synchronized with TIO, we need to include the estimated results of VIO into the factor graph by interpolation. We use the interpolation function f inter and Medium T WV,k , T WV,k+1 calculate VIO estimate at time

[0110]

[0111] The interpolation method selected is spherical linear interpolation of quaternions to obtain smooth interpolation results. The VIO intermediate factor is calculated by and The relative pose transformation between them is:

[0112]

[0113] Furthermore, the residual of the VIO intermediate factor It can be calculated that:

[0114]

[0115] Among them, T k , T k+1∈SE(3) is the factor graph node state X k , X k+1 The corresponding amount in .

[0116] TIO intermediate factor construction:

[0117] Similar to the VIO intermediate factor, the TIO intermediate factor is expressed as T WT,k and T WT,k+1 The relative transformation between them is given as:

[0118]

[0119] Then, the residual of the TIO intermediate factor can be calculated as:

[0120]

[0121] Define the residuals of the three factors The corresponding covariance matrices are ∑ I ,∑ V ,∑ T Assuming that the measurement noise is Gaussian white noise, it can be obtained by minimizing the sum of the Mahalanobis norms of all residuals To get the optimal estimate of the robot state.

[0122] Most factor graph-based SLAM algorithms usually set a fixed covariance matrix for the factors, which means that factors of the same type provide equally important contributions in the optimization problem. However, in actual scenarios, sensors may be interfered by various factors in the environment, and their performance is often floating, so the above covariance matrix setting strategy is not reasonable.

[0123] To solve the above problems, the present invention proposes an adaptive factor weight adjustment algorithm. In a visually degraded environment, the IMU still has a high degree of stability, so the covariance matrix of the IMU pre-integration factor can be calculated through error propagation; for the VIO intermediate factor and the TIO intermediate factor, we use the gradient index G and the noise index δ n Detect changes in the environment and adaptively set the size of the covariance matrix to adjust its weight in the optimization problem. The calculation formula of the covariance matrix is ​​as follows:

[0124]

[0125] ∑=ω∑ base

[0126] Among them, ω is the covariance weight parameter; δ n , G are noise index and gradient index respectively; λ n Used to adjust the magnitude of ω to adapt to different IMU noise levels; λ GUsed to balance the impact of noise index and gradient index on ω, λ G The larger the value, the greater the influence of the gradient index on ω; ∑ is the covariance matrix corresponding to the residual; ∑ base As the basic covariance matrix, set it as a diagonal constant matrix. Combining the residuals corresponding to the three factors and the corresponding covariance matrix, the factor graph in the present invention can create a least squares problem:

[0127]

[0128] We implement the construction of factor graph based on the GTSAM library, and use ISAM2 to optimize and solve the above least squares problem to obtain the fused pose estimation.

[0129] Figure 3 and Figure 4 The trajectory comparison between the present invention and several currently advanced visual inertial SLAM algorithms under two different lighting conditions, day and night, is shown respectively. Figure 5 is the corresponding absolute trajectory error, in units of m, where the true trajectory is provided by the radar inertial SLAM algorithm, and the trajectory error is provided by the open source trajectory error estimator EVO. It can be reflected from the experimental data that the present invention can not only obtain positioning accuracy comparable to or even better than advanced SLAM algorithms under normal lighting conditions, but also maintain a stable positioning effect under poor lighting conditions at night, and with the assistance of some bright scenes, the positioning accuracy is also better than that of pure infrared inertial SLAM algorithms. In summary, the present invention overcomes the problems of decreased visual SLAM performance and low infrared SLAM accuracy caused by changes in illumination and has good performance in both accuracy and robustness by integrating measurements of three different modalities: vision, infrared, and inertia.

[0130] The present invention proposes a SLAM framework that can integrate vision, infrared and inertial multi-sensor fusion, adds image quality assessment and adaptive weight adjustment modules to the traditional loosely coupled fusion framework based on factor graph, and has good performance in accuracy and robustness in visually degraded environments. The present invention can be applied to robot tasks in complex environments, such as underground exploration, industrial inspection, and post-disaster search and rescue, and provides robust and accurate positioning for autonomous robot operations in complex environments, which has great application value.

[0131] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0132] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

[0133] The above is a detailed description of an embodiment of a visual-infrared-inertial fusion positioning and mapping method provided by the present invention. This article uses specific examples to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the core idea of ​​the present invention. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, the present invention can also be improved and modified, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.

Claims

1. A visual-infrared-inertial fusion positioning and mapping method, characterized in that: The steps include: S100, acquiring an RGB image, an infrared image, and IMU data, obtaining a VIO estimation result and a TIO estimation result, and performing image quality assessment on the acquired RGB image and infrared image respectively; S200, adding confidence to the estimation results of VIO and TIO respectively based on the image quality assessment results and outputting them; S300, setting a factor graph management module for fusing the VIO estimation result, the TIO estimation result and the IMU data, inputting the VIO estimation result with confidence, the TIO estimation result and the IMU data into the factor graph management module for fusion in a loosely coupled manner, and obtaining a fused pose estimate.

2. The visual-infrared-inertial fusion positioning and mapping method according to claim 1, characterized in that: The image quality assessment is performed based on a comprehensive assessment of the gradient index and the noise index.

3. The visual-infrared-inertial fusion positioning and mapping method according to claim 2, characterized in that: The gradient index is defined as: Among them, G represents the gradient index of the image, N t is the total number of pixels in the image, N e is the number of edge pixels, and λ is the parameter for adjusting the rate of change of the index.

4. The visual-infrared-inertial fusion positioning and mapping method according to claim 2, characterized in that: In the noise index, the noise model is based on the additive zero-mean Gaussian noise, and the noise of each pixel in the image has a standard deviation δ n ; Use mask M as the noise evaluation operator to judge the uniform area and the unsaturated area operator H(i) and sub-U(i) combined with mask M to obtain the noise index, where the noise standard deviation δ n The estimation formula is: Among them, N s is the number of valid pixels after convolution; |I*M|(i) is the result of taking the absolute value of the image after mask convolution.

5. The visual-infrared-inertial fusion positioning and mapping method according to claim 4, characterized in that: The operators H(i) and U(i) for judging uniform and unsaturated regions are defined as: Among them, g i is the gradient value of the i-th pixel in the gradient image, σ is the gradient intensity threshold; I(i) is the i-th pixel value in the original image, ε l and ε u are the upper and lower saturation bounds respectively.

6. The visual-infrared-inertial fusion positioning and mapping method according to claim 4, characterized in that: The mask M is:

7. The visual-infrared-inertial fusion positioning and mapping method according to claim 4, characterized in that: In the S300, Also included is S301, the estimation result of the VIO, the estimation result of the TIO, and the IMU data all include a timestamp, and time synchronization processing is performed on the timestamps of the VIO, TIO, and IMU; When a new frame TIO estimates T WT,k+1 When it arrives, the timestamps of the two adjacent frames of TIO are used. The data is packaged for the benchmark, and the packaged set of measurements Includes the following data: The pose T corresponding to VIO WV , TIO corresponding posture T WT 、IMU measurement value M I The corresponding timestamps are t V ,t T ,t I , T WV,k , T WV,k+1 Timestamp satisfy For VIO synchronization The interpolation result of The timestamp satisfies Used for IMU pre-integration calculation; After the package is packaged, it is passed to the factor graph management module.

8. The visual-infrared-inertial fusion positioning and mapping method according to claim 7, characterized in that: The factor graph management module includes VIO intermediate factors, TIO intermediate factors, and IMU pre-integration factors; And the weights of VIO and TIO in factor graph fusion are adjusted according to the confidence, where the system state X is defined as: X=[R,p,v,b] T ; Where R∈SO(3) is the rotation matrix, p∈R 3 is the coordinate of the robot, v∈R 3 is the speed of the robot, b∈R 6 is the bias of IMU; Calculate the residual of the VIO intermediate factor, the residual of the TIO intermediate factor, the residual of the IMU pre-integration factor and the corresponding covariance matrix respectively; create a least squares problem based on the residual of the VIO intermediate factor, the residual of the TIO intermediate factor, the residual value of the IMU pre-integration factor and the covariance matrix: IMU pre-integration factor residual VIO intermediate factor residual TIO intermediate factor residual The corresponding covariance matrices are Σ I ,Σ V ,Σ T , The factor graph is constructed based on the GTSAM library, and ISAM2 is used to optimize and solve the above least squares problem to obtain the fused pose estimation.

9. The visual-infrared-inertial fusion positioning and mapping method according to claim 8, characterized in that: The VIO intermediate factor and the TIO intermediate factor are calculated by the gradient index G and the noise index δ n Detect changes in the environment and adaptively set the size of the covariance matrix to adjust its weight in the optimization problem. The calculation formula of the covariance matrix is: ∑=w∑ base ; Among them, ω is the covariance weight parameter; δ n , G are noise index and gradient index respectively; λ n Used to adjust the magnitude of ω to adapt to different IMU noise levels; λ G Used to balance the impact of noise index and gradient index on ω, λ G The larger the value, the greater the influence of the gradient index on ω; Σ is the covariance matrix corresponding to the residual; Σ base is the base covariance matrix, set to a diagonal constant matrix.

10. The visual-infrared-inertial fusion positioning and mapping method according to claim 8, characterized in that: The frequency of the factor graph is synchronized with TIO. VIO intermediate factor construction: Use the interpolation function f inter and Medium T WV,k , T WV,k+1 calculate VIO estimate at time The interpolation method selected is spherical linear interpolation of quaternion; the VIO intermediate factor is calculated by and The relative pose transformation between them is: Furthermore, the residual of the VIO intermediate factor It can be calculated that: Among them, T k , T k+1 ∈SE(3) is the factor graph node state X k , X k+1 The corresponding amount in TIO intermediate factor construction: The TIO intermediate factor is T WT,k and T WT,k+1 The relative transformation between them is obtained: Then, the residual of the TIO intermediate factor can be calculated as:

Citation Information

Patent Citations

  • Dynamic vision SLAM (Simultaneous Localization and Mapping) method fused with inertial navigation

    CN114964276A

  • Laser radar visual inertia fusion SLAM method

    CN117130007A

  • Text-pedestrian image retrieval method based on discriminative feature learning and sample relation assistance

    CN117688197A

  • Robust laser-vision-inertia fusion SLAM method

    CN117782050A

Cited By

  • Wheel set damage detection system and method based on machine vision

    CN120031885A

  • Wheel set damage detection system and method based on machine vision

    CN120031885B

  • Visual inertial odometer method and device based on multi-modal image fusion

    CN120445190A

  • Unmanned vehicle positioning method, device, equipment and medium

    CN120558195A

  • Tight coupling visual inertial odometer method and system based on infrared and visible light fusion image and uncertainty information thereof

    CN121855551A