Friction observer and compensation for control of robots with joint torque measurement