CN116380052A - Indoor positioning method based on UWB fusion IMU - Google Patents

Indoor positioning method based on UWB fusion IMU Download PDF

Info

Publication number
CN116380052A
CN116380052A CN202211595905.9A CN202211595905A CN116380052A CN 116380052 A CN116380052 A CN 116380052A CN 202211595905 A CN202211595905 A CN 202211595905A CN 116380052 A CN116380052 A CN 116380052A
Authority
CN
China
Prior art keywords
data
uwb
imu
height
position information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211595905.9A
Other languages
Chinese (zh)
Inventor
王伟
李�瑞
杨德伟
李章勇
冉鹏
孙希
李冰
张金玲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing University of Post and Telecommunications
Contec Medical Systems Co Ltd
Original Assignee
Chongqing University of Post and Telecommunications
Contec Medical Systems Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chongqing University of Post and Telecommunications, Contec Medical Systems Co Ltd filed Critical Chongqing University of Post and Telecommunications
Priority to CN202211595905.9A priority Critical patent/CN116380052A/en
Publication of CN116380052A publication Critical patent/CN116380052A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/10Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration
    • G01C21/12Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning
    • G01C21/16Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning by integrating acceleration or speed, i.e. inertial navigation
    • G01C21/165Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning by integrating acceleration or speed, i.e. inertial navigation combined with non-inertial navigation instruments
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/20Instruments for performing navigational calculations
    • G01C21/206Instruments for performing navigational calculations specially adapted for indoor navigation
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S5/00Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations
    • G01S5/01Determining conditions which influence positioning, e.g. radio environment, state of motion or energy consumption
    • G01S5/012Identifying whether indoors or outdoors
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S5/00Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations
    • G01S5/02Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations using radio waves
    • G01S5/0257Hybrid positioning
    • G01S5/0258Hybrid positioning by combining or switching between measurements derived from different systems
    • G01S5/02585Hybrid positioning by combining or switching between measurements derived from different systems at least one of the measurements being a non-radio measurement
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/33Services specially adapted for particular environments, situations or purposes for indoor environments, e.g. buildings
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Measurement Of Velocity Or Position Using Acoustic Or Ultrasonic Waves (AREA)

Abstract

The invention belongs to the technical field of indoor positioning, and particularly relates to an indoor positioning method based on UWB fusion IMU, which comprises the following steps: carrying out gesture calculation according to the IMU positioning model to obtain position information; obtaining a horizontal optimal position by using an iterative weighted least square algorithm according to the UWB model; obtaining a height array in the three-dimensional space coordinate through triangle operation, removing the maximum and minimum values of the height array, and averaging the rest data to obtain stable height coordinate data; acquiring optimal height data through ultrasonic waves; combining the horizontal optimal position and the height data to obtain position information; and obtaining accurate position information by carrying out unscented Kalman fusion on the IMU position information and the IMU position information in a tight combination way. According to the invention, the problem that the IMU integral error is larger and larger along with time is reduced through UWB, and the anti-interference capability of UWB is increased through adding ultrasonic waves, so that the positioning accuracy is improved, and a more accurate positioning position is obtained.

Description

