Page 1 of 1

Torsional Spring

Posted: Wed Aug 26, 2009 5:49 pm
by ambaus
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

RE: Torsional Spring

Posted: Fri Aug 28, 2009 8:13 am
by aymanh
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

RE: Torsional Spring

Posted: Fri Aug 28, 2009 11:26 am
by ambaus
I would like to model a torsional spring: a generalized torque applied to knee_angle with a value that depends on knee_angle.

RE: Torsional Spring

Posted: Fri Aug 28, 2009 11:30 pm
by twdorn
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

RE: Torsional Spring

Posted: Sat Aug 29, 2009 2:06 am
by bunker
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

RE: Torsional Spring

Posted: Sat Aug 29, 2009 7:31 am
by twdorn
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

RE: Torsional Spring

Posted: Sat Aug 29, 2009 8:48 am
by bunker
Thank you for your explanation.
Andrea

RE: Torsional Spring

Posted: Mon Aug 31, 2009 10:25 am
by ambaus
Thanks Tim. Is that the same one you gave me at the Jamboree?