I have some understanding question regarding the configuration of a torque actuator for CMC.
I've added a TorqueActuator to the hip using Matlab (see code below).
Code: Select all
leftHipTorqueActuator = TorqueActuator(pelvis,femur_l,zAxis,false);
leftHipTorqueActuator.setOptimalForce(10);
leftHipTorqueActuator.setName('leftHipTorqueActuator');
osimModel.addForce(leftHipTorqueActuator);
As I understand the doc my command means that the torque should rotate around the zAxis of the pelvis body frame.Create a torque actuator that applies equal and opposite torques on the two bodies (bodyA and B) that it connects. The torque is applied about an axis specified in ground if axisInGround is true, otherwise it is specified in bodyA's body frame.
Question 1:
But what is the direction of rotation?
Question 2:
How can I influence that the torque turns clockwise and counterclockwise during a gait cycle? Maybe by using the control signal with positive and negative values?
Furthermore the API documentation states
Question 3:The magnitude of the torque is equal to the product of the optimal_force of the actuator and its control signal.
If I want to exert a maximum of 100 Nm of torque. How should I achieve this?
3 a)
Should I set the optimal force to a value off 100 and apply factors between 0 ... 1 by using the control signal curve, where 0 is unsupported and 1 is the maximum , or
3 b)
Should I set the optimal force to a value off 10 and apply factors between 0 ... 10 by using the control signal curve, or
3 c)
Is a) and b) the same and it only depends on my preference?
I hope someone can answer my questions.