Question 5 of 7: Inverse orientation for a spherical wrist — Z–Y–Z Euler angles (20 marks)
Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)
Notes on this paper
Paper format. National Exams, May 2016 — 07-Mec-B12 Robot Mechanics, 3 hours. CLOSED BOOK, with one 8.5″×11″ formula sheet (both sides) and an approved non-programmable calculator permitted. FIVE questions constitute a complete paper and each question is of equal value (20 marks); the first five as they appear in the answer book are marked. All seven questions are worked here.
Reference texts. J. J. Craig, Introduction to Robotics: Mechanics and Control, 4th ed. (the exam's leading-super/subscript notation and the Z–Y–Z Euler convention follow this text directly); M. W. Spong, S. Hutchinson and M. Vidyasagar, Robot Modeling and Control, 2nd ed.; S. B. Niku, Introduction to Robotics: Analysis, Control, Applications, 3rd ed.; K. M. Lynch and F. C. Park, Modern Robotics, 1st ed.
Notation (from the exam's own nomenclature page). A leading superscript names the frame a quantity is referenced to, so $^{A}V$ is the vector $V$ expressed in frame $\{A\}$. A leading subscript together with a leading superscript names a transformation: $^{B}_{A}T$ describes frame $\{A\}$ relative to frame $\{B\}$, and therefore maps coordinates the other way, $^{B}P = {}^{B}_{A}T\,{}^{A}P$. Keeping that direction straight is the single most common source of lost marks on this paper, so every question below states explicitly which way the given transform points.
Check: sign convention for the revolute joint. Figure 1 shows the direction of positive motion with a curved arrow but does not label a sense on the base triad. Throughout Questions 3–6 the base frame is taken as $x_{0}$ along the horizontal arm, $z_{0}$ vertically up and $y_{0}$ completing the right-handed set, with positive $q_{2}$ following the right-hand rule about $+x_{0}$. Every result below is stated in that frame; a candidate who assigns the opposite sense obtains the same magnitudes with $q_{2}\rightarrow-q_{2}$.
Question 5: Inverse orientation for a spherical wrist — Z–Y–Z Euler angles (20 marks)
Given. The symbolic Z–Y–Z Euler form of the wrist rotation and its required numerical value.
Given data — numerical $R^{3}_{6}$
column 1
column 2
column 3
row 1
$\tfrac{1}{2}=0.5000$
$\tfrac{\sqrt{6}}{4}=0.6124$
$-\tfrac{\sqrt{6}}{4}=-0.6124$
row 2
$-\tfrac{\sqrt{3}}{2}=-0.8660$
$\tfrac{\sqrt{2}}{4}=0.3536$
$-\tfrac{\sqrt{2}}{4}=-0.3536$
row 3
$0$
$\tfrac{\sqrt{2}}{2}=0.7071$
$\tfrac{\sqrt{2}}{2}=0.7071$
Find. Every triple $(q_{4},q_{5},q_{6})$ reproducing that rotation.
Figure 5.1 — the Z–Y–Z Euler sequence. The third row and third column of the matrix isolate the middle angle first.
Approach. Extract $q_{5}$ from the single-term element $r_{33}=c_{5}$, take both signs of $s_{5}$, then read $q_{4}$ and $q_{6}$ from the third column and third row respectively.
Confirm the given matrix is a legitimate rotation. Before inverting anything, check $RR^{T}=I$ and $\det R=+1$. Both hold exactly for the given surds, so the orientation is achievable and the wrist equations will have real solutions. A matrix that failed this test would signal a transcription error and no amount of algebra would rescue it.
Isolate the middle angle from the one element that stands alone. In the Z–Y–Z form the element $r_{33}$ is simply $c_{5}$, so$$\cos q_{5}=\frac{\sqrt{2}}{2}\;\Longrightarrow\;\boxed{q_{5}=\pm 45^\circ}$$Both signs are admissible because the cosine cannot distinguish them, and this is precisely where the two solution branches are born. Each choice of sign then determines $q_{4}$ and $q_{6}$ uniquely.
Take the first branch, $q_{5}=+45^\circ$, so $s_{5}=+\tfrac{\sqrt{2}}{2}$. The third column supplies $q_{4}$ and the third row supplies $q_{6}$:$$c_{4}=\frac{r_{13}}{s_{5}}=\frac{-\sqrt{6}/4}{\sqrt{2}/2}=-\frac{\sqrt{3}}{2},\qquad s_{4}=\frac{r_{23}}{s_{5}}=\frac{-\sqrt{2}/4}{\sqrt{2}/2}=-\frac{1}{2},$$$$c_{6}=\frac{-r_{31}}{s_{5}}=0,\qquad s_{6}=\frac{r_{32}}{s_{5}}=\frac{\sqrt{2}/2}{\sqrt{2}/2}=1.$$Both sine and cosine are known for each angle, so $\mathrm{Atan2}$ resolves the quadrant without ambiguity:$$\boxed{q_{4}=210^\circ\ (\equiv-150^\circ),\qquad q_{5}=45^\circ,\qquad q_{6}=90^\circ}$$
Take the second branch, $q_{5}=-45^\circ$, so $s_{5}=-\tfrac{\sqrt{2}}{2}$. Every ratio flips sign:$$c_{4}=\frac{-\sqrt{6}/4}{-\sqrt{2}/2}=\frac{\sqrt{3}}{2},\quad s_{4}=\frac{-\sqrt{2}/4}{-\sqrt{2}/2}=\frac{1}{2},\quad c_{6}=0,\quad s_{6}=-1,$$giving the companion solution$$\boxed{q_{4}=30^\circ,\qquad q_{5}=-45^\circ,\qquad q_{6}=-90^\circ\ (\equiv 270^\circ)}$$The two branches are related by the standard Euler-angle identity $(q_{4},q_{5},q_{6})\rightarrow(q_{4}+180^\circ,\,-q_{5},\,q_{6}+180^\circ)$, which is a useful independent confirmation that nothing has been missed.
Substitute both triples back into the symbolic matrix. Reconstructing $R_{z}(q_{4})R_{y}(q_{5})R_{z}(q_{6})$ from each solution reproduces all nine given elements exactly. Checking element $r_{11}$ by hand for branch 1, for instance,$$r_{11}=c_{4}c_{5}c_{6}-s_{4}s_{6}=\left(-\tfrac{\sqrt{3}}{2}\right)\left(\tfrac{\sqrt{2}}{2}\right)(0)-\left(-\tfrac{1}{2}\right)(1)=\tfrac{1}{2},$$which matches. Verifying one off-diagonal element by hand is worth the thirty seconds it costs, because it tests the branch assignment rather than merely repeating the division.
State the degenerate case for completeness. The solution above divides by $s_{5}$, so it fails when $q_{5}=0$ or $180^\circ$. There the first and third wrist axes become collinear, the wrist loses a degree of freedom, and only the sum $q_{4}+q_{6}$ (or the difference) is determined — a one-parameter family of solutions rather than two isolated ones. That is the classic wrist singularity of a Z–Y–Z spherical wrist, and it does not arise here because $q_{5}=\pm45^\circ$ is comfortably away from it.
Question 5 — results
Branch
$q_{4}$
$q_{5}$
$q_{6}$
1
$210^\circ\;(-150^\circ)$
$+45^\circ$
$90^\circ$
2
$30^\circ$
$-45^\circ$
$-90^\circ\;(270^\circ)$
Both reproduce $R^{3}_{6}$ exactly; total number of solutions = 2 (infinite only in the singular case $s_{5}=0$)