Where to find KAM data

New project for OpenCap, which is a new software package to estimate 3D human movement dynamics from smartphone videos. OpenCap strongly relies on OpenSim.
POST REPLY
User avatar
Bernhard Faerber
Posts: 27
Joined: Thu Nov 10, 2022 1:57 am

Where to find KAM data

Post by Bernhard Faerber » Wed Feb 21, 2024 11:33 am

Dear OpenCap Team,

I am currently using the example_kinetics.py script you provide on GitHub to run dynamic simulations on a set of data I collected.

The script is executing flawlessly so far and during the final stages of the code "Computing knee adduction moments" is displayed in the console.

For one trial so far I have found a .sto file "inverse_dynamics" in my results folder which included data for knee adduction moments.
However for all other trials this .sto file is lacking and the "kinetics_trialname" .MOT file does not contain data on knee adduction moments.

What could be the cause for this? I have checked all possible directories on my drive to make sure I did not overlook the desired .sto file.

I have attached screenshots of the console output and the current content of my results folder.

Thank you in advance for your support.

Best

Bernhard
Attachments
current results folder kinetics.jpeg
current results folder kinetics.jpeg (37.98 KiB) Viewed 764 times
console output kinetics.jpeg
console output kinetics.jpeg (402.46 KiB) Viewed 764 times

Tags:

User avatar
Antoine Falisse
Posts: 438
Joined: Wed Jan 07, 2015 2:21 am

Re: Where to find KAM data

Post by Antoine Falisse » Thu Feb 22, 2024 10:27 am

Hey,

The KAM results are saved in the optimaltrajectories.npy file.

Best,
Antoine

User avatar
Bernhard Faerber
Posts: 27
Joined: Thu Nov 10, 2022 1:57 am

Re: Where to find KAM data

Post by Bernhard Faerber » Fri Feb 23, 2024 9:07 am

Hi Antoine,

thanks for your swift reply.

I am having some trouble when trying to access the data stored in that .npy file.
I'm currently working in spyder IDE an when trying open up the loaded data I get an error "object arrays without shape are not supported".
I can print the contents of the loaded .npy file, but I haven't been able to extract any data of interest to me so far.

Can you share some insights as to how you have you been working with these files?

Best

Bernhard

User avatar
Antoine Falisse
Posts: 438
Joined: Wed Jan 07, 2015 2:21 am

Re: Where to find KAM data

Post by Antoine Falisse » Fri Feb 23, 2024 9:29 am

Hi, this should help: https://github.com/stanfordnmbl/opencap ... D.py#L1854
Best, Antoine

User avatar
Bernhard Faerber
Posts: 27
Joined: Thu Nov 10, 2022 1:57 am

Re: Where to find KAM data

Post by Bernhard Faerber » Sun Feb 25, 2024 4:33 am

Hi, that's exactly what I was searching for. Thank you!

I have selected the time_window for each trial based on force plate data from a marker-based system I used simultaneously alongside OpenCap (I aligned the data from both systems prior to this).
These time windowa are ~600ms long for most trials I simulated so far.

When inspecting the kinetic & GRF data, the files contain only ~60 lines of data, which makes we wonder:
Which frequency is the simulated kinetic & GRF data "sampled"/simulated at?

Thanks in advance.

Best
Bernhard

User avatar
Antoine Falisse
Posts: 438
Joined: Wed Jan 07, 2015 2:21 am

Re: Where to find KAM data

Post by Antoine Falisse » Mon Feb 26, 2024 9:33 am

Hey, take a look at this post: viewtopicPhpbb.php?f=2385&t=17595&p=0&s ... 6803f19f65

Antoine

POST REPLY