Torsional Spring

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Anne Schmitz
Posts: 76
Joined: Thu May 31, 2007 7:44 am

Torsional Spring

Post by Anne Schmitz » Wed Aug 26, 2009 5:49 pm

Hello,

I found an actuator file named TorsionalSpring.h. How can I include this in my model? I'm not sure how to use it/call it.

Thanks,

Anne

User avatar
Ayman Habib
Posts: 2240
Joined: Fri Apr 01, 2005 12:24 pm

RE: Torsional Spring

Post by Ayman Habib » Fri Aug 28, 2009 8:13 am

Hi Anne,

This class is internally used for the "corrective springs" in Forward & Perturbation Tools. It's created programmatically by these Tools and is never written to file, you only get to specify some parameters to customize it in the setup files of these Tools.

I would recommend NOT using it at this point as we may remove it or change it completely in version 2.0.

The more fundamental question is: What are you trying to model?

-Ayman

User avatar
Anne Schmitz
Posts: 76
Joined: Thu May 31, 2007 7:44 am

RE: Torsional Spring

Post by Anne Schmitz » Fri Aug 28, 2009 11:26 am

I would like to model a torsional spring: a generalized torque applied to knee_angle with a value that depends on knee_angle.

User avatar
Tim Dorn
Posts: 125
Joined: Tue Feb 26, 2008 10:14 pm

RE: Torsional Spring

Post by Tim Dorn » Fri Aug 28, 2009 11:30 pm

Hi Anne!

That sounds like you want to model a passive GeneralizedForce which is what I'm doing. I can provide you with my passive GeneralizedForce plugin and you can change the computeActuations() method to calculate the torque as any function you like of generalized coordinate.

Tim

User avatar
Andrea Morelli
Posts: 89
Joined: Thu Jan 24, 2008 1:10 pm

RE: Torsional Spring

Post by Andrea Morelli » Sat Aug 29, 2009 2:06 am

Hi Tim,
can you explain (or give me a link where is explained) what your plug in can do. Is possible that can be useful for some application I would like to do.
Thank you in advance
Andrea

User avatar
Tim Dorn
Posts: 125
Joined: Tue Feb 26, 2008 10:14 pm

RE: Torsional Spring

Post by Tim Dorn » Sat Aug 29, 2009 7:31 am

Hi Andrea,

The plugin is just a very simple passive actuator which can be used during a simulation to apply a generalized force (force or moment) at a given generalized coordinate as any function of the generalized coordinate. E.g. it can be used as a torsional spring if you supply code for the torque-angle relationship.

Tim

User avatar
Andrea Morelli
Posts: 89
Joined: Thu Jan 24, 2008 1:10 pm

RE: Torsional Spring

Post by Andrea Morelli » Sat Aug 29, 2009 8:48 am

Thank you for your explanation.
Andrea

User avatar
Anne Schmitz
Posts: 76
Joined: Thu May 31, 2007 7:44 am

RE: Torsional Spring

Post by Anne Schmitz » Mon Aug 31, 2009 10:25 am

Thanks Tim. Is that the same one you gave me at the Jamboree?

POST REPLY