A method for controlling an elastic rotary actuator comprises an output member rotatable around an axis of rotation, an input member rotatable around said axis of rotation, elastic members interposed between the output member and the input member in such a way as to allow, due to their elastic deformation, a relative rotation between the input member and the output member around said axis of rotation, the input member being rotatable around said axis of rotation independently of the output member by way of said elastic members, and a motor assembly arranged to drive the input member to rotate around said axis of rotation, the method comprising the steps of:
- a) defining a desired value for the impedance of actuator;
- b) determining the desired angular velocity of the input member on the basis of the desired impedance value;
- c) detecting the actual angular velocity of the input member;
- and
- d) controlling the motor assembly on the basis of the error between the desired angular velocity and the detected actual angular velocity of the input member.