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

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Wahyu Kasendra Sugiarto
Posts: 8
Joined: Thu Apr 09, 2020 11:13 am

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

Post by Wahyu Kasendra Sugiarto » Thu Aug 27, 2020 4:49 am

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 502 times
Best regards
Wahyu

Tags:

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

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

Post by Carmichael Ong » Thu Sep 03, 2020 10:41 am

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

POST REPLY