Indoor positioning method based on UWB fusion IMU
Technical Field
The invention belongs to the technical field of intelligent machine indoor positioning, and particularly relates to an indoor positioning method based on UWB fusion IMU.
Background
In the current age of continuous progress of intelligent technology in the world of interconnection of things. There is a great need for Location Based Services (LBS) applications and for low cost, high precision positioning and navigation techniques. Positioning navigation is now widely used in life applications. Under the outdoor wide environment, the satellite navigation and positioning technology of the GPS can meet most positioning requirements, however, under the indoor narrow and complex environment, the GPS has poor signal receiving caused by the influence of building shielding or large shielding fields, so that the problems of insufficient navigation precision and the like are caused, and the development of the indoor navigation technology just makes up the problems.
The main stream indoor navigation technology mainly applies an IMU navigation positioning technology, and inertial navigation is an autonomous navigation technology which does not depend on external information and does not radiate energy to the outside, and has the advantages of less external interference and the like. However, due to the hardware problem of the IMU device and the navigation positioning principle thereof, accumulated errors can occur in the long-time positioning of the IMU, and if the external equipment is not used for calibrating the positioning of the IMU, the positioning accuracy and the positioning reliability can be reduced. Compared with the traditional positioning technology, the UWB positioning technology adopts the advantages of wide pulse communication technology, strong multipath effect resistance, high ranging positioning precision and the like. However, most UWB positioning technologies mainly rely on time difference of arrival (TDOA) algorithm to realize positioning, which results in unavoidable influence on positioning accuracy due to NLOS (non line of sight transmission), so that it appears that a single UWB positioning technology is actually a high-accuracy positioning that cannot meet indoor complex environments.
Disclosure of Invention
In order to solve the technical problems, the invention provides an indoor positioning method based on UWB fusion IMU, comprising the following steps:
s1: according to the gyroscope, the accelerometer and the magnetometer of the IMU positioning model, carrying out attitude calculation to obtain position information;
s2: obtaining horizontal optimal positions by using an iterative weighted least square algorithm according to N base station position information of the UWB model and distance information between the base station and the tag;
s3: constructing a three-dimensional space by the UWB model through the coordinates of the tag and any three base stations, calculating in a triangular operation mode to obtain a Z-axis height array in the three-dimensional space coordinates, removing the maximum and minimum values of data in the height array, and then averaging the rest data to obtain more stable height coordinate data;
s4: acquiring optimal height data through ultrasonic waves;
s5: combining the horizontal optimal position and the height data to obtain position information;
s6: and carrying out unscented Kalman fusion on the position information obtained by the IMU and the position information obtained by the IMU in a tightly combined mode to obtain accurate coordinate position information.
The invention has the beneficial effects that: according to the invention, the problem that the IMU integral error is larger and larger along with time is reduced through UWB, and the anti-interference capability of UWB is increased through adding ultrasonic waves, so that the positioning accuracy is improved, and a more accurate positioning position is obtained.
Drawings
FIG. 1 is a general frame diagram of a novel UWB fusion IMU navigation method of the present invention;
FIG. 2 is a block diagram of an exemplary method for locating an IMU in accordance with the present invention;
FIG. 3 is a block diagram of an embodiment of the method for ultrasonic fusion UWB in the present invention;
FIG. 4 is a three-dimensional space configuration diagram in accordance with the present invention;
FIG. 5 is a schematic diagram of an iterative weighted least squares process in accordance with the present invention;
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
An indoor positioning method based on UWB fusion IMU, as shown in figure 1, comprises the following steps:
s1: according to the gyroscope, the accelerometer and the magnetometer of the IMU positioning model, carrying out attitude calculation to obtain position information;
s2: obtaining horizontal optimal positions (x, y) by using an iterative weighted least square algorithm according to the position information of N base stations of the UWB model and the distance information between the base stations and the labels;
s3: constructing a three-dimensional space by the UWB model through the coordinates of the tag and any three base stations, calculating in a triangular operation mode to obtain a Z-axis height array in the three-dimensional space coordinates, removing the maximum and minimum values of data in the height array, and then averaging the rest data to obtain more stable height coordinate data;
s4: acquiring optimal height data through ultrasonic waves;
s5: combining the horizontal optimal position and the height data to obtain position information;
s6: and carrying out unscented Kalman fusion on the position information obtained by the IMU and the position information obtained by the IMU in a tightly combined mode to obtain accurate coordinate position information.
According to the gyroscope, the accelerometer and the magnetometer of the IMU positioning model, attitude calculation is performed to obtain position information, as shown in fig. 2, specifically including:
s11: respectively carrying out high-pass filtering on the gyroscope, low-pass filtering on the accelerometer, and carrying out initial calibration and inclination angle compensation on the magnetometer;
s12: carrying out attitude calculation through triaxial acceleration data of the accelerometer and triaxial magnetic force data of the magnetometer in a static state to obtain an initial course angle;
s13: updating quaternions according to the filtered gyroscope data-angular velocity through a fourth-order Longer-Kutta algorithm, and converting the updated quaternions into heading angles in motion through a quaternion conversion equation;
s14: calculating a coordinate conversion matrix from a carrier coordinate system to a navigation coordinate system according to course angle information of an object
Figure BDA0003997283430000031
Conversion matrix of label->
Figure BDA0003997283430000032
The actual acceleration data of the object is obtained by converting the acceleration data expression and removing the gravitational acceleration, and the estimated value of the position is obtained by the actual acceleration data of the object according to the acceleration integration.
And carrying out attitude calculation through the triaxial acceleration data of the accelerometer and the triaxial magnetic force data of the magnetometer in a static state to obtain an initial course angle, wherein the initial course angle is expressed as:
Figure BDA0003997283430000041
wherein, gamma, theta and psi are the roll angle, the pitch angle and the heading angle relative to true north of the attitude angle respectively,
Figure BDA0003997283430000042
Figure BDA0003997283430000043
three-axis acceleration data, respectively +.>
Figure BDA0003997283430000044
Triaxial magnetometer data, respectively magnetometer, < >>
Figure BDA0003997283430000045
Arctan () represents an arctan function, which is the angle between true north and magnetic north.
Converting the filtered gyroscope data-angular velocity into quaternions through a fourth-order Dragon-Kutta algorithm, and representing the quaternions as follows:
Figure BDA0003997283430000046
wherein Q (T) is the updated quaternion at the moment, Q (0) is the quaternion at the last moment, w (0) is the angular velocity conversion matrix at the last moment, T is the time difference between the last moment and the moment, and K 1 、K 2 、K 3 、K 4 Respectively the first, second, third and fourth formulas of Dragon-Kutta, w (t) is an angular velocity matrix at the moment t, ψ is a course angle during action, q 0 、q 1 、q 2 、q 3 The first element, the second element, the third element and the fourth element in the quaternions are respectively.
Converting the updated quaternion into a course angle in motion through a quaternion conversion equation, wherein the course angle is expressed as follows:
Figure BDA0003997283430000047
wherein ψ is the course angle during the motion, q 0 、q 1 、q 2 、q 3 The first element, the second element, the third element and the fourth element in the quaternions are respectively.
Calculating a carrier coordinate system to a guide according to the course angle information of the objectCoordinate transformation matrix of aviation coordinate system
Figure BDA0003997283430000051
Expressed as:
Figure BDA0003997283430000052
wherein, gamma, theta and psi are the roll angle, pitch angle and relative north course angle of the attitude angle respectively.
Conversion matrix of the label
Figure BDA0003997283430000053
By the acceleration data expression conversion, expressed as:
Figure BDA0003997283430000054
wherein,,
Figure BDA0003997283430000055
acceleration values of x, y and z axes in the carrier coordinate system respectively, < >>
Figure BDA0003997283430000056
Acceleration values of x, y and z axes in a navigation coordinate system are respectively obtained.
Removing the gravitational acceleration to obtain actual acceleration data of the object, wherein the actual acceleration data is expressed as:
Figure BDA0003997283430000057
wherein,,
Figure BDA0003997283430000058
and g is the gravity angular acceleration, which is the acceleration value of the x, y and z axes under the navigation coordinate system after the gravity acceleration is removed.
The estimated value of the position is obtained through the actual acceleration data of the object according to the acceleration integration, and is expressed as:
Figure BDA0003997283430000059
wherein v is 0 Sum s 0 The initial velocity and initial displacement are respectively, t is a uniform time, s and v respectively represent the position and velocity at the moment, and d represents a differential sign.
A three-dimensional space is constructed by the coordinates of the tag and any three base stations, as shown in fig. 4 in this embodiment, coordinate data- (height group) of the Z axis can be obtained by performing calculation by means of trigonometry, and height group of the Z axis in the three-dimensional space coordinates is obtained by performing calculation by means of trigonometry:
Figure BDA00039972834300000510
wherein h is n To correspond to the height of the Nth base station, r n For the distance of the tag to the nth base station, x and y are the optimal positions (x, y) of the tag in the previous step (x n ,y n ) Is the known location information of the nth base station.
As shown in fig. 3, a multi-sensor fusion positioning model is established by combining UWB and ultrasonic waves, the horizontal optimal position is obtained by using an iterative weighted least square algorithm according to the N base station position information of the UWB model and the distance information between the base station and the tag, and then the height data is obtained by the ultrasonic waves, so that UWB position information is obtained.
Each base station is arranged on the same horizontal plane, and the distance construction function of each base station can be constructed according to the coordinates of the base station and the distance from the label to the base station, wherein the distance construction function is used for constructing a matrix form at the rear, so that the least square function at the rear can be obtained
Figure BDA0003997283430000061
A and b values of (a);
n constructors are used for subtracting the last function from the next function to establish N-1 equation sets, and the N equation sets are converted into a matrix form; constructing a function according to the coordinates of the base stations and the distance from the tag to each base station:
Figure BDA0003997283430000062
wherein,,
Figure BDA0003997283430000063
representing a distance function constructed from the coordinates of the base station and the tag, x and y being the optimal positions (x, y) of the tag in the previous step (x n ,y n ) Is the location information of the known nth base station.
According to the N base station position information of the UWB model and the distance information between the base station and the tag, the iterative weighted least square algorithm is used to obtain a horizontal optimal position, which specifically includes, as shown in fig. 5:
s21: estimating an iteration initial value by using a least square method
Figure BDA0003997283430000064
And find the initial residual e 0
S22: normalized residual error to give u i Setting an initial weight W i
S23: using a weighted least squares expression
Figure BDA0003997283430000065
Replace->
Figure BDA0003997283430000066
And find a new residual v 1
S24: repeating S22-S23 for iterative calculation until the difference value of the regression coefficients of two adjacent steps
Figure BDA0003997283430000067
And (3) when the maximum value of the absolute value of the UWB is smaller than the iteration standard error, ending the iteration, and obtaining the optimal position coordinate (x, y) of the UWB on the horizontal plane.
Expression of least squares method:
Figure BDA0003997283430000068
wherein,,
Figure BDA0003997283430000071
position information representing the least squares prediction, T representing the transpose of the matrix, A being the matrix form of the training samples, b being the matrix form of the target values;
the normalized residual expression is:
Figure BDA0003997283430000072
wherein u is i Representing normalized residual error, s representing scale estimation, s typically taking the median of the absolute value of the residual error divided by a constant 0.6755, med calculated as the median, e i Is the residual.
The initialization weight expression is:
Figure BDA0003997283430000073
wherein u is i To normalize the residual error, W i For the iterative weights to be used,
Figure BDA0003997283430000074
representing the relative x, which is the position information of the UWB measurement, is derived.
The weighted least squares expression is:
Figure BDA0003997283430000075
wherein W is a weighting matrix,
Figure BDA0003997283430000076
position information representing the weighted least squares prediction, T representing a matrixTranspose, a is the matrix form of the training samples, and b is the matrix form of the target values.
Obtaining optimal height data through ultrasonic waves specifically comprises the following steps:
s41: the ultrasonic wave is subjected to mean value filtering treatment, and smoother ultrasonic wave data of the measured height are obtained through the ultrasonic wave subjected to the mean value filtering treatment;
s42: averaging the relatively stable height coordinate data and the ultrasonic data obtained by the UWB model, and taking the difference value of the average value followed by the optimal height data at one moment as a set threshold value;
s43: the data of the ultrasonic wave and the UWB height coordinate data are subjected to difference value to obtain optimal height data;
if the difference value is smaller than the set threshold value, carrying out extended Kalman fusion on the data to obtain UWB optimal height data;
if the difference value is larger than the set threshold value, respectively making difference between the height data obtained by ultrasonic wave at the moment and the height data of UWB at the moment and the optimal height data at the moment, taking the two difference values into coefficient equations with different weights to calculate the optimal height difference data of UWB, and adding the optimal height difference data at the moment to the optimal height data at the moment to obtain the optimal height data at the moment.
The two difference values are brought into coefficient equations with different weights to calculate UWB optimal height difference value data:
Figure BDA0003997283430000081
wherein Δh at this point in time i For the optimal height data difference, h i-1 For the last moment of optimal height data,
Figure BDA0003997283430000082
for UWB mean height data at this point, +.>
Figure BDA0003997283430000083
For this moment, the ultrasonic mean height data, k 1 And k 2 Setting for adaptationWeight coefficient (k) 1 +k 2 =1)。
The self-adaptive weight setting formula is as follows:
Figure BDA0003997283430000084
Figure BDA0003997283430000085
wherein the method comprises the steps of
Figure BDA0003997283430000086
For the last UWB mean height data, </u >>
Figure BDA00039972834300000810
The ultrasonic mean height data is the last moment.
The unscented Kalman fusion is carried out by tightly combining the position information obtained by the IMU and the position information obtained by the IMU;
the system state equation expressed in a matrix form is deduced according to the IMU:
X(k+1)=FX(k)+GW(k)
W(k)=[w x (k),w y (k)] T
wherein X (k+1) represents a system state matrix at time k+1, F represents a system state transition matrix, X (k) represents a process noise driving matrix, W (k) represents a process noise matrix, X (k) represents a system state matrix at time k, and W x (k) Noise representing x-axis position coordinates, w y (k) Noise representing the y-axis position coordinates, T representing the matrix transposition, the process noise matrix mean value being 0, variance being
Figure BDA0003997283430000087
Figure BDA0003997283430000088
Representing x-axis acceleration variance +.>
Figure BDA0003997283430000089
Representing the y-axis acceleration variance, diag () represents the diagonal matrix;
the expression of the observation equation is obtained by UWB:
Figure BDA0003997283430000091
wherein Z (k) represents a matrix of predicted values at time k, h [ X (k) ]]X (k) represents a system state matrix at k moment, V (k) represents a distance observation noise matrix, d 1 (k)、d 2 (k)、d 3 (k) Respectively represent the distance from the tag to the three base stations, v 1 (k)、v 2 (k)、v 3 (k) Interference error values respectively representing distances from the tag to the three base stations;
using UT transformation to obtain a set of system state equation Sigma sampling points:
Figure BDA0003997283430000092
wherein,,
Figure BDA0003997283430000093
for the first mean, P (k|k) is the variance, n is the dimension, and λ is the scale factor; the larger the lambda, the farther the Sigma point is from the mean of the states, the smaller the lambda, and the closer the Sigma point is to the mean of the states;
and carrying out one-step prediction on the state according to a system state equation:
Figure BDA0003997283430000094
wherein,,
Figure BDA0003997283430000095
FX is a predicted system state value (i) (k|k) represents the system state transition matrix multiplied by the system state value;
and updating the Sigma sampling points by utilizing UT conversion to obtain:
Figure BDA0003997283430000096
wherein,,
Figure BDA0003997283430000097
for the second mean, P (k+ 1|k) is the variance, n is the dimension, and λ is the scale factor;
and the system observation equation is predicted in one step to obtain
Figure BDA0003997283430000098
Figure BDA0003997283430000099
Wherein,,
Figure BDA00039972834300000910
is a predicted observed value;
then obtaining the observation vector auto-covariance matrix
Figure BDA00039972834300000911
And observation vector and state vector cross covariance matrix +.>
Figure BDA00039972834300000912
Figure BDA0003997283430000101
Figure BDA0003997283430000102
Wherein,,
Figure BDA0003997283430000103
to predict observationsVariance, R is Gaussian distributed white noise interference;
obtaining Kalman filtering gain according to the matrix:
Figure BDA0003997283430000104
wherein,,
Figure BDA0003997283430000105
for the observation vector autocovariance matrix and the observation vector, < >>
Figure BDA0003997283430000106
The state vector cross covariance matrix is adopted, and K is Kalman gain;
finally, updating the system state and the state covariance matrix according to the Kalman filtering gain;
in the present example, the UKF algorithm is used to fuse the last accurate coordinate location information, because the EKF algorithm uses a first order Taylor series expansion to convert the nonlinearity into linearity, and there is a nonlinear processing error. The UKF algorithm adopts a UT conversion form, and a nonlinear system does not need to be subjected to approximate processing, so that the precision is higher.
In the motion process, the problem that the IMU has larger and larger integral error along with time is reduced through UWB, and the anti-interference capability of UWB is improved through adding ultrasonic waves;
thereby promote positioning accuracy, obtain more accurate location.
Although embodiments of the present invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made therein without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (10)

