Robotic global positioning system and method with multi-sensor adaptive dynamic combination

By combining visual sensors and inertial measurement units, and utilizing the Global Navigation Satellite System for scale calibration and sensor motion descriptor evaluation, the factor graph structure is dynamically adjusted. This solves the stability and continuity issues of multi-sensor positioning methods in complex environments, achieving higher robustness and positioning accuracy.

CN123175244APending Publication Date: 2026-11-27XIDIAN UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202611388665.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-08
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing multi-sensor localization methods suffer from insufficient continuity, stability, and environmental adaptability in localization results when faced with complex task scenarios such as transitions between indoor and outdoor scenes, sensor degradation, or global sensor signal recovery.

Method used

The system uses visual sensors and inertial measurement units to recover local motion states, utilizes global navigation satellite systems for scale calibration, constructs sensor motion descriptors to determine degradation, and optimizes the framework by adjusting the dynamic factor graph structure, dynamically adding or removing sensor observations, and asynchronously correcting the cumulative pose shift during degradation.

Benefits of technology

This improves the robustness and stability of multi-sensor localization methods in complex environments, reduces the impact of abnormal observations on localization results, and ensures the continuity and global consistency of localization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123175244A_ABST
    Figure CN123175244A_ABST
Patent Text Reader

Abstract

The application discloses a robot global positioning system and method based on multi-sensor adaptive dynamic combination, and belongs to the technical field of robot positioning and navigation. The system comprises a camera, an inertial measurement unit, a global navigation satellite system receiver, a magnetometer and a processing module. Multi-source data is preprocessed, and local and global two-stage initialization is completed; the sensor state is determined according to the consistency residual of the motion descriptor, the residual factor in the sliding window is dynamically adjusted, and joint optimization is carried out; key frames are selected according to the motion excitation degree to perform marginalization; after the global sensor recovers to be stable, the degraded section pose is corrected asynchronously, and the trajectory is continuously fused. The application reduces the positioning drift caused by abnormal measurement and the trajectory jump during recovery, improves the stability of robot attitude estimation in a degraded environment, and can be used for continuous global positioning of a robot.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of robot localization and navigation technology, and further relates to a robot global localization system and method based on multi-sensor adaptive dynamic combination within the field of multi-sensor fusion localization and navigation technology. This invention can be used to handle robot global localization tasks in complex indoor and outdoor scenarios. Background Technology

[0002] Simultaneous Localization and Mapping (SLAM) is a core technology in robotics, autonomous driving, and other fields, and multi-source data fusion is a key means to improve its accuracy, robustness, and adaptability. The core idea of ​​fusion is to leverage the complementarity of different sensors, features, and information dimensions to overcome the limitations of a single data source. Existing optimization-based multi-source fusion SLAM methods can be categorized into loosely coupled and tightly coupled methods based on their data fusion strategies. Loosely coupled methods, such as VINS-Fusion, use GPS measurements for pose posterior correction, which alleviates the cumulative drift problem of the visual-inertial system, but does not establish deep constraints between sensors and is heavily dependent on the quality of global sensor data. Tightly coupled methods, such as IC-GVINS, directly optimize multi-sensor observations and system states in the fusion model, offering significant advantages in accuracy and robustness, but often constructing optimization problems around a single sensor. When the central sensor's accuracy is insufficient or degrades, it can easily lead to systemic biases. In practical applications such as mobile robots and autonomous navigation platforms, existing localization methods generally lack dynamic adaptive fusion mechanisms for multiple sensors, making it difficult to simultaneously consider local state estimation accuracy and global consistency constraints in complex environments. When robots are in dynamic task scenarios (such as indoor-outdoor switching, dynamic obstacle interference, GNSS signal degradation or failure, etc.), existing methods have significant shortcomings in terms of perception continuity, positioning stability and environmental adaptability, making it difficult to support long-term autonomous operation of robots.

[0003] Hubei Luojia Laboratory disclosed a multi-source sensor fusion localization method based on dynamic target enhancement in its patent application "Multi-source sensor fusion localization method and system based on dynamic target enhancement" (application date 2025-12-09, application number CN 202511844981.2, publication number CN121677723 A). This method includes the following steps: Real-time perception of dynamic targets in the environment using a neural network-based target detection method to obtain target category, detection box, and initial pose information; establishment of a target tracking mechanism including three states: candidate, tracking, and lost; and stable target tracking achieved using a multi-level target matching strategy; construction of dynamic target feature point reprojection error factors and dynamic target constant-speed error factors using a factor graph optimization model, and joint estimation of the dynamic target state and the carrier's own state within a unified sliding window; and management and maintenance of the target state through a lifecycle mechanism to improve system robustness. However, this method still has limitations. It primarily targets the detection of dynamic targets. When global navigation satellite system signals are blocked or interfered with by multipath interference, or when magnetometers are affected by magnetic field interference, the corresponding sensors may produce measurement gaps, mismatches, or observations with systematic biases. This can cause erroneous constraints to propagate to the robot's position, attitude, and velocity state variables, resulting in positioning drift or unstable estimation results. Furthermore, when degraded sensors recover after a period of occlusion or interference, the recovered measurements may conflict with the pose estimation that has already shifted during the degradation period, leading to pose jumps or overall trajectory deviations.

[0004] Beijing Institute of Technology and the Institute of Frontier Technology of Beijing Institute of Technology jointly disclosed a multi-sensor fusion localization method for complex autonomous driving scenarios in their patent application, "A Multi-Sensor Fusion Localization Method and System for Complex Unmanned Driving Scenarios" (Application Date: 2021-08-26, Application No.: CN202110993 243.X, Publication No.: CN 115265551 A). This method employs a factor graph optimization approach, specifically, using maximum a posteriori probability estimation to transform the factor graph model constructed from localization information into a nonlinear problem, and then solving this nonlinear problem to obtain the autonomous vehicle's localization result. By fusing the observation data from the sensor localization model, this method can enhance the robustness of multi-sensor fusion localization in complex autonomous driving scenarios while effectively improving the localization accuracy and speed estimation accuracy of the autonomous vehicle. However, this method still has shortcomings. While it incorporates multi-source sensor observations into the factor graph for joint optimization according to a pre-defined sensor localization model, it does not establish a unified motion consistency evaluation index for different sensors, nor does it online judge sensor degradation based on the real-time operating status of the sensors and dynamically adjust the corresponding residual factors. When sensors such as cameras, inertial measurement units, or global navigation satellite system receivers produce abnormal observations due to occlusion, interference, dynamic targets, or insufficient motion stimulation, these abnormal constraints may still participate in joint optimization and propagate to state variables such as robot position, attitude, and velocity, causing localization drift or unstable estimation results. Furthermore, when degraded sensors are restored, if the restored measurements are directly reintroduced into the original optimization process, constraint conflicts may exist between the restored measurements and the prior pose formed during the degradation period, leading to jumps or overall deviations in the global trajectory. Summary of the Invention

[0005] The purpose of this invention is to address the shortcomings of the existing technologies by proposing a multi-sensor adaptive dynamic combination robot global localization method. This method aims to solve the problems of insufficient continuity, stability, and environmental adaptability of localization results when facing complex task scenarios such as transitions between indoor and outdoor scenes, sensor degradation, or global sensor signal recovery.

