Question 2 of 7: Frame graph and a compound transform
Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)
Notes on this paper
Paper format. National Exams, December 2019 — 16-Mec-B12 Robot Mechanics. Three hours; CLOSED BOOK with one 8.5″×11″ two-sided formula sheet and an approved Casio or Sharp calculator. Five questions constitute a complete paper: Section 1 holds five questions of which the candidate answers any three, and Section 2 holds two questions which are both compulsory. Each question is worth 20 marks. All seven questions are solved here.
Reference texts.
J. J. Craig, Introduction to Robotics: Mechanics and Control, 4th ed., Pearson, 2018 — the notation of this paper (leading super/subscripts, modified Denavit–Hartenberg parameters, velocity propagation) follows Craig chapter for chapter.
M. W. Spong, S. Hutchinson and M. Vidyasagar, Robot Modeling and Control, 2nd ed., Wiley, 2020 — alternative (standard DH) treatment of the same kinematics and Jacobians.
S. B. Niku, Introduction to Robotics: Analysis, Control, Applications, 3rd ed., Wiley, 2020 — worked numerical examples of frame algebra and trajectory planning.
R. M. Murray, Z. Li and S. S. Sastry, A Mathematical Introduction to Robotic Manipulation, CRC Press — rigid-body kinematics background.
Note. Where the printed paper rounds a value (for example the target height 1.707), the solution says so explicitly.
Question 2: Frame graph and a compound transform (20 marks)
Given. Three homogeneous transforms tying a universe frame {U} and three body frames {A}, {B}, {C} together. In the notation defined on page 2 of the paper the leading superscript is the reference frame and the leading subscript is the frame being described.
Given data
Quantity
Symbol
Value
Frame {A} described relative to {U}
$^{U}_{A}T$
$R_{Z}(30^\circ)$, $p=[11,\,-1,\,8]^{T}$
Frame {A} described relative to {B}
$^{B}_{A}T$
$R_{X}(30^\circ)$, $p=[0,\,10,\,-20]^{T}$
Frame {U} described relative to {C}
$^{C}_{U}T$
$R$ as printed, $p=[-3,\,-3,\,3]^{T}$
Rounding of the printed sines/cosines
—
3 decimals ($0.866,\,0.433,\,0.25$)
Find. (a) the frame graph, and (b) the transform $^{B}_{C}T$ that describes frame {C} relative to frame {B}.
Part (a): the frame diagram. Three arrows are given and the fourth, from {B} to {C}, is the one required. Two of the given arrows must be traversed backwards, which is what makes two inversions necessary.
Approach. Draw the four frames as nodes and each given transform as an arrow from its reference frame to its described frame. Any path from {B} to {C} then gives the answer as an ordered product, with an inverse wherever the path runs against an arrow.
(a) Read the arrows off the notation. $^{U}_{A}T$ is an arrow {U}→{A}, $^{B}_{A}T$ is an arrow {B}→{A}, and $^{C}_{U}T$ is an arrow {C}→{U}. The graph above is the answer to part (a); the required $^{B}_{C}T$ is the missing arrow {B}→{C}.
Choose a path and write the product. Walking {B}→{A} forwards, then {A}→{U} backwards along $^{U}_{A}T$, then {U}→{C} backwards along $^{C}_{U}T$ gives $$^{B}_{C}T={}^{B}_{A}T\;{}^{A}_{U}T\;{}^{U}_{C}T={}^{B}_{A}T\,\left({}^{U}_{A}T\right)^{-1}\left({}^{C}_{U}T\right)^{-1}.$$ Subscript–superscript cancellation ($B\!\to\!A$, $A\!\to\!U$, $U\!\to\!C$) is the bookkeeping check that the order is right.
Invert $^{U}_{A}T$. Its rotation is $R_{Z}(30^\circ)$, so $R^{T}=R_{Z}(-30^\circ)$ and $-R^{T}p=-[0.866(11)+0.5(-1),\,-0.5(11)+0.866(-1),\,8]^{T}$, giving $$^{A}_{U}T=\begin{bmatrix}0.866 & 0.5 & 0 & -9.026\\ -0.5 & 0.866 & 0 & 6.366\\ 0 & 0 & 1 & -8\\ 0 & 0 & 0 & 1\end{bmatrix}.$$
Invert $^{C}_{U}T$. The same rule with the printed rotation gives $-R^{T}p=[3.147,\,-0.549,\,-4.098]^{T}$ and $$^{U}_{C}T=\begin{bmatrix}0.866 & 0.433 & 0.25 & 3.147\\ -0.5 & 0.75 & 0.433 & -0.549\\ 0 & -0.5 & 0.866 & -4.098\\ 0 & 0 & 0 & 1\end{bmatrix}.$$
Multiply the three transforms in order. Carrying out $^{B}_{A}T\,{}^{A}_{U}T\,{}^{U}_{C}T$ column by column, $$\boxed{^{B}_{C}T=\begin{bmatrix}0.500 & 0.750 & 0.433 & -6.575\\ -0.750 & 0.625 & -0.217 & 19.788\\ -0.433 & -0.217 & 0.875 & -28.318\\ 0 & 0 & 0 & 1\end{bmatrix}}$$
Check the answer is still a rigid-body transform. The rotation block satisfies $R^{T}R=I$ to within $1.2\times10^{-4}$ and $\det R=1.000$. That residual is not an arithmetic slip: the paper prints $\sin30^\circ$ and its products only to three decimals ($0.866$, $0.433$, $0.25$), and multiplying three such matrices accumulates exactly this order of rounding error. Reporting the result to three decimals is therefore the honest precision.
Sanity-check the translation. $^{B}P_{CORG}=[-6.575,\,19.788,\,-28.318]^{T}$ has magnitude $34.9$, which is the right order of magnitude given that {A} sits $20$ units below {B} and {U} is a further $8$–$11$ units away in each direction.