Question 4 of 7: All joint-3 angles reaching a given position (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 4: All joint-3 angles reaching a given position (20 marks)
Given. A four-revolute arm whose link parameters are all zero except the four
listed, and a target position of the origin of frame $\{4\}$ expressed in the base frame.
Given data - nonzero link parameters
Row $i$
$\alpha_{i-1}$
$a_{i-1}$
$d_{i}$
$\theta_{i}$
1
$0$
$0$
$0$
$\theta_{1}$
2
$-90^{\circ}$
$0$
$1$
$\theta_{2}$
3
$45^{\circ}$
$0$
$0$
$\theta_{3}$
4
$0$
$1$
$0$
$\theta_{4}$
target
$^{0}P_{4ORG}=[0.0,\;1.0,\;1.414]^{T}$, all joints limited to
$\pm180^{\circ}$
Find. Every value of $\theta_{3}$ inside the joint limits for which the origin
of frame $\{4\}$ can occupy the stated position.
Figure 4.1 — the outboard chain of the 4R arm, drawn in the plane containing $\hat{Z}_{2}$ and $\hat{Z}_{3}$. The offset $d_{2}$ and the link $a_{3}$ form a fixed triangle whose closing side is $^{0}P_{4ORG}$; only $\theta_{3}$ changes its length, and the two solution branches (navy and amber) close the same length in different directions.
Approach. Build $^{0}P_{4ORG}$ outward from the tool, then take its squared
magnitude. Joint 1 only spins the whole arm about $\hat{Z}_{0}$ and joint 2 only spins the
outboard chain about $\hat{Z}_{2}$, so neither can change the distance from the base; the
distance is a function of $\theta_{3}$ alone, and one scalar equation delivers the answer.
Place the tool point in frame $\{3\}$. Only $a_{3}=1$ separates frame
$\{4\}$ from frame $\{3\}$, so
$$^{3}P_{4ORG}=\begin{bmatrix}a_{3}\\0\\0\end{bmatrix}
=\begin{bmatrix}1\\0\\0\end{bmatrix}.$$
Joint 4 turns about $\hat{Z}_{4}$ through that very origin and therefore cannot move it - which
is why a 4R arm has only three position degrees of freedom and $\theta_{4}$ never enters this
question.
Carry it into frame $\{2\}$. The link transform contributes the twist
$\alpha_{2}=45^{\circ}$ and the joint rotation $\theta_{3}$, with no offsets, so
$$^{2}P_{4ORG}=R_{X}(\alpha_{2})\,R_{Z}(\theta_{3})\begin{bmatrix}1\\0\\0\end{bmatrix}
=\begin{bmatrix}\cos\theta_{3}\\
\sin\theta_{3}\cos\alpha_{2}\\
\sin\theta_{3}\sin\alpha_{2}\end{bmatrix}.$$
The link of length $a_{3}$ sweeps a cone of half-angle $45^{\circ}$ about $\hat{Z}_{3}$ as
$\theta_{3}$ runs through its range.
Carry it into frame $\{1\}$. Adding the offset $d_{2}=1$ along
$\hat{Z}_{2}$ and then the twist $\alpha_{1}=-90^{\circ}$ with the joint rotation
$\theta_{2}$,
$$^{1}P_{4ORG}=R_{X}(\alpha_{1})\,R_{Z}(\theta_{2})
\left(\;{}^{2}P_{4ORG}+\begin{bmatrix}0\\0\\d_{2}\end{bmatrix}\right).$$
Both operations are rotations, so they leave the length of the bracketed vector untouched -
and that observation is the whole solution.
Take the squared distance from the base. Since
$^{0}P_{4ORG}=R_{Z}(\theta_{1})\,{}^{1}P_{4ORG}$ is another pure rotation,
$$\left|^{0}P_{4ORG}\right|^{2}
=\left|\;{}^{2}P_{4ORG}+d_{2}\hat{Z}_{2}\right|^{2}
=a_{3}^{2}+d_{2}^{2}+2a_{3}d_{2}\sin\alpha_{2}\sin\theta_{3},$$
because the cross term keeps only the component of $^{2}P_{4ORG}$ along $\hat{Z}_{2}$. With the
given numbers,
$$\boxed{\left|^{0}P_{4ORG}\right|^{2}=2+\sqrt{2}\,\sin\theta_{3}.}$$
The result depends on $\theta_{3}$ and on nothing else, exactly as anticipated.
Impose the target distance. The printed target has
$$\left|^{0}P_{4ORG}\right|^{2}=0^{2}+1^{2}+1.414^{2}=2.9994\approx 3,$$
the small shortfall being nothing more than $1.414$ standing in for $\sqrt{2}$. Setting
$2+\sqrt{2}\sin\theta_{3}=3$ gives
$$\sin\theta_{3}=\frac{1}{\sqrt{2}}=0.7071.$$
Take every branch the joint limits allow. A sine equation has two solutions
per revolution, $\theta_{3}$ and $180^{\circ}-\theta_{3}$, and both lie inside the stated
$\pm180^{\circ}$ range:
$$\boxed{\theta_{3}=45^{\circ}\quad\text{and}\quad\theta_{3}=135^{\circ}.}$$
Using the printed $1.414$ literally instead of $\sqrt{2}$ moves these to $44.97^{\circ}$ and
$135.03^{\circ}$, a difference of three hundredths of a degree that no candidate is expected to
report. There are exactly two values; no other $\theta_{3}$ in the range puts the tool origin at
the required distance from the base, and for each of them $\theta_{1}$ and $\theta_{2}$ remain
free to steer the direction.
A quick sanity check on the pictured pose confirms the geometry. Putting
$\Theta=[0,0,90^{\circ},0]^{T}$ into the chain gives
$^{0}P_{4ORG}=[0,\,1.707,\,-0.707]^{T}$, whose squared length is $2+\sqrt{2}=3.414$ - precisely
what the boxed law predicts at $\sin\theta_{3}=1$, the farthest the tool origin can ever get from
the base. The nearest it can get is $\sqrt{2-\sqrt{2}}=0.765$ at $\theta_{3}=-90^{\circ}$.
Check: the printed target vector, component by component.
The magnitude condition above is the only thing $\theta_{3}$ controls, and it is what the question
asks for. Reading the three printed components literally, however, demands
$^{0}P_{4ORG}\cdot\hat{Z}_{0}=1.414$, and $\theta_{1}$ spins the arm about $\hat{Z}_{0}$ without
changing that component: at $\theta_{3}=45^{\circ}$ or $135^{\circ}$ its largest attainable
magnitude is $\sqrt{1-\tfrac{1}{2}\sin^{2}\theta_{3}}=0.866$. The stated direction is therefore
outside this arm's reach as the parameters are printed, although the stated distance
is comfortably inside it; the same target with its components permuted so that the zero falls on
$\hat{Z}_{0}$ is reachable, and gives the same two answers. A transposed component ordering is the most likely explanation. Nothing above depends on the printed direction: $\theta_{3}=45^{\circ}$ and $135^{\circ}$ follow from the
distance alone.