|
This example computes the forward kinematics for a 3R spatial manipulator.
A[θ_, d_, a_, α_] := ({{Cos[θ], -Cos[α] Sin[θ], Sin[α] Sin[θ], a Cos[θ]}, {Sin[θ], Cos[α] Cos[θ], -Cos[θ] Sin[α], a Sin[θ]}, {0, Sin[α], Cos[α], d}, {0, 0, 0, 1}}) ;
θ1=.; d1=-51; a1=178; α1=-90 Degree; θ2=.; d2=0; a2=179; α2=-90 Degree; θ3=.; d3=0; a3=153; α3=0 Degree;
A10 = A[θ1, d1, a1, α1];
A21 = A[θ2, d2, a2, α2];
A32 = A[θ3, d3, a3, α3];
U2 = Simplify[A21.A32];
MatrixForm[U2]
U2L = {{U211, U212, U2[[1, 3]], U214}, {U221, U222, U2[[2, 3]], U224}, {U2[[3, 1]], U2[[3, 2]], U2[[3, 3]], U234}, {0, 0, 0, 1}};
U1 = Simplify[A10.U2L];
MatrixForm[U1]
T30 = Simplify[A10.A21.A32];
This Mathematica file resides at http://www.RobotMechanicsControl.info. For a complete description of this example, along with the requisite background, definitions, and notation, see the textbook Fundamentals of Robot Mechanics by G. L. Long, Quintus-Hyperion Press, 2015.