1. An indoor positioning method based on UWB fusion IMU is characterized by comprising the following steps:
s1: according to the gyroscope, the accelerometer and the magnetometer of the IMU positioning model, carrying out attitude calculation to obtain IMU position information;
s2: obtaining horizontal optimal positions by using an iterative weighted least square algorithm according to the position information of N base stations of the UWB model and the distance information between the base stations and the labels;
s3: constructing a three-dimensional space by the UWB model through the coordinates of the tag and any three base stations, calculating in a triangular operation mode to obtain a Z-axis height array in the three-dimensional space coordinates, removing the maximum and minimum values of data in the height array, and then averaging the rest data to obtain more stable height coordinate data;
s4: acquiring optimal height data through ultrasonic waves;
s5: combining the horizontal optimal position and the height data to obtain UWB position information;
s6: and carrying out unscented Kalman fusion on the position information obtained by the IMU and the position information obtained by the IMU in a tightly combined mode to obtain accurate coordinate position information.
2. The indoor positioning method based on UWB fusion IMU according to claim 1, wherein the method is characterized in that the attitude calculation is carried out according to a gyroscope, an accelerometer and a magnetometer of an IMU positioning model to obtain the position information, and specifically comprises the following steps:
s11: respectively carrying out high-pass filtering on the gyroscope, low-pass filtering on the accelerometer, and carrying out initial calibration and inclination angle compensation on the magnetometer;
s12: carrying out attitude calculation through triaxial acceleration data of the accelerometer and triaxial magnetic force data of the magnetometer in a static state to obtain an initial course angle;
s13: updating quaternions according to the filtered gyroscope data-angular velocity through a fourth-order Longer-Kutta algorithm, and converting the updated quaternions into heading angles in motion through a quaternion conversion equation;
s14: calculating a coordinate conversion matrix from a carrier coordinate system to a navigation coordinate system according to course angle information of an object
Figure FDA0003997283420000011
Conversion matrix of label->
Figure FDA0003997283420000012
The actual acceleration data of the object is obtained by converting the acceleration data expression and removing the gravitational acceleration, and the estimated value of the position is obtained by the actual acceleration data of the object according to the acceleration integration.
3. The indoor positioning method based on UWB fusion IMU according to claim 2, wherein the initial course angle is obtained by performing gesture calculation on three-axis acceleration data of the accelerometer and three-axis magnetic force data of the magnetometer in a static state, and is expressed as:
Figure FDA0003997283420000021
wherein, gamma, theta and psi are the roll angle, the pitch angle and the heading angle relative to true north of the attitude angle respectively,
Figure FDA0003997283420000022
Figure FDA0003997283420000023
three-axis acceleration data, respectively +.>
Figure FDA0003997283420000024
Triaxial magnetometer data, respectively magnetometer, < >>
Figure FDA0003997283420000025
Arctan () represents an arctan function, which is the angle between true north and magnetic north.
4. The indoor positioning method based on UWB fusion IMU according to claim 2, wherein the quaternion is updated according to the filtered gyroscope data-angular velocity through a fourth-order Longge-Kutta algorithm, expressed as:
Figure FDA0003997283420000026
converting the updated quaternion into a course angle in motion through a quaternion conversion equation, wherein the course angle is expressed as follows:
Figure FDA0003997283420000031
wherein Q (T) is the updated quaternion at the moment, Q (0) is the quaternion at the last moment, w (0) is the angular velocity conversion matrix at the last moment, T is the time difference between the last moment and the moment, and K 1 、K 2 、K 3 、K 4 Respectively the first, second, third and fourth formulas of Dragon-Kutta, w (t) is an angular velocity matrix at the moment t, ψ is a course angle during action, q 0 、q 1 、q 2 、q 3 The first element, the second element, the third element and the fourth element in the quaternions are respectively.
5. The indoor positioning method based on UWB fusion IMU according to claim 2, wherein the coordinate transformation matrix from the carrier coordinate system to the navigation coordinate system is calculated according to the heading angle information of the object
Figure FDA0003997283420000032
Expressed as:
Figure FDA0003997283420000033
wherein, gamma, theta and psi are the roll angle, pitch angle and relative north course angle of the attitude angle respectively.
6. Indoor positioning method based on UWB fusion IMU as recited in claim 2Characterized in that the label is converted into matrix
Figure FDA0003997283420000034
By the acceleration data expression conversion, expressed as:
Figure FDA0003997283420000035
removing the gravitational acceleration to obtain actual acceleration data of the object, wherein the actual acceleration data is expressed as:
Figure FDA0003997283420000036
the estimated value of the position is obtained through the actual acceleration data of the object according to the acceleration integration, and is expressed as:
Figure FDA0003997283420000037
wherein,,
Figure FDA0003997283420000038
acceleration values of x, y and z axes in the carrier coordinate system respectively, < >>
Figure FDA0003997283420000039
Figure FDA00039972834200000310
Acceleration values of x, y and z axes in a navigation coordinate system respectively, < >>
Figure FDA00039972834200000311
The acceleration values of x, y and z axes of the gravitational acceleration are respectively removed under the navigation coordinate system, g is the gravitational acceleration, v 0 Sum s 0 Respectively an initial velocity and an initial displacement, t is a uniform time, s and v respectively represent the momentSum velocity, d represents the differential sign.
7. The indoor positioning method based on UWB fusion IMU according to claim 1, wherein the method is characterized in that according to N pieces of base station position information of UWB model and distance information between the base station and the tag, a horizontal optimal position is obtained by utilizing an iterative weighted least square algorithm, and specifically comprises the following steps:
s21: estimating an iteration initial value by using a least square method
Figure FDA0003997283420000041
And find the initial residual e 0
S22: normalized residual error to give u i Setting an initial weight W i
S23: using a weighted least squares expression
Figure FDA0003997283420000042
Replace->
Figure FDA0003997283420000043
And find a new residual v 1
S24: repeating S22-S23 for iterative calculation until the difference value of the regression coefficients of two adjacent steps
Figure FDA0003997283420000044
And (3) when the maximum value of the absolute value of the UWB is smaller than the iteration standard error, ending the iteration, and obtaining the optimal position coordinate (x, y) of the UWB on the horizontal plane.
8. The indoor positioning method based on UWB fusion IMU according to claim 1, wherein the optimal height data is obtained by ultrasonic waves, specifically comprising:
s41: the ultrasonic wave is subjected to mean value filtering treatment, and smoother ultrasonic wave data of the measured height are obtained through the ultrasonic wave subjected to the mean value filtering treatment;
s42: averaging the relatively stable height coordinate data and the ultrasonic data obtained by the UWB model, and taking the difference value of the average value followed by the optimal height data at one moment as a set threshold value;
s43: the data of the ultrasonic wave and the UWB height coordinate data are subjected to difference value to obtain optimal height data;
if the difference value is smaller than the set threshold value, carrying out extended Kalman fusion on the data to obtain UWB optimal height data;
if the difference value is larger than the set threshold value, respectively making difference between the height data obtained by ultrasonic wave at the moment and the height data of UWB at the moment and the optimal height data at the moment, taking the two difference values into coefficient equations with different weights to calculate the optimal height difference data of UWB, and adding the optimal height difference data at the moment to the optimal height data at the moment to obtain the optimal height data at the moment.
9. The indoor positioning method based on the UWB fusion IMU according to claim 1, wherein the UWB optimal height difference data is calculated by introducing two difference values into coefficient equations with different weights:
Figure FDA0003997283420000051
wherein Δh i For the optimal height data difference, h i-1 For the last moment of optimal height data,
Figure FDA0003997283420000052
for UWB mean height data at this point, +.>
Figure FDA0003997283420000053
For this moment, the ultrasonic mean height data, k 1 And k 2 For the two weight coefficients to be set,
Figure FDA0003997283420000054
Figure FDA0003997283420000055
for the last moment of UWB mean height data,
Figure FDA0003997283420000056
the ultrasonic mean height data is the last moment.
10. The indoor positioning method based on UWB fusion IMU according to claim 1, wherein the unscented Kalman fusion of the tight combination of the position information obtained by the IMU and the position information obtained by UWB specifically comprises:
s61: according to the IMU, a system state equation expressed in a matrix form is deduced, and a system observation equation is obtained through UWB;
s62: transforming a group of system state equations by utilizing UT transformation to obtain Sigma sampling points, predicting the state in one step according to the system state equations, updating the Sigma sampling points by utilizing UT transformation, and predicting the system observation equations in one step to obtain
Figure FDA0003997283420000057
Then find the observation vector autocovariance matrix +.>
Figure FDA0003997283420000058
And observation vector and state vector cross covariance matrix +.>
Figure FDA0003997283420000059
S63: and obtaining Kalman filtering gain according to the matrix, and finishing system state and state covariance matrix updating according to the Kalman filtering gain to obtain accurate coordinate position information.
CN202211595905.9A 2022-12-13 2022-12-13 Indoor positioning method based on UWB fusion IMU Pending CN116380052A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211595905.9A CN116380052A (en) 2022-12-13 2022-12-13 Indoor positioning method based on UWB fusion IMU

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211595905.9A CN116380052A (en) 2022-12-13 2022-12-13 Indoor positioning method based on UWB fusion IMU

Publications (1)

Publication Number Publication Date
CN116380052A true CN116380052A (en) 2023-07-04

Family

ID=86971845

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211595905.9A Pending CN116380052A (en) 2022-12-13 2022-12-13 Indoor positioning method based on UWB fusion IMU

Country Status (1)

Country Link
CN (1) CN116380052A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117119586A (en) * 2023-08-29 2023-11-24 长春理工大学 Indoor positioning fusion algorithm based on UWB and IMU

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117119586A (en) * 2023-08-29 2023-11-24 长春理工大学 Indoor positioning fusion algorithm based on UWB and IMU
CN117119586B (en) * 2023-08-29 2024-05-24 长春理工大学 Indoor positioning fusion method based on UWB and IMU

Similar Documents

Publication Publication Date Title
CN103196445B (en) Based on the carrier posture measuring method of the earth magnetism supplementary inertial of matching technique
CN110375730A (en) The indoor positioning navigation system merged based on IMU and UWB
CN110231029B (en) Underwater robot multi-sensor fusion data processing method
CN111982102B (en) BP-EKF-based UWB-IMU positioning method in complex environment
CN110686671B (en) Indoor 3D real-time positioning method and device based on multi-sensor information fusion
CN112197765B (en) Method for realizing fine navigation of underwater robot
CN114739397B (en) Mine environment motion inertia estimation self-adaptive Kalman filtering fusion positioning method
US7711516B2 (en) Method for estimating movement of a solid
CN107289932A (en) Single deck tape-recorder Kalman Filtering guider and method based on MEMS sensor and VLC positioning fusions
CN113175926B (en) Self-adaptive horizontal attitude measurement method based on motion state monitoring
CN113503872B (en) Low-speed unmanned aerial vehicle positioning method based on fusion of camera and consumption-level IMU
CN108007477A (en) A kind of inertia pedestrian&#39;s Positioning System Error suppressing method based on forward and reverse filtering
CN117289322B (en) High-precision positioning algorithm based on IMU, GPS and UWB
CN111649747A (en) IMU-based adaptive EKF attitude measurement improvement method
CN116380052A (en) Indoor positioning method based on UWB fusion IMU
CN113551669B (en) Combined navigation positioning method and device based on short base line
KR102095135B1 (en) Method of positioning indoor and apparatuses performing the same
CN115031723A (en) UWB positioning accuracy improving method
CN110375773B (en) Attitude initialization method for MEMS inertial navigation system
CN111578939B (en) Robot tight combination navigation method and system considering random variation of sampling period
CN113008229A (en) Distributed autonomous integrated navigation method based on low-cost vehicle-mounted sensor
CN116482735A (en) High-precision positioning method for inside and outside of limited space
CN116105726A (en) Multi-sensor fusion type wall climbing robot elevation positioning method
CN115950447A (en) High-precision alignment method and system for underwater movable base based on magnetic compass and velocimeter
CN115451946A (en) Indoor pedestrian positioning method combining MEMS-IMU and Wi-Fi

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination