Kinematics and Inverse operation

Hello,

I was wondering whether kinematic data is saved (in a .h5 file) when I run the inverse study?

I want to get the joint angles and open it in matlab, but I cant find the kinematic data after I ran an inverse study (muscle forces, etc. are available in the .h5 file).

If the kinematic data isn’t stored in the h5 file after an inverse study, is it possible to run the kinematic and inverse study after each other and then save it in 1 file?

Thanks in advance!

Hi Felix

The kinematic data should be saved after running Inverse dynamics and saving the output as an h5 file.

The place where you find the joint angles are in Output.Model.HumanModel.Interface…

Hope this help.

Best regards,
Kasper

Hi again

I think I was too quick answering your question. I just ran a model, saved the h5 file and looked at it with with HDFCompass.

In the h5 viewer the “Output.Model.HumanModel.Interface” folder is empty. This is because it is a reference to somewhere else where the data is.

You can find the correct location in both AnyBody and an h5 viewer.

  • In AnyBody the folder equals the location of the data referenced.
  • In the H5 file, you can look at the attributes for the empty folder, where the “RefTarget” will give the location of the data.

In my case, the reference was “Main.Study.Output.Model.HumanModel.Left.ShoulderArm.InterfaceFolder”. So this is the place where you can find joint angles.

Cheers,
Kasper

Hello, thanks for the reply. I found the kinematic data in the following folder after running an inverse dynamic study:

‘/Output/BodyModel/Right/ShoulderArm/InterfaceFolder/WristFlexion/Pos’

Thanks for the help