简体   繁体   English

Position 仅加速跟踪

[英]Position Tracking with Acceleration Only

i am working on a Project where i want to receive position data by using an IMU mounted on a shoe.我正在做一个项目,我想通过使用安装在鞋子上的 IMU 接收 position 数据。 So i found out that i have to use a kalmanfilter to get valid position data.所以我发现我必须使用卡尔曼滤波器来获得有效的 position 数据。

And thats the point where i begin to struggle.这就是我开始挣扎的地方。

The most examples use a 6 DoF-IMU to calculate the position using a Kalman Filter.大多数示例使用 6 DoF-IMU 使用卡尔曼滤波器计算 position。 But i tried to use the 9-DoF IMU ICM20948 from Invensense.但我尝试使用 Invensense 的 9-DoF IMU ICM20948。 It calculates with Mag, Acc and Gyro to out put the Quaternion.它使用 Mag、Acc 和 Gyro 计算输出四元数。 Then i calculate the Acceleration in North,East,Down-Direction with the raw XYZ-Acceleration and the given Quaternions.然后我用原始的 XYZ 加速度和给定的四元数计算北、东、下方向的加速度。

So my input for the Kalman Filter ist only the Acceleration in North,East and Down direction.所以我对卡尔曼滤波器的输入只有北、东和下方向的加速度。 How do i have to set the Kalman Filter-Matrices to get valid Position-Data in these 3 directions?我如何设置卡尔曼滤波器矩阵才能在这 3 个方向上获得有效的位置数据?

I tried it on my own based on a example i found online but it doesnt seem to work and the position data is not plausible:我根据我在网上找到的一个示例自己尝试了它,但它似乎不起作用,并且 position 数据不可信:

x = [ pos_n , pos_e , pos_d , vel_n , vel_e ,vel_d ]

A = [1,0,0,T,0,0 ; 
     0,1,0,0,T,0 ; 
     0,0,1,0,0,T ; 
     0,0,0,1,0,0 ; 
     0,0,0,0,1,0 ; 
     0,0,0,0,0,1 ; ]

Bu = [ an*(T * T/2) ; ae * (T * T/2) ; ad * (T * T/2) ; an * T ; ae * T ; ad * T ]


H = [ 0,0,0,1,0,0  ;  0,0,0,0,1,0  ;  0,0,0,0,0,1 ]

z = [ -vel_n, -vel_e , -vel_d ]

R = [sigma_vel^2 , 0 , 0 ; 0 , sigma_vel^2 , 0 ; 0, 0 , sigma_vel^2]

P = 6x6 unit matrix

Q = 6x6 matrix with sigma_acceleration^2 on the main diagonal.

I implemented following measurement algorithm:我实现了以下测量算法:

在此处输入图像描述

I just use a different measurement update equation:我只是使用不同的测量更新方程:

x(k) = x(k-1) + K*z x(k) = x(k-1) + K*z

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM