UWB and INS tight coupling indoor positioning method based on SEKF

The SEKF algorithm is used to fuse IMU and UWB data to solve the positioning error problem of UWB signals under non-line-of-sight conditions, achieve high-precision indoor positioning, avoid filter divergence, and improve positioning efficiency.

CN118574079APending Publication Date: 2024-08-30SHENZHEN WEINENG INFORMATION TECH CO LTD
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202410624622.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-20
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

In indoor environments, UWB signals can easily lead to positioning information errors under non-line-of-sight conditions. Existing technologies are difficult to effectively solve this problem, resulting in reduced positioning accuracy.

Method used

The UWB and INS tightly coupled indoor positioning method based on SEKF is used to fuse IMU and UWB data through the self-resetting extended Kalman filter algorithm (SEKF) to compensate for the measurement error of UWB signals under non-line-of-sight conditions and improve positioning accuracy.

Benefits of technology

It effectively avoids the divergence of the filter in the NLOS environment. The output positioning information has high accuracy, low time complexity and high efficiency, and can maintain high-precision positioning in the NLOS environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118574079A
    Figure CN118574079A
Patent Text Reader

Abstract

The invention provides a UWB and INS tight coupling indoor positioning method based on SEKF, and the method comprises the steps: obtaining IMU data and a UWB ranging value, processing the IMU data, carrying out the tight coupling of the IMU data and the UWB ranging value based on an SEKF algorithm, discriminating an error state, if the discrimination is passed, not carrying out the processing, and if the discrimination is not passed, carrying out the correction of the error state. And the corrected positioning information is obtained. According to the UWB and INS tight coupling indoor positioning method based on SEKF provided by the invention, the IMU and the UWB are subjected to data fusion by using a self-resetting extended Kalman filter (SEKF) algorithm, so that the measurement error of a UWB signal under a non-line-of-sight condition is compensated, and the positioning precision is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of indoor positioning technology, and in particular to a SEKF-based UWB and INS tightly coupled indoor positioning method. Background Art

[0002] With the rapid advancement of science and technology, location services have become an indispensable part of public services in modern society. However, since non-line-of-sight interference in indoor environments has the greatest impact on positioning accuracy, it is also the direction that scholars are working hard to solve.

[0003] According to the actual environment, the communication between the target and the base station can be divided into line-of-sight (LOS) communication and non-line-of-sight (NLOS) communication. In actual positioning applications, since the target is in an environment where LOS and NLOS coexist, there is a risk of divergence when the filter is applied, resulting in errors in the obtained positioning information. Therefore, it is very necessary to design a UWB and INS tightly coupled indoor positioning method based on SEKF. Summary of the invention

[0004] The purpose of the present invention is to provide a UWB and INS tightly coupled indoor positioning method based on SEKF, which uses a self-resetting extended Kalman filter algorithm (SEKF) to fuse IMU and UWB data to compensate for the measurement error of UWB signals under non-line-of-sight conditions, thereby improving the positioning accuracy.

[0005] To achieve the above object, the present invention provides the following solutions:

[0006] A UWB and INS tightly coupled indoor positioning method based on SEKF includes the following steps:

[0007] Step 1: Obtain IMU data and UWB ranging values, and process the IMU data;

[0008] Step 2: Based on the SEKF algorithm, the IMU data and UWB ranging value are tightly coupled to judge the error state. If the judgment is passed, no processing is performed. If the judgment is not passed, the error state is corrected to obtain the corrected positioning information.

[0009] Optionally, in step 1, the IMU data is processed as follows:

[0010] Suppose the heading angle, pitch angle and roll angle of the carrier in the navigation coordinate system are yaw(ψ), pitch(θ) and roll(γ) respectively, the rotation order is ZYX, and the Euler angle coordinate transformation matrix from the n system to the b system is The Euler angle transformation matrix from b system to n system is According to the ZYX rotation order, the coordinate transformation process is decomposed into three steps;

[0011] The carrier system rotates around the Z axis by an angle ψ, and the corresponding rotation matrix is ​​defined as

[0012] Rotate around the Y axis by an angle θ, and its rotation matrix is ​​recorded as

[0013] Rotate angle γ around the X axis, the corresponding rotation matrix is

[0014] According to the rotation order and the principle of multiplication from right to left, the following coordinate transformation relationship is obtained:

[0015]

[0016] In the formula,

[0017]

[0018]

[0019] Use the rotation matrix to convert the position, velocity and acceleration in the carrier coordinate system into the corresponding information in the navigation coordinate system;

[0020] The angular velocity of the carrier coordinate system relative to the navigation coordinate system is expressed as And decomposed into three components along three orthogonal coordinate axes: and The Euler angle of the carrier includes the yaw angle ψ, pitch angle θ and roll angle and their change rates in the navigation coordinate system. The relationship between the angular velocity component and the Euler angle change rate is:

[0021]

[0022] Set the sampling period to T, and express the angle update value as:

[0023]

[0024] Assume that the carrier acceleration at time t is Then the acceleration in the navigation coordinate system is:

[0025]

[0026] The velocity value at time t+1 is:

[0027]

[0028] The updated value of the position is obtained from the updated value of the velocity:

[0029]

[0030] Get updated values ​​of angle, velocity, and position.

[0031] Optionally, in step 2, the IMU data and the UWB ranging value are tightly coupled based on the SEKF algorithm, specifically:

[0032] In tight coupling, the target state is set to the optimized target position P INS / UWB Compared with the target position P before optimization INS The state difference X between them is a 15-dimensional vector, including the three degrees of freedom of position error, velocity error, attitude error, gyroscope bias, and accelerometer bias, which is: δp x , δpx, δp z ,δv x ,δv y ,δv z ,δφ E ,δφ N ,δφ U , ε x , ε y , ε z ,

[0033] Assume the target state equation is:

[0034] X k =Φ(X k-1 )+W k-1 (9)

[0035] For the system state quantity X k Performing a first-order Taylor expansion yields:

[0036]

[0037] When the sampling time is small, according to the system state quantity X k The first-order Taylor expansion of gives:

[0038] Φ(X k-1 )=(I+F k T)X k-1 (11)

[0039] Where I is the 15-dimensional unit matrix, T is the sampling time interval, and F k for:

[0040]

[0041] In the formula, the sub-matrix reflecting the influence of velocity error on position error is:

[0042]

[0043] The sub-matrix reflecting the influence of attitude error on velocity error is:

[0044]

[0045] a x 、a y 、a z They are the acceleration values ​​of the n system without deducting the gravity acceleration, among which, the conversion of the b system acceleration value to the n system is:

[0046]

[0047] Get the complete state equation;

[0048] The measurement equation is set to the distance between the target and the base station as:

[0049]

[0050] X k Perform a first-order Taylor expansion, which is:

[0051] Z k =H k X k +V k (17)

[0052] In the formula, H k for:

[0053]

[0054] By integrating the state equation and the measurement equation, we can obtain the relationship between the state difference X before and after the prediction step, which is:

[0055]

[0056] In the formula, is the posterior estimate of the state vector X at the previous moment, It is to combine IMU data with The predicted value of the state vector at time k is calculated from the state value, and is corrected by the observation vector Z. The correction equation is:

[0057]

[0058] In the formula, K k It represents the UWB observation correction weight coefficient, and the acquisition process is:

[0059] P k|k-1 =ΦP k-1 Φ T +Q (21)

[0060] K k=P k|k-1 H T (HP k|k-1 H T +R) -1 (twenty two)

[0061] The covariance update is:

[0062] P k =(IK k H)P k|k-1 (IK k H) T +K k R k T (twenty three)

[0063] Where P, Q, and R are the covariance matrices of the state vector X, process noise W, and observation noise V, respectively. With P INS Combined processing, the optimized target position P at time k is obtained INS / UWB , P INS / UWB Substitute it into the measurement equation to obtain the a posteriori measurement distance between it and the measurement base station.

[0064] Optionally, in step 2, the error state is judged. If the judgment is passed, no processing is performed. If the judgment is not passed, the error state is corrected to obtain corrected positioning information, specifically:

[0065] The error state is judged based on the obtained a posteriori measurement distance, wherein the a posteriori measurement distance is the a posteriori Mahalanobis distance. If the a posteriori measurement distance is greater than the threshold, it is judged that the NLOS error is not included and no processing is performed. If the a posteriori measurement distance is less than or equal to the threshold, it is judged that the NLOS error is included, the ranging value of the UWB base station is eliminated, and the UWB base station is reselected to perform error state judgment until the judgment is passed and the correction is completed to obtain the corrected positioning information.

