About functionset in controllerset

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
li xiyuan
Posts: 4
Joined: Tue Mar 15, 2022 12:30 am

About functionset in controllerset

Post by li xiyuan » Mon Mar 28, 2022 9:54 pm

hello everyone,
I am a beginner user of opensim. I need to add an external torque at the hip joint. I have added a CoordinateActuator to the XML file and set the optimal_force. when I am writing the ControllerSet, is it possible to use a spline function for the FunctionSet in the ControllerSet?
Because the torque I need to add is not a constant but a variable quantity. Maybe you can give me some suggestions.Thank you very much.

Looking forward your reply.

Tags:

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

Re: About functionset in controllerset

Post by Carmichael Ong » Thu Mar 31, 2022 9:17 am

Yes this should be possible. You can see the different Function options in our API guide here under the Function entry. If you click on the second line "Inheritance diagram ..." you'll see a bunch of options.

Sounds like you're adding to the model file itself, so you'll need another resource for what that will look like. In the GUI, if you go to Help -> XML Browser, you can look up these Function class names under Class name (e.g., SimmSpline) and see what the XML tags look like.

POST REPLY