CN110398245B - Indoor pedestrian navigation attitude estimation method based on foot-worn inertial measurement unit - Google Patents
Indoor pedestrian navigation attitude estimation method based on foot-worn inertial measurement unit Download PDFInfo
- Publication number
- CN110398245B CN110398245B CN201910615908.6A CN201910615908A CN110398245B CN 110398245 B CN110398245 B CN 110398245B CN 201910615908 A CN201910615908 A CN 201910615908A CN 110398245 B CN110398245 B CN 110398245B
- Authority
- CN
- China
- Prior art keywords
- attitude
- coordinate system
- navigation
- pedestrian
- measurement unit
- 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.)
- Expired - Fee Related
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/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
-
- 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
- G01C21/206—Instruments for performing navigational calculations specially adapted for indoor navigation
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C25/00—Manufacturing, calibrating, cleaning, or repairing instruments or devices referred to in the other groups of this subclass
- G01C25/005—Manufacturing, calibrating, cleaning, or repairing instruments or devices referred to in the other groups of this subclass initial alignment, calibration or starting-up of inertial devices
Landscapes
- Engineering & Computer Science (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Manufacturing & Machinery (AREA)
- Navigation (AREA)
Abstract
本发明提供了一种基于脚戴式惯性测量单元的室内行人导航姿态估计方法,首先,将惯性测量单元安装于行人足部,初始化惯性测量单元在导航坐标系下的初始姿态,然后根据惯性传感器的输出判断行人是否处于静止状态,当行人处于非静止状态时,采用捷联惯导算法进行姿态更新,递推得到当前的姿态,当行人处于静止状态时,根据捷联惯导算法姿态更新方程构造动态模型、加速度计输出与重力关系构造测量模型,在四元数框架下通过卡尔曼滤波器对当前的姿态进行更新。本发明利用静止时刻加速度计的测量构造姿态估计观测量,在四元素框架下执行卡尔曼滤波器进行数据融合得到精确的姿态信息,实现了提供精确的姿态信息的技术效果。
The invention provides an indoor pedestrian navigation attitude estimation method based on a foot-mounted inertial measurement unit. First, the inertial measurement unit is installed on the foot of the pedestrian, the initial attitude of the inertial measurement unit in the navigation coordinate system is initialized, and then according to the inertial sensor The output judges whether the pedestrian is in a stationary state. When the pedestrian is in a non-stationary state, the SINS algorithm is used to update the attitude, and the current attitude is obtained recursively. When the pedestrian is in a stationary state, the attitude update equation is based on the SINS algorithm. The dynamic model, the relationship between the accelerometer output and the gravity are constructed to construct the measurement model, and the current attitude is updated through the Kalman filter under the quaternion frame. The invention utilizes the measurement of the accelerometer at the static moment to construct the attitude estimation observation quantity, executes the Kalman filter under the four-element framework to perform data fusion to obtain precise attitude information, and realizes the technical effect of providing precise attitude information.
Description
技术领域technical field
本发明涉及行人导航技术领域,尤其涉及一种基于脚戴式惯性测量单元的室内行人导航姿态估计方法。The invention relates to the technical field of pedestrian navigation, in particular to an indoor pedestrian navigation attitude estimation method based on a foot-mounted inertial measurement unit.
背景技术Background technique
“行人导航”是指在地图的基础上,提供必要的位置、方向信息,引导行人到达既定目标。在不断丰富的智能电子设备中,行人导航已成为其一项重要功能(如智能手机中高德地图、百度地图等提供的行人导航服务),极大地提高了人们的出行效率。"Pedestrian navigation" refers to providing the necessary location and direction information on the basis of the map to guide pedestrians to reach the target. In the constantly enriched smart electronic devices, pedestrian navigation has become an important function (such as pedestrian navigation services provided by AutoNavi Maps and Baidu Maps in smartphones), which has greatly improved people's travel efficiency.
在室外,依靠全球导航卫星系统(Global Navigation Satellite System,GNSS)可以获得精确的位置信息,再结合其他方向传感器(如陀螺仪),便可以实现精确的行人导航。然而在室内,由于建筑结构和墙体的遮挡,GNSS信号被严重衰减,不能估计有效的位置信息。因此,室内行人导航面临困难更多、需要发展专门的技术,是当前国内外定位导航领域研究的热点之一。Outdoors, accurate location information can be obtained by relying on the Global Navigation Satellite System (GNSS), and combined with other orientation sensors (such as gyroscopes), accurate pedestrian navigation can be achieved. However, indoors, due to the occlusion of building structures and walls, the GNSS signal is severely attenuated, and effective location information cannot be estimated. Therefore, indoor pedestrian navigation faces more difficulties and needs to develop special technologies, which is one of the hotspots in the field of positioning and navigation at home and abroad.
现有技术中,可用的室内位置估计技术大致可分为基于视觉的方法、基于无线信号的方法和基于惯性传感器的方法等。考虑到成本、功耗、运算复杂度等问题,基于脚戴式惯性测量单元(Inertial Measurement Unit,IMU)的方法被广泛应用于室内行人导航位置估计。如何获取精确的方向信息的是室内行人导航的主要难点。依靠IMU内置角速度传感器测量进行方向估计是一种经济、简单的方法,但存在方向漂移问题,需要对方向估计进行不断改正,从而限制方向漂移。当前的解决方案包括零加速度更新算法、磁航向辅助算法等。In the prior art, available indoor position estimation techniques can be roughly classified into vision-based methods, wireless signal-based methods, and inertial sensor-based methods. Considering the problems of cost, power consumption, and computational complexity, the method based on the foot-mounted Inertial Measurement Unit (IMU) is widely used in indoor pedestrian navigation position estimation. How to obtain accurate direction information is the main difficulty of indoor pedestrian navigation. Relying on the measurement of the built-in angular velocity sensor of the IMU for direction estimation is an economical and simple method, but there is a problem of direction drift, which needs to be continuously corrected to limit the direction drift. Current solutions include zero-acceleration update algorithms, magnetic heading assist algorithms, and more.
本申请发明人在实施本发明的过程中,发现现有技术的方法,至少存在如下技术问题:In the process of implementing the present invention, the inventor of the present application found that the method of the prior art has at least the following technical problems:
零加速度更新算法依赖于所使用的姿态误差模型,仅仅在地球坐标系下有效;磁航向辅助算法需要准确的航向观测值,但由于室内地磁干扰严重,通过地磁测量得到的航向估计将存在较大误差。除此之外,这些解决方案需要在地球坐标系下进行,极大地增加了导航系统的初始化工作;并且,这些方案普遍只提供航向信息,而不能提供精确的三维方向信息(即姿态)。对于一些特殊的室内行人导航应用,比如消防人员导航,姿态信息有利于监测被导航人员的行走状态(站立、平躺、下蹲等),从而推测其是否安全。The zero-acceleration update algorithm depends on the attitude error model used, and is only valid in the earth coordinate system; the magnetic heading assistance algorithm requires accurate heading observations, but due to the severe indoor geomagnetic interference, the heading estimation obtained by the geomagnetic measurement will have a large amount of space. error. In addition, these solutions need to be carried out in the earth coordinate system, which greatly increases the initialization work of the navigation system; moreover, these solutions generally only provide heading information, but cannot provide accurate three-dimensional direction information (ie attitude). For some special indoor pedestrian navigation applications, such as firefighter navigation, posture information is helpful to monitor the walking state of the navigated person (standing, lying down, squatting, etc.), so as to infer whether it is safe.
由此可知,现有技术中的方法存在难以提供精确的姿态信息的技术问题。It can be seen from this that the methods in the prior art have the technical problem that it is difficult to provide accurate attitude information.
发明内容SUMMARY OF THE INVENTION
为解决当前室内行人导航系统难以提供精确的姿态信息问题,本发明提供一种基于脚戴式IMU的室内行人导航姿态估计方法,该方法利用行人静止状态的加速度计输出构建方向观测量,然后在四元数框架下执行卡尔曼滤波器对IMU捷联算法的姿态估计进行改正。In order to solve the problem that the current indoor pedestrian navigation system is difficult to provide accurate attitude information, the present invention provides an indoor pedestrian navigation attitude estimation method based on a foot-mounted IMU. The Kalman filter is executed under the quaternion frame to correct the attitude estimation of the IMU strapdown algorithm.
本发明提供了基于脚戴式IMU的室内行人导航姿态估计方法,包括:The present invention provides an indoor pedestrian navigation attitude estimation method based on a foot-mounted IMU, including:
步骤S1:将惯性测量单元安装于行人足部,确定导航坐标系,对惯性测量单元的零偏误差进行在线标定,初始化惯性测量单元在导航坐标系下的初始姿态,其中,导航坐标系的Z轴与地面垂直;Step S1: Install the inertial measurement unit on the foot of the pedestrian, determine the navigation coordinate system, perform online calibration on the zero offset error of the inertial measurement unit, and initialize the initial attitude of the inertial measurement unit in the navigation coordinate system, wherein the Z of the navigation coordinate system is The axis is perpendicular to the ground;
步骤S2:根据惯性传感器的输出判断行人是否处于静止状态,如果行人处于非静止状态,执行步骤S3,否则执行步骤S4;Step S2: determine whether the pedestrian is in a stationary state according to the output of the inertial sensor, if the pedestrian is in a non-stationary state, perform step S3, otherwise, perform step S4;
步骤S3:根据初始姿态以及三轴陀螺仪的输出,采用捷联惯导算法进行姿态更新,递推得到当前的姿态,其中,将三轴陀螺仪的测量作为传感器坐标系下惯性测量单元相对于导航坐标系的旋转角速度;Step S3: According to the initial attitude and the output of the three-axis gyroscope, the strapdown inertial navigation algorithm is used to update the attitude, and the current attitude is obtained by recursion, wherein the measurement of the three-axis gyroscope is used as the relative position of the inertial measurement unit in the sensor coordinate system. The rotational angular velocity of the navigation coordinate system;
步骤S4:根据捷联惯导算法姿态更新方程构造动态模型、加速度计输出与重力关系构造测量模型,在四元数框架下通过卡尔曼滤波器对当前的姿态进行更新。Step S4: constructing a dynamic model according to the attitude update equation of the strapdown inertial navigation algorithm, constructing a measurement model based on the relationship between the output of the accelerometer and the gravity, and updating the current attitude through the Kalman filter under the quaternion frame.
在一种实施方式中,步骤S1具体包括:In one embodiment, step S1 specifically includes:
步骤S1.1:将惯性测量单元安装于行人足部,自定义三维直角坐标系作为导航坐标系,确保导航坐标系的Z轴与地面垂直;Step S1.1: Install the inertial measurement unit on the foot of the pedestrian, customize the three-dimensional rectangular coordinate system as the navigation coordinate system, and ensure that the Z axis of the navigation coordinate system is perpendicular to the ground;
步骤S1.2:对于三轴陀螺仪,以静止状态下一段预设时间内各轴向输出的平均值作为该轴的零偏误差。对于三轴加速度计,通过静止状态下四个不同位置上一段预设时间内加速度计的输出进行标定,标定公式如式(1)所示,Step S1.2: For a three-axis gyroscope, the average value of the output of each axis in a predetermined period of time in a static state is used as the zero offset error of the axis. For a three-axis accelerometer, the calibration is performed by the output of the accelerometer at four different positions in a stationary state for a preset period of time. The calibration formula is shown in formula (1),
其中,bx,by,bz分别为三轴加速度计X、Y、Z轴上零偏误差,xi、yi、zi,i=1,2,3,4,分别表示第i个位置上X、Y、Z输出的平均值,mi,i=1,2,3,4表示第i个位置上各轴输出平均值的平方和;Among them, b x , b y , b z are the zero bias errors on the X, Y, and Z axes of the three-axis accelerometer, respectively, x i , y i , z i , i=1, 2, 3, 4, representing the i-th accelerometer, respectively The average value of X, Y, Z outputs at each position, m i , i=1, 2, 3, 4 represents the sum of the squares of the average output values of each axis at the ith position;
步骤S1.3:在初始导航时刻,调整惯性测量单元的位置,使惯性测量单元传感器坐标系与导航坐标系对齐,从而获得惯性测量单元在导航坐标系下的初始姿态,其中,初始姿态的形式为q0=[1,0,0,0]T。Step S1.3: At the initial navigation moment, adjust the position of the inertial measurement unit to align the sensor coordinate system of the inertial measurement unit with the navigation coordinate system, so as to obtain the initial attitude of the inertial measurement unit in the navigation coordinate system, wherein the initial attitude is in the form of is q 0 =[1,0,0,0] T .
在一种实施方式中,步骤S2具体包括:In one embodiment, step S2 specifically includes:
步骤S2.1:判断当前惯性测量单元输出的序列总长度是否大于或等于预设长度N,如果是,则转至步骤S2.2,判断行人是否处于静止状态;Step S2.1: determine whether the total length of the sequence output by the current inertial measurement unit is greater than or equal to the preset length N, and if so, go to step S2.2 to determine whether the pedestrian is in a stationary state;
步骤S2.2:计算当前三轴陀螺仪测量向量的模||yk-b||,其中,yk为当前三轴陀螺仪测量向量,b为步骤S1中得到的三轴陀螺仪的零偏向量,并判断||yk-b||是否大于设定的第一阈值thm,如果大于,则判定行人在当前时刻处于非静止状态,否则,执行步骤S2.3;Step S2.2: Calculate the modulus of the current three-axis gyroscope measurement vector ||y k -b||, where y k is the current three-axis gyroscope measurement vector, and b is the zero value of the three-axis gyroscope obtained in step S1 bias vector, and determine whether ||y k -b|| is greater than the set first threshold th m , if it is greater, then determine that the pedestrian is in a non-stationary state at the current moment, otherwise, go to step S2.3;
步骤S2.3:进一步计算定长窗口内的陀螺仪测量向量模的方差var,计算公式如式(2)所示:Step S2.3: further calculate the variance var of the vector mode measured by the gyroscope in the fixed-length window, and the calculation formula is shown in formula (2):
其中,c代表窗口内N个陀螺仪测量向量模的均值,如果var大于设定的第二阈值thv,则判定行人在当前时刻处于非静止状态,否则,判定行人在当前时刻处于静止状态。Among them, c represents the mean value of the vector moduli measured by N gyroscopes in the window. If var is greater than the set second threshold th v , it is determined that the pedestrian is in a non-stationary state at the current moment, otherwise, it is determined that the pedestrian is in a stationary state at the current moment.
在一种实施方式中,步骤S3具体包括:In one embodiment, step S3 specifically includes:
根据传统捷联惯导算法,递推得到当前的姿态,捷联姿态更新方程如下:According to the traditional strapdown inertial navigation algorithm, the current attitude is obtained recursively. The strapdown attitude update equation is as follows:
其中,w(t)为传感器坐标系下惯性测量单元相对于导航坐标系的旋转角速度,qk+1表示tk+1时刻的姿态四元素,qk+1表示tk时刻的姿态四元素。Among them, w(t) is the rotational angular velocity of the inertial measurement unit in the sensor coordinate system relative to the navigation coordinate system, q k+1 represents the four elements of attitude at time t k+1 , and q k+1 represents the four elements of attitude at time t k .
在一种实施方式中,步骤S4具体包括:In one embodiment, step S4 specifically includes:
步骤S4.1:建立当前传感器坐标系下三轴加速度计真实测量向量与姿态估计之间的关系,Step S4.1: Establish the relationship between the real measurement vector of the three-axis accelerometer and the attitude estimation in the current sensor coordinate system,
其中,表示当地重力在导航坐标系下投影的四元数形式,qk+1为时间tk+1时刻姿态四元素,为时间tk+1时刻传感器坐标系下三轴加速度计的真实测量向量的四元数形式;⊙为四元数乘法运算符;in, represents the quaternion form of the projection of local gravity in the navigation coordinate system, q k+1 is the four elements of attitude at time t k+1 , is the quaternion form of the real measurement vector of the three-axis accelerometer in the sensor coordinate system at time tk +1 ; ⊙ is the quaternion multiplication operator;
步骤S4.2:以捷联姿态更新方程构造动态模型,以式(4)构造测量模型,采用卡尔曼滤波器估计当前的姿态信息。Step S4.2: Construct the dynamic model by the strapdown attitude update equation, construct the measurement model by the formula (4), and use the Kalman filter to estimate the current attitude information.
在一种实施方式中,步骤S4.2具体包括:In one embodiment, step S4.2 specifically includes:
步骤S4.2.1:以姿态作为状态变量,根据式(4)和步骤S3中的捷联姿态更新方程建立如下离散四元素卡尔曼滤波模型,Step S4.2.1: Taking the attitude as the state variable, the following discrete four-element Kalman filter model is established according to equation (4) and the strapdown attitude update equation in step S3,
式(5)中,Fk+1表示状态转移矩阵,Hk+1表示状态观测矩阵,Kk+1为系统噪声系数矩阵,Wk+1为观测噪声系数矩阵,δk+1表示IMU采样间隔内的角增量的噪声,εk+1表示三轴加速度计测量噪声,具体定义如下:In formula (5), F k+1 is the state transition matrix, H k+1 is the state observation matrix, K k+1 is the system noise coefficient matrix, W k+1 is the observation noise coefficient matrix, δ k+1 is the IMU The noise of the angular increment within the sampling interval, ε k+1 represents the noise of the triaxial accelerometer measurement, which is specifically defined as follows:
式(6)中,Δθk+1表示从时间tk到tk+1三轴陀螺仪测得的角增量向量,Δθk+1为向量Δθk+1的模,Im表示m×m的单位矩阵;gn是当地重力在导航坐标系下的投影;为时间tk+1时刻载体坐标系下三轴加速度计的输出向量;sk+1和vk+1分别是姿态四元素qk+1的标量部分和矢量部分。In formula (6), Δθ k+1 represents the angular increment vector measured by the three-axis gyroscope from time t k to t k+1 , Δθ k+1 is the modulus of the vector Δθ k+1 , and I m represents m× The identity matrix of m; g n is the projection of the local gravity in the navigation coordinate system; is the output vector of the three-axis accelerometer in the carrier coordinate system at time t k+1 ; s k+1 and v k+1 are the scalar part and the vector part of the four-element attitude q k+ 1 respectively.
步骤S4.2.2:根据离散四元素卡尔曼滤波模型,得到当前时刻改正后的姿态估计,其中,模型中状态向量Xk+1=qk+1,滤波过程中,噪声δk+1的协方矩阵Qk+1和噪声εk+1的协方差矩阵Rk+1按如下方式计算:Step S4.2.2: According to the discrete four-element Kalman filter model, the corrected attitude estimation at the current moment is obtained, in which, the state vector X k+1 =q k+1 in the model, in the filtering process, the co-ordination of noise δ k+1 is The covariance matrix R k+1 of the square matrix Q k+1 and the noise ε k+1 is calculated as follows:
式(7)中,σ1代表IMU采样间隔内三轴陀螺仪测得的角增量误差的标准差,σ2代表三轴加速度计测量噪声的标准差,Mk|k和Mk+1|k为中间变量,按如下方式计算:In formula (7), σ 1 represents the standard deviation of the angular increment error measured by the three-axis gyroscope within the sampling interval of the IMU, σ 2 represents the standard deviation of the measurement noise of the three-axis accelerometer, M k|k and M k+1 |k is an intermediate variable, calculated as follows:
式(8)中,qk|k为卡尔曼滤波上一次姿态估计,qk+1|k为当前模型的姿态预测,Pk|k和Pk+1/k分别为qk|k和qk+1|k的协方差矩阵。In formula (8), q k|k is the last attitude estimation of the Kalman filter, q k+1|k is the attitude prediction of the current model, P k|k and P k+1/k are q k|k and q k+1|k covariance matrix.
在一种实施方式中,所述方法还包括:In one embodiment, the method further includes:
对三轴加速度计进行误差补偿。Error compensation for three-axis accelerometers.
本申请实施例中的上述一个或多个技术方案,至少具有如下一种或多种技术效果:The above-mentioned one or more technical solutions in the embodiments of the present application have at least one or more of the following technical effects:
在本发明提供的方法中,首先,将惯性测量单元安装于行人足部,初始化惯性测量单元在导航坐标系下的初始姿态,然后根据惯性传感器的输出判断行人是否处于静止状态,当行人处于非静止状态时,根据初始姿态以及三轴陀螺仪的测量,采用捷联惯导算法进行姿态更新,递推得到当前的姿态,当行人处于静止状态时,根据捷联惯导算法姿态更新方程构造动态模型、加速度计输出与重力关系构造测量模型,在四元数框架下通过卡尔曼滤波器对当前的姿态进行更新。In the method provided by the present invention, firstly, the inertial measurement unit is installed on the foot of the pedestrian, the initial attitude of the inertial measurement unit in the navigation coordinate system is initialized, and then it is judged whether the pedestrian is in a stationary state according to the output of the inertial sensor. In the static state, according to the initial attitude and the measurement of the three-axis gyroscope, the SINS algorithm is used to update the attitude, and the current attitude is obtained recursively. The model, accelerometer output and gravity relationship construct the measurement model, and update the current attitude through Kalman filter under the quaternion frame.
本发明利用静止时刻加速度计的测量构造姿态估计观测量,在四元素框架下执行卡尔曼滤波器进行数据融合得到精确的姿态信息,从而提供了一种不依赖于外部姿态传感器的、简单可行的行人导航姿态估计方法。解决了现有技术中的方法存在难以提供精确的姿态信息的技术问题。The invention uses the measurement of the accelerometer at the static moment to construct the attitude estimation observation, and executes the Kalman filter under the four-element framework to perform data fusion to obtain accurate attitude information, thereby providing a simple and feasible method that does not depend on external attitude sensors. Pedestrian Navigation Pose Estimation Method. The technical problem that the methods in the prior art are difficult to provide accurate attitude information is solved.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative efforts.
图1为本发明提供的一种基于脚戴式惯性测量单元的室内行人导航姿态估计方法的流程图;1 is a flowchart of an indoor pedestrian navigation attitude estimation method based on a foot-mounted inertial measurement unit provided by the present invention;
图2为本发明一种具体示例中基于脚戴式惯性测量单元的室内行人导航姿态估计方法的流程图;2 is a flowchart of an indoor pedestrian navigation attitude estimation method based on a foot-mounted inertial measurement unit in a specific example of the present invention;
图3为本发明实施例中四元素卡尔曼滤波流程图。FIG. 3 is a flowchart of four-element Kalman filtering in an embodiment of the present invention.
具体实施方式Detailed ways
本发明实施例提供了一种基于脚戴式惯性测量单元的室内行人导航姿态估计方法,用以改善现有技术中的方法存在难以提供精确的姿态信息的技术问题。The embodiments of the present invention provide an indoor pedestrian navigation attitude estimation method based on a foot-mounted inertial measurement unit, which is used to improve the technical problem that it is difficult to provide accurate attitude information in the method in the prior art.
本申请实施例中的技术方案,总体思路如下:The technical scheme in the embodiment of the present application, the general idea is as follows:
提供一种室内行人导航姿态估计方法,该方法利用行人行走过程中静止状态下的加速度计输出构造姿态观测量,在四元素框架下,通过卡尔曼滤波器对捷联惯导算法姿态估计进行改正,可实现任意导航坐标系下行人姿态的有效估计。Provided is an indoor pedestrian navigation attitude estimation method. The method uses the accelerometer output in the stationary state during pedestrian walking to construct attitude observations, and under the four-element framework, the attitude estimation of the strapdown inertial navigation algorithm is corrected by Kalman filter. , which can realize the effective estimation of pedestrian attitude in any navigation coordinate system.
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments These are some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
本实施例提供了一种基于脚戴式惯性测量单元的室内行人导航姿态估计方法,请参见图1,该方法包括:This embodiment provides an indoor pedestrian navigation attitude estimation method based on a foot-mounted inertial measurement unit. Please refer to FIG. 1 , and the method includes:
步骤S1:将惯性测量单元安装于行人足部,确定导航坐标系,对惯性测量单元的零偏误差进行在线标定,初始化惯性测量单元在导航坐标系下的初始姿态,其中,导航坐标系的Z轴与地面垂直。Step S1: Install the inertial measurement unit on the foot of the pedestrian, determine the navigation coordinate system, perform online calibration on the zero offset error of the inertial measurement unit, and initialize the initial attitude of the inertial measurement unit in the navigation coordinate system, wherein the Z of the navigation coordinate system is The axis is perpendicular to the ground.
具体来说,导航坐标系是导航参数解算的框架。在室外,通常以东北天地理坐标系作为导航坐标系,在本发明中,采用自定义的三维直角坐标系作为导航坐标系。自定义坐标系的选择,一方面避免了使用地球坐标系作为导航坐标系所涉及复杂的初始化工作,另一方面也简化了将导航参数转化到室内地图坐标系下所需工作。本发明对自定义坐标系具有如下要求:自定义坐标系Z轴与地面垂直。为了省去导航参数与地图坐标之间的转化工作,可将自定义三维直角坐标系的0XY平面与地图坐标系重合。Specifically, the navigation coordinate system is the framework for the calculation of navigation parameters. Outdoors, the northeast sky geographic coordinate system is usually used as the navigation coordinate system. In the present invention, a self-defined three-dimensional rectangular coordinate system is used as the navigation coordinate system. The choice of the custom coordinate system, on the one hand, avoids the complicated initialization work involved in using the earth coordinate system as the navigation coordinate system, and on the other hand simplifies the work required to convert the navigation parameters into the indoor map coordinate system. The present invention has the following requirements for the self-defined coordinate system: the Z-axis of the self-defined coordinate system is perpendicular to the ground. In order to save the conversion work between navigation parameters and map coordinates, the 0XY plane of the custom 3D Cartesian coordinate system can be overlapped with the map coordinate system.
在一种实施方式中,步骤S1具体包括:In one embodiment, step S1 specifically includes:
步骤S1.1:将惯性测量单元安装于行人足部,自定义三维直角坐标系作为导航坐标系,确保导航坐标系的Z轴与地面垂直;Step S1.1: Install the inertial measurement unit on the foot of the pedestrian, customize the three-dimensional rectangular coordinate system as the navigation coordinate system, and ensure that the Z axis of the navigation coordinate system is perpendicular to the ground;
步骤S1.2:对于三轴陀螺仪,以静止状态下一段预设时间内各轴向输出的平均值作为该轴的零偏误差。对于三轴加速度计,通过静止状态下四个不同位置上一段预设时间内的加速度输出进行标定,标定公式如式(1)所示,Step S1.2: For a three-axis gyroscope, the average value of the output of each axis in a predetermined period of time in a static state is used as the zero offset error of the axis. For a three-axis accelerometer, it is calibrated by the acceleration output at four different positions in a stationary state for a preset period of time. The calibration formula is shown in formula (1),
其中,bx,by,bz分别为三轴加速度计X、Y、Z轴上零偏误差,xi、yi、zi,i=1,2,3,4,分别表示第i个位置上X、Y、Z输出的平均值,mi,i=1,2,3,4表示第i个位置上各轴输出平均值的平方和;Among them, b x , b y , b z are the zero bias errors on the X, Y, and Z axes of the three-axis accelerometer, respectively, x i , y i , z i , i=1, 2, 3, 4, representing the i-th accelerometer, respectively The average value of X, Y, Z outputs at each position, m i , i=1, 2, 3, 4 represents the sum of the squares of the average output values of each axis at the ith position;
步骤S1.3:在初始导航时刻,调整惯性测量单元的位置,使惯性测量单元传感器坐标系与导航坐标系对齐,从而获得惯性测量单元在导航坐标系下的初始姿态,其中,初始姿态的形式为q0=[1,0,0,0]T。Step S1.3: At the initial navigation moment, adjust the position of the inertial measurement unit to align the sensor coordinate system of the inertial measurement unit with the navigation coordinate system, so as to obtain the initial attitude of the inertial measurement unit in the navigation coordinate system, wherein the initial attitude is in the form of is q 0 =[1,0,0,0] T .
具体来说,在行人导航中,所采用的惯性测量单元通常为低成本惯性器件,即使在出厂前已经进行标定,但由于三轴加速度计和三轴陀螺仪的零偏误差稳定性差、重复性差,在每次使用前需要对该项误差进行重新在线标定,以提高传感器的测量精度。三轴陀螺仪在线标定方法如下:以静止状态下预设时间内各轴向输出的平均值作为该轴的零偏误差。对于加速度计,由于存在重力的影响不能按以上方法进行标定,可通过静止状态下,四个不同位置上预设时间内加速度计的输出进行标定。其中,预设时间可以根据实际情况和经验进行选择。Specifically, in pedestrian navigation, the inertial measurement unit used is usually a low-cost inertial device. Even if it has been calibrated before leaving the factory, it has poor stability and repeatability due to the zero bias error of the three-axis accelerometer and the three-axis gyroscope. , the error needs to be re-calibrated online before each use to improve the measurement accuracy of the sensor. The online calibration method of the three-axis gyroscope is as follows: the average value of the output of each axis in a preset time in a static state is used as the zero-bias error of the axis. For the accelerometer, due to the influence of gravity, it cannot be calibrated according to the above method. It can be calibrated by the output of the accelerometer at four different positions within a preset time in a stationary state. Among them, the preset time can be selected according to the actual situation and experience.
在导航坐标系确定后,惯性测量单元在导航坐标系下的初始姿态可按如下方式简单确定:在初始导航时刻,调整惯性测量单元的位置。本发明使惯性测量单元传感器坐标系与导航坐标系对齐,从而初始姿态以四元素形式表示为q0=[1,0,0,0]T。After the navigation coordinate system is determined, the initial attitude of the inertial measurement unit in the navigation coordinate system can be simply determined as follows: at the initial navigation moment, the position of the inertial measurement unit is adjusted. The present invention aligns the inertial measurement unit sensor coordinate system with the navigation coordinate system, so that the initial attitude is expressed in four-element form as q 0 =[1,0,0,0] T .
步骤S2:根据三轴陀螺仪的输出判断行人是否处于静止状态,如果行人处于非静止状态,执行步骤S3,否则执行步骤S4。Step S2: Determine whether the pedestrian is in a stationary state according to the output of the three-axis gyroscope, if the pedestrian is in a non-stationary state, perform step S3, otherwise, perform step S4.
在一种实施方式中,步骤S2具体包括:In one embodiment, step S2 specifically includes:
步骤S2.1:判断当前惯性测量单元输出的序列总长度是否大于或等于预设长度N,如果是,则转至步骤S2.2,判断行人是否处于静止状态;Step S2.1: determine whether the total length of the sequence output by the current inertial measurement unit is greater than or equal to the preset length N, and if so, go to step S2.2 to determine whether the pedestrian is in a stationary state;
步骤S2.2:计算当前三轴陀螺仪测量向量的模||yk-b||,其中,yk为当前三轴陀螺仪测量向量,b为步骤S1中得到的三轴陀螺仪的零偏向量,并判断||yk-b||是否大于设定的第一阈值thm,如果大于,则判定行人在当前时刻处于非静止状态,否则,执行步骤S2.3;Step S2.2: Calculate the modulus of the current three-axis gyroscope measurement vector ||y k -b||, where y k is the current three-axis gyroscope measurement vector, and b is the zero value of the three-axis gyroscope obtained in step S1 bias vector, and determine whether ||y k -b|| is greater than the set first threshold th m , if it is greater, then determine that the pedestrian is in a non-stationary state at the current moment, otherwise, go to step S2.3;
步骤S2.3:进一步计算定长窗口内的陀螺仪测量向量模的方差var,计算公式如式(2)所示:Step S2.3: further calculate the variance var of the vector mode measured by the gyroscope in the fixed-length window, and the calculation formula is shown in formula (2):
其中,c代表窗口内N个陀螺仪测量向量模的均值,如果var大于设定的第二阈值thv,则判定行人在当前时刻处于非静止状态,否则,判定行人在当前时刻处于静止状态。Among them, c represents the mean value of the vector moduli measured by N gyroscopes in the window. If var is greater than the set second threshold th v , it is determined that the pedestrian is in a non-stationary state at the current moment, otherwise, it is determined that the pedestrian is in a stationary state at the current moment.
具体来说,请参见图2,为一种具体示例中室内行人导航姿态估计方法的流程图。本发明根据惯性传感器输出探测行人静止状态,本实施例采用当前三轴陀螺仪输出值幅度和定长窗口内陀螺仪输出值幅度方差进行行人静止状态探测,假定窗口长度为N。如果当前惯性传感器输出序列总长度小于N,无法进行静止探测,则转至步骤S3执行。否则,通过步骤S2.2和步骤S2.3来进行判断。Specifically, please refer to FIG. 2 , which is a flowchart of an indoor pedestrian navigation pose estimation method in a specific example. The present invention detects the stationary state of pedestrians according to the output of the inertial sensor. In this embodiment, the current three-axis gyroscope output value amplitude and the gyroscope output value amplitude variance in the fixed-length window are used to detect the stationary state of pedestrians, and the window length is assumed to be N. If the total length of the current inertial sensor output sequence is less than N, and still detection cannot be performed, go to step S3 to execute. Otherwise, the judgment is made through steps S2.2 and S2.3.
在步骤S2中,第一阈值thm和第二阈值thv按如下方式选择如下:根据步骤S1中为标定三轴陀螺仪零偏误差采集的静态陀螺数据,计算该组数据中所有陀螺仪测量向量的模,并找到最大模值,以其1.5倍作为thm;从第N个数据开始,计算每个陀螺仪测量向量模值与前N-1个陀螺仪测量向量模值所组成的数据集的方差,找到方差最大值,以其1.5倍作为thv。In step S2, the first threshold th m and the second threshold th v are selected as follows: According to the static gyro data collected in step S1 for calibrating the zero bias error of the three-axis gyroscope, calculate all gyroscope measurements in the set of data the modulus of the vector, and find the maximum modulus value, taking 1.5 times of it as th m ; starting from the Nth data, calculate the data composed of the modulus value of each gyroscope measurement vector and the previous N-1 gyroscope measurement vector modulus values The variance of the set, find the maximum variance, and use 1.5 times it as th v .
在步骤S2中,窗口长度N的设置可根据行人正常行走过程中一个完整步态期间的静止时长确定。不同学者的大量实验测试结果表明,行人正常行走期间,一个完整步态中静止时长约为0.3-0.5秒。因此,N可设置为0.3F,F表示惯性传感器的输出频率。本申请发明人通过大量的实践与研究发现:N不能设置太大,太大会导致真实静止状态被漏检;N也不易设置太小,太小在一次步态中将探测到多个静止状态,导致运算开销增大。In step S2, the setting of the window length N can be determined according to the stationary time length of a complete gait period in the normal walking process of the pedestrian. A large number of experimental test results by different scholars show that during normal walking, the resting time in a complete gait is about 0.3-0.5 seconds. Therefore, N can be set to 0.3F, where F represents the output frequency of the inertial sensor. The inventor of the present application found through a lot of practice and research that: N should not be set too large, as too large will lead to missed detection of the real stationary state; N is not easy to be set too small, too small, multiple stationary states will be detected in one gait, lead to increased computational overhead.
当然,在具体实施中,静止状态的探测也可采用其他方式来实现,本发明对此不作特别限制。Of course, in the specific implementation, the detection of the static state can also be implemented in other manners, which is not particularly limited in the present invention.
步骤S3:根据初始姿态以及三轴陀螺仪的测量,采用捷联惯导算法进行姿态更新,递推得到当前的姿态,其中,不考虑地球自转的影响,将三轴陀螺仪的测量作为传感器坐标系下惯性测量单元相对于导航坐标系的旋转角速度。Step S3: According to the initial attitude and the measurement of the three-axis gyroscope, the strapdown inertial navigation algorithm is used to update the attitude, and the current attitude is obtained recursively, wherein the measurement of the three-axis gyroscope is used as the sensor coordinate without considering the influence of the earth's rotation. The rotational angular velocity of the inertial measurement unit under the frame relative to the navigation coordinate system.
具体来说,根据传统捷联惯导算法,递推得到当前的姿态。在递推算法中,需要测量传感器坐标系下惯性测量单元相对于导航坐标系的旋转角速度,而惯性测量单元中的三轴陀螺仪的输出测量为传感器坐标系下惯性测量单元相对于导航坐标系的旋转角速度,因此需要从中扣除地球自转的影响。在自定义导航坐标系下,对三轴陀螺仪测量陀螺仪输出进行地球自转角速度补偿非常困难。但地球自转角速度非常小,大约0.004角度每秒,因此可以忽略不计,本发明中,三轴陀螺仪的测量即为传感器坐标系下惯性测量单元相对于导航坐标系的旋转角速度。Specifically, according to the traditional strapdown inertial navigation algorithm, the current attitude is obtained recursively. In the recursive algorithm, the rotational angular velocity of the inertial measurement unit in the sensor coordinate system relative to the navigation coordinate system needs to be measured, and the output of the three-axis gyroscope in the inertial measurement unit is measured as the inertial measurement unit in the sensor coordinate system relative to the navigation coordinate system. , so the effect of the Earth's rotation needs to be deducted from it. Under the custom navigation coordinate system, it is very difficult to compensate the angular velocity of the earth's rotation for the output of the three-axis gyroscope. However, the angular velocity of the earth's rotation is very small, about 0.004 degrees per second, so it can be ignored. In the present invention, the measurement of the three-axis gyroscope is the rotational angular velocity of the inertial measurement unit in the sensor coordinate system relative to the navigation coordinate system.
在一种实施方式中,步骤S3具体包括:In one embodiment, step S3 specifically includes:
根据传统捷联惯导算法,递推得到当前的姿态,捷联姿态更新方程如下:According to the traditional strapdown inertial navigation algorithm, the current attitude is obtained recursively. The strapdown attitude update equation is as follows:
其中,w(t)为传感器坐标系下惯性测量单元相对于导航坐标系的旋转角速度,qk+1表示tk+1时刻的姿态四元素,qk表示tk时刻的姿态四元素。Among them, w(t) is the rotational angular velocity of the inertial measurement unit in the sensor coordinate system relative to the navigation coordinate system, q k+1 represents the four elements of attitude at time t k+1 , and q k represents the four elements of attitude at time t k .
具体来说,递推姿态更新执行完毕后,判断导航是否结束,如果是,则结束姿态更新,否则返回到步骤S2。Specifically, after the execution of the recursive posture update is completed, it is determined whether the navigation ends, and if so, the posture update is ended, otherwise, it returns to step S2.
步骤S4:根据捷联惯导算法姿态更新方程构造动态模型、加速度计输出与重力关系构造测量模型,在四元数框架下通过卡尔曼滤波器对当前的姿态进行更新。Step S4: constructing a dynamic model according to the attitude update equation of the strapdown inertial navigation algorithm, constructing a measurement model based on the relationship between the output of the accelerometer and the gravity, and updating the current attitude through the Kalman filter under the quaternion frame.
具体来说,在四元数框架下通过卡尔曼滤波器进行姿态更新。根据捷联惯导算法可以推得当前的姿态,但是由于传感器误差,姿态存在较大的误差。本发明利用行人静止状态下的三轴加速度计构造姿态观测量对当前姿态进行改正。Specifically, the pose update is performed by a Kalman filter under the quaternion framework. According to the strapdown inertial navigation algorithm, the current attitude can be deduced, but due to the sensor error, there is a large error in the attitude. The present invention uses the three-axis accelerometer in the stationary state of the pedestrian to construct the attitude observation to correct the current attitude.
其中,步骤S4具体包括:Wherein, step S4 specifically includes:
步骤S4.1:建立传感器坐标系下当前三轴加速度计真实测量向量(不考虑零偏及其他误差)与姿态估计之间的关系,Step S4.1: Establish the relationship between the real measurement vector of the current three-axis accelerometer in the sensor coordinate system (without considering the zero offset and other errors) and the attitude estimation,
其中,表示当地重力在导航坐标系下投影的四元数形式,qk+1为时间tk+1时刻姿态四元素,为时间tk+1时刻传感器坐标系下三轴加速度计的真实测量向量的四元数形式;⊙为四元数乘法运算符;in, represents the quaternion form of the projection of local gravity in the navigation coordinate system, q k+1 is the four elements of attitude at time t k+1 , is the quaternion form of the real measurement vector of the three-axis accelerometer in the sensor coordinate system at time tk +1 ; ⊙ is the quaternion multiplication operator;
步骤S4.2:以捷联姿态更新方程构造动态模型,以式(4)构造测量模型,采用卡尔曼滤波器估计当前的姿态信息。Step S4.2: Construct the dynamic model by the strapdown attitude update equation, construct the measurement model by the formula (4), and use the Kalman filter to estimate the current attitude information.
具体来说,请参见图3,为四元素卡尔曼滤波流程图。根据步骤S3中的公式可以递推得到当前姿态。但是,但是由于传感器误差,如此得到的姿态估计误差较大,需要利用可靠的外部观测量进行改正。在行人静止状态下,三轴加速度计的测量仅仅反映地球重力影响(也就是测量值等于重力在当前坐标系下的投影),而重力在导航坐标系下的投影已知,于是可建立当前三轴加速度计测量与姿态估计之间的关系。Specifically, please refer to FIG. 3 , which is a flowchart of the four-element Kalman filter. The current posture can be obtained recursively according to the formula in step S3. However, due to the sensor error, the attitude estimation error obtained in this way is relatively large, which needs to be corrected by using reliable external observations. When the pedestrian is stationary, the measurement of the three-axis accelerometer only reflects the influence of the earth's gravity (that is, the measurement value is equal to the projection of gravity in the current coordinate system), and the projection of gravity in the navigation coordinate system is known, so the current three-axis accelerometer can be established. Relationship between axis accelerometer measurements and attitude estimation.
为当地重力在导航坐标系下投影的四元数形式,根据导航坐标系的定义,重力在导航坐标系下的投影是已知的。三维向量通过补充一个0元素可转为四元数形式,如假设导航坐标系垂直地面向上,重力在导航坐标系下投影为gn=[0 0 -g]T,改写成四元数形式为室内导航应用中,不考虑导航区域内的重力变化,重力g为常数。 It is the quaternion form of the projection of the local gravity in the navigation coordinate system. According to the definition of the navigation coordinate system, the projection of the gravity in the navigation coordinate system is known. A three-dimensional vector can be converted into a quaternion form by adding a 0 element. For example, assuming that the navigation coordinate system is vertically upward, and the gravity is projected under the navigation coordinate system as g n = [0 0 -g] T , rewritten into the quaternion form as In indoor navigation applications, the gravity change in the navigation area is not considered, and the gravity g is constant.
在一种实施方式中,步骤S4.2具体包括:In one embodiment, step S4.2 specifically includes:
步骤S4.2.1:以姿态作为状态变量,根据式(4)和步骤S3中的捷联姿态更新方程建立如下离散四元素卡尔曼滤波模型,Step S4.2.1: Taking the attitude as the state variable, the following discrete four-element Kalman filter model is established according to equation (4) and the strapdown attitude update equation in step S3,
式(5)中,Fk+1表示状态转移矩阵,Hk+1表示状态观测矩阵,Kk+1为系统噪声系数矩阵,Wk+1为观测噪声系数矩阵,δk+1表示IMU采样间隔内的角增量的噪声,εk+1表示三轴加速度计测量噪声,具体定义如下:In formula (5), F k+1 is the state transition matrix, H k+1 is the state observation matrix, K k+1 is the system noise coefficient matrix, W k+1 is the observation noise coefficient matrix, δ k+1 is the IMU The noise of the angular increment within the sampling interval, ε k+1 represents the noise of the triaxial accelerometer measurement, which is specifically defined as follows:
式(6)中,Δθk+1表示从时间tk到tk+1三轴陀螺仪测得的角增量向量,Δθk+1为向量Δθk+1的模,Im表示m×m的单位矩阵;gn是当地重力在导航坐标系下的投影;为时间tk+1时刻载体坐标系下三轴加速度计的输出向量;sk+1和vk+1分别是姿态四元素qk+1的标量部分和矢量部分。In formula (6), Δθ k+1 represents the angular increment vector measured by the three-axis gyroscope from time t k to t k+1 , Δθ k+1 is the modulus of the vector Δθ k+1 , and I m represents m× The identity matrix of m; g n is the projection of the local gravity in the navigation coordinate system; is the output vector of the three-axis accelerometer in the carrier coordinate system at time t k+1 ; s k+1 and v k+1 are the scalar part and the vector part of the four-element attitude q k+ 1 respectively.
步骤S4.2.2:根据离散四元素卡尔曼滤波模型,得到当前时刻改正后的姿态估计,其中,模型中状态向量Xk+1=qk+1,滤波过程中,噪声δk+1的协方矩阵Qk+1和噪声εk+1的协方差矩阵Rk+1按如下方式计算:Step S4.2.2: According to the discrete four-element Kalman filter model, the corrected attitude estimation at the current moment is obtained, in which, the state vector X k+1 =q k+1 in the model, in the filtering process, the co-ordination of noise δ k+1 is The covariance matrix R k+1 of the square matrix Q k+1 and the noise ε k+1 is calculated as follows:
式(7)中,σ1代表IMU采样间隔内三轴陀螺仪测得的角增量误差的标准差,σ2代表三轴加速度计测量噪声的标准差,Mk|k和Mk+1|k为中间变量,按如下方式计算:In formula (7), σ 1 represents the standard deviation of the angular increment error measured by the three-axis gyroscope within the sampling interval of the IMU, σ 2 represents the standard deviation of the measurement noise of the three-axis accelerometer, M k|k and M k+1 |k is an intermediate variable, calculated as follows:
式(8)中,qk|k为卡尔曼滤波上一次姿态估计,qk+1|k为当前模型的姿态预测,Pk|k和Pk+1/k分别为qk|k和qk+1|k的协方差矩阵。In formula (8), q k|k is the last attitude estimation of the Kalman filter, q k+1|k is the attitude prediction of the current model, P k|k and P k+1/k are q k|k and q k+1|k covariance matrix.
具体来说,在该滤波器中系统模型为非线性化方程,要使用传统卡尔曼滤波器进行数据融合非常复杂,因此本发明在四元素框架下执行卡尔曼滤波器。以姿态四元素为状态量,建立离散四元素卡尔曼滤波模型。滤波执行完毕后,重新回到步骤S2。Specifically, the system model in the filter is a nonlinear equation, and it is very complicated to use the traditional Kalman filter for data fusion, so the present invention implements the Kalman filter under a four-element framework. Taking the four elements of attitude as the state quantity, a discrete four-element Kalman filter model is established. After the filtering is completed, go back to step S2.
本发明中四元素框架下执行卡尔曼滤波器与普通卡尔曼滤波器相比,不同之处是:二者在不同的框架下执行的,一个是普通的三维向量框架,一个是四元素框架下,不同框架下的运算法则不一样,四元素卡尔曼滤波可以有效避免传统卡尔曼滤波的复杂线性化问题。Compared with the ordinary Kalman filter, the Kalman filter executed under the four-element framework in the present invention is different in that the two are executed under different frameworks, one is an ordinary three-dimensional vector framework, and the other is a four-element framework. , the algorithms under different frameworks are different, and the four-element Kalman filter can effectively avoid the complex linearization problem of the traditional Kalman filter.
为了获得准确可靠的三轴加速度测量,在一种实施方式中,所述方法还包括:对三轴加速度计进行误差补偿。In order to obtain accurate and reliable triaxial acceleration measurement, in one embodiment, the method further includes: performing error compensation on the triaxial accelerometer.
具体来说,本发明考虑了三轴加速度计误差随时间的变化。具体实施过程中,可以采用任意可行方法进行三轴加速度计误差补偿,本发现对此不作特别限制。在本实施例中,提供如下补偿方法。将三轴加速度计各项误差影响统一到零偏误差中,建立零偏误差随机游走模型,Specifically, the present invention takes into account the variation of the error of the three-axis accelerometer over time. In the specific implementation process, any feasible method can be used to compensate the error of the three-axis accelerometer, which is not particularly limited in the present invention. In this embodiment, the following compensation method is provided. The error effects of the three-axis accelerometer are unified into the zero bias error, and the zero bias error random walk model is established.
bk+1=bk+ηk+1 (9)b k+1 = b k + η k+1 (9)
式(9)中,bk+1和bk代表当前时刻和上一时刻三轴加速度计的零偏误差,ηk+1为当前噪声。采用零速更新方法,将行人静止状态下的速度作为观测量,行人速度和三轴加速度计偏差作为状态量,可建立如下离散卡尔曼滤波模型估计三轴加速度计的零偏大小,In formula (9), b k+1 and b k represent the zero bias error of the three-axis accelerometer at the current moment and the previous moment, and η k+1 is the current noise. Using the zero-velocity update method, taking the pedestrian's stationary speed as the observed quantity, and the pedestrian's velocity and the triaxial accelerometer deviation as the state quantities, the following discrete Kalman filter model can be established to estimate the zero-bias size of the triaxial accelerometer:
式(10)中,xk是由行人当前速度和三轴加速度计偏差组成的状态向量,Ak+1是状态转移矩阵,Bk+1是状态观测矩阵,ωk+1和分别为系统噪声和观测噪声。Ak+1和Bk+1定义如下,In formula (10), x k is the state vector composed of the pedestrian’s current speed and the three-axis accelerometer deviation, A k+1 is the state transition matrix, B k+1 is the state observation matrix, ω k+1 and are system noise and observation noise, respectively. A k+1 and B k+1 are defined as follows,
式中,T是惯性传感器单元输出时间间隔,表示传感器坐标系到导航坐标系的方向余弦矩阵,I3×1和03×1分别代表元素全为1的三维列向量和元素全为0的三维列向量。四元素卡尔曼滤波执行完毕,判断导航是否结束,如是则结束姿态更新,如否则返回到步骤S2。where T is the output time interval of the inertial sensor unit, Represents the direction cosine matrix from the sensor coordinate system to the navigation coordinate system, I 3×1 and 0 3×1 represent the three-dimensional column vector with all 1 elements and the three-dimensional column vector with all 0 elements, respectively. After the execution of the four-element Kalman filter is completed, it is judged whether the navigation ends, if so, the attitude update is ended, otherwise, return to step S2.
本申请实施例中的上述一个或多个技术方案,至少具有如下一种或多种技术效果:The above-mentioned one or more technical solutions in the embodiments of the present application have at least one or more of the following technical effects:
本发明利用静止时刻加速度计的测量构造姿态估计观测量,在四元素框架下执行卡尔曼滤波器进行数据融合得到精确的姿态信息,从而提供了一种不依赖于外部姿态传感器的、简单可行的行人导航姿态估计方法。The invention uses the measurement of the accelerometer at the static moment to construct the attitude estimation observation, and executes the Kalman filter under the four-element framework to perform data fusion to obtain accurate attitude information, thereby providing a simple and feasible method that does not depend on external attitude sensors. Pedestrian Navigation Pose Estimation Method.
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。Although preferred embodiments of the present invention have been described, additional changes and modifications to these embodiments may occur to those skilled in the art once the basic inventive concepts are known. Therefore, the appended claims are intended to be construed to include the preferred embodiment and all changes and modifications that fall within the scope of the present invention.
显然,本领域的技术人员可以对本发明实施例进行各种改动和变型而不脱离本发明实施例的精神和范围。这样,倘若本发明实施例的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present invention without departing from the spirit and scope of the embodiments of the present invention. Thus, provided that these modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910615908.6A CN110398245B (en) | 2019-07-09 | 2019-07-09 | Indoor pedestrian navigation attitude estimation method based on foot-worn inertial measurement unit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910615908.6A CN110398245B (en) | 2019-07-09 | 2019-07-09 | Indoor pedestrian navigation attitude estimation method based on foot-worn inertial measurement unit |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110398245A CN110398245A (en) | 2019-11-01 |
CN110398245B true CN110398245B (en) | 2021-04-16 |
Family
ID=68324071
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910615908.6A Expired - Fee Related CN110398245B (en) | 2019-07-09 | 2019-07-09 | Indoor pedestrian navigation attitude estimation method based on foot-worn inertial measurement unit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110398245B (en) |
Families Citing this family (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110887481B (en) * | 2019-12-11 | 2020-07-24 | 中国空气动力研究与发展中心低速空气动力研究所 | Carrier dynamic attitude estimation method based on MEMS inertial sensor |
CN110916577B (en) * | 2019-12-17 | 2021-11-09 | 小狗电器互联网科技(北京)股份有限公司 | Robot static state judgment method and device and robot |
CN111366154B (en) * | 2020-03-26 | 2022-05-17 | 三一建筑机器人(西安)研究院有限公司 | Course angle determining method and device and electronic equipment |
CN111721282B (en) * | 2020-05-09 | 2022-05-03 | 中国人民解放军63686部队 | Strapdown inertial navigation coordinate system dynamic alignment method based on astronomical navigation principle |
CN111780785A (en) * | 2020-07-20 | 2020-10-16 | 武汉中海庭数据技术有限公司 | Zero offset self-calibration method and system for vehicle-mounted MEMSIMU |
CN112082529A (en) * | 2020-07-29 | 2020-12-15 | 上海谷感智能科技有限公司 | Small household appliance attitude measurement method based on inertial sensor and attitude identification module |
CN112781622B (en) * | 2020-12-31 | 2022-07-05 | 厦门华源嘉航科技有限公司 | Pedestrian navigation MIMU installation error online calibration method |
CN113008230B (en) * | 2021-02-26 | 2024-04-02 | 广州市偶家科技有限公司 | Intelligent wearable device and posture orientation recognition method and device thereof |
CN112945240B (en) * | 2021-03-16 | 2022-06-07 | 北京三快在线科技有限公司 | Method, device and equipment for determining positions of feature points and readable storage medium |
CN114018250B (en) * | 2021-10-18 | 2024-05-03 | 杭州鸿泉物联网技术股份有限公司 | Inertial navigation method, electronic device, storage medium and computer program product |
CN114563018B (en) * | 2022-03-04 | 2024-06-25 | 闪耀现实(无锡)科技有限公司 | Method and apparatus for calibrating a head mounted display device |
CN115645884A (en) * | 2022-05-20 | 2023-01-31 | 北京航天时代光电科技有限公司 | A system for measuring human motion attitude |
CN115574812A (en) * | 2022-08-31 | 2023-01-06 | 凌宇科技(北京)有限公司 | Attitude data processing method, device, electronic device and storage medium |
CN119555067B (en) * | 2025-01-26 | 2025-05-23 | 中国科学院空天信息创新研究院 | Human body trunk inertial navigation autonomous positioning method and device based on inverted pendulum model |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102927994A (en) * | 2012-10-23 | 2013-02-13 | 北京航空航天大学 | Method of quickly calibrating oblique redundant strapdown inertial navigation system |
CN103616030A (en) * | 2013-11-15 | 2014-03-05 | 哈尔滨工程大学 | Autonomous navigation system positioning method based on strapdown inertial navigation resolving and zero-speed correction |
CN106705968A (en) * | 2016-12-09 | 2017-05-24 | 北京工业大学 | Indoor inertial navigation algorithm based on posture recognition and step length model |
CN109163721A (en) * | 2018-09-18 | 2019-01-08 | 河北美泰电子科技有限公司 | Attitude measurement method and terminal device |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9002565B2 (en) * | 2003-03-20 | 2015-04-07 | Agjunction Llc | GNSS and optical guidance and machine control |
RU2539140C1 (en) * | 2013-08-02 | 2015-01-10 | Олег Степанович Салычев | Integrated strapdown system of navigation of average accuracy for unmanned aerial vehicle |
CN106949889A (en) * | 2017-03-17 | 2017-07-14 | 南京航空航天大学 | For the inexpensive MEMS/GPS integrated navigation systems and method of pedestrian navigation |
-
2019
- 2019-07-09 CN CN201910615908.6A patent/CN110398245B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102927994A (en) * | 2012-10-23 | 2013-02-13 | 北京航空航天大学 | Method of quickly calibrating oblique redundant strapdown inertial navigation system |
CN103616030A (en) * | 2013-11-15 | 2014-03-05 | 哈尔滨工程大学 | Autonomous navigation system positioning method based on strapdown inertial navigation resolving and zero-speed correction |
CN106705968A (en) * | 2016-12-09 | 2017-05-24 | 北京工业大学 | Indoor inertial navigation algorithm based on posture recognition and step length model |
CN109163721A (en) * | 2018-09-18 | 2019-01-08 | 河北美泰电子科技有限公司 | Attitude measurement method and terminal device |
Also Published As
Publication number | Publication date |
---|---|
CN110398245A (en) | 2019-11-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110398245B (en) | Indoor pedestrian navigation attitude estimation method based on foot-worn inertial measurement unit | |
US10352959B2 (en) | Method and system for estimating a path of a mobile element or body | |
CN110553646B (en) | Pedestrian navigation method based on inertia, magnetic heading and zero-speed correction | |
Rohac et al. | Calibration of low-cost triaxial inertial sensors | |
CN105300379B (en) | A kind of Kalman filtering Attitude estimation method and system based on acceleration | |
CN111721288B (en) | Zero offset correction method and device for MEMS device and storage medium | |
CN109827568B (en) | Estimation method of pedestrian height position in multi-storey building based on MEMS sensor | |
CN107490378B (en) | Indoor positioning and navigation method based on MPU6050 and smart phone | |
CN108007477B (en) | Inertial pedestrian positioning system error suppression method based on forward and reverse filtering | |
CN105043385A (en) | Self-adaption Kalman filtering method for autonomous navigation positioning of pedestrians | |
Li et al. | Research on multi-sensor pedestrian dead reckoning method with UKF algorithm | |
CN110057356B (en) | Method and device for locating vehicle in tunnel | |
CN110686671A (en) | Indoor 3D real-time positioning method and device based on multi-sensor information fusion | |
CN115767412A (en) | Indoor positioning method integrating ultra-wideband and inertial measurement unit | |
Zhu et al. | f²IMU-R: pedestrian navigation by low-cost foot-mounted dual IMUs and interfoot ranging | |
Woyano et al. | Evaluation and comparison of performance analysis of indoor inertial navigation system based on foot mounted IMU | |
Hasan et al. | Smart phone based sensor fusion by using Madgwick filter for 3D indoor navigation | |
CN110672095A (en) | An indoor autonomous positioning algorithm for pedestrians based on micro-inertial navigation | |
RU2443978C1 (en) | Method of determining spatial coordinates of mobile objects and integrated navigation system for realising said method | |
Guo et al. | The usability of MTI IMU sensor data in PDR indoor positioning | |
CN111947685A (en) | Coarse alignment method for movable base of polar region grid coordinate system | |
Zhang et al. | An integrated positioning method with IMU/UWB based on geometric constraints of foot-to-foot distances | |
Zhu et al. | A pedestrian navigation system by low-cost dual foot-mounted IMUs and inter-foot ranging | |
Gui et al. | Heading constraint algorithm for foot-mounted PNS using low-cost IMU | |
Mikov et al. | Data processing algorithms for MEMS based multi-component inertial measurement unit for indoor navigation |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20210416 |
|
CF01 | Termination of patent right due to non-payment of annual fee |