limiting joint forces and moments

Hi Anybody,

I would like to control joint forces and moments. After going through the forum, I could find some tips of using AnyGeneralMuscle and AnyKinMeasureLinComb. I could make 6 artificial muscles using AnyGeneralMuscle in a joint but I don’t get an idea how to use AnyKinMeasureLinComb to constraint those muscles. For example, I would like to turn off certain direction of moment, let’s say, allowing only negative direction of Mz among those muscles. Would you give an example of it.

p.s. When the muscles are inserted in a joint, those are also minimized. Is there way to exempt certain muscles from being minimized?

Thanks,

Hanks

Hi Hanks,

You can control the direction of the AnyGeneralMuscle force by writting:

ForceDirection = 1; or -1;

You can have a look at the ReferenceManual for more details, and in the repository the file JointMuscles.any will give you an example of it.

You can’t directly exclude the AnyGeneralMuscle of the recruitment, but you can make sure that they won’t disturb it by giving them a very high strength.

Best Regards, Sylvain.