Any one has any idea about how to limit the motion of a revolute joint which is actuated by torque? in order to model a biped robot I need to saturate the joints like as human body.For example knee joint just can move in a limited range. I did it before in simmechanics first generation by designing a filter. The actuator was motion in that model. Now I don't know how to do it again when the actuator is a torque. I need to use something like revolute hard limits, Maybe...
One solution is to use Simscape blocks instead. You can create a Simscape feedback loop that accepts the joint velocity as input, feeds it into a Hard Stop block, and outputs the hard-stop torque/force.
You can do this for both prismatic and revolute primitives, using Simscape foundation translational or rotational blocks. The key thing to remember is that Simscape blocks are 1-D, which means you must use a feedback loop for each 1-D primitive in SimMechanics (prismatic or revolute).
The Hard Stop block allows free motion within a specified range. At the limits of this range, the block applies a contact force, modeled as a combination of springs and dampers. You can adjust the spring stiffness to change the "hardness" of the stop, and the damping coefficient to change the "elasticity" of the stop.
Hope this helps! - Tony