NivaarExam PrepOfficial exam papers ↗

22-Mec-B12 Robotics · Undated paper

Question 1 of 7: Transforming a position and a velocity between frames (20 marks)

Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)

Notes on this paper

Paper format. National Exams — 16-Mec-B12 Robot Mechanics, 3 hours, CLOSED BOOK, one 8.5″×11″ aid sheet (both sides) and an approved calculator permitted. The paper runs in two sections: Section 1 holds five questions of which the candidate answers only three, and Section 2 holds two questions which are both compulsory. Each question is of equal value (20 marks), and marks for each part are shown in parentheses. All seven questions are worked here.

Reference texts. J. J. Craig, Introduction to Robotics: Mechanics and Control, 4th ed. (this paper's leading-super/subscript notation, its modified DH convention and its via-point spline formulae 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.

The printed footer reads 16-Mec-B12/May 2019.
Check: sign convention for the revolute joint of Figure 3. Figure 3 shows the direction of positive motion with a curved arrow but does not label a sense on the base triad. Throughout Questions 6 and 7 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 1: Transforming a position and a velocity between frames (20 marks)

Question text not reproduced: the examination questions are © Engineers and Geoscientists BC. Open the official past paper (linked at the top of this page) to read the question, then follow the worked solution below.

Given. One homogeneous transformation and two three-component vectors, each referenced to a different frame.

Given data
QuantityValueReferenced to
Position $P$$(-5,\;3,\;4)$frame $\{A\}$
Velocity $V$$(10,\;20,\;-15)$frame $\{B\}$
Rotation in $^{A}_{B}T$$R_{z}(30^\circ)$$\{B\}$ seen from $\{A\}$
Translation in $^{A}_{B}T$$(11,\;-3,\;9)$origin of $\{B\}$ in $\{A\}$

Find. (a) the same physical point expressed in frame $\{B\}$; (b) the same physical velocity expressed in frame $\{A\}$.

{B} is {A} rotated 30° about z, then displaced (11, -3, 9)x₀y₀{A}(11, -3, 9)x₁y₁{B}30°Which part of T applies?position P — a bound pointrotation AND translationvelocity V — a free vectorrotation only; translationdrops out of a differenceso V uses only the 3×3 block
Figure 1.1 — the given transformation places {B} 30° rotated about z and displaced (11, −3, 9) from {A}. A bound point carries the translation; a free vector does not.

Approach. Recognise that the given transform describes $\{B\}$ relative to $\{A\}$, so part (a) needs its inverse, while part (b) needs only the rotation block because a velocity is a free vector.

  1. Read the transformation and confirm it is a rigid-body motion. The upper-left block is $R={}^{A}_{B}R=\begin{bmatrix}\tfrac{\sqrt{3}}{2} & -0.5 & 0\\ 0.5 & \tfrac{\sqrt{3}}{2} & 0\\ 0 & 0 & 1\end{bmatrix}=R_{z}(30^\circ)$, a pure rotation of 30° about the common $z$ axis, and the fourth column holds the translation $^{A}P_{Borg}=(11,\,-3,\,9)$. Checking $RR^{T}=I$ and $\det R=+1$ costs one line and rules out a transcription error before any arithmetic is committed.
  2. Establish which way the given transform points. By the exam's own nomenclature, $^{A}_{B}T$ describes $\{B\}$ relative to $\{A\}$, so as an operator it converts B-coordinates into A-coordinates:$$^{A}P = {}^{A}_{B}T\;{}^{B}P.$$Part (a) asks for $^{B}P$ from $^{A}P$, which is the opposite direction, so the inverse transform is required.
  3. Invert the homogeneous transform analytically, not numerically. For any rigid-body transform the inverse is obtained by transposing the rotation and re-referencing the translation:$$^{B}_{A}T=\left({}^{A}_{B}T\right)^{-1}=\begin{bmatrix} R^{T} & -R^{T}\,{}^{A}P_{Borg}\\ 0\;0\;0 & 1\end{bmatrix}.$$Here $R^{T}=R_{z}(-30^\circ)$, and the new translation column is$$-R^{T}\begin{bmatrix}11\\-3\\9\end{bmatrix}=-\begin{bmatrix}\tfrac{11\sqrt{3}}{2}-1.5\\[2pt] -5.5-\tfrac{3\sqrt{3}}{2}\\[2pt] 9\end{bmatrix}=\begin{bmatrix}-8.026\\ 8.098\\ -9.000\end{bmatrix}.$$Never form this by a general 4×4 matrix inversion in an exam — the closed form is faster and cannot drift.
  4. Apply the inverse to the position vector. Rotating the point first and then adding the re-referenced translation gives$$^{B}P=R^{T}\,{}^{A}P+\left(-R^{T}\,{}^{A}P_{Borg}\right)=\begin{bmatrix}-2.830\\ 5.098\\ 4.000\end{bmatrix}+\begin{bmatrix}-8.026\\ 8.098\\ -9.000\end{bmatrix}.$$The radicals collapse neatly, which is a useful sign that the arithmetic is clean:$$\boxed{^{B}P=\begin{bmatrix}3-8\sqrt{3}\\ 8+3\sqrt{3}\\ -5\end{bmatrix}=\begin{bmatrix}-10.856\\ 13.196\\ -5.000\end{bmatrix}}$$
  5. Classify the velocity vector before transforming it. A velocity is a free vector: it is the difference of two position vectors taken at the same instant, and in that difference the translation column cancels identically. Only the rotation block survives, so$$^{A}V = {}^{A}_{B}R\;{}^{B}V,$$with no translation term. Adding $(11,-3,9)$ here is the classic error on this question and it is worth a sentence in the answer book to show the omission is deliberate.
  6. Rotate the velocity into frame $\{A\}$. This time the un-transposed rotation is wanted, because the vector is being carried from $\{B\}$ into $\{A\}$:$$^{A}V=\begin{bmatrix}\tfrac{\sqrt{3}}{2} & -0.5 & 0\\ 0.5 & \tfrac{\sqrt{3}}{2} & 0\\ 0 & 0 & 1\end{bmatrix}\begin{bmatrix}10\\ 20\\ -15\end{bmatrix}=\begin{bmatrix}5\sqrt{3}-10\\ 5+10\sqrt{3}\\ -15\end{bmatrix}$$$$\boxed{^{A}V=\begin{bmatrix}-1.340\\ 22.321\\ -15.000\end{bmatrix}\ \text{units s}^{-1}}$$
  7. Check the result. A pure rotation preserves length, so $\lVert{}^{A}V\rVert$ must equal $\lVert{}^{B}V\rVert$. Both evaluate to $\sqrt{725}=26.926$, and the $z$ component is unchanged at $-15$ because the rotation is about $z$. Both observations follow from the structure of the problem rather than from the arithmetic, so they are genuine independent checks.
Question 1 — results
PartQuantityResult
(a)$^{B}P$$(3-8\sqrt{3},\;8+3\sqrt{3},\;-5)=(-10.856,\;13.196,\;-5.000)$
(b)$^{A}V$$(5\sqrt{3}-10,\;5+10\sqrt{3},\;-15)=(-1.340,\;22.321,\;-15.000)$
check$\lVert V\rVert$$26.926$ in both frames (rotation preserves length)
← Paper overview