Robot cotroller with a self-measurement capability enabling the identification of friction