Gait-Tracking-With-x-IMU icon indicating copy to clipboard operation
Gait-Tracking-With-x-IMU copied to clipboard

Navigation frame help ?

Open Abdul-Sajeed opened this issue 3 years ago • 8 comments

Hello, i have been using accelerometer and gyroscope data to determine and track position of ground vehicle. But when i see script position data figure is some what confusing. I would like to know what navigation frame is been used for position ? thanks.

Abdul-Sajeed avatar Oct 06 '20 15:10 Abdul-Sajeed

The code uses NWU. X= North, Y = West, Z = Up.

xioTechnologies avatar Oct 06 '20 22:10 xioTechnologies

Thank you for the reply, Is the frame fixed ? Where is the origin of the frame ? and In your case, For straight line, stairs and corridor, and for spiral stairs. Translation position in 'm' was close to real distance ?

Abdul-Sajeed avatar Oct 09 '20 18:10 Abdul-Sajeed

The origin is the starting position. The accuracy for the walks was not evaluated.

xioTechnologies avatar Oct 13 '20 11:10 xioTechnologies

First, thank you, @xioTechnologies, for the code and your feedback. I'd like to get an answer if it's possible! As I understand it, the frame of reference is the NWU land frame. And you chose the origin as the starting position. How did you choose it? Is it in the code? If yes, in which part of the code? Thank you for your collaboration

Sinou12 avatar Jun 22 '22 14:06 Sinou12

The origin is a displacement of x=0, y=0, z=0. It is initialised to zero on line 194.

xioTechnologies avatar Jun 22 '22 15:06 xioTechnologies

Normally, there is the sensor frame and the reference frame. So to calculate the position in the reference frame, we must transform the values of the acceleration and the angles of rotation to calculate the quaternion. So according to your answer, the reference frame moves every time the foot touches the ground and it is initialized to X=0, Y=0 and Z=0. And calculate the position of this frame? The diagram in attachment for more clarification.

Thank you for your feedback.

Diagram

Sinou12 avatar Jun 22 '22 16:06 Sinou12

I am unable to follow your reasoning. I suggest that you run the code with the example data, perhaps that will clear things up for you. I also suggest that you instead use the Python version as the code may be easier to follow.

xioTechnologies avatar Jun 22 '22 16:06 xioTechnologies

All right, thank you.

Sinou12 avatar Jun 22 '22 16:06 Sinou12