[0066] Optionally, the threshold is 5.421.

[0067] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects: the UWB and INS tightly coupled indoor positioning method based on SEKF provided by the present invention comprises acquiring IMU data and UWB ranging values, processing the IMU data, tightly coupling the IMU data and the UWB ranging values ​​based on the SEKF algorithm, distinguishing the error state, and if the distinction is passed, no processing is performed, and if the distinction is not passed, the error state is corrected to obtain the corrected positioning information; the method is different from the general algorithm combining INS and UWB, the general algorithm directly merges the UWB ranging value with the INS system, which inevitably leads to the filter estimate value including the NLOS error, if the target is in the NLOS state for a long time, the filter will inevitably diverge, but the method cleverly avoids this situation, and the output is always the filter estimate value obtained by combining the LOS measurement value, from the algorithm structure, it can be seen that the time complexity of the method is extremely low, while solving the NLOS environment positioning, it does not increase the system solution time, and the efficiency is high. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0069] Figure 1 It is a schematic diagram of the filtering state when tracking fails;

[0070] Figure 2 It is a flow chart of a UWB and INS tightly coupled indoor positioning method based on SEKF according to an embodiment of the present invention;

[0071] Figure 3 This is a schematic diagram of the UWB tag structure;

[0072] Figure 4 Schematic diagram of the experimental process;

[0073] Figure 5 The following is a schematic diagram of the positioning trajectories of the three algorithms in the actual NLOS scenario;

[0074] Figure 6 This is a schematic diagram of the error comparison of the three algorithms in the actual NLOS scenario;

[0075] Figure 7 Schematic diagram of the cumulative error distribution of the three algorithms in the actual NLOS scenario. DETAILED DESCRIPTION

[0076] The purpose of the present invention is to provide a UWB and INS tightly coupled indoor positioning method based on SEKF, which uses a self-resetting extended Kalman filter algorithm (SEKF) to fuse IMU and UWB data to compensate for the measurement error of UWB signals under non-line-of-sight conditions, thereby improving the positioning accuracy.

[0077] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0078] like Figure 2 As shown, the UWB and INS tightly coupled indoor positioning method based on SEKF provided in an embodiment of the present invention includes the following steps:

[0079] Step 1: Obtain IMU data and UWB ranging values, and process the IMU data;

[0080] Step 2: Based on the SEKF algorithm, the IMU data and UWB ranging value are tightly coupled to judge the error state. If the judgment is passed, no processing is performed. If the judgment is not passed, the error state is corrected to obtain the corrected positioning information.

[0081] The various methods used in this application are introduced. Among them, IMU is an inertial measurement unit, which uses the acceleration, angular velocity and other information provided by the accelerometer and gyroscope to calculate the target's posture. SEKF is a self-resetting extended Kalman filter algorithm, which will be introduced later.

[0082] First, the Extended Kalman Filter (EKF) is introduced. The Extended Kalman Filter (EKF) is a filter that predicts the a posteriori state of the system based on the prior state and the current state. This method performs Taylor series expansion on the state equation and the observation equation to make them approximately linear in a certain local area, and obtains the optimal a posteriori estimate of the state. It can be roughly divided into two steps: the prediction step and the update step.

[0083] In the prediction step, the state information in the previous time interval is used to make a priori estimate of the current state; in the update step, the priori estimate of the state and the current observation result are weighted and recorded as the current a posteriori estimate of the system, thus completing the observation and correction of the estimated target state within a time period;

[0084] Let X k is the state vector at time k, Z k is the observation vector at time k, f(·) is the state transfer function, h(·) is the observation function, W k-1 is the state transition noise at time k-1, and its covariance is recorded as Q k-1 , V kis the observation noise at time k, and the covariance is denoted by R k , then the state transfer equation of the system is:

[0085] X k =f(X k-1 )+W k-1 (1)

[0086] The system observation equation is (the quantity of the present invention is set as the distance equation between the base station and the target), which is:

[0087] Z k =h(X k )+V k (2)

