We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84e44ce commit a87c55aCopy full SHA for a87c55a
@SerialLink/ikine.m
@@ -161,7 +161,7 @@
161
end
162
163
assert(numel(opt.mask) == 6, 'RTB:ikine:badarg', 'Mask matrix should have 6 elements');
164
- assert(n >= numel(find(opt.mask)), 'RTB:ikine:badarg', 'Number of robot DOF must be >= the same number of 1s in the mask matrix');
+ assert(n >= numel(find(opt.mask)), 'RTB:ikine:badarg', 'Number of robot DOF must be >= the number of 1s in the mask matrix');
165
W = diag(opt.mask);
166
167
@@ -212,6 +212,7 @@
212
if ~isnan(opt.transpose)
213
% do the simple Jacobian transpose with constant gain
214
dq = opt.transpose * J' * e;
215
+ q = q + dq';
216
else
217
% do the damped inverse Gauss-Newton with Levenberg-Marquadt
218
dq = inv(JtJ + (lambda + opt.lambdamin) * eye(size(JtJ)) ) * J' * W * e;
0 commit comments