OpenSim example_kinetics.py

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Julian Ng-Thow-Hing
Posts: 1
Joined: Sun Dec 25, 2022 8:09 pm

OpenSim example_kinetics.py

Post by Julian Ng-Thow-Hing » Tue Dec 27, 2022 5:42 pm

Hi everyone,

I collected data on OpenCap with motions such as squats and attempted to run them through example_kinetics.py (found on https://github.com/stanfordnmbl/opencap-processing). I adjusted the script to my session_id, trial name, etc. in "example_kinetics.py".

I ran the script but encountered a few errors. First, I got the error: "1860 entries removed for the polynomial fitting because of bad hip and ankle moment arms - mostly because of bad scaling of wrapping surfaces". In addition, the objective value does not seem to be going down, and is going on for thousands of iterations. Does anyone know how to troubleshoot and fix these scaling errors? Is this the reason why my objective values aren't going down? Is there something else I need to modify within the script or is there a data collection error?

Thank you!

Tags:

User avatar
Carmichael Ong
Posts: 401
Joined: Fri Feb 24, 2012 11:50 am

Re: OpenSim example_kinetics.py

Post by Carmichael Ong » Tue Jan 10, 2023 5:05 pm

The OpenCap project has its own forum. The OpenCap experts may be better able to help you there!

POST REPLY