I would like to create a joint in SimMechanics where the angle between two bodies is bounded between two values regardless of the external force/torque.
For example, in the two-joint inverted pendulum demo (mech_dpen.mdl), how can I constrain the angle of Revolute joint 1 so that the angle is restricted to -10 and + 10 degrees?
I attempted to limit joint movement using joint spring and damper but I already control this joint using joint torque. I am solving in Forward Dynamics mode.
Best Answer