Finalize the initialization to compensate gravity
This commit is contained in:
1 parent
f816c80906
commit
2fc4f69590
8 files changed
+210
-27
No files matched your search
@@ -33,6 +33,8 @@ arguments
|
||||
args.ARB (3,3) double {mustBeNumeric} = eye(3)
|
||||
% Equilibrium position of each leg
|
||||
args.dLeq (6,1) double {mustBeNumeric} = zeros(6,1)
|
||||
% Force that stiffness of each joint should apply at t=0
|
||||
args.Foffset logical {mustBeNumericOrLogical} = false
|
||||
end
|
||||
|
||||
nano_hexapod = initializeFramesPositions('H', args.H, 'MO_B', args.MO_B);
|
||||
@@ -52,7 +54,12 @@ nano_hexapod = computeJacobian(nano_hexapod);
|
||||
nano_hexapod.Li = Li;
|
||||
nano_hexapod.dLi = dLi;
|
||||
|
||||
nano_hexapod.dLeq = args.dLeq;
|
||||
if args.Foffset && ~strcmp(args.type, 'none') && ~strcmp(args.type, 'rigid') && ~strcmp(args.type, 'init')
|
||||
load('mat/Foffset.mat', 'Fnm');
|
||||
nano_hexapod.dLeq = -Fnm'./nano_hexapod.Ki;
|
||||
else
|
||||
nano_hexapod.dLeq = args.dLeq;
|
||||
end
|
||||
|
||||
switch args.type
|
||||
case 'none'
|
||||
|
||||
Reference in new issue
Block a user