2020-01-27 12:44:26 +00:00
|
|
|
function frctn = frictionRegressor(qd_fltrd)
|
|
|
|
|
% ----------------------------------------------------------------------
|
|
|
|
|
% The function computes friction regressor for each joint of the robot.
|
|
|
|
|
% Fv*qd + Fc*sign(qd) + F0, and the second one is continous,
|
|
|
|
|
% ---------------------------------------------------------------------
|
2020-02-05 04:55:09 +00:00
|
|
|
noJoints = size(qd_fltrd,1);
|
|
|
|
|
frctn = zeros(noJoints, noJoints*3);
|
|
|
|
|
for i = 1:noJoints
|
2020-01-27 12:44:26 +00:00
|
|
|
frctn(i,3*i-2:3*i) = [qd_fltrd(i), sign(qd_fltrd(i)), 1];
|
|
|
|
|
end
|
|
|
|
|
|