Advertisement
Guest User

Untitled

a guest
Oct 21st, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. v_initial = zeros(1, 6);
  2. theta1_i = theta_inital(1);
  3. theta2_i = theta_inital(2);
  4. theta3_i = theta_inital(3);
  5. theta4_i = theta_inital(4);
  6. Jx1_i = - a1*sin(theta1_i) - a2*sin(theta1_i + theta2_i)- a3*sin(theta1_i + theta2_i + theta3_i) - a4*sin(theta1_i + theta2_i + theta3_i + theta4_i);
  7. Jx2_i = - a2*sin(theta1_i + theta2_i) - a3*sin(theta1_i + theta2_i + theta3_i) - a4*sin(theta1_i + theta2_i + theta3_i + theta4_i);
  8. Jx3_i = - a3*sin(theta1_i + theta2_i + theta3_i) - a4*sin(theta1_i + theta2_i + theta3_i + theta4_i);
  9. Jx4_i = - a4*sin(theta1_i + theta2_i + theta3_i + theta4_i);
  10. Jy1_i = a1*cos(theta1_i) + a2*cos(theta1_i + theta2_i) + a3*cos(theta1_i + theta2_i + theta3_i) + a4*cos(theta1_i + theta2_i + theta3_i + theta4_i);
  11. Jy2_i = a2*cos(theta1_i + theta2_i) + a3*cos(theta1_i + theta2_i + theta3_i) + a4*cos(theta1_i + theta2_i + theta3_i + theta4_i);
  12. Jy3_i = a3*cos(theta1_i + theta2_i + theta3_i)+ a4*cos(theta1_i + theta2_i + theta3_i + theta4_i);
  13. Jy4_i = a4*cos(theta1_i + theta2_i + theta3_i + theta4_i);
  14.  
  15. J_initial = [ Jx1_i Jx2_i Jx3_i Jx4_i
  16. Jy1_i Jy2_i Jy3_i Jy4_i
  17. 0 0 0 0
  18. 0 0 0 0
  19. 0 0 0 0
  20. 1 1 1 1
  21. ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement