Page 1 of 1

Inputing the values of the external torque to the torque actuator in Opensim

Posted: Thu Aug 27, 2020 4:49 am
by raxsel
Hello,

Right now i want to do a CMC (Computed Muscle Control) simulation to get the needed muscle forces under consideration of external torque in Opensim programm. So this external torque (as a function of the input kinematics) will work as an additional actuator to the osim model while simulating the movement from the input kinemtics. The values of the external torque for all time step are already available beforehand (all values in Nm).
what i don't know is the way to inputing these values to the external actuator below.

Can someone give me an insight or help me with it?


Here is the force set from my osim-model: ('Torque_from_CableActuator')
model with torque.png
model with torque.png (86.99 KiB) Viewed 479 times
Best regards
Wahyu

Re: Inputing the values of the external torque to the torque actuator in Opensim

Posted: Thu Sep 03, 2020 10:41 am
by ongcf
I'd look at the PrescribedController class. If you want to add the controller to the model file directly, you can get the correct XML tags from the GUI under "Help --> XML Broswer". You can also use the API, with one example here: https://simtk-confluence.stanford.edu/d ... Part+Three