Diagnostic of robot, estimation of parameters