CN109612471B - Moving body attitude calculation method based on multi-sensor fusion - Google Patents
Moving body attitude calculation method based on multi-sensor fusion Download PDFInfo
- Publication number
- CN109612471B CN109612471B CN201910107827.5A CN201910107827A CN109612471B CN 109612471 B CN109612471 B CN 109612471B CN 201910107827 A CN201910107827 A CN 201910107827A CN 109612471 B CN109612471 B CN 109612471B
- Authority
- CN
- China
- Prior art keywords
- attitude
- quaternion
- carrier
- data
- magnetometer
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/20—Instruments for performing navigational calculations
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/10—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration
- G01C21/12—Navigation; 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/16—Navigation; 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
Landscapes
- Engineering & Computer Science (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Automation & Control Theory (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Navigation (AREA)
- Gyroscopes (AREA)
Abstract
The invention discloses a moving body attitude calculation method based on multi-sensor fusion, which comprises the steps of fixing a micro-electromechanical inertia and magnetic measurement unit on a carrier to be measured, collecting acceleration, angular rate and magnetic induction intensity, establishing a first-stage loss function according to a measurement model of an accelerometer, estimating a current attitude quaternion by using the acceleration through a gradient descent method, weighting the current attitude quaternion and an attitude quaternion updated through the angular rate to obtain a first-stage posterior attitude quaternionBy usingUpdating a pitch angle and a roll angle of the carrier; under the condition of considering ferromagnetic interference, a second-stage loss function is established according to a measurement model of the magnetometer, the ferromagnetic interference estimator obtained by calculation at the previous moment and the magnetic induction intensity at the current moment are used for estimating the quaternion of the current attitude by a gradient descent method, and the quaternion of the second-stage posterior attitude is obtained by weighting the quaternion of the current attitude updated by the angular rateBy usingThe invention can estimate the external ferromagnetic interference to realize the compensation of the ferromagnetic interference.
Description
Technical Field
The invention belongs to the field of motion capture of micro-electromechanical inertial and magnetic measurement units (MIMMU), and particularly relates to a moving body attitude calculation method based on multi-sensor fusion.
Background
The attitude calculation system based on the micro-electromechanical inertia and magnetic measurement unit is widely applied to the fields of aircrafts, robots, human body motion capture and the like due to the characteristics of strong autonomy, high cost performance and small size. The inertia and magnetic measurement unit consists of a three-axis gyroscope, a three-axis accelerometer and a three-axis magnetometer and can be used for measuring the angular rate, the acceleration and the magnetic induction intensity of the carrier. Because the gyroscope has instantaneous drift, in the process of obtaining the carrier attitude by using angular rate integration, system errors can be accumulated along with time, and divergence is likely to be caused by long-time operation. The roll angle and the pitch angle of the carrier can be solved only by utilizing the gravity acceleration component under the carrier coordinate system, the course angle of the carrier can be solved by utilizing the earth magnetic field component under the carrier coordinate system, and the calculation of the roll angle and the pitch angle is only based on the current instantaneous data, so the error of the carrier does not accumulate along with time. Therefore, the inertial and Magnetic measurement units are used for realizing an algorithm for solving the carrier attitude jointly by information fusion based on Magnetic induction intensity, Angular Rate and Gravity acceleration (MARG) data, and the roll angle, the pitch angle and the course angle can be effectively corrected, so that the solving precision can be effectively improved, and the system can work for a long time. Compared with a Kalman filtering method, the MARG combined attitude measurement method based on the optimized compensation has smaller calculated amount and stronger robustness. However, the current optimization compensation algorithm does not consider the interference of external ferromagnetic substances to the magnetometer, and the algorithm cannot work normally when the ferromagnetic interference is large. In addition, the same filter is used for fusing MIMMU data, accelerometer data can cause adverse effects on the calculation of yaw angle, and magnetometer data can cause adverse effects on the calculation of roll angle and pitch angle.
Disclosure of Invention
In view of this, the invention provides a moving body attitude calculation method based on multi-sensor fusion, which can estimate external ferromagnetic interference so as to compensate the ferromagnetic interference and ensure that the algorithm can still be normally used in a complex environment.
The technical scheme for realizing the invention is as follows:
a moving body attitude calculation method based on multi-sensor fusion fixes a micro-electromechanical inertia and magnetic measurement unit (MIMMU) on a carrier to be measured, collects carrier acceleration, angular rate and magnetic induction intensity data, and establishes a first-stage loss function F according to a measurement model of the accelerometer1(. using acceleration data y)A,tEstimation of current attitude quaternion by gradient descent methodAnd compares it with the passing angular rate data yG,tUpdated attitude quaternionWeighting to obtain first-stage posterior attitude quaternionBy usingUpdating the pitch angle pitch of the carrierAAnd roll angle rollA(ii) a Establishing a second-order loss function F from a magnetometer's metrology model taking into account ferromagnetic interference2(. to) using the ferromagnetic interference estimate calculated at the previous timeAnd magnetic induction intensity data y at the current momentM,tEstimation of current attitude quaternion by gradient descent methodAnd compares it with the passing angular rate data yG,tUpdated attitude quaternionWeighting to obtain a second-level posterior attitude quaternionBy usingUpdating the yaw angle of the carrierM。
Further, the updated yaw angle yawMPitch angle pitchAAnd roll angle rollAConverted into attitude quaternions, i.e. posterior attitude quaternions at the present timeMagnetometer-based metrology model using a posteriori attitude quaternionAnd magnetic induction data yM,tEstimation of ferromagnetic interferenceAnd (6) updating.
Further, a second stage loss function F2(x)=ε2(x)Tε2(x),
Wherein the content of the first and second substances,yM,tthe magnetic induction data measured by the magnetometer at the time t, d is ferromagnetic interference, q represents the carrier attitude,representing the local earth magnetic field observed in the carrier coordinate system.
Has the advantages that:
1. the invention provides a two-stage attitude updating algorithm based on a gradient descent method, wherein the pitch angle and the roll angle are updated through the angular rate measured by a gyroscope and the acceleration data measured by an accelerometer in the first stage of filtering, and the yaw angle is updated through the angular rate measured by the gyroscope and the magnetic induction intensity data measured by a magnetometer in the second stage of filtering, so that the calculation precision of the system is improved.
2. Aiming at the problem that the magnetometer is easily interfered by external ferromagnetism, the algorithm estimates and compensates the ferromagnetism in real time in the second-stage filtering, so that the algorithm has certain ferromagnetism interference resistance, and the system can still normally work in a strong ferromagnetism interference environment.
Drawings
FIG. 1 is a flow chart of the method of the present invention.
Detailed Description
The invention is described in detail below by way of example with reference to the accompanying drawings.
Aiming at the characteristics that accelerometer data can only be used for correcting roll angle and pitch angle, magnetometer data can be used for correcting yaw angle, but magnetometer is easily interfered by external ferromagnetism, the invention provides a two-stage updating algorithm based on gradient descent, in the first stage, gyroscope and accelerometer data are fused, and the pitch angle and roll angle of a carrier are updated; and in the second stage, the gyroscope and the magnetometer are subjected to data fusion, and the yaw angle of the carrier is updated. And estimating the external ferromagnetic interference in the second-stage algorithm to realize the compensation of the ferromagnetic interference and ensure that the algorithm can still be normally used in a more complex environment. The specific content of the invention comprises the following steps:
step 1: fixing a micro-electromechanical inertia and magnetic measurement unit (MIMMU) on a carrier to be measured, and collecting carrier acceleration, angular rate and magnetic induction intensity data;
a micro-electromechanical inertial and magnetic measurement unit (MIMMU) is fixed to a carrier to be measured. Let the carrier coordinate system ObxbybzbAttached to MIMMU at origin ObAt the MIMMU center of gravity, xbThe axis pointing to the right along the MIMMU horizontal axis, zbThe axis pointing upwards along the MIMMU vertical axis, ybAxis and xb、zbThe axes form a right-handed rectangular coordinate system. Setting a navigation coordinate system OnxnynznCoinciding with the carrier coordinate system at the initial instant. A gyroscope, an accelerometer and a magnetometer in the MIMMU respectively acquire angular rate, acceleration and magnetic induction intensity data of the carrier during motion and are used for subsequent carrier attitude calculation.
Step 2: establishing a first-order loss function F according to a measurement model of an accelerometer1(. using acceleration data y)A,tEstimation of current attitude quaternion by gradient descent methodAnd compares it with the passing angular rate data yG,tUpdated attitude quaternionWeighting to obtain first-stage posterior attitude quaternionBy usingUpdating the pitch angle pitch of the carrierAAnd roll angle rollA;
In the application scenario of the present invention, the motion acceleration measured in the carrier coordinate system is smaller than the gravity acceleration, so that the motion acceleration is ignored, and the accelerometer measurement model can be set as:
wherein, yA,tData measured by the accelerometer at time t; bAThe accelerometer represents a constant zero offset and can be corrected through data preprocessing; v. ofA,tRepresenting accelerometer noise as white gaussian noise; g is the local gravitational acceleration measured under the navigation coordinate system; q. q.stRepresenting a real attitude quaternion at the moment t;is a rotation matrix from the navigation coordinate system to the carrier coordinate system:
thus, it is possible to provideAnd represents the local gravity acceleration observed under the carrier coordinate system at the moment t.
the error between the actual measured value and the estimated value of acceleration at time t can be expressed as:
it can be known that the real attitude quaternion q is closer to the t moment when the attitude q of the carrier is closer to the t momenttWhen is equal to1The closer to [ 000 ] (q)]T. Using epsilon1The sum of the squares of the elements of (·) as a function of the first-order loss:
F1(q)=ε1(q)Tε1(q) (4)
let the posterior attitude quaternion at the time of t-1 beUsing it as initial value of optimized q, and using gradient descent method to F1Optimization is performed to update the variables along the negative gradient direction of the loss function, which helps to reduce the value of the loss function:
wherein the content of the first and second substances,an attitude quaternion updated for acceleration data measured by the accelerometer at time t; beta is a1For updating the step length, the step length is an adjustable parameter;to representAboutAnd solving the result of transposition after partial derivation.
From angular rate data y measured by a gyroscopeG,tUpdating the attitude quaternion differential equation to obtain the prior attitude quaternion
Wherein the content of the first and second substances,and T is the sampling period of the gyroscope.
updated by acceleration data, due to the presence of motion acceleration objectivelyWith less confidence than updated by gyroscope dataThus weighting the parameter mu1The value is smaller, (7) can be simplified as:
where ρ is1=μ1β1Is an adjustable parameter.
And step 3: establishing a second-order loss function F from a magnetometer's metrology model taking into account ferromagnetic interference2(. to) using the ferromagnetic interference estimate calculated at the previous timeAnd magnetic induction intensity data y at the current momentM,tEstimation of current attitude quaternion by gradient descent methodAnd compares it with the passing angular rate data yG,tUpdated attitude quaternionWeighting to obtain a second-level posterior attitude quaternionBy usingUpdating the yaw angle of the carrierM;
Establishing a measurement model of the magnetometer:
wherein, yM,tData measured by the magnetometer at the time t; v. ofM,tMagnetometer noise, white gaussian noise;the local earth magnetic field observed under the carrier coordinate system at the moment t is represented and is a part of a main body of data measured by the magnetometer; dtThe magnetometer represents ferromagnetic interference suffered by the magnetometer at the time t, is another part of the main body of the data measured by the magnetometer, and can be regarded as a random walk process according to the sequence of the time variation:
dt+1=dt+wd,t (10)
wherein, wd,tIs gaussian white noise.
Because the intensity of the earth magnetic field on the earth surface is in the range of 25-65 mu T, the earth magnetic field is weak, the ferromagnetic interference value is often greater than the earth magnetic field, therefore, the ferromagnetic interference part can not be ignored, and the invention selects the ferromagnetic interference dtAnd (6) estimating.
The error between the actual measurement and the estimated value of the magnetometer at time t is given by equation (9):
it can be seen that the real value q of the quaternion is rotated as q gets closer to ttThe closer d is to the ferromagnetic disturbance d at time ttWhen is equal to2The closer to [ 000 ] the (q, d)]T。
Let x be [ q d ]]Using epsilon2The sum of the squares of the elements of (·) as a second-order loss function:
F2(x)=ε2(x)Tε2(x) (12)
using gradient descent method to F2And (3) optimizing:
wherein the content of the first and second substances,for time t passingA variable for magnetometer data update;andrespectively the attitude quaternion and the estimated amount of ferromagnetic interference updated by the magnetic induction data at time t,quaternion and ferromagnetic interference are estimated for the posteriori at time t-1; beta is a2To update the step size.
wherein the content of the first and second substances,as a second-stage cost functionA posteriori estimated quaternion for time t-1The result of transposing after partial derivation can be used for optimizing and estimating the quaternion. Data updating by magnetometers due to external ferromagnetic interferenceWith less confidence than updated by gyroscope dataThus weighting the parameter mu2The value is smaller, (14) can be simplified as:
where ρ is2=μ2β2Is an adjustable parameter.
And 4, step 4: will update the yaw angle yawMPitch angle pitchAAnd roll angle rollAConverted into attitude quaternions, i.e. posterior attitude quaternions at the present time
The pitch angle pitch obtained in step 2ARoll angle rollAYaw angle yaw obtained in step 3MCombined to form the Euler angle of posterior attitude [ yawM pitchA rollA]And converting the four-element number into an attitude quaternion, namely an a-posteriori attitude quaternion at the moment t
And 5: magnetometer-based metrology model using a posteriori attitude quaternionAnd magnetic induction data yM,tEstimation of ferromagnetic interferenceAnd updating for use in step 3 at the next time.
According to magnetometer measurement model(9) Using quaternion of a posterior attitudeAnd magnetometer data y at the present momentM,tAnd updating the posterior ferromagnetic estimation at the time t:
in summary, the above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (2)
1. A moving body attitude calculation method based on multi-sensor fusion is characterized in that a micro-electromechanical inertia and magnetic measurement unit is fixed on a carrier to be measured, and carrier acceleration, angular rate and magnetic induction intensity data are collected; establishing a first-order loss function F according to a measurement model of an accelerometer1(. using acceleration data y)A,tEstimation of current attitude quaternion by gradient descent methodAnd compares it with the passing angular rate data yG,tUpdated attitude quaternionWeighting to obtain first-stage posterior attitude quaternionBy usingUpdating the pitch angle pitch of the carrierAAnd roll angle rollA(ii) a Establishing a second metrology model from the magnetometer taking into account the ferromagnetic interferenceStage loss function F2(. to) using the ferromagnetic interference estimate calculated at the previous timeAnd magnetic induction intensity data y at the current momentM,tEstimation of current attitude quaternion by gradient descent methodAnd compares it with the passing angular rate data yG,tUpdated attitude quaternionWeighting to obtain a second-level posterior attitude quaternionBy usingUpdating the yaw angle of the carrierM;
Will update the yaw angle yawMPitch angle pitchAAnd roll angle rollAConverted into attitude quaternions, i.e. posterior attitude quaternions at the present timeMagnetometer-based metrology model using a posteriori attitude quaternionAnd magnetic induction data yM,tEstimation of ferromagnetic interferenceAnd (6) updating.
2. The multi-sensor fusion-based moving body attitude solution method according to claim 1, wherein the secondStage loss function F2(x)=ε2(x)Tε2(x),
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910107827.5A CN109612471B (en) | 2019-02-02 | 2019-02-02 | Moving body attitude calculation method based on multi-sensor fusion |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910107827.5A CN109612471B (en) | 2019-02-02 | 2019-02-02 | Moving body attitude calculation method based on multi-sensor fusion |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109612471A CN109612471A (en) | 2019-04-12 |
CN109612471B true CN109612471B (en) | 2021-06-25 |
Family
ID=66019611
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910107827.5A Active CN109612471B (en) | 2019-02-02 | 2019-02-02 | Moving body attitude calculation method based on multi-sensor fusion |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109612471B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110017837B (en) * | 2019-04-26 | 2022-11-25 | 沈阳航空航天大学 | Attitude anti-magnetic interference combined navigation method |
CN110081883B (en) * | 2019-04-29 | 2021-05-18 | 北京理工大学 | Low-cost integrated navigation system and method suitable for high-speed rolling aircraft |
CN110231029B (en) * | 2019-05-08 | 2021-07-13 | 西安交通大学 | Underwater robot multi-sensor fusion data processing method |
CN110319840A (en) * | 2019-07-05 | 2019-10-11 | 东北大学秦皇岛分校 | Conjugate gradient attitude algorithm method towards abnormal gait identification |
CN110440746A (en) * | 2019-08-05 | 2019-11-12 | 桂林电子科技大学 | A kind of no-dig technique subterranean drill bit posture fusion method based on the decline of quaternary number gradient |
CN112611380B (en) * | 2020-12-03 | 2022-07-01 | 燕山大学 | Attitude detection method based on multi-IMU fusion and attitude detection device thereof |
CN112923924B (en) * | 2021-02-01 | 2023-06-30 | 杭州电子科技大学 | Method and system for monitoring posture and position of anchoring ship |
CN115855071B (en) * | 2023-03-02 | 2023-04-25 | 北京理工大学 | Range resolving method and system based on multi-sensor fusion |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105652891A (en) * | 2016-03-02 | 2016-06-08 | 中山大学 | Unmanned gyroplane moving target autonomous tracking device and control method thereof |
CN107167131A (en) * | 2017-05-23 | 2017-09-15 | 北京理工大学 | A kind of depth integration of micro-inertia measuring information and the method and system of real-Time Compensation |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8645063B2 (en) * | 2010-12-22 | 2014-02-04 | Custom Sensors & Technologies, Inc. | Method and system for initial quaternion and attitude estimation |
-
2019
- 2019-02-02 CN CN201910107827.5A patent/CN109612471B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105652891A (en) * | 2016-03-02 | 2016-06-08 | 中山大学 | Unmanned gyroplane moving target autonomous tracking device and control method thereof |
CN107167131A (en) * | 2017-05-23 | 2017-09-15 | 北京理工大学 | A kind of depth integration of micro-inertia measuring information and the method and system of real-Time Compensation |
Non-Patent Citations (2)
Title |
---|
Fast Linear Quaternion Attitude Estimator Using Vector Observations;Jin Wu;《IEEE》;20180131;第15卷(第1期);307-319 * |
基于Gauss-Newton和UKF结合的微小卫星姿态确定算法;康国华等;《中国空间科学技术》;20180314(第02期);16-23 * |
Also Published As
Publication number | Publication date |
---|---|
CN109612471A (en) | 2019-04-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109612471B (en) | Moving body attitude calculation method based on multi-sensor fusion | |
CN111156987B (en) | Inertia/astronomy combined navigation method based on residual compensation multi-rate CKF | |
US10352959B2 (en) | Method and system for estimating a path of a mobile element or body | |
CN107490378B (en) | Indoor positioning and navigation method based on MPU6050 and smart phone | |
CN107621266B (en) | Space non-cooperative target relative navigation method based on feature point tracking | |
CN110231029B (en) | Underwater robot multi-sensor fusion data processing method | |
CN110017837A (en) | A kind of Combinated navigation method of the diamagnetic interference of posture | |
CN108731676B (en) | Attitude fusion enhanced measurement method and system based on inertial navigation technology | |
CN109269511B (en) | Curve matching visual navigation method for planet landing in unknown environment | |
CN110887480A (en) | Flight attitude estimation method and system based on MEMS sensor | |
CN112461224B (en) | Magnetometer calibration method based on known attitude angle | |
CN106352897B (en) | It is a kind of based on the silicon MEMS gyro estimation error of monocular vision sensor and bearing calibration | |
CN113175933A (en) | Factor graph combined navigation method based on high-precision inertia pre-integration | |
CN111307114B (en) | Water surface ship horizontal attitude measurement method based on motion reference unit | |
CN111649747A (en) | IMU-based adaptive EKF attitude measurement improvement method | |
CN113155129A (en) | Holder attitude estimation method based on extended Kalman filtering | |
CN108534772B (en) | Attitude angle acquisition method and device | |
CN116817896A (en) | Gesture resolving method based on extended Kalman filtering | |
CN110058324B (en) | Strapdown gravimeter horizontal component error correction method using gravity field model | |
CN109443355B (en) | Visual-inertial tight coupling combined navigation method based on self-adaptive Gaussian PF | |
CN113670314B (en) | Unmanned aerial vehicle attitude estimation method based on PI self-adaptive two-stage Kalman filtering | |
Wenk et al. | Posture from motion | |
CN109506674B (en) | Acceleration correction method and device | |
CN110375773B (en) | Attitude initialization method for MEMS inertial navigation system | |
CN109674480B (en) | Human motion attitude calculation method based on improved complementary filtering |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |