xioTechnologies/Gait-Tracking-With-x-IMU

About the time data

Closed this issue · 14 comments

First thanks a lot for the code.But when I tried to use the code with my own IMU data I ran into some problems: data from my csv file can be imported but the results came out to be null arrays, and I thought it might have something to do with time array. The time array is used in the program but I haven't found any time data in the example csv files provided, and I'm a bit confused where the time array came from, are they simply generated from the startTime and stopTime or what?
Much appreciated for the reply!

What Sensor you Use?

I use a x-sens IMU sensor

Check the Gyro Output units,
check it if it's in deg/s or it is in rad/s, i had the same issue

Thanks a lot for your advice! I did ignore that and now I have corrected the data to deg/s, but it still doesn't work. How did you fix your issue? Is there anything else to keep in mind?

there may be other issues too, for instance the Sample Rate is crucial too. you can send me your sample data if you want and i can review it if you mind, of course it will take within next two weeks,

Thanks a lot!! Here is my data, and please inform me if there's any problem with it. The data include a csv file and the original txt data converted from the rosbag file the sensor generated. Much appreciated for your kind help!
myIMUdata.zip

By the way, the sample rate I used was 256Hz, the same as the example data.

Hello guys, thank you very much for the codes, I am working on a project where I have to measure the length of the step for gait analysis, so I need to measure the position from the acceleration using (BNO55 IMUs) .....
I want to ask you which modifications must be imported to the matlab code or C# code in order to do my project ???
Thanks in advance

I suggest you open another issue about your problem

I recorded another data set with magnetic data, at sample rate of 100Hz this time, but it still didn't work. I'd really appreciate it if anyone can view my data and figure out what's the problem with it
MyData-sampleRate100.zip

By the way, there's another problem I am confused about: How come the packet number of the example data discontinuous? Since I have problem generating the right time vector, I wonder if there's something to do with my packet number, but my packet number is almost continuous while it seems to be lots of packets missing in the example data. For example there's 15154 packets in stairsAndCorridor dataset, but the packet number reached 23026. Is there anything to notice about packet numbers? Thanks in advance!

OK,this problem is fixed, it's because I misunderstood the meaning of startTime and stopTime.

@ZM-NEU, could you explain what you found the meaning of startTime and stopTime to be? I'm running into the same issue. Thanks in advance!

@TAREMC ,it's simple: startTime and stopTime help you pick up the part of data you want to use from your dataset. startTime is where the data you want to process and visualize starts while stopTime is where it ends, you can change them to choose different part of data in your dataset. They are measured in seconds, computed by dividing the number of data packets by your sample rate, so also make sure to set the sample rate to that you used recording the dataset.