[0006] The technical approach to achieving the objective of this invention is as follows: This invention utilizes visual sensors and inertial measurement units to recover the robot's motion state in a local coordinate system, and uses Global Navigation Satellite System (GNSS) position differential to perform scale calibration on the local motion trajectory. Then, it uses GNSS position observations and magnetometer attitude or heading observations to estimate the transformation relationship between the local coordinate system and the global reference coordinate system. After initialization, motion descriptors are constructed for the relative motion relationships between each sensor in the current keyframe and historical keyframes, and the consistency residuals between different sensor motion descriptors are used to determine whether sensor degradation has occurred. Based on the degradation assessment results, optimization factors for corresponding sensors are dynamically added, removed, or adjusted to reduce the impact of abnormal observations on the positioning results while maintaining effective sensor constraints. When the degraded sensor recovers and meets the preset recovery conditions, an independent degradation segment pose correction problem is established. The cumulative pose offset formed during degradation is asynchronously corrected, and the corrected trajectory is continuously fused with the global trajectory before and after degradation. This solves the problems of large problem scale, mutual influence of initial states, and insufficient initialization stability under weak excitation conditions in existing multi-sensor joint initialization processes.

[0007] This invention employs a decentralized problem-solving approach, dynamically constructing and adjusting the factor graph structure to integrate heterogeneous sensors into a unified optimization framework in an "equal and pluggable" manner. This decentralized approach does not pre-designate any one of the following as the master sensor: visual sensor, inertial measurement unit, global navigation satellite system receiver, or magnetometer. Instead, it constructs corresponding residual factors from the observations of each sensor within a unified real-scale error space. Based on sensor degradation assessment results, the system selects sensor observations in a normal state to add to the factor graph before each optimization, and reduces or temporarily removes factors corresponding to sensor observations in a degraded state. Once the sensor recovers, the corresponding factors are reactivated. Thus, when one sensor degrades, other normal sensors can continue to provide state constraints, avoiding systematic biases in the entire positioning system caused by the failure of a fixed master sensor. This dynamic factor graph structure maximizes effective information utilization while reducing erroneous constraints and minimizing systematic biases introduced by unreliable measurements from a single sensor. The edge-mapping strategy based on multi-sensor motion perception employed in this invention can filter out low-value and interfering information, improving the system's robustness in sensor degradation scenarios while maintaining computational efficiency. This multi-sensor motion perception edge-mapping strategy uses the motion consistency results of effective sensors as the evaluation criterion for the degree of motion excitation. When the robot is in a low-speed, stationary, or visually parallax-deficient state, the next newest keyframe (keyframes arranged chronologically within the sliding window, preceding the latest keyframe) may contain less effective motion information, and its related constraints may be affected by repeated observations or systematic sensor biases. In this case, the next newest keyframe and its related variables and constraints are preferentially edged out, and their influence is converted into prior terms; when the next newest keyframe has sufficient motion excitation, the oldest keyframe is edged out in the conventional way. By selecting keyframes with lower optimization value or higher interference risk for edge-mapping, the impact of low-value observations on system state estimation is reduced while controlling the sliding window size and computational load.

[0008] The magnetic field measurement employed in this invention provides independent global attitude constraints, reducing the impact of cumulative error propagation on attitude variables. Specifically, the magnetometer acquires magnetic field direction measurements at the robot's location and, based on a pre-established magnetic field reference direction, converts these measurements into attitude or heading observations in a global reference coordinate system. Given the gravity direction, the magnetic field direction is used to compensate for robot tilt, obtaining magnetometer observations describing the robot's global attitude. These observations are then combined with the attitude variables in the system state to construct an orientation residual factor. Since this attitude constraint originates from the geomagnetic reference direction and does not rely on long-term tracking of visual features or continuous integration of gyroscope angular velocity, it provides independent global heading constraints, suppressing heading accumulation errors caused by visual-inertial estimation and gyroscope integration. When a deviation exceeding a preset threshold occurs between the magnetic field direction measurement and motion observations from other effective sensors, the magnetometer is deemed degraded, and the magnetometer orientation residual factor is reduced or temporarily removed to prevent magnetic interference observations from erroneously constraining the system's attitude estimation.

[0009] To achieve the above objectives, the system of the present invention includes a camera, an inertial measurement unit, a global navigation satellite system receiver, a magnetometer, and a processing module; the processing module includes a sensor data preprocessing unit, a local-global initialization unit, a sensor degradation evaluation unit, a factor graph optimization unit, a sliding window edge detection unit, and a degradation segment asynchronous relocation unit; wherein:

[0010] The sensor data preprocessing unit is used to acquire camera images, inertial measurement unit measurements, global navigation satellite system position and velocity measurements, and magnetometer orientation measurements. It performs time synchronization and coordinate system transformation on each sensor measurement, and performs image feature point extraction and matching, inertial measurement unit pre-integration, global navigation satellite system position transformation, and magnetometer calibration respectively.

[0011] The local-global initialization unit is used to perform two-stage initialization, namely local initialization and global calibration, to restore the robot's motion state in the local coordinate system and estimate the transformation relationship between the local coordinate system and the global reference coordinate system.

[0012] The sensor degradation assessment unit is used to construct motion descriptors for each sensor based on the relative motion relationship between the current keyframe and multiple historical keyframes within the sliding window, calculate the motion consistency residual between the motion descriptors of different sensors, and determine the normal or degraded state of each sensor based on the motion consistency residual and a preset degradation judgment threshold.

[0013] The factor graph optimization unit is used to construct and adjust the sliding window factor graph online according to the state of each sensor, construct the measurement of the normal state sensor as the corresponding residual factor, and reduce the weight or remove the residual factor corresponding to the degraded state sensor. By jointly optimizing the residual factor corresponding to the effective sensor, the position and attitude of the robot are obtained.

[0014] The sliding window edge-out unit is used to determine the motion excitation degree of key frames within the sliding window based on the motion consistency results of the normal state sensor, select key frames to be edged out based on the motion excitation degree, and convert the edge-out results into prior constraints of the sliding window factor graph.

[0015] The asynchronous relocation unit for the degraded segment is used to establish and asynchronously solve the degraded segment pose correction problem when the degraded global navigation satellite system receiver or magnetometer is restored and meets the preset stability conditions. It uses the prior pose formed during the degradation period as the trajectory basis and the restored global measurement as the correction anchor point, and continuously fuses the corrected degraded segment trajectory with the trajectory before degradation and after restoration.

[0016] The robot global localization method of the present invention includes the following steps:

[0017] Step 1: Acquire camera images, inertial measurement unit measurements, global navigation satellite system position and velocity measurements, and magnetometer orientation measurements. Perform time synchronization and coordinate system unification on the acquired sensor measurements, and complete image feature point extraction and matching, inertial measurement unit pre-integration, global navigation satellite system position transformation, and magnetometer calibration respectively.

[0018] Step 2: Perform local-global two-stage initialization. In the local initialization stage, the robot's motion state in the local coordinate system is recovered using camera images and inertial measurement unit measurements, and the local motion trajectory is calibrated using the global navigation satellite system position difference. In the global calibration stage, the transformation relationship between the local coordinate system and the global reference coordinate system is estimated using global navigation satellite system position measurement and magnetometer orientation measurement.

[0019] Step 3: Convert the observations of the camera, inertial measurement unit, global navigation satellite system receiver, and magnetometer between the current keyframe and multiple historical keyframes within the sliding window into a unified six-dimensional relative motion vector, and construct motion descriptors for each sensor based on the relative motion vectors;

[0020] Step 4: Calculate the weighted motion consistency residuals between motion descriptors of different sensors to determine the state of each sensor;

[0021] Step 5: Construct and adjust the sliding window factor map; jointly optimize the residual factors retained in the sliding window factor map within a unified true scale error space to obtain the system state estimate;

[0022] Step 6: Select the newest or oldest keyframe for marginalization, and convert the marginalization result into prior constraints of the sliding window factor graph.

[0023] Step 7: Asynchronously solve the degradation segment pose correction problem, continuously fuse the corrected degradation segment trajectory with the trajectory before degradation and after recovery, and reactivate the residual factor corresponding to the recovery sensor.

[0024] Step 8: Output the robot's global position and attitude after dynamic sensor combination positioning and degradation segment pose correction.

[0025] Furthermore, the step of converting the observations from each sensor into a unified six-dimensional relative motion vector is as follows:

[0026] Step 3.1: Pair each sensor's current keyframe with each historical keyframe selected within the sliding window to obtain its corresponding observation;

[0027] Step 3.2: Determine the position change component and attitude change component that can be observed by the corresponding sensor based on the observation of each pair of keyframes, and use the coordinate transformation relationship determined in Step 2 to transform the components to the same coordinate system, representing the position change with the real scale and the attitude change with the three-dimensional axis-angle vector;

[0028] Step 3.3: Set the three-dimensional vectors corresponding to unobservable position or attitude changes to zero, and then combine them in the order of position change vector first and attitude change vector second to obtain the six-dimensional relative motion vector of the sensor:

[0029] ;

[0030] in, Indicates the first From the historical Up to the current number The six-dimensional relative motion vector, ; This indicates the total number of historical keyframes selected within the current sliding window. and They represent the first The position change vector and attitude change vector of the six-dimensional relative motion vector.

[0031] Furthermore, the motion descriptor for each sensor is constructed by arranging the six-dimensional relative motion vectors in chronological order from most recent to furthest from the historical keyframes:

[0032] ;

[0033] in, Indicates the first Current number Motion descriptor at the corresponding time point, Indicating the first in the motion descriptor A relative motion vector, which is the six-dimensional relative motion vector between the current keyframe and the keyframe that is furthest from the current keyframe in the selected historical keyframes. This indicates the total number of historical keyframes selected within the current sliding window.

[0034] Furthermore, the weighted motion consistency residual between different sensor motion descriptors is obtained by the following formula:

[0035] ;

[0036] ;

[0037] in, Indicates the first No. In the current number Weighted motion consistency residuals at time points Indicates the first in history The corresponding weighting factor, if the historical number Keyframe and current frame The larger the time interval between keyframes, The smaller; Represents the distance function. They represent the first No. From the historical Keyframe to the current number The six-dimensional relative motion vector of the keyframe. They represent the first From the historical Keyframe to the current number Position change vector between keyframes They represent the first From the historical Keyframe to the current number Pose change vectors between keyframes Indicates according to the first No. The position difference weighted matrix is ​​constructed from the position measurement noise. This represents the normalized parameters for attitude differences. express Norm operations; This indicates the total number of historical keyframes selected within the current sliding window.

[0038] Furthermore, determining the state of each sensor refers to setting the state of the first sensor as the first sensor. With the current set of sensors participating in cross-validation In, except for the first The minimum value of the weighted motion consistency residual of sensors other than the first sensor is used as the first... The sensor is currently in the first Cross-validation residuals at time step ;when At that time, the first The sensor determines that it is in a degraded state; when At that time, the first The sensor is determined to be in a normal state; otherwise, the sensor state of the previous keyframe is maintained; among which, They represent the first The sensor's degradation entry threshold and degradation exit threshold, and .

[0039] Furthermore, the steps for constructing and adjusting the sliding window factor map based on the state of each sensor are as follows:

[0040] Step 5.1: Using the system state to be estimated corresponding to each keyframe within the sliding window as variable nodes, and the existing marginalized prior constraints and residual factors constructed from the observations of each normal state sensor as factor nodes; according to the keyframes and state variables constrained by each factor node, connect each factor node with the corresponding variable node to form a sliding window factor graph; wherein, each sensor residual factor consists of the sensor observation value, the predicted value calculated based on the variable node connected to it, and the corresponding residual covariance matrix, and the difference between the sensor observation value and the predicted value is used as the residual; the residual covariance matrix is ​​determined according to the measurement noise of the corresponding sensor and the residual construction relationship, and is used to characterize the uncertainty of the residual, and its inverse matrix is ​​used to weight the residual;

[0041] Step 5.2: Transform the image observations of the same visual feature of the sensor in normal state in relevant keyframes to a unified real-scale coordinate system, and construct the spatial position difference after transformation as the visual feature residual factor; construct the inertial measurement unit pre-integration residual factor by constructing the differences between the position, velocity, attitude and inertial measurement unit zero bias changes obtained from state variables and the inertial measurement unit pre-integration measurement between adjacent keyframes; construct the global navigation satellite system positioning residual factor and global navigation satellite system velocity residual factor by constructing the differences between the position state and velocity state of the corresponding keyframe and the position measurement and velocity measurement of the global navigation satellite system, respectively; construct the magnetometer orientation residual factor by constructing the difference between the attitude state of the corresponding keyframe and the magnetometer orientation measurement.

[0042] Step 5.3: Connect the marginalization prior constraints to the variable nodes they constrain; connect the visual feature residual factors to the associated keyframe variable nodes; connect the inertial measurement unit pre-integration residual factors to two adjacent keyframe variable nodes; connect the GNSS positioning residual factors, GNSS velocity residual factors, and magnetometer orientation residual factors to the keyframe variable nodes corresponding to the measurement time, respectively; and classify the five types of sensor residual factors into their corresponding effective residual factor sets.

[0043] Step 5.4: For sensors determined to be in a degraded state, based on the minimum value of the weighted motion consistency residual between the sensor and other sensors currently participating in cross-validation, amplify the covariance of the corresponding residual factor to reduce the weight of the residual factor, or temporarily remove the residual factor and its connection with the variable node; during the optimization process, if the residual continuously exceeds the outlier determination threshold, first use a robust kernel function to reduce the weight of the corresponding residual factor, and if it still exceeds the outlier determination threshold after reducing the weight, remove the residual factor and its connection with the variable node; thus obtaining the adjusted sliding window factor graph and the set of each effective residual factor.

[0044] Furthermore, the step of jointly optimizing the residual factors retained in the sliding window factor graph within a unified true scale error space is as follows:

[0045] The first step is to construct the system state vector to be estimated. The system state vector includes the position, attitude and velocity of each keyframe within the sliding window, the accelerometer zero bias and gyroscope zero bias of the inertial measurement unit, the extrinsic parameters between the camera and the inertial measurement unit, and the extrinsic parameters between the local coordinate system and the global reference coordinate system.