[0088] The system state equation and observation equation are respectively Performing a first-order Taylor expansion at and ignoring higher-order remainders yields:

[0089]

[0090]

[0091] In the formula, F k-1 is the Jacobian matrix of the state equation:

[0092]

[0093] H k is the Jacobian matrix of the observation equation, which is:

[0094]

[0095] At this point, the prediction and correction of the system state equation at time k can be completed:

[0096]

[0097]

[0098]

[0099]

[0100]

[0101] SEKF is introduced: In actual positioning applications, since the target is in an environment where LOS and NLOS coexist, there is a risk of divergence when the filter is applied. How to define the divergence of the filter and deal with it in a targeted manner, and remove the filter estimation value obtained from the NLOS measurement value, is a key point of the present invention;

[0102] The present invention defines the NLOS measurement value as whether it causes the filtered estimate value to deviate from the high likelihood region. The specific theory is as follows:

[0103] 1. The filter estimate does not deviate from the current high likelihood region. This means that the measured value does not contain NLOS errors, and the a posteriori filter estimate is also within the high likelihood region, so no secondary processing is required;

[0104] 2. If the filter estimate deviates from the current high likelihood area, assume that the position estimate at the previous moment This is normal. If the UWB value input to the filter at the current stage contains NLOS error, the corrected position estimate There is definitely a problem, but since After the INS system status correction, Substituting it back into the measurement equation, we can calculate The posterior measurement of because Corrected by the INS system, the a posteriori distance Compared with UWB measurement value Z k There will be some differences, such as Figure 1 As shown;

[0105] This difference is defined as With Z k The Mahalanobis distance between them is used, and a threshold is set in combination with the chi-square test. If the Mahalanobis distance exceeds the threshold, it is determined that the UWB measurement value at the current moment contains NLOS error, which is specifically defined by the following formula:

[0106]

[0107] Where: R k is the measurement covariance matrix at time k; D M is the posterior Mahalanobis distance between the two;

[0108] 3. Judgment criteria: if the NLOS error is larger, the theoretical optimal value distance filter estimate The farther, if D M Greater than the threshold, indicating that the filter estimate The distance from the theoretical optimal value exceeds the defined threshold. The credibility of is too small to be a reliable estimate and should be eliminated. Therefore, when D M After that, it is compared with the set threshold. If D M If D is greater than the threshold, there is a NLOS error. MIf the value is less than the threshold, it is determined that there is no NLOS error. The threshold here can be determined in combination with the chi-square distribution table. The present invention sets the threshold to the chi-square value when the confidence probability is equal to 2%. Since the present invention is combined with a tightly coupled scheme, we set the threshold to 5.421;

[0109] In addition, the present application provides a pseudo code for tracking failure determination, wherein we use index as the indication value at time k. If index is equal to 0, it means that the filter tracking fails, and if index is equal to 1, it means that the filter tracking is normal.

[0110]

[0111] After detecting tracking failure, the SEKF algorithm will remove the error value and not output it externally;

[0112] Since there are more than one UWB base stations involved in positioning, and tight coupling only requires one ranging base station for joint positioning, and a general UWB positioning system has at least four base stations, if a certain base station is currently in NLOS state with the target, but the other base stations are not necessarily in NLOS state with the target, there must be redundant base stations, that is, there will always be a base station in LOS communication state with the target. After eliminating the filtered estimate obtained by the NLOS base station, the ranging values ​​of the other redundant base stations can be analyzed, and the measurement values ​​that do not contain NLOS errors can be selected for fusion to obtain the optimal estimate;

[0113] In combination with the above content, the steps of this application are described in detail:

[0114] In step 1, the IMU data is processed as follows:

[0115] Using the strapdown inertial navigation positioning principle, the heading angle, pitch angle and roll angle of the carrier in the navigation coordinate system are yaw(ψ), pitch(θ) and roll(γ) respectively, the rotation order is ZYX, and the Euler angle coordinate conversion matrix from the n system to the b system is The Euler angle transformation matrix from b system to n system is According to the ZYX rotation order, the coordinate transformation process is decomposed into three steps;

[0116] The carrier system rotates around the Z axis by an angle ψ, and the corresponding rotation matrix is ​​defined as

