A method for calibrating IMU attitude using UWB
By communicating with UWB AoA base stations and tags, and combining accelerometer and ranging/angle measurement technologies, gyroscope data is corrected, solving the problem of inaccurate IMU attitude estimation in indoor environments and achieving high-precision attitude calibration.
Patent Information
- Application Number
- CN202311525083.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-16
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2043-11-16
AI Technical Summary
In complex indoor environments, traditional IMU attitude calculation methods suffer from inaccurate attitude estimation and insufficient robustness due to the influence of zero bias and noise in gyroscope data.
UWB AoA base stations and UWB AoA tags are used for communication. The angular velocity deviation in the direction of gravity is obtained through accelerometers. Combined with UWB ranging and angle measurement technology, the angular velocity deviation of the heading angle is calculated, the original data of the gyroscope is corrected, and the attitude information is updated using the Mahony algorithm.
It improves the accuracy and robustness of attitude estimation in complex indoor environments, and reduces the cost and efficiency impact of overall calibration.
Smart Images

Figure CN117606471B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of positioning and navigation technology, and in particular to a method for calibrating IMU attitude using UWB. Background Technology
[0002] Attitude calculation plays a crucial role in many industrial fields. Traditional inertial measurement unit (IMU) attitude calculation typically uses the three-axis angular velocities of gyroscopes to calculate yaw, roll, and pitch angles. However, because gyroscope data includes bias and noise, attitude deviations can occur after integration over a period of time. To obtain accurate attitude information, gyroscope data can be corrected using accelerometer estimation of gravity direction and geomagnetic estimation of true north. However, geomagnetic fields are not ideal in complex indoor environments, leading to inaccurate attitude estimation and insufficient system robustness. Therefore, a method for calibrating IMU attitude using UWB (Ultra-Wideband) is needed to accurately correct gyroscope data in complex indoor environments. Summary of the Invention
[0003] The main objective of this invention is to provide a method for calibrating IMU attitude using UWB that can accurately correct gyroscope data in complex indoor environments.
[0004] This invention proposes a method for calibrating IMU attitude using UWB, including a UWB AoA base station and an attitude settlement module equipped with a UWB AoA tag. The attitude settlement module is also equipped with a gyroscope and an accelerometer.
[0005] First, the angular velocity deviation e in the direction of gravity is obtained using an accelerometer. z Then, the angular velocity deviation e of the heading angle is obtained through communication between the UWB AoA base station and the UWB AoA tag. x Then through the angular velocity deviation e z and the angular velocity deviation e x The raw data w of the gyroscope is corrected to obtain accurate attitude information.
[0006] Preferably, both the UWB AoA base station and the UWB AoA tag are equipped with multiple UWB antennas;
[0007] The UWB AoA base station and the UWB AoA tag communicate to obtain the tag direction vector n of the UWB AoA tag in the coordinate system of the UWB AoA base station and the base station direction vector m of the UWB AoA base station in the coordinate system of the UWB AoA tag.
[0008] The coordinate rotation matrix H is obtained by using the UWB AoA tag direction vector n and the UWB AoA base station direction vector. The x-axis unit vector u in the UWB tag coordinate system is obtained by using the rotation matrix. The angular velocity deviation e is calculated by using the unit vector u. x .
[0009] Preferably, the distance d between the UWB AoA base station and the UWB AoA tag is obtained through DS-TWR ranging, and the azimuth angle θ of the UWB AoA tag relative to the UWB AoA base station is obtained through AoA method between the UWB AoA base station and the UWB AoA tag. anc and pitch angle φ anc and the azimuth angle θ of the UWB AoA base station relative to the UWB AoA tag tag and pitch angle φ tag The positions of the UWB AoA tag in the base station coordinate system and the UWB AoA base station in the UWB AoA tag coordinate system are calculated respectively. Thus, the UWB AoA tag direction vector n and the base station direction vector m in the UWB AoA tag coordinate system are calculated respectively.
[0010] Preferably, the accelerometer obtains a vector α along the z-axis (direction of gravity), and the angular velocity deviation e is obtained using this vector α. z .
[0011] Preferably, the angular velocity deviation e is obtained. z and the angular velocity deviation e x Then, the Mahony algorithm is used to correct the original gyroscope data w to obtain the corrected data w. ′ And by correcting the data w ′ Update the quaternion of the current attitude calculation module.
[0012] The beneficial effects of the method for calibrating IMU attitude using UWB in this invention are as follows:
[0013] 1. Compared with traditional methods, the UWB calibration method is more ideal and has higher accuracy in complex indoor environments.
[0014] 2. The angle and distance information obtained by UWB calibration can be used in positioning and other applications with minimal impact on overall calibration efficiency and cost. Attached Figure Description
[0015] Figure 1 This is a schematic diagram showing the position between the base station and the UWB tag in the method for calibrating IMU attitude using UWB according to the present invention;
[0016] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0017] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0018] Reference Figure 1 An embodiment of the method for calibrating IMU attitude using UWB according to the present invention is proposed:
[0019] A method for calibrating IMU attitude using UWB includes a UWB AoA base station and an attitude settlement module equipped with a UWB AoA tag. The attitude settlement module also includes a gyroscope and an accelerometer.
[0020] The specific steps are as follows:
[0021] 1) The attitude calculation module uses the quaternion q(k-1) = [q0,q1,q2,q3] from the previous gyroscope to calculate the quaternion rotation matrix R:
[0022]
[0023] 2) The attitude calculation module calculates the z-axis unit vector α in the coordinate system where the attitude calculation module is located using the accelerometer:
[0024]
[0025]
[0026] 2) Multiply the z-axis unit vector α by the third column of the quaternion rotation matrix to obtain the angular velocity deviation e. z
[0027]
[0028] e z =a×z
[0029] 4) Both the UWB AoA base station and the UWB AoA tag are equipped with three UWB antennas. Communication between the UWB AoA base station and the UWB AoA tag is achieved through DS-TWR ranging, obtaining the distance d between the UWB AoA tag and the UWB AoA base station. The azimuth angle θ of the UWB AoA tag relative to the UWB AoA base station is also obtained through AoA. anc and pitch angle φ anc And the azimuth angle θ of the UWB AoA base station relative to the UWB AoA tag tag and pitch angle φ tag .
[0030] 5) The distance d between the UWB AoA tag and the UWB AoA base station, and the azimuth angle θ of the UWB AoA tag relative to the UWB AoA base station. anc and pitch angle φ anc The position (x, y) of the UWB AoA tag in the coordinate system of the UWB AoA base station was calculated. t ,y t ,z t ):
[0031]
[0032]
[0033]
[0034] The location (x) of the UWB AoA tag in the UWB AoA base station coordinate system t ,y t ,z t ), calculate the label direction vector n:
[0035]
[0036] 6) Similarly, the distance d between the UWB AoA tag and the UWB AoA base station, and the azimuth angle θ of the UWB AoA base station relative to the UWB AoA tag are used. tag and pitch angle φ tag The position (x, y) of the UWB AoA base station in the coordinate system of the UWB AoA tag is calculated. β ,y β ,z β ):
[0037]
[0038]
[0039]
[0040] The location of the UWB AoA base station in the coordinate system of the UWB AoA tag (x β ,y β ,z β ), calculate the direction vector m of the UWB AoA base station;
[0041]
[0042] 7) Since the UWB angle measurement of the UWB AoA base station and the UWB AoA tag is symmetrical, the tag direction vector n, after rotating the coordinate system to the UWB tag coordinate system, should be exactly opposite to the base station direction vector m. Therefore, the coordinate rotation matrix H is:
[0043] H*n=-m
[0044] Furthermore, since the coordinate rotation matrix H is aligned with the z-axis of the quaternion rotation matrix R:
[0045]
[0046] Since the coordinate rotation matrix H is a rigid rotation, the three rows of the coordinate rotation matrix H are mutually perpendicular and their product is 0. Based on the above three conditions, the coordinate rotation matrix H can be solved.
[0047] 7) Obtain the x-axis unit vector u in the UWB AoA label coordinate system using the rotation matrix:
[0048]
[0049] 8) The angular velocity deviation e is obtained by multiplying the x-axis unit vector u by the first column of the quaternion rotation matrix. x :
[0050]
[0051] e x =u×x
[0052] 9) Obtain the angular velocity deviation e z and angular velocity deviation e x Then, the Mahony algorithm is used to correct the original gyroscope data w to obtain the corrected data w′, and the quaternion of the current attitude calculation module is updated using the corrected data w′:
[0053] w′=w+K z e z +K x e x
[0054]
[0055]
[0056]
[0057]
[0058] This allows us to obtain accurate attitude information.
[0059] The above description is merely a preferred embodiment of the present invention and does not limit the patent scope of the present invention. Any equivalent structural transformations made based on the description and drawings of the present invention, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of the present invention.
Claims
1. A method for calibrating IMU attitude using UWB, characterized in that, It includes a UWB AoA base station and an attitude settlement module equipped with a UWB AoA tag. The attitude settlement module is also equipped with a gyroscope and an accelerometer. First, the angular velocity deviation in the direction of gravity is obtained using an accelerometer. Then, the angular velocity deviation of the heading angle is obtained through communication between the UWB AoA base station and the UWB AoA tag. Both the UWB AoA base station and the UWBAoA tag are equipped with multiple UWB antennas; The UWB AoA base station and the UWB AoA tag communicate to obtain the tag direction vector n of the UWB AoA tag in the coordinate system of the UWB AoA base station and the base station direction vector m of the UWB AoA base station in the coordinate system of the UWB AoA tag. The coordinate rotation matrix H is obtained by using the tag direction vector n and the base station direction vector m. The x-axis unit vector u in the UWB AoA tag coordinate system is obtained by using the rotation matrix. The angular velocity deviation is calculated by using the unit vector u. Then through the angular velocity deviation and the angular velocity deviation To the raw data of the gyroscope Corrections are made to obtain accurate attitude information.
2. The method for calibrating IMU attitude using UWB according to claim 1, characterized in that, The distance 'd' between the UWB AoA base station and the UWB AoA tag is obtained through DS-TWR ranging. The azimuth angle of the UWB AoA tag relative to the UWB AoA base station is also obtained through AoA ranging between the UWB AoA base station and the UWB AoA tag. and pitch angle and the azimuth angle of the UWB AoA base station relative to the UWBAoA tag. and pitch angle The positions of the UWB AoA tag and the UWB AoA base station in the coordinate system of the UWB AoA base station are calculated respectively. Thus, the direction vector n of the UWB AoA tag and the direction vector m of the UWB AoA base station in the coordinate system of the UWB AoA tag are calculated respectively.
3. The method for calibrating IMU attitude using UWB according to claim 2, characterized in that, The accelerometer obtains a vector α along the z-axis, which is the direction of gravity, and the angular velocity deviation is obtained from this vector α. .
4. The method for calibrating IMU attitude using UWB according to claim 1, characterized in that, Obtain the angular velocity deviation and the angular velocity deviation Then, the Mahony algorithm was used to correct the original gyroscope data. Obtain the corrected data And by correcting the data Update the quaternion of the current attitude calculation module.
Citation Information
Patent Citations
Single base station wireless positioning system based on UWB and LoRa
CN113794991A
Factory AGV positioning method based on single base station UWB and visual inertia
CN116929348A
