Open Cap Kinetics Code
- Ainsley Svetek
- Posts: 1
- Joined: Thu Feb 22, 2024 1:58 pm
Open Cap Kinetics Code
Hi there! I am conducting some testing using your software and services. I was looking at the code you posted for computing the kinetics and was wondering how this was able to be used. Do I simply upload it into python and then input my own naming conventions from my trials? I have been trying to figure it out but a bit confused so any guidance would be helpful! Also - does it only work for walking and running trials?
- Antoine Falisse
- Posts: 431
- Joined: Wed Jan 07, 2015 2:21 am
Re: Open Cap Kinetics Code
Hey,
> Do I simply upload it into python and then input my own naming conventions from my trials?
Yes.
There are instructions here https://github.com/stanfordnmbl/opencap ... imulations and examples here https://github.com/stanfordnmbl/opencap ... inetics.py and here https://github.com/stanfordnmbl/opencap ... ensimAD.py. Not only walking and running examples.
Some more details here too https://github.com/stanfordnmbl/opencap ... /OpenSimAD
Antoine
> Do I simply upload it into python and then input my own naming conventions from my trials?
Yes.
There are instructions here https://github.com/stanfordnmbl/opencap ... imulations and examples here https://github.com/stanfordnmbl/opencap ... inetics.py and here https://github.com/stanfordnmbl/opencap ... ensimAD.py. Not only walking and running examples.
Some more details here too https://github.com/stanfordnmbl/opencap ... /OpenSimAD
Antoine
- Anthony Wash
- Posts: 3
- Joined: Wed Nov 03, 2021 7:11 am
Re: Open Cap Kinetics Code
I am trying to get kinetic information from opencap using the example_kinetics.py example. I input the session id and the trial name and motion type and time window for a jumping trial. When I run the code in my anaconda prompt, it goes all the way to 5000 iterations and problem does not converge. I'm not sure why it takes so long and does not converge or if I am doing something wrong with editing and saving the python file.
- Antoine Falisse
- Posts: 431
- Joined: Wed Jan 07, 2015 2:21 am
Re: Open Cap Kinetics Code
Hey, please take a look at the material here: https://github.com/stanfordnmbl/opencap ... /OpenSimAD.
- Matt Petrucci
- Posts: 148
- Joined: Fri Feb 24, 2012 11:49 am
Re: Open Cap Kinetics Code
You may also want to simulate a shorter time period of the jump first to make sure that converges before extending the time to the full jump cycle.
- Anthony Wash
- Posts: 3
- Joined: Wed Nov 03, 2021 7:11 am
Re: Open Cap Kinetics Code
I have changed the time window to under 2s for the up phase of the jump on the example_kinetcs.py file. I've changed the mesh density to 50 and ipopt tolerance to 3 on the mainOpenSimAD.py file. Do I have to run these two files separately in my anaconda prompt terminal?
- Matt Petrucci
- Posts: 148
- Joined: Fri Feb 24, 2012 11:49 am
Re: Open Cap Kinetics Code
Hi Anthony, once you've made those changes and save them, you should only have to run the example_kinetics.py code again. It calls mainOpenSimAD.py.