[0046] The second step involves jointly minimizing the marginalized prior residuals and the residuals in each effective residual factor set to obtain the system state estimate:

[0047] ;

[0048] in, This represents the estimated system state. This represents the system state vector to be estimated; Indicates marginalized prior residuals; , , , and These represent the visual feature residual, the inertial measurement unit pre-integration residual, the global navigation satellite system positioning residual, the global navigation satellite system velocity residual, and the magnetometer orientation residual, respectively. This represents the index of the residual factor in each set of effective residual factors; , , , , These represent the effective sets of visual feature residual factors, inertial measurement unit pre-integration residual factors, global navigation satellite system positioning residual factors, global navigation satellite system velocity residual factors, and magnetometer orientation residual factors, respectively. , , , and Let these represent the covariance matrices of the marginalization prior residual, visual feature residual, inertial measurement unit pre-integration residual, global navigation satellite system residual, and magnetometer orientation residual, respectively. The global navigation satellite system positioning residual and velocity residual share the same covariance matrix. The weighted residual square in the formula represents the quadratic form formed by weighting the residuals using the inverse of the corresponding covariance matrix.

[0049] Furthermore, the step of selecting the newest or oldest keyframe for edge detection and converting the edge detection result into prior constraints of a sliding window factor graph is as follows:

[0050] Step 6.1: Based on the sensor state determined in Step 4, determine the normal state sensors participating in the current joint optimization from the effective residual factor set formed in Step 5; use the position change vector and attitude change vector in the six-dimensional relative motion vector obtained in Step 3 to determine the motion excitation degree of each key frame within the sliding window.

[0051] Step 6.2: When the motion excitation level of the newest keyframe is lower than the preset motion excitation threshold, marginalize the newest keyframe and its related state variables and residual factors; when the motion excitation level of the newest keyframe is greater than or equal to the preset motion excitation threshold, marginalize the earliest keyframe within the sliding window.

[0052] Step 6.3: The constraints of the marginalized keyframes and their associated state variables and residual factors on the remaining state variables are converted into marginalized prior residuals, and the marginalized prior residuals are added to the next joint optimization.

[0053] Furthermore, the steps for generating the degenerate segment pose correction problem are as follows:

[0054] Step 7.1: Based on the sensor state determined in Step 4, determine the start and end keyframes of the degradation segment, and use the poses of each keyframe within the degradation segment as optimization variables.

[0055] ;

[0056] in, Represents the pose optimization variables for the degradation segment. Indicates the initial keyframe pose. This indicates the end of the keyframe pose.

[0057] Step 7.2 establishes the following problem regarding the pose correction of the degenerate segment:

[0058] ;

[0059] in, This indicates the pose correction result for the degenerate segment. Indicates the first degenerate segment Frame in world coordinate system The lowered position; , These represent the starting and ending keyframe indices of the degradation segment, respectively. Indicates the keyframe index within the degraded segment; Indicates the first Frame and the Inter-frame prior residuals between frames; , They represent the first The corresponding Global Navigation Satellite System position anchor point residuals and magnetometer orientation anchor point residuals; , These represent the set of global navigation satellite system position measurement indexes and the set of magnetometer orientation measurement indexes that participate in degradation segment correction, respectively. , and Let represent the covariance matrices of the inter-frame prior residual, the global navigation satellite system position anchor residual, and the magnetometer orientation anchor residual, respectively; the weighted residual square in the formula represents the quadratic form formed by weighting the residuals using the inverse of the corresponding covariance matrix.

[0060] Compared with the prior art, the present invention has the following advantages:

[0061] First, the present invention adopts a local-global two-stage initialization method, which performs local visual-inertial state recovery and global coordinate calibration in stages. This overcomes the shortcomings of existing multi-sensor joint initialization processes, such as large problem scale, mutual influence of initial states, and insufficient initialization stability under weak excitation conditions. This enables the robot to obtain an initial pose with a global scale under a smaller optimization problem scale.

[0062] Second, this invention constructs a degradation assessment mechanism based on the motion consistency of multiple sensors, which overcomes the shortcomings of existing methods that mainly rely on a single sensor or fixed rules to judge anomalies and have difficulty in identifying the degradation states of different heterogeneous sensors. This enables the system to select effective observations based on the real-time operating status of the sensors, reducing the impact of abnormal measurements on the positioning results.

[0063] Third, the present invention adopts a centerless dynamic factor graph optimization method, which overcomes the defect of the existing technology that the fixed fusion structure centered on a single sensor is prone to systematic deviation when the central sensor degrades. This enables multiple heterogeneous sensors in normal state to provide constraints together in a unified error space and supports the dynamic addition and removal of sensor factors.

[0064] Fourth, the present invention adopts an adaptive edge-mapping strategy based on the effective sensor motion excitation level, which overcomes the shortcomings of conventional edge-mapping methods that fix the oldest keyframe and cannot distinguish the value of keyframe motion information. This enables the system to reduce the occupation of the sliding window by low-value keyframes and interference constraints, and improve the positioning stability in degradation environments while controlling the amount of computation.

[0065] Fifth, the present invention adopts an asynchronous relocation method for degradation segments, which overcomes the defect of existing technologies where constraint conflicts easily occur between the recovery measurement after long-term degradation of the global sensor and the pose estimation during degradation. This enables the system of the present invention to correct the cumulative pose offset generated during degradation without affecting the real-time performance of the main optimization process, reduce global trajectory jumps, and improve the continuity and global consistency of the positioning results.

[0066] Sixth, this invention utilizes calibrated magnetic field direction observations to construct global orientation constraints, overcoming the shortcomings of existing technologies that rely solely on visual feature tracking and gyroscope integration for attitude estimation, which easily leads to heading accumulation errors. This enables the system of this invention to obtain an independent global heading reference, improving the stability of robot attitude estimation. Attached Figure Description

[0067] Figure 1 This is a flowchart of the method of the present invention;

[0068] Figure 2 This is a schematic diagram of keyframe processing for motion-aware edge detection in an embodiment of the present invention;

[0069] Figure 3 This is a comparison chart of the global trajectory output by the simulation experiment of this invention under different test scenarios and the trajectory output by the global navigation satellite system receiver;

[0070] Figure 4 This is a comparison of the absolute pose error between the method of this invention and the non-degradation processing method under different test scenarios in the simulation experiment. Detailed Implementation

[0071] The present invention will be further described below with reference to the accompanying drawings and embodiments.

[0072] Reference Figure 1 The implementation steps of the embodiments of the present invention will be described in detail.

[0073] (1) Preprocessing and initialization.

[0074] Heterogeneous sensor data, such as camera images, inertial measurement unit (IMU) measurements, GNSS position and velocity measurements, and magnetometer magnetic field direction measurements, need to be preprocessed before they can be used by the Simultaneous Localization and Mapping (SLAM) system. Visual image frames are used as a reference to align heterogeneous sensor measurements. Inter-frame feature point extraction and matching are performed on the images. IMU pre-integration is performed to calculate inter-frame pseudo-displacement, velocity, and angular changes. GNSS-provided position measurements are first transformed from latitude, longitude, and altitude to the ENU frame using the WGS84 standard. Then, the preprocessed data is used to estimate the initial state of the system, providing initial values ​​for subsequent optimization. Sensor degradation estimation is also performed.