[0117] Rotate around the Y axis by an angle θ, and its rotation matrix is ​​recorded as

[0118] Rotate angle γ around the X axis, the corresponding rotation matrix is

[0119] According to the rotation order and the principle of multiplication from right to left, the following coordinate transformation relationship is obtained:

[0120]

[0121] In the formula,

[0122]

[0123]

[0124] Use the rotation matrix to convert the position, velocity and acceleration in the carrier coordinate system into the corresponding information in the navigation coordinate system;

[0125] The angular velocity of the carrier coordinate system relative to the navigation coordinate system is expressed as And decomposed into three components along three orthogonal coordinate axes: and The Euler angle of the carrier includes the yaw angle ψ, pitch angle θ and roll angle and their change rates in the navigation coordinate system. The relationship between the angular velocity component and the Euler angle change rate is:

[0126]

[0127] Set the sampling period to T, and express the angle update value as:

[0128]

[0129] Assume that the carrier acceleration at time t is Then the acceleration in the navigation coordinate system is:

[0130]

[0131] The velocity value at time t+1 is:

[0132]

[0133] The updated value of the position is obtained from the updated value of the velocity:

[0134]

[0135] Get updated values ​​of angle, velocity, and position.

[0136] In step 2, the IMU data and UWB ranging values ​​are tightly coupled based on the SEKF algorithm, specifically:

[0137] In tight coupling, the target state is set to the optimized target position P INS / UWB Compared with the target position P before optimization INSThe state difference X between them is a 15-dimensional vector, including the three degrees of freedom of position error, velocity error, attitude error, gyroscope bias, and accelerometer bias, which is: δp x ,δp y ,δp z ,δv x ,δv y ,δv z ,δφ E ,δφ N ,δφ U , ε x , ε y , ε z ,

[0138] Assume the target state equation is:

[0139] X k =Φ(X k-1 )+W k-1 (twenty one)

[0140] For the system state quantity X k Performing a first-order Taylor expansion yields:

[0141]

[0142] When the sampling time is small, according to the system state quantity X k The first-order Taylor expansion of gives:

[0143] Φ(X k-1 )=(I+F k T)X k-1 (twenty three)

[0144] Where I is the 15-dimensional unit matrix, T is the sampling time interval, and F k for:

[0145]

[0146] In the formula, the sub-matrix reflecting the influence of velocity error on position error is:

[0147]

[0148] The sub-matrix reflecting the influence of attitude error on velocity error is:

[0149]

[0150] a x 、a y 、a z They are the acceleration values ​​of the n system without deducting the gravity acceleration, among which, the conversion of the b system acceleration value to the n system is:

[0151]

[0152] Get the complete state equation;

[0153] The measurement equation is set to the distance between the target and the base station as:

[0154]

[0155] X k Perform a first-order Taylor expansion, which is:

[0156] Z k =H k X k +V k (29)

[0157] In the formula, H k for:

[0158]

[0159] By integrating the state equation and the measurement equation, we can obtain the relationship between the state difference X before and after the prediction step, which is:

[0160]

[0161] In the formula, is the posterior estimate of the state vector X at the previous moment, It is to combine IMU data with The predicted value of the state vector at time k is calculated from the state value, and is corrected by the observation vector Z. The correction equation is:

[0162]

[0163] In the formula, K k It represents the UWB observation correction weight coefficient, and the acquisition process is:

[0164] P k|k-1 =ΦP k-1 Φ T +Q (33)

[0165] K k =P k|k-1 H T (HP k|k-1 H T +R) -1 (34)

[0166] The covariance update is:

[0167] P k=(IK k H)P k|k-1 (IK k H) T +K k R k T (35)

[0168] Where P, Q, and R are the covariance matrices of the state vector X, process noise W, and observation noise V, respectively. With P INS Combined processing, the optimized target position P at time k is obtained INS / UWB , P INS / UWB Substitute it into the measurement equation to obtain the a posteriori measurement distance between it and the measurement base station.

[0169] In step 2, the error state is judged. If the judgment is passed, no processing is performed. If the judgment is not passed, the error state is corrected to obtain the corrected positioning information, specifically:

