An approach to the adaptive control of elastic at joints robots