Академический Документы
Профессиональный Документы
Культура Документы
VIPER S-650
ME-5337
Introduction to Robotics
Report by:
Patel, Dhruvik
Student No: 10
𝑎5 = 90; 𝑎6 = 187
Individual homogeneous Transformation
Verification of frame assignment
𝜃1 = 0; 𝜃5 = 0; 𝜃2 = 0; 𝜃4 = 0; 𝜃3 = 0;
1) backtrans
This module take first frame and last frame for matrix multiplication. Give
output of matrix multiplication.
2) Invtrans
This module take last frame and first frame and calculate their inverse and
premultiply them with the help of mdhinv module desire matrix
For θ1 :
−pyCos[𝜃1 ] + pxSin[𝜃1 ] = 0
Code to find θ1 :
The for loop in the code store the value of θ1 in solmat matrix.
For θ4:
For θ3:
2
((−335 + pz)Cos[𝜃2 ] − (75 + pxCos[𝜃1 ] + pySin[𝜃1 ])Sin[𝜃2 ]) + (5(54 +
18Cos[𝜃3 ] − 59Sin[𝜃3 ]))^2=(−Cos[𝜃2 ](75 + pxCos[𝜃1 ] + pySin[𝜃1 ]) − (−335 +
pz)Sin[𝜃2 ])^2 + (295Cos[𝜃3 ] + 90Sin[𝜃3 ])^2
Further expansion of above equation gives,
1
(−100350 + px 2 + py 2 − 1340pz + 2pz 2 + 300pxCos[𝜃1 ]
2
+ (px 2 − py 2 )Cos[2𝜃1 ] − 97200Cos[𝜃3 ] + 300pySin[𝜃1 ]
+ 2pxpySin[2𝜃1 ] + 318600Sin[𝜃3 ]) = 0
Which is in terms of the 𝜃1 and𝜃3 . So from that we can find the value of 𝜃3 .
This equation consist of the value of 𝜃3 and𝜃1 . we know the value of that so we can
find the 𝜃2 .
1
(−2qxCos[𝜃1 ]Cos[𝜃2 + 𝜃3 ] − qySin[𝜃1 − 𝜃2 − 𝜃3 ] − 2qzSin[𝜃2 + 𝜃3 ] −
2
qySin[𝜃1 + 𝜃2 + 𝜃3 ]) = Cos[𝜃5 ]
And
1
(−2nxCos[𝜃1 ]Cos[𝜃2 + 𝜃3 ] − nySin[𝜃1 − 𝜃2 − 𝜃3 ] − 2nzSin[𝜃2 + 𝜃3 ]
2
− nySin[𝜃1 + 𝜃2 + 𝜃3 ]) = Sin[𝜃5 ]
Code to find θ5 :
Final set of solution
This for loop make the first column of the matrix zero for that solution which are
imaginary and not in the range of joint value and make others column 1.
This for loop prints the final set of solution form the solmat matrix.
Optimum solution:
This for loop calculates the optimum value of θ for pictured configuration.