Time is not corresponding between IK result and GRF data

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Chiho Ng
Posts: 19
Joined: Mon Aug 03, 2020 7:48 pm

Time is not corresponding between IK result and GRF data

Post by Chiho Ng » Sun Sep 04, 2022 6:54 pm

Dear all:

I have a question about ID(Inverse Dynamic) calculation: if my input data, IK(Inverse Kinematic) result and GRF(Ground Reaction Force) data do not have the same time stamp, what would OpenSim do during ID?
I have come up with 2 guesses:
1.Find the corresponding point between IK and GRF data by comparing the time stamp and interpolation, and then use these data to calculate implement ID, if the sampling rate of GRF data is smaller than IK result, fill the gaps of GRF with 0;
2.Just use the IK and GRF data line by line and ignore the time stamp.
Does anyone know the real process of ID in this situation?
Appreciate any answers! Thank you so much!

Chiho Ng
2022.9.5

Tags:

User avatar
John Davis
Posts: 56
Joined: Mon Aug 26, 2019 7:42 am

Re: Time is not corresponding between IK result and GRF data

Post by John Davis » Sun Sep 04, 2022 7:35 pm

OpenSim will use spline interpolation to get the GRF at each timepoint from the IK result if the timestamps don't match up exactly. You'll get an ID results file with one frame of ID results for each frame of IK, and the ID timestamps will exactly match the IK timestamps. There won't be any zeros in between. It works great, and is one nice little advantage of OpenSim--you don't need your GRF to be sampled at an integer multiple of your marker data like you do in some other software.

User avatar
Chiho Ng
Posts: 19
Joined: Mon Aug 03, 2020 7:48 pm

Re: Time is not corresponding between IK result and GRF data

Post by Chiho Ng » Sun Sep 04, 2022 8:21 pm

Thank you so much for your reply Mr. Davis! It is really helpful!

POST REPLY