[0075] Motion observations from normal sensors should tend to be consistent, while those from degraded sensors exhibit significant differences. Specifically, the relative motion transformation between the latest frame observed by the sensor and multiple historical frames within a sliding window should follow true kinematic constraints. This consistency is quantified by analyzing the motion descriptors of the sensor observations, thereby assessing the sensor state. The key is to construct a characterization mechanism for the sensor. At the current moment (latest frame) ) and within the sliding window Different historical frames A descriptor for the relative motion relationship between them.

[0076] Define a six-dimensional relative motion transformation vector between observed frames for the sensor:

[0077] in, Indicates sensor identification, This represents the latest keyframe at the current moment. This represents the selected historical keyframes within the sliding window, and , This indicates the number of historical keyframes involved in descriptor construction. Indicates sensor In frame With frames The six-degree-of-freedom relative motion transformation vector between them In world coordinate system The position change vector below, In world coordinate system The attitude change vector.

[0078] sensor At any moment motion descriptor Defined as all selected history frames The ordered set of the corresponding relative motion transformation vectors is:

[0079] in, For inclusion Relative motion transformation vectors An ordered set.

[0080] The method for calculating the relative motion transformation vector for different sensors is as follows:

[0081] 1) Visual sensor:

[0082] Image frames are calculated using feature matching and motion estimation (PnP). arrive Relative pose transformation in the camera coordinate system, converted to the world coordinate system , representing the relative motion transformation vector observed by the camera:

[0083] in, This represents the extrinsic rotation matrix from the camera coordinate system to the body coordinate system. Represents an image frame arrive The relative translation vector in the camera coordinate system Represents an image frame arrive The relative rotation matrix in the camera coordinate system This indicates that the rotation matrix is ​​mapped to the axis-angle vector.

[0084] 2) Inertial Measurement Unit: The displacement and rotation increments generated by the inter-frame inertial measurement unit are calculated using the pre-integration results, representing the relative motion transformation vector observed by the inertial measurement unit.

[0085] 3) Global Positioning Sensor: Utilizes global positioning sensors to measure and calculate the global position, transforming it to the world coordinate system. The displacement below represents the relative position transformation vector observed by the global positioning sensor, where the attitude component is not observable and is set to zero by default.

[0086] 4) Magnetometer: Utilizes global attitude observations in the world coordinate system W provided by the magnetometer, representing the relative attitude transformation vector observed by the magnetometer. The position component is not observable and is set to zero by default.

[0087] Based on the above sensor motion descriptors, cross-validation is performed to calculate the motion consistency residual between each sensor and other sensors. This residual serves as a similarity measure between the motion descriptors of different sensors, determining whether the current sensor observation is consistent with other sensor observations. The consistency residual is defined as follows:

[0088]

[0089] in, and This indicates the different sensors participating in the consistency comparison. Indicates sensor and sensors At any moment Motion consistency residuals, frame weighting factors Based on the time interval between the current frame and historical frames The longer the time interval, the lower the weight. The distance function represents the distance between the relative motion transformation vectors of the two sensors; Represents the relationship with covariance Mahalanobis distance, Describing the Euclidean norm, The term represents the square of the Euclidean norm; the location difference term uses the covariance that takes into account location measurement noise. The Mahalanobis distance, and the attitude difference term are expressed as the square of the Euclidean distance between the axis-angle vectors, and normalized by the angle normalization parameter. To unify the units; This represents the set of valid sensors participating in cross-validation. Residuals are used as the cross-validation metric to quantify the motion consistency between a sensor and other sensors at the current moment. A degradation judgment threshold is preset based on sensor characteristics. Larger residuals indicate significant contradictions in the cross-frame motion relationships observed by the sensor, suggesting potential sensor degradation. The judgment rule is as follows:

[0090]

[0091] in, Indicates sensor At any moment Degenerate state variables, Indicates sensor The corresponding degradation judgment threshold.

[0092] Once sensor degradation is confirmed, the corresponding threshold is reduced according to a preset tolerance ratio to form a state switching mechanism of "wide entry, strict exit" to avoid frequent jitter; at the same time, the optimization constraints corresponding to the degraded sensor are downweighted or temporarily removed to eliminate abnormal observations.

[0093] (2) Construct a dynamic factor graph.

[0094] To address the challenge of dynamically changing sensor states in SLAM tasks, this invention employs a decentralized dynamic problem-solving approach. Based on the real-time sensor states, it constructs and adjusts the problem graph topology online, achieving decentralized dynamic coupling of multiple sensors under the same problem. The dynamic combination and operation mechanism of each sensor encompasses two levels of dynamics: the structural dynamics and the procedural dynamics of the optimization problem. These two aspects respectively ensure the rationality of the optimization problem under complex scenarios and its adaptability to abnormal measurements.

[0095] 1) Structural Dynamics. Based on real-time degradation assessment results, the system proactively filters sensor data before optimization, only including observations from non-degraded sensors as residual factors in the factor map. For example, when GNSS is determined to be degraded due to obstruction, its corresponding global positioning factor (… ) and velocity factor ( This factor branch will be temporarily removed to avoid noise contamination of the optimization process, and will be reactivated once the signal is restored.

[0096] 2) Process Dynamics. During the optimization process, a two-stage outlier removal mechanism is employed, using a tolerant robust kernel function and a hard removal strategy to handle potential outlier observations. For example, for visual feature factors (… If the residual still deviates significantly from the distribution after being weighted by the kernel function, the feature constraint is directly removed to prevent incorrect matching from damaging the graph structure.

[0097] (3) Constructing visual residuals in 3D space.

[0098] Estimate the inverse depth of image features and project it onto a real-scale local world coordinate system (W-frame) with the first frame's camera coordinates as the local world coordinate system. Calculate the spatial distance between feature points. Since depth-instable outliers have been removed as outliers, this 3D visual feature residual can be used as a visual residual factor. The residual model is as follows:

[0099]

[0100] in, and Landmarks In the and Transformation of frame pixel coordinates to W-frame 3D space coordinates:

[0101] ;

[0102] ;

[0103] ;

[0104] in, as a landmark The pixel homogeneous plane coordinates. Indicates the first Transformation of frame keyframe pose to W-frame. This is the camera distortion correction matrix. The inverse depth of the feature points.

[0105] (4) Construct the IMU pre-integration factor.

[0106] This embodiment of the invention uses the pre-integration results of the accelerometer and gyroscope to construct the IMU pre-integration factor. The pre-integration process is as follows:

[0107] ;

[0108] ;

[0109] ;

[0110] Considering that IMU measurements include zero bias and noise Assuming additive biases all conform to a Gaussian noise distribution, then the accelerometer bias... and gyroscope bias The propagation relationship between adjacent frames is as follows:

[0111] ;

[0112] ;

[0113] Time interval During the pre-integration process, the integral approaches zero, and the effect of noise propagation can be ignored. However, during the optimization process... Large and constantly changing, requiring and Solve as optimization variables. Construct the IMU pre-integration residuals based on these:

[0114] ;

[0115] (5) Construct GNSS residuals.

[0116] GNSS residuals consist of global positioning residuals and global velocity residuals. Positioning residuals are constructed based on the GNSS global position, level measurement accuracy, and elevation measurement accuracy in the W-frame, representing the difference between the system position variables and global positioning measurements. Velocity residuals are constructed based on GNSS global velocity observations, representing the difference between the system velocity variables and global velocity observations. The positioning residuals are:

[0117] ;

[0118] The velocity residual is:

[0119] ;

[0120] Before the introduction of GNSS velocity residuals, the system velocity variable was only constrained by IMU measurements. When there are differences in position component constraints between GNSS or other sensor measurements and IMU measurements, errors propagate to the velocity variable during optimization, affecting the initial state of subsequent optimizations. GNSS velocity residuals introduce new global constraints on the velocity variable, keeping the estimated system velocity variable within a reasonable range.

[0121] (6) Construct the magnetometer factor.

[0122] A global orientation residual factor is constructed using a magnetometer to provide stable attitude observations for the system on a global scale. Considering the magnetometer measurement as... The global orientation residual factor is constructed as follows:

[0123] ;

[0124] (7) System state estimation.

[0125] The most probable system state variables are obtained by minimizing the prior loss and the sum of sensor residuals within the sliding window. Let the system's state vector be... , is represented as:

[0126]

[0127] in, For the sliding window The system state of the keyframe (sliding window length n) includes the nth frame in the system coordinate system. Position components of the frame system state and attitude components and velocity vector accelerometer bias and gyroscope bias , To estimate the elevation error in GNSS modeling. This represents the inverse depth parameter of the feature points within the sliding window. These are the extrinsic parameters from the camera to the IMU obtained during system initialization. For the ENU system to the W system, the external parameters are...

[0128] Assuming that the measurements from the heterogeneous sensors are independent and the error loss approximates a Gaussian noise model, the most probable system state variables can be obtained by minimizing the prior loss and the sum of the sensor residuals within the sliding window. The residuals of each sensor are constructed within a unified real-scale space.

[0129]

[0130] in, and This represents prior information about marginalization, used to fix the factor graph and prevent multiple solutions from occurring. The projection residual of visual feature points in 3D space; For IMU pre-integrated residuals; and These are the GNSS global positioning residual and the global velocity residual, respectively. This refers to the global orientation residual of the magnetometer. The length of the sliding window. For the extracted visual feature set, For example, a feature instance; and For features Associated keyframes; and These are GNSS measurements and GNSS frame differential averaging velocities, respectively. For magnetometer measurement. Represents the measurement covariance. and Indicates the first Positioning accuracy of frame GNSS measurements in the horizontal and vertical directions.

[0131] (8) Multi-sensor motion perception edge detection.

[0132] The motion consistency estimation results of the effective sensors are used as an indicator to evaluate the system motion excitation level perceived by the effective sensors. When insufficient motion excitation is detected in the next newest frame, the next newest frame and its related constraints are actively marginalized; otherwise, the oldest frame is marginalized according to the conventional strategy.

[0133] Reference Figure 2As shown, in this embodiment of the invention, the degree of motion excitation within the current sliding window is first calculated based on the motion consistency results among the effective sensors. Keyframes in the sliding window are arranged chronologically, with the leftmost being the oldest keyframe, the rightmost being the newest, and keyframes preceding the newest being the next newest. When the motion excitation of a next-newest keyframe is insufficient, it indicates that the keyframe contains little effective motion information, or that its related constraints may be affected by repeated observations or sensor anomalies. In this case, the next-newest keyframe is preferentially marginalized. When the motion excitation of a next-newest keyframe reaches a preset condition, the oldest keyframe is marginalized according to a conventional strategy. After marginalization, the impact of the marginalized keyframe and its related variables on the current optimization problem is converted into prior constraints to maintain the sliding window size and reduce computational load.

[0134] The effects of the present invention can be further illustrated by the following comparative experiments based on measured data.

[0135] 1. Simulation experimental conditions.

[0136] The experimental hardware platform for the simulation experiments of this invention is a workstation equipped with an Intel Xeon Silver-4210R central processing unit and 64GB of memory. All methods were run under the same input data, evaluation metrics, and computing resource conditions; the comparison methods used their default parameters.

[0137] The simulation experiments of this invention use a self-built degraded environment dataset and the i2Nav-Robot public dataset. The gym, street, and playground sequences in the self-built degraded environment dataset were collected in real open-air environments; the building00, building01, and building02 sequences in the i2Nav-Robot public dataset were collected in building cluster environments where the GNAS signal is easily blocked, the parking00 sequence includes underground parking lots and indoor-outdoor transition environments, and the playground00 sequence was collected in open-air environments where the GNAS signal is relatively stable.

[0138] 2. Simulation experiment content and result analysis.

[0139] The simulation experiment of this invention includes two comparative experiments. Experiment 1 compares the global trajectory output by the method of this invention with the trajectory output by the global navigation satellite system receiver; Experiment 2 compares the absolute pose error produced by the method of this invention with that produced by the non-degradation processing method.

[0140] Simulation Experiment 1 uses the method of this invention to process the gym, street, and playground sequences in a self-built degraded environment dataset to obtain the robot's global trajectory in each test scenario. The obtained robot global trajectory is then plotted against the positioning trajectory output by the u-blox F9P global navigation satellite system receiver. Figure 3 The trajectory comparison diagram is shown.

[0141] Figure 3 The three subgraphs in the diagram represent three test scenarios. Figure 3 The x and y coordinates in the graph represent the two position coordinate components in the global reference coordinate system. The two curves of different colors represent the positioning trajectory output by the u-blox F9P global navigation satellite system receiver and the robot's global trajectory output by the method of this invention, respectively. Figure 3 It can be seen that in the test scenario containing multiple turns and closed driving routes, the trajectory output by the method of the present invention is consistent with the trajectory output by the global navigation satellite system receiver, and the trajectory is continuous, indicating that the method of the present invention can obtain a robot motion trajectory with global consistency in the test scenario.

[0142] Simulation Experiment 2 uses the method of this invention and the non-degradation processing method to process the sequences building00, building01, building02, parking00, and playground00 in the i2Nav-Robot public dataset, respectively. The method of this invention performs multi-sensor motion consistency degradation assessment and, based on the degradation assessment results, reduces the weight of the residual factors corresponding to degraded sensors or temporarily removes them. The non-degradation processing method retains other processing steps but does not dynamically adjust the residual factors corresponding to degraded sensors based on the degradation assessment results.

[0143] The absolute pose error of the trajectories output by the two methods is calculated time-by-time and plotted according to the test scenario. Figure 4 The box plot shown. Figure 4 The horizontal axis represents the test sequences building00, building01, building02, parking00, and playground00, while the vertical axis represents the absolute pose error. The boxes, horizontal lines inside the boxes, whiskers, and outliers represent the interquartile range, median, range of non-outliers, and outlier error of the error distribution, respectively.

[0144] Table 1. Comparison of absolute trajectory errors between the method of this invention and the non-degradation processing method.

[0145] test sequence Non-degradation treatment method / m Method of this invention / m building00 0.65 0.51 building01 0.37 0.30 building02 0.24 0.22 parking00 0.53 0.48 playground00 0.17 0.15

[0146] Combining Table 1 and Figure 4It can be seen that in the scenarios of building00, building01, building02 and parking00 where there is obstruction from the global navigation satellite system or indoor-outdoor transition, the absolute trajectory error of the method of the present invention is smaller than that of the method without degradation processing, indicating that dynamically adjusting the residual factor corresponding to the degradation sensor can reduce the impact of abnormal observations; in the playground00 scenario, the errors of the two methods are close, indicating that the degradation processing does not reduce the positioning performance under normal conditions.

Claims

1. A multi-sensor adaptive dynamic combination robot global positioning system, comprising a camera, an inertial measurement unit, a global navigation satellite system receiver, a magnetometer, and a processing module; characterized in that, The processing module includes a sensor data preprocessing unit, a local-global initialization unit, a sensor degradation evaluation unit, a factor graph optimization unit, a sliding window edge detection unit, and an asynchronous relocation unit for degradation segments; wherein: The sensor data preprocessing unit is used to acquire camera images, inertial measurement unit measurements, global navigation satellite system position and velocity measurements, and magnetometer orientation measurements. It performs time synchronization and coordinate system transformation on each sensor measurement, and performs image feature point extraction and matching, inertial measurement unit pre-integration, global navigation satellite system position transformation, and magnetometer calibration respectively. The local-global initialization unit is used to perform two-stage initialization, namely local initialization and global calibration, to restore the robot's motion state in the local coordinate system and estimate the transformation relationship between the local coordinate system and the global reference coordinate system. The sensor degradation assessment unit is used to construct motion descriptors for each sensor based on the relative motion relationship between the current keyframe and multiple historical keyframes within the sliding window, calculate the motion consistency residual between the motion descriptors of different sensors, and determine the normal or degraded state of each sensor based on the motion consistency residual and a preset degradation judgment threshold. The factor graph optimization unit is used to construct and adjust the sliding window factor graph online according to the state of each sensor, construct the measurement of the normal state sensor as the corresponding residual factor, and reduce the weight or remove the residual factor corresponding to the degraded state sensor. By jointly optimizing the residual factor corresponding to the effective sensor, the position and attitude of the robot are obtained. The sliding window edge-out unit is used to determine the motion excitation degree of key frames within the sliding window based on the motion consistency results of the normal state sensor, select key frames to be edged out based on the motion excitation degree, and convert the edge-out results into prior constraints of the sliding window factor graph. The asynchronous relocation unit for the degraded segment is used to establish and asynchronously solve the degraded segment pose correction problem when the degraded global navigation satellite system receiver or magnetometer is restored and meets the preset stability conditions. It uses the prior pose formed during the degradation period as the trajectory basis and the restored global measurement as the correction anchor point, and continuously fuses the corrected degraded segment trajectory with the trajectory before degradation and after restoration.

2. A robot global localization method with multi-sensor adaptive dynamic combination, characterized in that, The steps of this positioning method include the following: Step 1: Acquire camera images, inertial measurement unit measurements, global navigation satellite system position and velocity measurements, and magnetometer orientation measurements. Perform time synchronization and coordinate system unification on the acquired sensor measurements, and complete image feature point extraction and matching, inertial measurement unit pre-integration, global navigation satellite system position transformation, and magnetometer calibration respectively. Step 2: Perform local-global two-stage initialization. In the local initialization stage, the robot's motion state in the local coordinate system is recovered using camera images and inertial measurement unit measurements, and the local motion trajectory is calibrated using the global navigation satellite system position difference. In the global calibration stage, the transformation relationship between the local coordinate system and the global reference coordinate system is estimated using global navigation satellite system position measurement and magnetometer orientation measurement. Step 3: Convert the observations of the camera, inertial measurement unit, global navigation satellite system receiver, and magnetometer between the current keyframe and multiple historical keyframes within the sliding window into a unified six-dimensional relative motion vector, and construct motion descriptors for each sensor based on the relative motion vectors; Step 4: Calculate the weighted motion consistency residuals between motion descriptors of different sensors to determine the state of each sensor; Step 5: Construct and adjust the sliding window factor map; jointly optimize the residual factors retained in the sliding window factor map within a unified true scale error space to obtain the system state estimate; Step 6: Select the newest or oldest keyframe for marginalization, and convert the marginalization result into prior constraints of the sliding window factor graph. Step 7: Asynchronously solve the degradation segment pose correction problem, continuously fuse the corrected degradation segment trajectory with the trajectory before degradation and after recovery, and reactivate the residual factor corresponding to the recovery sensor. Step 8: Output the robot's global position and attitude after dynamic sensor combination positioning and degradation segment pose correction.

3. The robot global localization method according to claim 2, characterized in that, The steps described in step 3 for converting the observations from each sensor into a unified six-dimensional relative motion vector are as follows: Step 3.1: Pair each sensor's current keyframe with each historical keyframe selected within the sliding window to obtain its corresponding observation; Step 3.2: Determine the position change component and attitude change component that can be observed by the corresponding sensor based on the observation of each pair of keyframes, and use the coordinate transformation relationship determined in Step 2 to transform the components to the same coordinate system, representing the position change with the real scale and the attitude change with the three-dimensional axis-angle vector; Step 3.3: Set the three-dimensional vectors corresponding to unobservable position or attitude changes to zero, and then combine them in the order of position change vector first and attitude change vector second to obtain the six-dimensional relative motion vector of the sensor: ; in, Indicates the first From the historical Up to the current number The six-dimensional relative motion vector, ; This indicates the total number of historical keyframes selected within the current sliding window. and They represent the first The position change vector and attitude change vector of the six-dimensional relative motion vector.

4. The robot global localization method according to claim 3, characterized in that, The motion descriptor for each sensor described in step 3 is obtained by arranging the six-dimensional relative motion vectors in chronological order from most recent to oldest historical keyframes: ; in, Indicates the first Current number Motion descriptor at the corresponding time point, Indicating the first in the motion descriptor A relative motion vector, which is the six-dimensional relative motion vector between the current keyframe and the keyframe that is furthest from the current keyframe in the selected historical keyframes. This indicates the total number of historical keyframes selected within the current sliding window.

5. The robot global localization method according to claim 4, characterized in that, The weighted motion consistency residual between different sensor motion descriptors, as described in step 4, is obtained by the following formula: ; ; in, Indicates the first No. In the current number Weighted motion consistency residuals at time points Indicates the first in history The corresponding weighting factor, if the historical number Keyframe and current frame The larger the time interval between keyframes, The smaller; Represents the distance function. They represent the first No. From the historical Keyframe to the current number The six-dimensional relative motion vector of the keyframe. They represent the first From the historical Keyframe to the current number Position change vector between keyframes They represent the first From the historical Keyframe to the current number Pose change vectors between keyframes Indicates according to the first No. The position difference weighted matrix is ​​constructed from the position measurement noise. This represents the normalized parameters for attitude differences. express Norm operations; This indicates the total number of historical keyframes selected within the current sliding window.

6. The robot global localization method according to claim 5, characterized in that, The determination of the state of each sensor in step 4 refers to setting the state of the first sensor as the first sensor. With the current set of sensors participating in cross-validation In, except for the first The minimum value of the weighted motion consistency residual of sensors other than the first sensor is used as the first... The sensor is currently in the first Cross-validation residuals at time step ;when At that time, the first The sensor determines that it is in a degraded state; when At that time, the first The sensor is determined to be in a normal state; otherwise, the sensor state of the previous keyframe is maintained; among which, They represent the first The sensor's degradation entry threshold and degradation exit threshold, and .

7. The robot global localization method according to claim 6, characterized in that, The steps in step 5 for constructing and adjusting the sliding window factor map based on the state of each sensor are as follows: Step 5.1: Using the system state to be estimated corresponding to each keyframe within the sliding window as variable nodes, and the existing marginalized prior constraints and residual factors constructed from the observations of each normal state sensor as factor nodes; according to the keyframes and state variables constrained by each factor node, connect each factor node with the corresponding variable node to form a sliding window factor graph; wherein, each sensor residual factor consists of the sensor observation value, the predicted value calculated based on the variable node connected to it, and the corresponding residual covariance matrix, and the difference between the sensor observation value and the predicted value is used as the residual; the residual covariance matrix is ​​determined according to the measurement noise of the corresponding sensor and the residual construction relationship, and is used to characterize the uncertainty of the residual, and its inverse matrix is ​​used to weight the residual; Step 5.2: Transform the image observations of the same visual feature of the sensor in normal state in relevant keyframes to a unified real-scale coordinate system, and construct the spatial position difference after transformation as the visual feature residual factor; construct the inertial measurement unit pre-integration residual factor by constructing the differences between the position, velocity, attitude and inertial measurement unit zero bias changes obtained from state variables and the inertial measurement unit pre-integration measurement between adjacent keyframes; construct the global navigation satellite system positioning residual factor and global navigation satellite system velocity residual factor by constructing the differences between the position state and velocity state of the corresponding keyframe and the position measurement and velocity measurement of the global navigation satellite system, respectively; construct the magnetometer orientation residual factor by constructing the difference between the attitude state of the corresponding keyframe and the magnetometer orientation measurement. Step 5.3: Connect the marginalization prior constraints to the variable nodes they constrain; connect the visual feature residual factors to the associated keyframe variable nodes; connect the inertial measurement unit pre-integration residual factors to two adjacent keyframe variable nodes; connect the GNSS positioning residual factors, GNSS velocity residual factors, and magnetometer orientation residual factors to the keyframe variable nodes corresponding to the measurement time, respectively; and classify the five types of sensor residual factors into their corresponding effective residual factor sets. Step 5.4: For sensors determined to be in a degraded state, based on the minimum value of the weighted motion consistency residual between the sensor and other sensors currently participating in cross-validation, amplify the covariance of the corresponding residual factor to reduce the weight of the residual factor, or temporarily remove the residual factor and its connection with the variable node; during the optimization process, if the residual continuously exceeds the outlier determination threshold, first use a robust kernel function to reduce the weight of the corresponding residual factor, and if it still exceeds the outlier determination threshold after reducing the weight, remove the residual factor and its connection with the variable node; thus obtaining the adjusted sliding window factor graph and the set of each effective residual factor.

8. The robot global localization method according to claim 7, characterized in that, The steps described in step 5 for jointly optimizing the residual factors preserved in the sliding window factor plot within a unified true scale error space are as follows: The first step is to construct the system state vector to be estimated. The system state vector includes the position, attitude and velocity of each keyframe within the sliding window, the accelerometer zero bias and gyroscope zero bias of the inertial measurement unit, the extrinsic parameters between the camera and the inertial measurement unit, and the extrinsic parameters between the local coordinate system and the global reference coordinate system. The second step involves jointly minimizing the marginalized prior residuals and the residuals in each effective residual factor set to obtain the system state estimate: ; in, This represents the estimated system state. This represents the system state vector to be estimated; Indicates marginalized prior residuals; , , , and These represent the visual feature residual, the inertial measurement unit pre-integration residual, the global navigation satellite system positioning residual, the global navigation satellite system velocity residual, and the magnetometer orientation residual, respectively. This represents the index of the residual factor in each set of effective residual factors; , , , , These represent the effective sets of visual feature residual factors, inertial measurement unit pre-integration residual factors, global navigation satellite system positioning residual factors, global navigation satellite system velocity residual factors, and magnetometer orientation residual factors, respectively. , , , and Let these represent the covariance matrices of the marginalization prior residual, visual feature residual, inertial measurement unit pre-integration residual, global navigation satellite system residual, and magnetometer orientation residual, respectively. The global navigation satellite system positioning residual and velocity residual share the same covariance matrix. The weighted residual square in the formula represents the quadratic form formed by weighting the residuals using the inverse of the corresponding covariance matrix.

9. The robot global localization method according to claim 8, characterized in that, The steps in step 6, which involve selecting the newest or oldest keyframe for edge detection and converting the edge detection result into prior constraints for a sliding window factor graph, are as follows: Step 6.1: Based on the sensor state determined in Step 4, determine the normal state sensors participating in the current joint optimization from the effective residual factor set formed in Step 5; use the position change vector and attitude change vector in the six-dimensional relative motion vector obtained in Step 3 to determine the motion excitation degree of each key frame within the sliding window. Step 6.2: When the motion excitation level of the newest keyframe is lower than the preset motion excitation threshold, marginalize the newest keyframe and its related state variables and residual factors; when the motion excitation level of the newest keyframe is greater than or equal to the preset motion excitation threshold, marginalize the earliest keyframe within the sliding window. Step 6.3: The constraints of the marginalized keyframes and their associated state variables and residual factors on the remaining state variables are converted into marginalized prior residuals, and the marginalized prior residuals are added to the next joint optimization.

10. The robot global localization method according to claim 9, characterized in that, The steps for generating the degenerate segment pose correction problem described in step 7 are as follows: Step 7.1: Based on the sensor status, determine the start and end keyframes of the degradation segment, and use the poses of each keyframe within the degradation segment as optimization variables. ; in, Represents the pose optimization variables for the degradation segment. Indicates the initial keyframe pose. Indicates the end of the keyframe pose; Step 7.2 establishes the following problem regarding the pose correction of the degenerate segment: ; in, This indicates the pose correction result for the degenerate segment. Indicates the first degenerate segment Frame in world coordinate system The lowered position; , These represent the starting and ending keyframe indices of the degradation segment, respectively. Indicates the keyframe index within the degraded segment; Indicates the first Frame and the Inter-frame prior residuals between frames; , They represent the first The corresponding Global Navigation Satellite System position anchor point residuals and magnetometer orientation anchor point residuals; , These represent the set of global navigation satellite system position measurement indexes and the set of magnetometer orientation measurement indexes that participate in degradation segment correction, respectively. , and Let represent the covariance matrices of the inter-frame prior residual, the global navigation satellite system position anchor residual, and the magnetometer orientation anchor residual, respectively; the weighted residual square in the formula represents the quadratic form formed by weighting the residuals using the inverse of the corresponding covariance matrix.

Citation Information

Patent Citations

  • Multi-sensor fusion positioning method and system in unmanned complex scene

    CN115265551A

  • Multi-source sensor fusion positioning method and system based on dynamic target enhancement

    CN121677723A