[0170] The error state is judged based on the obtained a posteriori measurement distance, wherein the a posteriori measurement distance is the a posteriori Mahalanobis distance. If the a posteriori measurement distance is greater than the threshold, it is judged that the NLOS error is not included and no processing is performed. If the a posteriori measurement distance is less than or equal to the threshold, it is judged that the NLOS error is included, the ranging value of the UWB base station is eliminated, and the UWB base station is reselected to perform error state judgment until the judgment is passed and the correction is completed to obtain the corrected positioning information.

[0171] The threshold is 5.421.

[0172] The present invention also provides an embodiment to verify the effectiveness of the present invention, conducts experiments on the positioning accuracy of the combined system in a practical environment, and conducts in-depth verification and detailed analysis of the SEKF algorithm based on INS / UWB by building a relevant navigation system platform;

[0173] A hardware experimental platform was built, which includes four UWB communication base stations, a UWB signal receiving tag, an IMU inertial measurement unit, a Raspberry Pi smart car, and a cloud data processing module;

[0174] The IMU measurement unit is a 6-axis inertial component Jy61, which is equipped with a high-precision gyroscope and accelerometer. The IMU sampling frequency is set to 50Hz during the entire experiment. The UWB signal receiving tag is as follows: Figure 3 As shown, a high-precision UWB positioning module VDU2506 is selected, which has the characteristics of low cost, strong anti-multipath capability, and low power consumption. At the same time, the TWR bilateral two-way ranging solution is adopted between the UWB base station and the tag, and the sampling frequency is set to 10Hz;

[0175] During the test, the IMU module and UWB tag are connected to the smart car. The inertial data of the car during movement and the UWB ranging information are uniformly sent to the base station in wireless form through the UWB tag. The base station sends the received tag information to the cloud processor through the local area network. Finally, the cloud processor performs multi-sensor information fusion on the data collected by the two sensors to give a positioning trajectory.

