diff --git a/matlab/iLQR_manipulator3D.m b/matlab/iLQR_manipulator3D.m index 175e633e0d7ecfdfe467941e0a0e83fb5e6528f5..7a0e1d1f6247a0080a5c3d437e95c4ca31817f6d 100644 --- a/matlab/iLQR_manipulator3D.m +++ b/matlab/iLQR_manipulator3D.m @@ -33,8 +33,9 @@ param.dh.d = [0.333, 0, 0.316, 0, 0.384, 0, 0, 0.107]; %Offset along previous z param.dh.r = [0, 0, 0, 0.0825, -0.0825, 0, 0.088, 0]; %Length of the common normal %Weight matrices for iLQR cost -Q = speye((param.nbVarF-1) * param.nbPoints) * param.q; %Precision matrix +%Q = speye((param.nbVarF-1) * param.nbPoints) * param.q; %Precision matrix %Q = kron(eye(param.nbPoints), diag([0, 0, 0, 1E0, 1E0, 1E0])); %Precision matrix (by removing position constraint) +Q = kron(eye(param.nbPoints), diag([1, 1, 1, 1, 1, 0])); %Precision matrix (by removing orientation constraint on 3rd axis) R = speye(param.nbVarU * (param.nbData-1)) * param.r; %Control weight matrix (at trajectory level)