Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. Index exceeds matrix dimensions.
  2.  
  3. Error in fbkin>fwdkin (line 49)
  4. c4 = cos(q(4)); s4 = sin(q(4));
  5.  
  6. Error in fbkin (line 41)
  7. o1 = fwdkin( i1 );
  8.  
  9. rob.NB = 3;
  10. rob.parent = [0:2];
  11. rob.jtype = { 'R', 'R', 'R' }
  12.  
  13. model.gravity = [0 0 0];
  14.  
  15. rob.Xtree{1} = rotx(1.57) * xlt([0 0 0]);
  16. rob.Xtree{2} = roty(1.57) * xlt([0.15,0,0]);
  17. rob.Xtree{3} = xlt([0.34 0 0]);
  18.  
  19. ax1=0.03; ay1=0.03; az1=0.03;
  20. ax2=0.28; ay2=0.05; az2=0.05;
  21. ax3=0.2; ay3=0.05; az3=0.05;
  22.  
  23. rob.I{1} = mcI( 1, [0 0 -0.02], 1/12*[ay1^2+az1^2 0 0; 0 ax1^2+az1^2 0; 0 0 ax1^2+ay1^2] )
  24. rob.I{2} = mcI( 4, [0.14 0 0], 4/12*[ay2^2+az2^2 0 0; 0 ax2^2+az2^2 0; 0 0 ax2^2+ay2^2] )
  25. rob.I{3} = mcI( 3, [0.1 0 0], 3/12*[ay3^2+az3^2 0 0; 0 ax3^2+az3^2 0; 0 0 ax3^2+ay3^2] )
  26.  
  27. rob.appearance.base = ...
  28. { 'box', [-0.2 -0.3 -0.2; 0.2 0.3 -0.07] };
  29.  
  30. rob.appearance.body{1} = ...
  31. { 'cyl', [0 0 0; 0.11 0 0], 0.05, ...
  32. 'cyl', [0 0 -0.06; 0 0 0.06], 0.06 };
  33.  
  34. rob.appearance.body{2} = ...
  35. { 'cyl', [0 0 0; 0.34 0 0], 0.05, ...
  36. 'cyl', [0 0 -0.06; 0 0 0.06], 0.06 };
  37.  
  38. rob.appearance.body{3} = ...
  39. { 'cyl', [0 0 0; 0.26 0 0], 0.05, ...
  40. 'cyl', [0 0 -0.06; 0 0 0.06], 0.06 };
  41.  
  42. showmotion(rob)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement