simulate controlled actuator

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Chetan Thakur
Posts: 17
Joined: Mon Oct 12, 2015 1:35 am

simulate controlled actuator

Post by Chetan Thakur » Mon Jul 11, 2016 2:03 am

Hi

I want to simulate pneumatic actuator in opensim. In my experiment the pneumatic actuator is attached from waist to knee and it helps in knee extension supporting upper limb muscle in during gait cycle. How can I simulate the behavior of pneumatic muscle in opensim.

My goal is to use opensim to study effects of actuator on muscle activation and force generation. I used pathspring with model and data provided in working with static optimization tutorial, but with the pathspring acts like actuated all the time. I want to control the actuation by e.g. when the knee flexion is completed or toe off position.

I looked at customized actuator example but did not get any clue.

Thanks
Chetan

User avatar
Dimitar Stanev
Posts: 1096
Joined: Fri Jan 31, 2014 5:14 am

Re: simulate controlled actuator

Post by Dimitar Stanev » Tue Jul 12, 2016 1:22 am

Hi,

You will have to implement the force characteristics on your own, by extending the appropriate class.

https://simtk.org/api_docs/opensim/api_ ... ml#details
I want to control the actuation by e.g. when the knee flexion is completed or toe off position.
You will need a controller, that will detect these events and provide the appropriate input to your custom muscle.

Best

User avatar
Christopher Dembia
Posts: 506
Joined: Fri Oct 12, 2012 4:09 pm

Re: simulate controlled actuator

Post by Christopher Dembia » Tue Jul 12, 2016 3:29 pm

Dimitar is correct. However, it may be simpler to use your custom Controller with the pre-existing PathActuator instead of your own custom actuator.

User avatar
Chetan Thakur
Posts: 17
Joined: Mon Oct 12, 2015 1:35 am

Re: simulate controlled actuator

Post by Chetan Thakur » Fri Jul 15, 2016 11:59 pm

Thanks for the comment and suggestion.

At first I am thinking to use ClutchedPathspring with custom controller to decide when to enable the clutch flag. In my case I need to activate the spring when toe off(initial swing). But I have a one question here, how to run static optimization with custom controller or actuator ? I could not find any examples or hint in the documentation.

Thanks in advance
Chetan

User avatar
Dimitar Stanev
Posts: 1096
Joined: Fri Jan 31, 2014 5:14 am

Re: simulate controlled actuator

Post by Dimitar Stanev » Sun Jul 17, 2016 9:10 am

But I have a one question here, how to run static optimization with custom controller or actuator ? I could not find any examples or hint in the documentation.
You need to initialize the AnalysisTool and add StaticOptimization.

User avatar
Chetan Thakur
Posts: 17
Joined: Mon Oct 12, 2015 1:35 am

Re: simulate controlled actuator

Post by Chetan Thakur » Wed Jul 20, 2016 10:56 pm

Thanks I was able add controller to the model and then run static optimization. I could see better results after using clutchedpathspring over pathspring.

Thanks for all the help. I will now try custom actuator.

-Chetan

User avatar
Karthick Ganesan
Posts: 119
Joined: Thu Oct 10, 2013 12:11 am

Re: simulate controlled actuator

Post by Karthick Ganesan » Tue Mar 13, 2018 9:18 am

How to add controller to cluthchedPathSpring ? Can any one guide me to example script?

Thanks & Regards,
Karthick.

POST REPLY