1 function [x,o,z]=fkiCub(finger, hand, q1, draw, rotmat, varargin)
3 dim=max(size(q1,1),size(q1,2));
7 H0=[0.478469 0.063689 -0.875792 -0.024029759;
8 -0.878095 0.039246 -0.476873 -0.01193433;
9 0.004 0.997198 0.074703 -0.00168926;
12 H0=[0.478469 0.063689 0.875792 -0.024029759;
13 -0.878095 0.039246 0.476873 -0.01193433;
14 0.004 -0.997198 0.074703 0.00168926;
18 active_joints=[1 0 1 1 1 1];
29 H0=[0.898138 0.439714 0.0 0.00245549;
30 -0.43804 0.89472 0.087156 -0.025320433;
31 0.038324 -0.078278 0.996195 -0.010973325;
34 H0=[0.898138 0.439714 0.0 0.00245549;
35 -0.43804 0.89472 -0.087156 -0.025320433;
36 -0.038324 0.078278 0.996195 0.010973325;
40 active_joints=[1 1 1 1 1];
44 H0=[1.0 0.0 0.0 0.0178;
45 0.0 0.0 -1.0 -0.00830233;
49 H0=[1.0 0.0 0.0 0.0178;
50 0.0 0.0 1.0 -0.00830233;
55 active_joints=[1 1 1 1];
62 if (size(varargin,2)==0)
68 DH=DHiCub(finger,hand);
70 Hroot=rotmat*FKinStd(DH,q,link,H0);
82 [Tr,z]=iCubPlot(DH,q,color,rotmat,H0,active_joints);
83 %iCubPlotCAD(DH,q,color,finger,rotmat,H0,active_joints);