OpenSim JAM "computePotentialEnergy"

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Giacomo Di Raimondo
Posts: 9
Joined: Thu Oct 01, 2015 1:51 pm

OpenSim JAM "computePotentialEnergy"

Post by Giacomo Di Raimondo » Wed Jan 05, 2022 1:54 am

Hi all,

I'm working with OpenSim JAM, developed by Colin Smith. I was trying to calculate the contact energy between the cartilage mesh with the function "computePotentialEnergy". It requires as input an opensim.modelling.State element and give as output a double number. I don't understand if the state are related to the kinematics states of the model or to the force state.

What I tried until now is - with MATLAB:
import org.opensim.modeling.*
SmithTool = Smith2018ArticularContactForce();
ik_states = comak_ik.get_states() % in the comak_ik there is the kinematics saved
U = SmithTool.computePotentialEnergy(ik_states )

But it gives me an error on the input used.

Thank you in advance for any advice or tips.

Giacomo Di Raimondo

Tags:

User avatar
Luca Modenese
Posts: 43
Joined: Wed Jan 21, 2009 9:16 am

Re: OpenSim JAM "computePotentialEnergy"

Post by Luca Modenese » Fri May 26, 2023 9:16 am

Hello, I have a very similar issue with another function of OpenSim JAM, also taking the State at Stage Position as input.
DId you manage to solve the issue by any chance?
Thank you,
Luca

POST REPLY