Estimation of joint position error