[0176] The experiment was conducted in a hall with a rectangular area. The UWB base stations were arranged at the four corners of the hall. The positions are as follows: BS1 (0m, 0m), BS2 (4.5m, 0m), BS3 (4.5m, 5.25m), BS4 (0m, 5.25m), and an iron plate (such as Figure 4 As shown in the figure, the car is blocked by radio signals in a complex environment. At the same time, the car is controlled to move in the area closed by four base stations. Its initial position is (0.3m, 0m), and the overall motion trajectory includes four straight lines and three turns.

[0177] Based on the above experimental scenarios, the LS algorithm, the EKF algorithm based on UWB, and the SEKF algorithm based on INS / UWB are used to estimate the motion trajectory of the car. The results are as follows: Figure 5 As shown;

[0178] It can be seen that when the car moves to the NLOS environment, since the information matrix obtained by UWB contains the NLOS error, the least squares method and the EKF algorithm both perform poorly because they include all observation information in the observation matrix. SEKF will determine whether the observation information contains NLOS errors through information screening before each observation information is passed to the filter. When the posterior Mahalanobis distance is detected to deviate from the threshold, the filter estimate will not be included in the correction step. During this period, the IMU is used for short-term navigation and waits for the next radio signal to enter before making a judgment. Correction is only performed when the confidence level is greater than a certain threshold. This also means that the filter almost only includes the radio ranging values ​​under LOS conditions. Moreover, due to the high frequency of UWB communication, it can ensure that there is enough radio ranging value supply. Therefore, it can realize the effective screening of observation values ​​in the NLOS environment to achieve high-precision and high-stability target motion position information estimation.

[0179] In order to better quantitatively analyze the experimental results, 95 sampling points were set during the motion process for data sampling to further analyze the error change state of the entire motion process;

[0180] Figure 6 and Figure 7The positioning errors and error CDFs of the three algorithms in the NLOS environment are shown respectively. From the above two figures, it can be seen that the difference between the error of the EKF algorithm based on UWB and the least squares method under NLOS conditions is mainly when the target just enters the NLOS area. When the target just enters the NLOS area, the positioning trajectory will not deviate immediately due to the correction of the prediction step. However, as time goes by, the filter gradually diverges, so that the error of the EKF algorithm in the later stage is not much different from the error of the least squares method, and it takes a certain amount of time for the target to return to the LOS area. In reply, after removing the NLOS error value, the SEKF algorithm performs better, with a maximum error of only 0.379m and an average error of only 0.161m. The threshold accuracy is also 0.29m when CDF is equal to 95%, which is basically consistent with the positioning accuracy under LOS. The maximum error of the least squares method reaches 5.29m, the average error is 0.854m, and the threshold accuracy is 3.35m. The maximum error of the UWB EKF algorithm is 3.84m, the average error is 0.834m, and the threshold accuracy is 3.22m.

[0181] The corresponding Monte Carlo experiment was carried out, and 100 actual tests were performed under the same conditions. The number of failures of the SEKF algorithm was 0, and the algorithm stability was excellent.

[0182] The present invention also provides several additional application scenarios, namely:

[0183] Scenario 1: In the field of medical and elderly care monitoring, the specific location of the medical robot can be accurately located to provide health testing services for patients, reducing manual workload and improving service quality.

[0184] Scenario 2: In the field of security monitoring, the solution of the present invention can achieve stable tracking of targets in areas with high complexity in indoor environments, avoiding tracking failures caused by NLOS errors.

[0185] Scenario 3: In the field of rescue and disaster prevention, rescue robots can participate in rescue as support equipment for rescue teams. Combined with the self-organizing network positioning system, the rescue personnel's own tags can be set as base stations. Rescuers can locate rescue robots in complex indoor environments without outdoor signal access, and command rescue robots to carry out detection work in dangerous environments.

[0186] Scenario 4: In terms of personnel location services, personnel wear communication tags containing IMU sensors. By combining the INS positioning system with the UWB positioning system, the positioning system for indoor robots can be transformed into a positioning system for personnel services.

[0187] The invention provides a SEKF-based UWB and INS tightly coupled indoor positioning method, which comprises acquiring IMU data and UWB ranging values, processing the IMU data, tightly coupling the IMU data and the UWB ranging values ​​based on the SEKF algorithm, distinguishing the error state, and if the distinction is passed, no processing is performed, and if the distinction is not passed, the error state is corrected to obtain corrected positioning information; the method is different from a general algorithm combining INS with UWB, and the general algorithm directly merges the UWB ranging value with the INS system, which inevitably causes the filter estimation value to include the NLOS error, and if the target is in the NLOS state for a long time, the filter will inevitably diverge, but the method cleverly avoids this situation, and the output is always the filter estimation value obtained by combining the LOS measurement value, and it can be seen from the algorithm structure that the time complexity of the method is extremely low, and while solving the NLOS environment positioning, the system solution time is not increased, and the efficiency is high.

[0188] The present invention uses specific examples to illustrate the principles and implementation methods of the present invention. The above examples are only used to help understand the method and core ideas of the present invention. At the same time, for those skilled in the art, according to the ideas of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A UWB and INS tightly coupled indoor positioning method based on SEKF, It is characterized in that The steps include: Step 1: Obtain IMU data and UWB ranging values, and process the IMU data; Step 2: Based on the SEKF algorithm, the IMU data and UWB ranging value are tightly coupled to judge the error state. If the judgment is passed, no processing is performed. If the judgment is not passed, the error state is corrected to obtain the corrected positioning information.

2. According to the SEKF-based UWB and INS tightly coupled indoor positioning method of claim 1, It is characterized in that In step 1, the IMU data is processed as follows: Suppose the heading angle, pitch angle and roll angle of the carrier in the navigation coordinate system are yaw(ψ), pitch(θ) and roll(γ) respectively, the rotation order is ZYX, and the Euler angle coordinate transformation matrix from the n system to the b system is The Euler angle transformation matrix from b system to n system is According to the ZYX rotation order, the coordinate transformation process is decomposed into three steps; The carrier system rotates around the Z axis by an angle ψ, and the corresponding rotation matrix is ​​defined as Rotate around the Y axis by an angle θ, and its rotation matrix is ​​recorded as Rotate angle γ around the X axis, the corresponding rotation matrix is According to the rotation order and the principle of multiplication from right to left, the following coordinate transformation relationship is obtained: In the formula, Use the rotation matrix to convert the position, velocity and acceleration in the carrier coordinate system into the corresponding information in the navigation coordinate system; The angular velocity of the carrier coordinate system relative to the navigation coordinate system is expressed as And decomposed into three components along three orthogonal coordinate axes: and The Euler angle of the carrier includes the yaw angle ψ, pitch angle θ and roll angle and their change rates in the navigation coordinate system. The relationship between the angular velocity component and the Euler angle change rate is: Set the sampling period to T, and express the angle update value as: Assume that the carrier acceleration at time t is Then the acceleration in the navigation coordinate system is: The velocity value at time t+1 is: The updated value of the position is obtained from the updated value of the velocity: Get updated values ​​of angle, velocity, and position.

3. According to the SEKF-based UWB and INS tightly coupled indoor positioning method of claim 2, It is characterized in that In step 2, the IMU data and UWB ranging values ​​are tightly coupled based on the SEKF algorithm, specifically: In tight coupling, the target state is set to the optimized target position P INS / UWB Compared with the target position P before optimization INS The state difference X between them is a 15-dimensional vector, including the three degrees of freedom of position error, velocity error, attitude error, gyroscope bias, and accelerometer bias, which is: δp x ,δp y ,δp z ,δv x ,δv y ,δv z ,δφ E ,δφ N ,δφ U , ε x , ε y , ε z , Assume the target state equation is: X k =Φ(X k-1 )+W k-1 (9) For the system state quantity X k Performing a first-order Taylor expansion yields: When the sampling time is small, according to the system state quantity X k The first-order Taylor expansion of gives: Φ(X k-1 )=(I+F k T)X k-1 (11) Where I is the 15-dimensional unit matrix, T is the sampling time interval, and F k for: In the formula, the sub-matrix reflecting the influence of velocity error on position error is: The sub-matrix reflecting the influence of attitude error on velocity error is: a x 、a y 、a z They are the acceleration values ​​of the n system without deducting the gravity acceleration, among which, the conversion of the b system acceleration value to the n system is: Get the complete state equation; The measurement equation is set to the distance between the target and the base station as: X k Perform a first-order Taylor expansion, which is: Z k =H k X k +V k (17) In the formula, H k for: By integrating the state equation and the measurement equation, we can obtain the relationship between the state difference X before and after the prediction step, which is: In the formula, is the posterior estimate of the state vector X at the previous moment, It is to combine IMU data with The predicted value of the state vector at time k is calculated from the state value, and is corrected by the observation vector Z. The correction equation is: In the formula, K k It represents the UWB observation correction weight coefficient, and the acquisition process is: P k|k-1 =ΦP k-1 Φ T +Q (21) K k =P k|k-1 H T (HP k|k-1 H T +R) -1 (22) The covariance update is: P k =(I-K k H)P k|k-1 (I-K k H) T +K k RK k T (23) Where P, Q, and R are the covariance matrices of the state vector X, process noise W, and observation noise V, respectively. With P INS Combined processing, the optimized target position P at time k is obtained INS / UWB , P INS / UWB Substitute it into the measurement equation to obtain the a posteriori measurement distance between it and the measurement base station.

4. According to the SEKF-based UWB and INS tightly coupled indoor positioning method of claim 3, It is characterized in that In step 2, the error state is judged. If the judgment is passed, no processing is performed. If the judgment is not passed, the error state is corrected to obtain the corrected positioning information, specifically: The error state is judged based on the obtained a posteriori measurement distance, wherein the a posteriori measurement distance is the a posteriori Mahalanobis distance. If the a posteriori measurement distance is greater than the threshold, it is judged that the NLOS error is not included and no processing is performed. If the a posteriori measurement distance is less than or equal to the threshold, it is judged that the NLOS error is included, the ranging value of the UWB base station is eliminated, and the UWB base station is reselected to perform error state judgment until the judgment is passed and the correction is completed to obtain the corrected positioning information.

5. According to the SEKF-based UWB and INS tightly coupled indoor positioning method of claim 4, It is characterized in that The threshold is 5.421.

Citation Information

Cited By

  • Following equipment cooperative control method and device, storage medium and electronic equipment

    CN119512115A

  • Mining vehicle positioning method, device and equipment based on multi-sensor fusion and medium

    CN121677749A

  • Multisource constraint-based loose coupling asynchronous INS / UWB indoor positioning method and system

    CN122317883A

  • Multi-source constraint loose coupling asynchronous INS / UWB indoor positioning method and system

    CN122317883B