A manipulator becomes easier to understand when equations and motion are treated as two views of the same system. These notes follow the original ten-chapter exam notebook, from specifying a frame to controlling a motor. Each section retains the original mathematical content, slide references, and derivation notes, with interactive experiments where seeing the motion helps.

This is a study guide, not a replacement for the course slide decks. Frame superscripts specify the expression frame; joint coordinates are written as qq; Cartesian pose or position is written as XX. All slider angles in the visualizations are shown in degrees, while the underlying mathematical functions use radians.

Contents: frames → D-H → inverse kinematics → velocities → Jacobians → forces → Newton-Euler → Lagrange → feedback control → motor implementation.

1. Frames & transformations

Describe where a tool is and how it is oriented.

Rotating coordinate frames · Interactive demonstration

1.1 Robotic system and manipulation

Explanation / application, not a source quotation

Manipulation moves objects and tools through a mechanism to perform a task. A tool’s pose is specified by position and orientation. Motion analysis uses linear/angular velocity and acceleration; loading and dynamic analysis use forces and torques.

Task / program → Controller → Actuators + mechanism → End effector

Mechanism state → Sensors → Controller feedback input to the block above

The first row shows the forward command path; the second shows the feedback path. Sensors feed the mechanism state back to the controller. A power supply energizes the actuators; the user specifies the task.

1.2 Position, orientation, and notation

Explanation / application, not a source quotation

Ap=[px,py,pz]T{}^A p=[p_x,p_y,p_z]^T gives a point’s coordinates in frame {A}\{A\}. Its components are projections on the frame axes. A rigid body’s orientation is described by an attached coordinate frame.

BAR=[Ax^BAy^BAz^B],Rij=e^iA⋅e^jB{}^A_B R=[{}^A\hat x_B\quad{}^A\hat y_B\quad{}^A\hat z_B],\qquad R_{ij}=\hat e_i^A\cdot\hat e_j^B
(1)

Columns are B’s unit axes expressed in A; rows are A’s axes expressed in B. The left superscript says expressed in; the lower frame labels identify the mapping direction.

RTR=I,det⁡R=+1,ABR=(BAR)T=(BAR)−1R^TR=I,\quad\det R=+1,\quad{}^B_A R=({}^A_B R)^T=({}^A_B R)^{-1}
(2)

A frame is specified by one origin vector and three unit-axis vectors, equivalently {BAR,ApBorg}\{{}^A_B R,{}^A p_{Borg}\}. Pure position uses R=IR=I; pure orientation uses a zero origin vector.

Derivation · Why the reverse rotation is the transpose

PPT Part 1 · slides 8-9 · intermediate algebra expanded

The entries of R are dot products of frame axes. Because each frame is orthonormal, the dot product of column i with column j is 1 for i = j and 0 otherwise.

(RTR)ij=(Ae^iB)T(Ae^jB)=δij(R^TR)_{ij}=({}^A\hat e_i^B)^T({}^A\hat e_j^B)=\delta_{ij}
RTR=I⇒R−1=RT=ABRR^TR=I\quad\Rightarrow\quad R^{-1}=R^T={}^B_AR

Thus reversing a pure coordinate rotation requires no general matrix-inversion calculation.

1.3 Mapping a point between frames

Case Mapping Assumption
Translation Ap=Bp+ApBorg{}^A p={}^B p+{}^A p_{Borg} Parallel, equally oriented axes
Rotation Ap=BARBp{}^A p={}^A_B R{}^B p Coincident origins
Both Ap=BARBp+ApBorg{}^A p={}^A_B R{}^B p+{}^A p_{Borg} General frames
[Ap1]=BAT[Bp1],BAT=[BARApBorg0 0 01]\begin{bmatrix}{}^A p\\1\end{bmatrix}={}^A_B T\begin{bmatrix}{}^B p\\1\end{bmatrix},\quad{}^A_B T=\begin{bmatrix}{}^A_B R&{}^A p_{Borg}\\0\ 0\ 0&1\end{bmatrix}
(3)

The same matrix can be interpreted as a coordinate mapping or an active rigid-motion operator; state which interpretation you use. For a free direction vector use homogeneous last entry 0, so translation has no effect.

Useful consequences · composition and inverse

CAT=BATCBT,T−1=[RT−RTp01]{}^A_C T={}^A_B T{}^B_C T,\qquad T^{-1}=\begin{bmatrix}R^T&-R^Tp\\0&1\end{bmatrix}

Match adjacent frame labels. Matrix multiplication order matters.

Derivation · Combine rotation and translation

PPT Part 1 · slides 11-14 · intermediate algebra expanded

First express B’s point vector along A’s axes. Then add the vector from A’s origin to B’s origin:

Ap=BARBp⏟Borg to P+ApBorg⏟Aorg to Borg{}^Ap=\underbrace{{}^A_BR{}^Bp}_{Borg\ \mathrm{to}\ P}+\underbrace{{}^Ap_{Borg}}_{Aorg\ \mathrm{to}\ Borg}

Append a 1 and collect both operations into one block multiplication:

[Ap1]=[BARApBorg01][Bp1]=[BARBp+ApBorg1]\begin{bmatrix}{}^Ap\\1\end{bmatrix}=\begin{bmatrix}{}^A_BR&{}^Ap_{Borg}\\0&1\end{bmatrix}\begin{bmatrix}{}^Bp\\1\end{bmatrix}=\begin{bmatrix}{}^A_BR{}^Bp+{}^Ap_{Borg}\\1\end{bmatrix}

1.4 Practice and recall

Use the next/previous buttons and reveal each answer only after attempting the question. Answers are retained from the original notebook.

Chapter 1 practice questions · Interactive demonstration

2. D-H & forward kinematics

Turn link geometry and joint variables into a tool pose.

Two-link manipulator: forward kinematics and singularity · Interactive demonstration

2.1 Kinematics and the four parameters

Fig. 1 Original geometry · Part I, slide 17. Common normal aᵢ₋₁, twist αᵢ₋₁, offset dᵢ, and joint angle θᵢ..

Explanation / application, not a source quotation

Kinematics studies position, velocity, acceleration, and higher motion derivatives without the forces causing them. Forward kinematics maps joint variables to end-effector pose relative to the base.

The slides use Craig’s modified D-H convention. Joint axis ii is z^i\hat z_i; x^i\hat x_i lies along the common normal from axis ii toward i+1i+1. The origin is its intersection with joint axis ii. Use right-hand positive angles.

Parameter Geometric meaning
ai−1a_{i-1} Distance from zi−1z_{i-1} to ziz_i, along xi−1x_{i-1}
αi−1\alpha_{i-1} Angle from zi−1z_{i-1} to ziz_i, about xi−1x_{i-1}
did_i Distance from xi−1x_{i-1} to xix_i, along ziz_i
θi\theta_i Angle from xi−1x_{i-1} to xix_i, about ziz_i

Revolute: θi\theta_i varies. Prismatic: did_i varies. The other three parameters are fixed for that joint.

ii−1T=Rx(αi−1)Dx(ai−1)Rz(θi)Dz(di){}^{i-1}_iT=R_x(\alpha_{i-1})D_x(a_{i-1})R_z(\theta_i)D_z(d_i)
(4)
=Screw⁡x(ai−1,αi−1)Screw⁡z(di,θi)=\operatorname{Screw}_x(a_{i-1},\alpha_{i-1})\operatorname{Screw}_z(d_i,\theta_i)
(5)
ii−1T=[cθ−sθ0asθcαcθcα−sα−dsαsθsαcθsαcαdcα0001]{}^{i-1}_iT=\begin{bmatrix}c_\theta&-s_\theta&0&a\\s_\theta c_\alpha&c_\theta c_\alpha&-s_\alpha&-d s_\alpha\\s_\theta s_\alpha&c_\theta s_\alpha&c_\alpha&d c_\alpha\\0&0&0&1\end{bmatrix}
(6)

Here a=ai−1,α=αi−1,d=di,θ=θia=a_{i-1},\alpha=\alpha_{i-1},d=d_i,\theta=\theta_i. Derive the matrix by multiplying the four elementary transforms.

n0T=10T21T⋯nn−1T{}^0_nT={}^0_1T{}^1_2T\cdots{}^{n-1}_nT
(7)

Include a final fixed tool transform if the tool origin is offset from frame nn.

Derivation · From intermediate frames to the link transform

PPT Part 1 · slides 21 · intermediate algebra expanded

The PPT introduces intermediate frames R, Q, and P to change one geometric parameter at a time:

i−1p=Ri−1T QRT PQT iPT ip{}^{i-1}p={} ^{i-1}_RT\,{}^R_QT\,{}^Q_PT\,{}^P_iT\,{}^ip
ii−1T=Rx(αi−1)Dx(ai−1)⏟fixed link geometryRz(θi)Dz(di)⏟joint connection{}^{i-1}_iT=\underbrace{R_x(\alpha_{i-1})D_x(a_{i-1})}_{\text{fixed link geometry}}\underbrace{R_z(\theta_i)D_z(d_i)}_{\text{joint connection}}

A rotation and translation along the same axis form a screw transform, giving the two-screw form stated above. The expanded matrix follows by multiplying these four factors in the displayed order. The translation uses a, correcting the PPT’s α typo.

2.3 Planar 2R forward kinematics

Explanation / application, not a source quotation

For link lengths l1,l2l_1,l_2, with joint 2 measured relative to link 1:

x=l1cos⁡θ1+l2cos⁡(θ1+θ2),y=l1sin⁡θ1+l2sin⁡(θ1+θ2)x=l_1\cos\theta_1+l_2\cos(\theta_1+\theta_2),\quad y=l_1\sin\theta_1+l_2\sin(\theta_1+\theta_2)
(8)
ϕ=θ1+θ2,R=[cos⁡ϕ−sin⁡ϕ0sin⁡ϕcos⁡ϕ0001]\phi=\theta_1+\theta_2,\qquad R=\begin{bmatrix}\cos\phi&-\sin\phi&0\\\sin\phi&\cos\phi&0\\0&0&1\end{bmatrix}
(9)

The two columns give the tool’s planar x and y axes in the base frame. Check at θ1=θ2=0\theta_1=\theta_2=0: (x,y)=(l1+l2,0)(x,y)=(l_1+l_2,0).

Derivation · Planar forward position and orientation

PPT Part 1 · slides 22-23 · intermediate algebra expanded

Link 1 makes angle θ₁ with the base x-axis. Link 2 is rotated by θ₂ relative to link 1, so its absolute angle is θ₁ + θ₂.

p1=[l1cos⁡θ1l1sin⁡θ1],p2/1=[l2cos⁡(θ1+θ2)l2sin⁡(θ1+θ2)]p_1=\begin{bmatrix}l_1\cos\theta_1\\l_1\sin\theta_1\end{bmatrix},\quad p_{2/1}=\begin{bmatrix}l_2\cos(\theta_1+\theta_2)\\l_2\sin(\theta_1+\theta_2)\end{bmatrix}
p2=p1+p2/1p_2=p_1+p_{2/1}

Read off x and y. With φ = θ₁ + θ₂, the tool x-axis has components (cos φ, sin φ); the perpendicular tool y-axis has components (−sin φ, cos φ). Placing these as columns gives the orientation matrix.

2.4 Practice and recall

Use the next/previous buttons and reveal each answer only after attempting the question. Answers are retained from the original notebook.

Chapter 2 practice questions · Interactive demonstration

3. Inverse kinematics & workspace

Find joint configurations and decide whether a pose is possible.

Explanation / application, not a source quotation

Given target (x,y)(x,y), apply the cosine rule:

D=x2+y2−l12−l222l1l2,s2=±1−D2D=\frac{x^2+y^2-l_1^2-l_2^2}{2l_1l_2},\quad s_2=\pm\sqrt{1-D^2}
(10)
θ2=atan2⁡(s2,D),θ1=atan2⁡(y,x)−atan2⁡(l2s2,l1+l2D)\theta_2=\operatorname{atan2}(s_2,D),\quad\theta_1=\operatorname{atan2}(y,x)-\operatorname{atan2}(l_2s_2,l_1+l_2D)
(11)

Procedure: test ∣D∣≤1|D|\le1; compute both branches; apply joint limits; verify each answer by forward kinematics; select a collision-free configuration with appropriate joint travel.

Use atan2⁡\operatorname{atan2}, rather than a single-argument inverse tangent, to preserve quadrants. At l1=l2l_1=l_2 and x=y=0x=y=0, θ2=π\theta_2=\pi and θ1\theta_1 is arbitrary: an exceptional infinite family.

Derivation · Both branches of the planar inverse solution

PPT Part 1 · slides 24-25 · intermediate algebra expanded

Square and add the two forward-position equations. The mixed trigonometric terms combine using cos(A−B):

x2+y2=l12+l22+2l1l2cos⁡θ2x^2+y^2=l_1^2+l_2^2+2l_1l_2\cos\theta_2
cos⁡θ2=D,sin⁡θ2=±1−D2\cos\theta_2=D,\quad\sin\theta_2=\pm\sqrt{1-D^2}

The ± sign produces the two elbow branches. To recover θ₁, group the forward equations as a rotation of a known vector:

[xy]=[c1−s1s1c1][l1+l2c2l2s2]\begin{bmatrix}x\\y\end{bmatrix}=\begin{bmatrix}c_1&-s_1\\s_1&c_1\end{bmatrix}\begin{bmatrix}l_1+l_2c_2\\l_2s_2\end{bmatrix}

The target direction is the sum of θ₁ and the direction of the second vector, hence

θ1=atan2⁡(y,x)−atan2⁡(l2s2,l1+l2c2)\theta_1=\operatorname{atan2}(y,x)-\operatorname{atan2}(l_2s_2,l_1+l_2c_2)

Use the same sign branch for s₂ throughout, and verify the final angles by substitution.

3.2 Reachable and dexterous workspace

Explanation / application, not a source quotation

Reachable workspace: points reachable in at least one orientation. Dexterous workspace: points reachable with every orientation in the relevant task space. Dexterous workspace is a subset of reachable workspace.

∣l1−l2∣≤x2+y2≤l1+l2|l_1-l_2|\le\sqrt{x^2+y^2}\le l_1+l_2
(12)

For unrestricted planar 2R joints: unequal lengths give an annulus and no dexterous workspace; equal lengths give a disc, with the origin dexterous for planar orientation. A generic interior point has two configurations, usually two tool orientations; the branches merge on a nondegenerate boundary.

Joint limits can shrink the region or remove branches. With full rotation of joint 1 and 0≤θ2≤π0\le\theta_2\le\pi, the same position region remains but only one branch is available (apart from degeneracies).

3.3 Solvability, multiple solutions, and selection

Explanation / application, not a source quotation

A solvable manipulator has an algorithm that determines the joint configurations associated with a specified attainable pose. Existence depends on workspace; multiplicity depends on geometry, DOF, and joint limits.

Method Exam distinction
Closed form Algebraic or geometric expressions; generally fast to evaluate
Numerical Iterative; needs convergence checks and may miss branches

Choose among solutions using joint travel, joint limits, and obstacle avoidance. The nearest configuration may be blocked by an obstacle.

Craig states that general serial six-DOF R/P chains are numerically solvable; this does not mean every requested pose is reachable. For a six-revolute arm, three consecutive axes intersecting at a point are a sufficient condition for a closed-form solution (the parallel-axis case is also included in Craig’s discussion).

3.4 Subspace versus actual workspace

With fewer than six independent joints, a manipulator generally cannot realize arbitrary 3D position and orientation. Its attainable poses lie in a lower-dimensional pose subspace; link lengths and joint limits further restrict the actual workspace.

WBT(x,y,ϕ)=[cos⁡ϕ−sin⁡ϕ0xsin⁡ϕcos⁡ϕ0y00100001]{}^B_WT(x,y,\phi)=\begin{bmatrix}\cos\phi&-\sin\phi&0&x\\\sin\phi&\cos\phi&0&y\\0&0&1&0\\0&0&0&1\end{bmatrix}
(13)

This is the planar pose family for a 3R arm. A transform outside this structure cannot be attained. A planar 2R arm reaches planar positions, but its tool orientation is coupled to those positions: its full pose family has only two independent parameters.

3.5 Polar 2-DOF example

Let r=x2+y2>0r=\sqrt{x^2+y^2}>0. The tool’s z-axis points radially outward, its y-axis points down, and x^2=y^2×z^2\hat x_2=\hat y_2\times\hat z_2.

0z^2=[x/ry/r0],0y^2=[00−1],0x^2=[y/r−x/r0]{}^0\hat z_2=\begin{bmatrix}x/r\\y/r\\0\end{bmatrix},\quad{}^0\hat y_2=\begin{bmatrix}0\\0\\-1\end{bmatrix},\quad{}^0\hat x_2=\begin{bmatrix}y/r\\-x/r\\0\end{bmatrix}
(14)
20T=[y/r0x/rx−x/r0y/ry0−1000001]{}^0_2T=\begin{bmatrix}y/r&0&x/r&x\\-x/r&0&y/r&y\\0&-1&0&0\\0&0&0&1\end{bmatrix}
(15)

Orientation is constrained by position; it is not independently specifiable. At r=0r=0, the radial direction and this parameterization are undefined.

3.6 Practice and recall

Use the next/previous buttons and reveal each answer only after attempting the question. Answers are retained from the original notebook.

Chapter 3 practice questions · Interactive demonstration

Keep the differentiation frame separate from the expression frame.

4.1 Linear and angular velocity

Explanation / application, not a source quotation

BVP=d(Bp)/dt{}^B V_P=d({}^B p)/dt is the velocity differentiated relative to frame B. A second frame label may specify where that resulting vector is expressed:

A(BVP)=BAR BVP{}^A({}^B V_P)={}^A_B R\,{}^B V_P
(16)

A point fixed in B has BVP=0{}^B V_P=0, even if it moves relative to a universal frame U. For frame C, vC=UVCorgv_C={}^U V_{Corg} and AvC=A(UVCorg){}^A v_C={}^A({}^U V_{Corg}).

Linear velocity belongs to a point. Angular velocity belongs to a rigid body or attached frame. AΩB{}^A\Omega_B describes B’s rotation relative to A: direction = instantaneous rotation axis, magnitude = angular speed. C(AΩB){}^C({}^A\Omega_B) expresses that same vector in C. Write ωC=UΩC\omega_C={}^U\Omega_C.

Fig. 2 Angular Velocity.

4.2 Transport theorem

Write R=BARR={}^A_B R, r=RBpr=R{}^B p, and express all terms below in A:

vP=vBorg+R BVP+ω×rv_P=v_{Borg}+R\,{}^B V_P+\omega\times r
(17)

The three terms are origin translation, motion relative to B, and rotation of B. If R is constant, the last term vanishes. If P is fixed in B, the middle term vanishes.

vrot=ω×r,∣vrot∣=∣ω∣ ∣r∣sin⁡γv_{rot}=\omega\times r,\qquad |v_{rot}|=|\omega|\,|r|\sin\gamma
(18)

The rotational velocity is tangent to the circular path, perpendicular to both the axis and radius. Always express the cross-product operands in the same frame.

Fig. 3 Velocity of a Point due to Angular Velocity.

Derivation · Velocity caused by a rotating frame

PPT Part 2 · slides 9-11 · intermediate algebra expanded

For a point fixed in B, its perpendicular distance from the rotation axis is |r| sin γ. In Δt the rotation angle is |ω|Δt, so the small arc length is

∣Δr∣=(∣r∣sin⁡γ)∣ω∣Δt⇒∣v∣=∣ω∣∣r∣sin⁡γ|\Delta r|=(|r|\sin\gamma)|\omega|\Delta t\quad\Rightarrow\quad|v|=|\omega||r|\sin\gamma

The tangent direction is ω × r. If the point also moves relative to B, add that relative velocity expressed in A; if B’s origin translates, add its velocity:

v=ω×r → Rvrel+ω×r → vBorg+Rvrel+ω×rv=\omega\times r\ \to\ Rv_{rel}+\omega\times r\ \to\ v_{Borg}+Rv_{rel}+\omega\times r

4.3 Velocity propagation

Use the rotation ii+1R{}^{i+1}_iR, p=ipi+1,orgp={}^i p_{i+1,org}, and z=[0,0,1]Tz=[0,0,1]^T. Each velocity is expressed in its own link frame.

Revolute joint i+1i+1:

ωi+1=ii+1Rωi+θ˙i+1z,vi+1=ii+1R(vi+ωi×p)\omega_{i+1}={}^{i+1}_iR\omega_i+\dot\theta_{i+1}z,\qquad v_{i+1}={}^{i+1}_iR(v_i+\omega_i\times p)
(19)

Prismatic joint i+1i+1:

ωi+1=ii+1Rωi,vi+1=ii+1R(vi+ωi×p)+d˙i+1z\omega_{i+1}={}^{i+1}_iR\omega_i,\qquad v_{i+1}={}^{i+1}_iR(v_i+\omega_i\times p)+\dot d_{i+1}z
(20)

Start at a fixed base with v0=ω0=0v_0=\omega_0=0, propagate outward, then include any fixed tool offset using vtool=vn+ωn×rtoolv_{tool}=v_n+\omega_n\times r_{tool} in a common frame.

Fig. 4 Velocity Propagation from Link-to-Link.

Derivation · Rotate propagated link velocities into the next frame

PPT Part 2 · slides 12-14 · intermediate algebra expanded

For a revolute joint, first sum the old angular velocity and the new joint rotation in frame i:

iωi+1=iωi+i+1iR(θ˙i+1z){}^i\omega_{i+1}={}^i\omega_i+{}^i_{i+1}R(\dot\theta_{i+1}z)

Premultiply by ii+1R{}^{i+1}_iR. Since the two opposite rotations multiply to I:

ωi+1=ii+1Rωi+θ˙i+1z\omega_{i+1}={}^{i+1}_iR\omega_i+\dot\theta_{i+1}z

The next origin is a point on the preceding link, so in frame i its velocity is vᵢ + ωᵢ × p. Expressing it in frame i+1 gives {}^{i+1}_iR(vᵢ + ωᵢ × p). A prismatic joint adds its sliding velocity ḋz to this result instead of adding an angular-velocity component.

4.4 Practice and recall

Use the next/previous buttons and reveal each answer only after attempting the question. Answers are retained from the original notebook.

Chapter 4 practice questions · Interactive demonstration

5. Jacobians & singularities

The local map from joint rates to tool velocity.

5.1 Definition and dimensions

Explanation / application, not a source quotation

Y=F(X),δY=J(X)δX,Jij=∂fi∂xj,Y˙=J(X)X˙Y=F(X),\quad\delta Y=J(X)\delta X,\quad J_{ij}=\frac{\partial f_i}{\partial x_j},\quad\dot Y=J(X)\dot X
(21)
ν=[vω]=J(q)q˙\nu=\begin{bmatrix}v\\\omega\end{bmatrix}=J(q)\dot q
(22)

For n joints and m independent task-velocity coordinates, J is m×nm\times n. A full spatial twist has six components, so its geometric Jacobian is 6×n6\times n. It is a linear map at a given configuration, but changes as the robot moves.

Derivation · From scalar differentials to the Jacobian

PPT Part 2 · slides 15-17 · intermediate algebra expanded

For each output yᵢ = fᵢ(X), the total differential is

δyi=∑j=1n∂fi∂xjδxj\delta y_i=\sum_{j=1}^n\frac{\partial f_i}{\partial x_j}\delta x_j

Stack the outputs and place their partial derivatives in rows:

δY=[∂f1/∂x1⋯∂f1/∂xn⋮⋱⋮∂fm/∂x1⋯∂fm/∂xn]⏟J(X)δX\delta Y=\underbrace{\begin{bmatrix}\partial f_1/\partial x_1&\cdots&\partial f_1/\partial x_n\\\vdots&\ddots&\vdots\\\partial f_m/\partial x_1&\cdots&\partial f_m/\partial x_n\end{bmatrix}}_{J(X)}\delta X

Divide the infinitesimal relation by dt to obtain Ẏ = JẊ. For the robot, choose joint coordinates as inputs and the specified Cartesian velocity components as outputs.

5.2 Planar Jacobian and changing frame

Differentiating the 2R position equations gives this revision example:

Jxy=[−l1s1−l2s12−l2s12l1c1+l2c12l2c12]J_{xy}=\begin{bmatrix}-l_1s_1-l_2s_{12}&-l_2s_{12}\\l_1c_1+l_2c_{12}&l_2c_{12}\end{bmatrix}
(23)

Here s12=sin⁡(θ1+θ2)s_{12}=\sin(\theta_1+\theta_2), and similarly for c. Add row [11][1\quad1] to include planar angular velocity.

AJ=[BAR00BAR]BJ{}^AJ=\begin{bmatrix}{}^A_BR&0\\0&{}^A_BR\end{bmatrix}{}^BJ
(24)

This changes the expression frame for velocity at the same tool point. Changing the reference point also needs the cross-product terms in Chapter 6. For square nonsingular J, q˙=J−1ν\dot q=J^{-1}\nu.

Derivation · Change the expression frame of a Jacobian

PPT Part 2 · slides 18 · intermediate algebra expanded

At the same tool point, both linear and angular velocity rotate with R = ᴬBR:

Aν=[R00R]Bν=[R00R]BJq˙{}^A\nu=\begin{bmatrix}R&0\\0&R\end{bmatrix}{}^B\nu=\begin{bmatrix}R&0\\0&R\end{bmatrix}{}^BJ\dot q

Compare with ᴬν = ᴬJq̇. Because the relation holds for arbitrary joint rates:

AJ=diag⁡(R,R)BJ{}^AJ=\operatorname{diag}(R,R){}^BJ

This step only changes expression axes; it does not shift the tool reference point.

Use the two-link diagram in §2.3: select Jacobian → velocity, set a joint rate, and compare the purple velocity arrow with the matrix product. Its sliders use degrees for pose display and rad/s for rates.

5.3 Singular configurations

Explanation / application, not a source quotation

A singularity is a configuration where J loses rank relative to its normal maximum. Some task-space velocity directions become unavailable, regardless of the chosen joint rates.

Type Typical cause
Boundary Arm stretched out or folded onto a workspace boundary
Interior Joint axes line up inside the workspace
det⁡Jxy=l1l2sin⁡θ2\det J_{xy}=l_1l_2\sin\theta_2
(25)

For nonzero link lengths, the 2R position Jacobian is singular at θ2=0,π\theta_2=0,\pi. Near singularities, some finite desired tool velocities require very large joint rates; direct inversion becomes poorly conditioned.

In the arm lab, straighten the elbow and inspect the determinant. The singularity statement depends on the selected task: JxyJ_{xy} and the 3×2 planar pose Jacobian have different ranks.

5.4 Practice and recall

Use the next/previous buttons and reveal each answer only after attempting the question. Answers are retained from the original notebook.

Chapter 5 practice questions · Interactive demonstration

6. Static forces & transformations

Use equilibrium and virtual work to map loads to actuator effort.

6.1 Static force-moment recursion

Neglect gravity here, as the slides do. Let fi,nif_i,n_i be the force and moment exerted on link i by link i−1i-1. Define R=i+1iRR={}^i_{i+1}R and p=ipi+1,orgp={}^i p_{i+1,org}.

ifi=Ri+1fi+1,ini=Ri+1ni+1+p×ifi{}^if_i=R{}^{i+1}f_{i+1},\qquad{}^in_i=R{}^{i+1}n_{i+1}+p\times{}^if_i
(26)
τi=ziTni(revolute),τi=ziTfi(prismatic)\tau_i=z_i^Tn_i\quad\text{(revolute)},\qquad\tau_i=z_i^Tf_i\quad\text{(prismatic)}
(27)

Propagate the specified terminal load inward. The structure resists other load components; the actuator supplies effort along/about the joint axis. For a prismatic joint, τi\tau_i denotes a force.

Fig. 5 Static Force-Moment Balance.

Derivation · Static force and moment balance

PPT Part 2 · slides 20-22 · intermediate algebra expanded

First express both child loads along the parent axes:

ifi+1=i+1iRi+1fi+1,ini+1=i+1iRi+1ni+1{}^if_{i+1}={}^i_{i+1}R{}^{i+1}f_{i+1},\qquad{}^in_{i+1}={}^i_{i+1}R{}^{i+1}n_{i+1}

Abbreviate that rotation by R. Force balance and moment balance about the frame-i origin then give

fi−Rfi+1=0f_i-Rf_{i+1}=0
ni−Rni+1−p×(Rfi+1)=0n_i-Rn_{i+1}-p\times(Rf_{i+1})=0

Rearranging gives the inward recursion above. Taking the dot product with the joint axis selects the component the actuator must supply: moment for a revolute joint, force for a prismatic joint. Gravity and inertial loads are excluded in this static calculation.

6.2 Virtual work and the Jacobian transpose

FTδX=τTδq,δX=Jδq⟹τ=JTFF^T\delta X=\tau^T\delta q,\quad\delta X=J\delta q\quad\Longrightarrow\quad\boxed{\tau=J^TF}
(28)

F stacks force and moment, in the same frame and at the same point as J’s twist. This identity equates Cartesian and joint work (or instantaneous power).

Define load signs explicitly: JTFJ^TF is the equivalent joint load for a tool wrench F; holding against an externally applied wrench may require its negative.

At singularity, wrenches in ker⁡(JT)\ker(J^T) produce zero generalized joint load and can be supported structurally. Near singularity, mechanical advantage can be large in particular directions. This does not imply arbitrary active force control there.

Derivation · Virtual work to the transpose map

PPT Part 2 · slides 23 · intermediate algebra expanded

Write the same infinitesimal work in Cartesian and joint coordinates:

FTδX=τTδqF^T\delta X=\tau^T\delta q

Insert δX = Jδq:

FTJδq=τTδq⇒(FTJ−τT)δq=0F^TJ\delta q=\tau^T\delta q\quad\Rightarrow\quad(F^TJ-\tau^T)\delta q=0

Since this holds for every virtual joint displacement, the coefficient row must vanish:

FTJ=τT⇒τ=JTFF^TJ=\tau^T\quad\Rightarrow\quad\boxed{\tau=J^TF}

6.3 Six-dimensional velocity and wrench transforms

For two frames rigidly attached to the same body, put R=BARR={}^A_BR, p=ApBorgp={}^A p_{Borg}, and let [p]×u=p×u[p]_\times u=p\times u.

[p]×=[0−pzpypz0−px−pypx0][p]_\times=\begin{bmatrix}0&-p_z&p_y\\p_z&0&-p_x\\-p_y&p_x&0\end{bmatrix}
(29)
νB=[RT−RT[p]×0RT]⏟XB←AνA\nu_B=\underbrace{\begin{bmatrix}R^T&-R^T[p]_\times\\0&R^T\end{bmatrix}}_{X_{B\leftarrow A}}\nu_A
(30)
νA=[R[p]×R0R]νB\nu_A=\begin{bmatrix}R&[p]_\times R\\0&R\end{bmatrix}\nu_B
(31)
FA=[R0[p]×RR]⏟XB←ATFBF_A=\underbrace{\begin{bmatrix}R&0\\{[p]}_\times R&R\end{bmatrix}}_{X_{B\leftarrow A}^{T}}F_B
(32)

The velocity vectors refer to the respective frame origins. A wrench moment changes with its reference point. Dual transforms preserve FATνA=FBTνBF_A^T\nu_A=F_B^T\nu_B.

Derivation · Assemble the 6 × 6 transformation blocks

PPT Part 2 · slides 25-26 · intermediate algebra expanded

For two frames rigidly attached to the same body, define R=BARR={}^A_BR, p=ApBorgp={}^Ap_{Borg}, and [p]×u=p×u[p]_\times u=p\times u. This calculation shifts the velocity reference point as well as changing expression axes.

1 · From A’s origin to B’s origin. In A’s axes, the rigid-body point rule gives

AvB=AvA+Aω×p=AvA−[p]×Aω{}^Av_B={}^Av_A+{}^A\omega\times p={}^Av_A-[p]_\times{}^A\omega

Rotate both velocity components into B:

vB=RTvA−RT[p]×ωA,ωB=RTωAv_B=R^Tv_A-R^T[p]_\times\omega_A,\qquad\omega_B=R^T\omega_A

Stacking the coefficients gives the forward 6 × 6 operator shown above.

2 · Invert the relation without guessing a block sign.

ωA=RωB,RvB=vA−[p]×ωA\omega_A=R\omega_B,\qquad Rv_B=v_A-[p]_\times\omega_A
vA=RvB+[p]×RωBv_A=Rv_B+[p]_\times R\omega_B

Stack these to obtain the inverse velocity matrix.

3 · Transform the wrench. Rotate force and add the moment of that force about the new origin:

fA=RfB,nA=RnB+[p]×RfBf_A=Rf_B,\qquad n_A=Rn_B+[p]_\times Rf_B

If the forward velocity operator is X, these coefficients equal Xᵀ. Check the direction using power:

νB=XνA⇒FBTνB=FBTXνA=(XTFB)TνA\nu_B=X\nu_A\quad\Rightarrow\quad F_B^T\nu_B=F_B^TX\nu_A=(X^TF_B)^T\nu_A
FA=XTFB\boxed{F_A=X^TF_B}

The transpose therefore pairs opposite velocity/wrench mapping directions. The PPT prints the matrices; the component assembly and inversion here make the stated relationships explicit.

6.4 Practice and recall

Use the next/previous buttons and reveal each answer only after attempting the question. Answers are retained from the original notebook.

Chapter 6 practice questions · Interactive demonstration

7. Acceleration, inertia & Newton-Euler

Compute the forces and moments required by motion.

7.1 Forward and inverse dynamics

Explanation / application, not a source quotation

Forward dynamics (analysis): from applied effort and current state, find acceleration and integrate motion. Inverse dynamics (design): from q,q˙,q¨q,\dot q,\ddot q, find the required effort.

With all terms in A, r=RBpr=R{}^B p, and relative velocity/acceleration differentiated in B:

aP=aBorg+Rarel+2ω×(Rvrel)+α×r+ω×(ω×r)a_P=a_{Borg}+R a_{rel}+2\omega\times(Rv_{rel})+\alpha\times r+\omega\times(\omega\times r)
(33)

Terms: translation, relative acceleration, Coriolis, tangential, and centripetal acceleration. For a body-fixed point, the relative terms vanish.

AΩC=AΩB+RBΩC{}^A\Omega_C={}^A\Omega_B+R{}^B\Omega_C
(34)
AΩ˙C=AΩ˙B+RBΩ˙C+AΩB×(RBΩC){}^A\dot\Omega_C={}^A\dot\Omega_B+R{}^B\dot\Omega_C+{}^A\Omega_B\times(R{}^B\Omega_C)
(35)

Derivation · Differentiate velocity to obtain acceleration

PPT Part 2 · slides 28-30 · intermediate algebra expanded

Use r=RBrr=R{}^Br, vr=Rvrelv_r=Rv_{rel}, and α=ω˙\alpha=\dot\omega, with all displayed vectors expressed in A. The subscript r here denotes relative motion expressed in A; it is unrelated to the controller command u.

1 · Apply the rotating-frame derivative rule twice.

r˙=vr+ω×r,v˙r=Rarel+ω×vr\dot r=v_r+\omega\times r,\qquad\dot v_r=Ra_{rel}+\omega\times v_r

2 · Differentiate each term of the full point velocity.

v=vO+vr+ω×rv=v_O+v_r+\omega\times r
a=aO+v˙r+ω˙×r+ω×r˙a=a_O+\dot v_r+\dot\omega\times r+\omega\times\dot r

3 · Substitute the two derivatives.

a=aO+Rarel+ω×vr+α×r+ω×(vr+ω×r)a=a_O+Ra_{rel}+\omega\times v_r+\alpha\times r+\omega\times(v_r+\omega\times r)
a=aO+Rarel+2ω×vr+α×r+ω×(ω×r)\boxed{a=a_O+Ra_{rel}+2\omega\times v_r+\alpha\times r+\omega\times(\omega\times r)}

The two copies of ω × vᵣ give Coriolis acceleration. For a point fixed in B, vᵣ = aᵣₑₗ = 0, leaving the translation, tangential, and centripetal terms (source equations 70-71).

4 · Angular-acceleration composition (source equations 72-73).

AΩC=AΩB+RBΩC{}^A\Omega_C={}^A\Omega_B+R{}^B\Omega_C
AΩ˙C=AΩ˙B+ddt(RBΩC){}^A\dot\Omega_C={}^A\dot\Omega_B+\frac d{dt}(R{}^B\Omega_C)
AΩ˙C=AΩ˙B+RBΩ˙C+AΩB×(RBΩC)\boxed{{}^A\dot\Omega_C={}^A\dot\Omega_B+R{}^B\dot\Omega_C+{}^A\Omega_B\times(R{}^B\Omega_C)}

The final cross product appears because B’s axes rotate while the second angular-velocity vector is being differentiated.

7.2 Inertia tensor

Explanation / application, not a source quotation

I=[Ixx−Ixy−Ixz−IxyIyy−Iyz−Ixz−IyzIzz]I=\begin{bmatrix}I_{xx}&-I_{xy}&-I_{xz}\\-I_{xy}&I_{yy}&-I_{yz}\\-I_{xz}&-I_{yz}&I_{zz}\end{bmatrix}
(36)
Ixx=∫(y2+z2) dm,Iyy=∫(x2+z2) dm,Izz=∫(x2+y2) dmI_{xx}=\int(y^2+z^2)\,dm,\quad I_{yy}=\int(x^2+z^2)\,dm,\quad I_{zz}=\int(x^2+y^2)\,dm
(37)
Ixy=∫xy dm,Ixz=∫xz dm,Iyz=∫yz dm,dm=ρ dVI_{xy}=\int xy\,dm,\quad I_{xz}=\int xz\,dm,\quad I_{yz}=\int yz\,dm,\qquad dm=\rho\,dV
(38)

Six independent quantities characterize the symmetric tensor for a chosen origin and orientation. Products can have either sign. Principal axes diagonalize I: eigenvectors are principal axes, eigenvalues are principal moments.

The tensor depends on origin and orientation. At a fixed origin, its trace is unchanged by rotating the frame. Moments are nonnegative (strictly positive for an ordinary extended 3D body); ideal point/line distributions may have zero moments.

Fig. 6 Differential Volume Element.

7.3 Newton and Euler equations

Fi=miaCi,Ni=ICiαi+ωi×(ICiωi)F_i=m_i a_{Ci},\qquad N_i=I_{Ci}\alpha_i+\omega_i\times(I_{Ci}\omega_i)
(39)

F is the net external force; N is the net moment about the centre of mass. Express I and the angular vectors in a common frame. Each link is treated as a rigid body, with known mass, COM, and COM inertia tensor.

Base → tip velocities + accelerations → Each link F = ma; Euler moment → Tip → base interaction loads + effort

Fig. 7 Force acting on Centre of Mass of Body.
Fig. 8 Moment acting on Body.

7.4 Outward recursion: revolute and prismatic

Use the rotation ii+1R{}^{i+1}_iR, p=ipi+1,orgp={}^i p_{i+1,org}, z=[0,0,1]Tz=[0,0,1]^T. Vectors on each side use the link frame indicated by their index.

Revolute:

ωi+1=ii+1Rωi+θ˙i+1z\omega_{i+1}={}^{i+1}_iR\omega_i+\dot\theta_{i+1}z
(40)
αi+1=ii+1Rαi+(ii+1Rωi)×(θ˙i+1z)+θ¨i+1z\alpha_{i+1}={}^{i+1}_iR\alpha_i+({}^{i+1}_iR\omega_i)\times(\dot\theta_{i+1}z)+\ddot\theta_{i+1}z
(41)
ai+1=ii+1R{ai+αi×p+ωi×(ωi×p)}a_{i+1}={}^{i+1}_iR\{a_i+\alpha_i\times p+\omega_i\times(\omega_i\times p)\}
(42)

Prismatic: ωi+1=ii+1Rωi\omega_{i+1}={}^{i+1}_iR\omega_i, αi+1=ii+1Rαi\alpha_{i+1}={}^{i+1}_iR\alpha_i, with

ai+1=ii+1R{ai+αi×p+ωi×(ωi×p)}+2ωi+1×(d˙i+1z)+d¨i+1za_{i+1}={}^{i+1}_iR\{a_i+\alpha_i\times p+\omega_i\times(\omega_i\times p)\}+2\omega_{i+1}\times(\dot d_{i+1}z)+\ddot d_{i+1}z
(43)

COM, either joint type: let ri=ipCir_i={}^i p_{Ci}.

aCi=ai+αi×ri+ωi×(ωi×ri)a_{Ci}=a_i+\alpha_i\times r_i+\omega_i\times(\omega_i\times r_i)
(44)

Apply Newton-Euler at each COM. Fixed base: ω0=α0=0\omega_0=\alpha_0=0. Include gravity by initializing a0=−g0a_0=-g_0, where g0g_0 is the physical gravity vector; then do not add gravity a second time.

Derivation · Obtain outward acceleration recursion

PPT Part 2 · slides 38-39, 43 · intermediate algebra expanded

Use the rotation ii+1R{}^{i+1}_iR, p=ipi+1,orgp={}^ip_{i+1,org}, and z=[0,0,1]Tz=[0,0,1]^T. Each link vector uses its own frame. This is an application of the preceding transport formulas, as on slides 38-39.

1 · Revolute angular velocity and acceleration.

ωi+1=ii+1Rωi+θ˙i+1z\omega_{i+1}={}^{i+1}_iR\omega_i+\dot\theta_{i+1}z
αi+1=ii+1Rαi+(ii+1Rωi)×(θ˙i+1z)+θ¨i+1z\alpha_{i+1}={}^{i+1}_iR\alpha_i+({}^{i+1}_iR\omega_i)\times(\dot\theta_{i+1}z)+\ddot\theta_{i+1}z

The middle term transports the joint’s angular-rate vector with the parent rotation. The last term is the joint’s angular acceleration.

2 · Revolute origin acceleration. The origin offset is fixed on the preceding link. Set relative velocity and acceleration to zero in the point-acceleration rule:

ai+1=ii+1R{ai+αi×p+ωi×(ωi×p)}a_{i+1}={}^{i+1}_iR\{a_i+\alpha_i\times p+\omega_i\times(\omega_i\times p)\}

3 · Prismatic origin acceleration. A sliding joint instead contributes relative velocity ḋz and relative acceleration d̈z, and no relative angular acceleration:

ωi+1=ii+1Rωi,αi+1=ii+1Rαi\omega_{i+1}={}^{i+1}_iR\omega_i,\quad\alpha_{i+1}={}^{i+1}_iR\alpha_i
ai+1=ii+1R{ai+αi×p+ωi×(ωi×p)}+2ωi+1×(d˙i+1z)+d¨i+1za_{i+1}={}^{i+1}_iR\{a_i+\alpha_i\times p+\omega_i\times(\omega_i\times p)\}+2\omega_{i+1}\times(\dot d_{i+1}z)+\ddot d_{i+1}z

The extra terms are respectively Coriolis and sliding acceleration, both expressed in i+1.

4 · Move from the link origin to its fixed COM.

aCi=ai+αi×ri+ωi×(ωi×ri),ri=ipCia_{Ci}=a_i+\alpha_i\times r_i+\omega_i\times(\omega_i\times r_i),\qquad r_i={}^ip_{Ci}

5 · Compute the required net link loads.

Fi=miaCi,Ni=ICiαi+ωi×(ICiωi)F_i=m_i a_{Ci},\qquad N_i=I_{Ci}\alpha_i+\omega_i\times(I_{Ci}\omega_i)

These complete the outward pass. The inward pass then determines the transmitted loads and joint effort.

7.5 Inward recursion and terminal conditions

Let R=i+1iRR={}^i_{i+1}R, p=ipi+1,orgp={}^ip_{i+1,org}, and ri=ipCir_i={}^ip_{Ci}. All terms below are expressed in frame i.

fi=Rfi+1+Fif_i=Rf_{i+1}+F_i
(45)
ni=Ni+Rni+1+ri×Fi+p×(Rfi+1)n_i=N_i+Rn_{i+1}+r_i\times F_i+p\times(Rf_{i+1})
(46)
τi=zTni (R),τi=zTfi (P)\tau_i=z^Tn_i\ (R),\qquad\tau_i=z^Tf_i\ (P)
(47)

Run from link n back to link 1. Free-space tip: fn+1=nn+1=0f_{n+1}=n_{n+1}=0. For contact, insert the terminal wrench with the chosen interaction-load sign convention.

Fig. 9 Forces and Torques acting on a Link.

Derivation · From link balance to inward recursion

PPT Part 2 · slides 40-43 · intermediate algebra expanded

Newton’s force balance is Fᵢ = fᵢ − Rfᵢ₊₁. About the COM, the parent force fᵢ acts at lever arm −rᵢ. The child reaction force −Rfᵢ₊₁ acts at lever arm p − rᵢ, and the corresponding child reaction moment is −Rnᵢ₊₁. Therefore the moment balance is

Ni=ni−Rni+1−ri×fi−(p−ri)×(Rfi+1)N_i=n_i-Rn_{i+1}-r_i\times f_i-(p-r_i)\times(Rf_{i+1})

Substitute fᵢ = Fᵢ + Rfᵢ₊₁. The two rᵢ × Rfᵢ₊₁ terms cancel:

Ni=ni−Rni+1−ri×Fi−p×(Rfi+1)N_i=n_i-Rn_{i+1}-r_i\times F_i-p\times(Rf_{i+1})

Solve for nᵢ:

ni=Ni+Rni+1+ri×Fi+p×(Rfi+1)n_i=N_i+Rn_{i+1}+r_i\times F_i+p\times(Rf_{i+1})

Project on z to obtain effort. The positive final lever-arm term follows directly from this balance and corrects the sign in slide 41.

7.6 Practice and recall

Use the next/previous buttons and reveal each answer only after attempting the question. Answers are retained from the original notebook.

Chapter 7 practice questions · Interactive demonstration

8. Dynamic models & Lagrange

Recognize inertia, velocity coupling, and gravity in the final equations.

Assumptions: planar revolute joints, mass mim_i concentrated at the distal end of link lil_i, zero COM rotational inertia, rigid links, no terminal load, and physical gravity −gy^0-g\hat y_0. Angles are measured from +x.

τ=M(q)q¨+h(q,q˙)+G(q)\tau=M(q)\ddot q+h(q,\dot q)+G(q)
(48)
M=[(m1+m2)l12+m2l22+2m2l1l2c2m2l22+m2l1l2c2m2l22+m2l1l2c2m2l22]M=\begin{bmatrix}(m_1+m_2)l_1^2+m_2l_2^2+2m_2l_1l_2c_2&m_2l_2^2+m_2l_1l_2c_2\\m_2l_2^2+m_2l_1l_2c_2&m_2l_2^2\end{bmatrix}
(49)
h=[−m2l1l2s2(2θ˙1θ˙2+θ˙22)m2l1l2s2θ˙12],G=[(m1+m2)gl1c1+m2gl2c12m2gl2c12]h=\begin{bmatrix}-m_2l_1l_2s_2(2\dot \theta_1\dot \theta_2+\dot \theta_2^2)\\m_2l_1l_2s_2\dot \theta_1^2\end{bmatrix},\quad G=\begin{bmatrix}(m_1+m_2)gl_1c_1+m_2gl_2c_{12}\\m_2gl_2c_{12}\end{bmatrix}
(50)

Thus τ1=M11θ¨1+M12θ¨2+h1+G1\tau_1=M_{11}\ddot \theta_1+M_{12}\ddot \theta_2+h_1+G_1, and similarly for τ2\tau_2. The slides call the velocity vector C(q,q˙)C(q,\dot q); here h avoids confusing it with a coefficient matrix.

Derivation · Two-link Newton-Euler worked derivation

PPT Part 2 · slides 44-51 · intermediate algebra expanded

This is the complete chronological calculation for slides 44-50, followed by the grouping on slide 51. All vectors are expressed in the frame identified by their link index; c₁₂ and s₁₂ mean cosine and sine of θ₁ + θ₂.

1 · Model and initialization (slides 44-45). Mass mᵢ is concentrated at the distal end of link lᵢ. Thus r₁ = l₁x̂₁, r₂ = l₂x̂₂ and both COM inertia tensors are zero. Use f₃ = n₃ = 0, ω₀ = α₀ = 0, and effective base acceleration a₀ = gŷ₀ for physical gravity −gŷ₀.

i+1iR=[ci+1−si+10si+1ci+10001],ii+1R=(i+1iR)T{}^i_{i+1}R=\begin{bmatrix}c_{i+1}&-s_{i+1}&0\\s_{i+1}&c_{i+1}&0\\0&0&1\end{bmatrix},\qquad{}^{i+1}_iR=({}^i_{i+1}R)^T

2 · Link 1 outward (slides 46-47).

ω1=[00θ˙1],α1=[00θ¨1]\omega_1=\begin{bmatrix}0\\0\\\dot\theta_1\end{bmatrix},\quad\alpha_1=\begin{bmatrix}0\\0\\\ddot\theta_1\end{bmatrix}
a1=01R[0g0]=[c1s10−s1c10001][0g0]=[gs1gc10]a_1={}^1_0R\begin{bmatrix}0\\g\\0\end{bmatrix}=\begin{bmatrix}c_1&s_1&0\\-s_1&c_1&0\\0&0&1\end{bmatrix}\begin{bmatrix}0\\g\\0\end{bmatrix}=\begin{bmatrix}gs_1\\gc_1\\0\end{bmatrix}
aC1=a1+[0l1θ¨10]⏟α1×r1+[−l1θ˙1200]⏟ω1×(ω1×r1)a_{C1}=a_1+\underbrace{\begin{bmatrix}0\\l_1\ddot\theta_1\\0\end{bmatrix}}_{\alpha_1\times r_1}+\underbrace{\begin{bmatrix}-l_1\dot\theta_1^2\\0\\0\end{bmatrix}}_{\omega_1\times(\omega_1\times r_1)}
F1=m1[−l1θ˙12+gs1l1θ¨1+gc10],N1=0F_1=m_1\begin{bmatrix}-l_1\dot\theta_1^2+gs_1\\l_1\ddot\theta_1+gc_1\\0\end{bmatrix},\qquad N_1=0

3 · Link 2 angular state and origin acceleration (slide 47). All angular-rate vectors are parallel to z, so the angular-transport cross product is zero.

ω2=[00θ˙1+θ˙2],α2=[00θ¨1+θ¨2]\omega_2=\begin{bmatrix}0\\0\\\dot\theta_1+\dot\theta_2\end{bmatrix},\quad\alpha_2=\begin{bmatrix}0\\0\\\ddot\theta_1+\ddot\theta_2\end{bmatrix}
a2=12R[−l1θ˙12+gs1l1θ¨1+gc10]=[l1θ¨1s2−l1θ˙12c2+gs12l1θ¨1c2+l1θ˙12s2+gc120]a_2={}^2_1R\begin{bmatrix}-l_1\dot\theta_1^2+gs_1\\l_1\ddot\theta_1+gc_1\\0\end{bmatrix}=\begin{bmatrix}l_1\ddot\theta_1s_2-l_1\dot\theta_1^2c_2+gs_{12}\\l_1\ddot\theta_1c_2+l_1\dot\theta_1^2s_2+gc_{12}\\0\end{bmatrix}

4 · Link 2 COM acceleration and force (slide 48).

aC2=a2+[0l2(θ¨1+θ¨2)0]⏟α2×r2+[−l2(θ˙1+θ˙2)200]⏟ω2×(ω2×r2)a_{C2}=a_2+\underbrace{\begin{bmatrix}0\\l_2(\ddot\theta_1+\ddot\theta_2)\\0\end{bmatrix}}_{\alpha_2\times r_2}+\underbrace{\begin{bmatrix}-l_2(\dot\theta_1+\dot\theta_2)^2\\0\\0\end{bmatrix}}_{\omega_2\times(\omega_2\times r_2)}
F2=m2[l1θ¨1s2−l1θ˙12c2+gs12−l2(θ˙1+θ˙2)2l1θ¨1c2+l1θ˙12s2+gc12+l2(θ¨1+θ¨2)0],N2=0F_2=m_2\begin{bmatrix}l_1\ddot\theta_1s_2-l_1\dot\theta_1^2c_2+gs_{12}-l_2(\dot\theta_1+\dot\theta_2)^2\\l_1\ddot\theta_1c_2+l_1\dot\theta_1^2s_2+gc_{12}+l_2(\ddot\theta_1+\ddot\theta_2)\\0\end{bmatrix},\quad N_2=0

5 · Link 2 inward (slide 49). With zero terminal load:

f2=F2,n2=r2×F2=[00l2F2y]f_2=F_2,\qquad n_2=r_2\times F_2=\begin{bmatrix}0\\0\\l_2F_{2y}\end{bmatrix}
τ2=m2l1l2c2θ¨1+m2l22(θ¨1+θ¨2)+m2l1l2s2θ˙12+m2gl2c12\boxed{\tau_2=m_2l_1l_2c_2\ddot\theta_1+m_2l_2^2(\ddot\theta_1+\ddot\theta_2)+m_2l_1l_2s_2\dot\theta_1^2+m_2gl_2c_{12}}

6 · Link 1 inward (slides 49-50). Put R = ¹₂R and p₂ = l₁x̂₁:

f1=RF2+F1=[c2F2x−s2F2y+F1xs2F2x+c2F2y+F1y0]f_1=RF_2+F_1=\begin{bmatrix}c_2F_{2x}-s_2F_{2y}+F_{1x}\\s_2F_{2x}+c_2F_{2y}+F_{1y}\\0\end{bmatrix}
n1=Rn2+r1×F1+p2×RF2n_1=Rn_2+r_1\times F_1+p_2\times RF_2
n1=[00τ2+l1F1y+l1(s2F2x+c2F2y)],τ1=zTn1n_1=\begin{bmatrix}0\\0\\\tau_2+l_1F_{1y}+l_1(s_2F_{2x}+c_2F_{2y})\end{bmatrix},\quad\tau_1=z^Tn_1

7 · Expand the child-force projection before collecting terms.

s2F2x+c2F2ym2=l1θ¨1(s22+c22)+l1θ˙12(−s2c2+c2s2)+g(s2s12+c2c12)−l2s2(θ˙1+θ˙2)2+l2c2(θ¨1+θ¨2)\begin{aligned}\frac{s_2F_{2x}+c_2F_{2y}}{m_2}={}&l_1\ddot\theta_1(s_2^2+c_2^2)\\&+l_1\dot\theta_1^2(-s_2c_2+c_2s_2)\\&+g(s_2s_{12}+c_2c_{12})\\&-l_2s_2(\dot\theta_1+\dot\theta_2)^2\\&+l_2c_2(\ddot\theta_1+\ddot\theta_2)\end{aligned}
=l1θ¨1+gc1−l2s2(θ˙1+θ˙2)2+l2c2(θ¨1+θ¨2)=l_1\ddot\theta_1+gc_1-l_2s_2(\dot\theta_1+\dot\theta_2)^2+l_2c_2(\ddot\theta_1+\ddot\theta_2)

Substitute τ₂, F₁ᵧ, and this projection into τ₁ before collecting:

τ1=m2l22(θ¨1+θ¨2)+m2l1l2c2θ¨1+m2l1l2s2θ˙12+m2gl2c12+m1l12θ¨1+m1gl1c1+m2l12θ¨1+m2gl1c1−m2l1l2s2(θ˙1+θ˙2)2+m2l1l2c2(θ¨1+θ¨2).\begin{aligned}\tau_1={}&m_2l_2^2(\ddot\theta_1+\ddot\theta_2)+m_2l_1l_2c_2\ddot\theta_1\\&+m_2l_1l_2s_2\dot\theta_1^2+m_2gl_2c_{12}\\&+m_1l_1^2\ddot\theta_1+m_1gl_1c_1\\&+m_2l_1^2\ddot\theta_1+m_2gl_1c_1\\&-m_2l_1l_2s_2(\dot\theta_1+\dot\theta_2)^2\\&+m_2l_1l_2c_2(\ddot\theta_1+\ddot\theta_2).\end{aligned}

The squared-rate terms from τ₂ and this projection combine as

m2l1l2s2θ˙12−m2l1l2s2(θ˙1+θ˙2)2=m2l1l2s2[θ˙12−θ˙12−2θ˙1θ˙2−θ˙22]=−m2l1l2s2(2θ˙1θ˙2+θ˙22).\begin{aligned}&m_2l_1l_2s_2\dot\theta_1^2-m_2l_1l_2s_2(\dot\theta_1+\dot\theta_2)^2\\&=m_2l_1l_2s_2[\dot\theta_1^2-\dot\theta_1^2-2\dot\theta_1\dot\theta_2-\dot\theta_2^2]\\&=-m_2l_1l_2s_2(2\dot\theta_1\dot\theta_2+\dot\theta_2^2).\end{aligned}

8 · Final collected joint-1 torque (slide 50).

τ1=[(m1+m2)l12+m2l22+2m2l1l2c2]θ¨1+[m2l22+m2l1l2c2]θ¨2−m2l1l2s2(2θ˙1θ˙2+θ˙22)+(m1+m2)gl1c1+m2gl2c12\boxed{\begin{aligned}\tau_1={}&[(m_1+m_2)l_1^2+m_2l_2^2+2m_2l_1l_2c_2]\ddot\theta_1\\&+[m_2l_2^2+m_2l_1l_2c_2]\ddot\theta_2\\&-m_2l_1l_2s_2(2\dot\theta_1\dot\theta_2+\dot\theta_2^2)\\&+(m_1+m_2)gl_1c_1+m_2gl_2c_{12}\end{aligned}}

9 · Match each coefficient to M, h, G (slide 51).

τ1=M11θ¨1+M12θ¨2+h1+G1,τ2=M21θ¨1+M22θ¨2+h2+G2\tau_1=M_{11}\ddot\theta_1+M_{12}\ddot\theta_2+h_1+G_1,\qquad\tau_2=M_{21}\ddot\theta_1+M_{22}\ddot\theta_2+h_2+G_2
M11=(m1+m2)l12+m2l22+2m2l1l2c2,M12=M21=m2l22+m2l1l2c2,M22=m2l22,h1=−m2l1l2s2(2θ˙1θ˙2+θ˙22),h2=m2l1l2s2θ˙12,G1=(m1+m2)gl1c1+m2gl2c12,G2=m2gl2c12.\begin{aligned}M_{11}&=(m_1+m_2)l_1^2+m_2l_2^2+2m_2l_1l_2c_2,\\M_{12}=M_{21}&=m_2l_2^2+m_2l_1l_2c_2,\qquad M_{22}=m_2l_2^2,\\h_1&=-m_2l_1l_2s_2(2\dot\theta_1\dot\theta_2+\dot\theta_2^2),\\h_2&=m_2l_1l_2s_2\dot\theta_1^2,\\G_1&=(m_1+m_2)gl_1c_1+m_2gl_2c_{12},\qquad G_2=m_2gl_2c_{12}.\end{aligned}

Thus τ = Mθ̈ + h + G, matching the displayed matrices. The source calls h by C(θ,θ̇); the notes keep that alias explicit. The calculation uses the corrected source subscripts and signs already flagged above.

8.2 Configuration-space coefficient form

τ=M(q)q¨+B(q)[q˙q˙]+Cc(q)[q˙2]+G(q)\tau=M(q)\ddot q+B(q)[\dot q\dot q]+C_c(q)[\dot q^2]+G(q)
(51)

The cross-product vector contains all distinct q˙iq˙j\dot q_i\dot q_j for i<ji<j, so it has n(n−1)/2n(n-1)/2 entries. The squared-rate vector has n entries. B is n×n(n−1)/2n\times n(n-1)/2, and CcC_c is n×nn\times n; their coefficients depend only on q.

For the 2R model, put a=m2l1l2sin⁡θ2a=m_2l_1l_2\sin \theta_2:

B=[−2a0],Cc=[0−aa0],[q˙q˙]=[θ˙1θ˙2],[q˙2]=[θ˙12θ˙22]B=\begin{bmatrix}-2a\\0\end{bmatrix},\quad C_c=\begin{bmatrix}0&-a\\a&0\end{bmatrix},\quad[\dot q\dot q]=[\dot \theta_1\dot \theta_2],\quad[\dot q^2]=\begin{bmatrix}\dot \theta_1^2\\\dot \theta_2^2\end{bmatrix}
(52)

The two velocity contributions together equal h above. This organization separates configuration-dependent coefficients from rate products.

Derivation · Separate Coriolis products from squared rates

PPT Part 2 · slides 52-53 · intermediate algebra expanded

With a = m₂l₁l₂sin θ₂, the velocity vector is

h=[−2aθ˙1θ˙2−aθ˙22aθ˙12]h=\begin{bmatrix}-2a\dot \theta_1\dot \theta_2-a\dot \theta_2^2\\a\dot \theta_1^2\end{bmatrix}

Collect the distinct mixed product in one vector and squared rates in another:

h=[−2a0][θ˙1θ˙2]+[0−aa0][θ˙12θ˙22]h=\begin{bmatrix}-2a\\0\end{bmatrix}[\dot \theta_1\dot \theta_2]+\begin{bmatrix}0&-a\\a&0\end{bmatrix}\begin{bmatrix}\dot \theta_1^2\\\dot \theta_2^2\end{bmatrix}

Reading off the coefficients gives the B and C꜀ matrices. The decomposition reorganizes the same dynamics; it does not add forces.

8.3 Lagrangian formulation

Explanation / application, not a source quotation

K=∑i(12mivCiTvCi+12ωiTICiωi)=12q˙TM(q)q˙K=\sum_i\left(\tfrac12m_iv_{Ci}^Tv_{Ci}+\tfrac12\omega_i^TI_{Ci}\omega_i\right)=\tfrac12\dot q^TM(q)\dot q
(53)
P=∑i(−mig0T0pCi+Pref,i),L=K−PP=\sum_i(-m_i g_0^T{}^0p_{Ci}+P_{ref,i}),\qquad L=K-P
(54)
τi=ddt∂L∂q˙i−∂L∂qi\boxed{\tau_i=\frac{d}{dt}\frac{\partial L}{\partial\dot q_i}-\frac{\partial L}{\partial q_i}}
(55)

Equivalent energy form: τi=ddt∂K∂q˙i−∂K∂qi+∂P∂qi\tau_i=\frac{d}{dt}\frac{\partial K}{\partial\dot q_i}-\frac{\partial K}{\partial q_i}+\frac{\partial P}{\partial q_i}. A constant reference potential does not affect the equations.

Exam workflow: locate COMs → derive COM velocities → sum K and P → form L → apply the equation for each joint → group terms into Mq¨+h+GM\ddot q+h+G.

Supporting energy check for the same 2R model, not an extra PPT derivation

K=12(m1+m2)l12θ˙12+12m2l22(θ˙1+θ˙2)2+m2l1l2c2θ˙1(θ˙1+θ˙2)K=\tfrac12(m_1+m_2)l_1^2\dot \theta_1^2+\tfrac12m_2l_2^2(\dot \theta_1+\dot \theta_2)^2+m_2l_1l_2c_2\dot \theta_1(\dot \theta_1+\dot \theta_2)
P=(m1+m2)gl1sin⁡θ1+m2gl2sin⁡(θ1+θ2)+constantP=(m_1+m_2)gl_1\sin \theta_1+m_2gl_2\sin(\theta_1+\theta_2)+\text{constant}

Differentiate these expressions to obtain the M, h, and G in §8.1.

Derivation · Insert L = K − P in the given equation of motion

PPT Part 2 · slides 54-56 · intermediate algebra expanded

What the source does: slides 54-55 state the link and total energy formulas. Slide 56 states the Euler-Lagrange equation, then substitutes L = K − P. A first-principles proof of the Euler-Lagrange law is not supplied by this PPT.

τi=ddt∂L∂q˙i−∂L∂qi,L=K−P\tau_i=\frac d{dt}\frac{\partial L}{\partial\dot q_i}-\frac{\partial L}{\partial q_i},\qquad L=K-P

Because gravitational potential P depends on q and not on q̇,

∂P∂q˙i=0,∂L∂q˙i=∂K∂q˙i,∂L∂qi=∂K∂qi−∂P∂qi\frac{\partial P}{\partial\dot q_i}=0,\quad\frac{\partial L}{\partial\dot q_i}=\frac{\partial K}{\partial\dot q_i},\quad\frac{\partial L}{\partial q_i}=\frac{\partial K}{\partial q_i}-\frac{\partial P}{\partial q_i}

Insert both derivatives into the stated equation:

τi=ddt∂K∂q˙i−(∂K∂qi−∂P∂qi)\tau_i=\frac d{dt}\frac{\partial K}{\partial\dot q_i}-\left(\frac{\partial K}{\partial q_i}-\frac{\partial P}{\partial q_i}\right)
τi=ddt∂K∂q˙i−∂K∂qi+∂P∂qi\boxed{\tau_i=\frac d{dt}\frac{\partial K}{\partial\dot q_i}-\frac{\partial K}{\partial q_i}+\frac{\partial P}{\partial q_i}}

The outer minus sign changes the potential term’s sign. Use the link energies and sums stated above; an additive constant potential has zero derivative.

8.4 Cartesian-space dynamics

For a square nonsingular J and compatible local task coordinates:

x˙=Jq˙,x¨=Jq¨+J˙q˙,q¨=J−1(x¨−J˙q˙)\dot x=J\dot q,\quad\ddot x=J\ddot q+\dot J\dot q,\quad\ddot q=J^{-1}(\ddot x-\dot J\dot q)
(56)
Mxx¨+hx+Gx=FM_x\ddot x+h_x+G_x=F
(57)
Mx=J−TMJ−1,hx=J−T(h−MJ−1J˙q˙),Gx=J−TGM_x=J^{-T}MJ^{-1},\quad h_x=J^{-T}(h-MJ^{-1}\dot J\dot q),\quad G_x=J^{-T}G
(58)
τ=JTF=JT(Mxx¨+hx+Gx)\tau=J^TF=J^T(M_x\ddot x+h_x+G_x)
(59)

The velocity terms can also be regrouped into Cartesian-derived coefficient matrices multiplying joint-rate cross products and squares, as on slide 59. These inverse formulas fail at singularities and do not directly apply to rectangular J.

Derivation · Convert joint dynamics to Cartesian dynamics

PPT Part 2 · slides 57-59 · intermediate algebra expanded

Assume a square nonsingular Jacobian with compatible task coordinates, reference point, and expression frame. The PPT’s V or C vector of velocity-dependent efforts is denoted h here.

1 · Start in joint space and use virtual work.

τ=Mq¨+h+G,τ=JTF\tau=M\ddot q+h+G,\qquad\tau=J^TF
F=J−TMq¨+J−Th+J−TGF=J^{-T}M\ddot q+J^{-T}h+J^{-T}G

2 · Differentiate the velocity map by the product rule.

x˙=J(q)q˙⇒x¨=J˙q˙+Jq¨\dot x=J(q)\dot q\quad\Rightarrow\quad\ddot x=\dot J\dot q+J\ddot q
Jq¨=x¨−J˙q˙⇒q¨=J−1x¨−J−1J˙q˙J\ddot q=\ddot x-\dot J\dot q\quad\Rightarrow\quad\ddot q=J^{-1}\ddot x-J^{-1}\dot J\dot q

3 · Substitute without skipping the matrix products.

F=J−TM(J−1x¨−J−1J˙q˙)+J−Th+J−TGF=J^{-T}M(J^{-1}\ddot x-J^{-1}\dot J\dot q)+J^{-T}h+J^{-T}G
F=J−TMJ−1x¨−J−TMJ−1J˙q˙+J−Th+J−TGF=J^{-T}MJ^{-1}\ddot x-J^{-T}MJ^{-1}\dot J\dot q+J^{-T}h+J^{-T}G

4 · Group the acceleration, velocity-dependent, and gravity terms.

Mx=J−TMJ−1,hx=J−T(h−MJ−1J˙q˙),Gx=J−TGM_x=J^{-T}MJ^{-1},\qquad h_x=J^{-T}(h-MJ^{-1}\dot J\dot q),\qquad G_x=J^{-T}G
Mxx¨+hx+Gx=F\boxed{M_x\ddot x+h_x+G_x=F}

5 · Return to joint effort, as in source equations 136-139.

τ=JT(Mxx¨+hx+Gx)\tau=J^T(M_x\ddot x+h_x+G_x)

Regrouping Jᵀhₓ into distinct mixed-rate and squared-rate terms produces the coefficient form shown in the section above. JᵀGₓ = G, since J is invertible. Matrix order matters: the correction contains M J⁻¹ J̇ q̇, not M J̇ J⁻¹q̇.

8.5 Practice and recall

Use the next/previous buttons and reveal each answer only after attempting the question. Answers are retained from the original notebook.

Chapter 8 practice questions · Interactive demonstration

9. Linear control & tracking

Shape error dynamics while respecting model limits.

PD joint control: step response · Interactive demonstration

9.1 Robot feedback and independent joint control

Explanation / application, not a source quotation

A manipulator is nonlinear and coupled. Joint sensors measure q and sometimes q˙\dot q; actuators apply a torque vector. The trajectory generator supplies qd,q˙d,q¨dq_d,\dot q_d,\ddot q_d.

τff=M(qd)q¨d+h(qd,q˙d)+G(qd)\tau_{ff}=M(q_d)\ddot q_d+h(q_d,\dot q_d)+G(q_d)
(60)

This open-loop feedforward follows the desired motion only with a correct model, matching initial conditions, and no disturbance. It does not correct errors using measured motion.

e=qd−q,e˙=q˙d−q˙e=q_d-q,\qquad\dot e=\dot q_d-\dot q
(61)

Closed-loop control uses these errors to compute effort. Design first for stability, then tracking and disturbance performance. The full robot is MIMO; treating n joints as independent SISO systems is an approximation because the equations are coupled.

Desired trajectory → Controller → τ Robot → q, q̇

Measured q and q̇ return to the controller as negative feedback.

Fig. 10 Robot Control System.

9.2 Second-order system and damping

mx¨+bx˙+kx=0,ms2+bs+k=0m\ddot x+b\dot x+kx=0,\quad ms^2+bs+k=0
(62)
s1,2=−b±b2−4mk2m,ωn=k/m,ζ=b2mks_{1,2}=\frac{-b\pm\sqrt{b^2-4mk}}{2m},\quad\omega_n=\sqrt{k/m},\quad\zeta=\frac{b}{2\sqrt{mk}}
(63)
Condition (m,k > 0; b ≥ 0) Response
b2>4mkb^2>4mk, ζ>1\zeta>1 Overdamped: real distinct negative poles, nonoscillatory
b2=4mkb^2=4mk, ζ=1\zeta=1 Critical: repeated negative pole, fastest nonoscillatory standard response for fixed natural frequency
0<b2<4mk0<b^2<4mk, 0<ζ<10<\zeta<1 Underdamped: complex poles, decaying oscillation
b=0b=0, ζ=0\zeta=0 Undamped: sustained oscillation

The initial position and velocity determine x(t). Negative damping is not a decaying underdamped case.

Fig. 11 Mass-Spring-Damper System.

Derivation · Characteristic equation and damping cases

PPT Part 3 · slides 8-10 · intermediate algebra expanded

Try x(t) = Ceˢᵗ in mẍ + bẋ + kx = 0. Substitution gives

(ms2+bs+k)Cest=0⇒ms2+bs+k=0(ms^2+bs+k)Ce^{st}=0\quad\Rightarrow\quad ms^2+bs+k=0
s1,2=−b±b2−4mk2ms_{1,2}=\frac{-b\pm\sqrt{b^2-4mk}}{2m}

The sign of the discriminant b² − 4mk determines real distinct, repeated real, or complex conjugate poles. Critical damping sets it to zero:

b2=4mk⇒b=2mk(b≥0)b^2=4mk\quad\Rightarrow\quad b=2\sqrt{mk}\quad(b\ge0)

Dividing the characteristic polynomial by m and comparing with s² + 2ζωₙs + ωₙ² gives the natural-frequency and damping-ratio expressions used in the lab.

9.3 PD regulation and gain selection

Explanation / application, not a source quotation

mx¨+bx˙+kx=f,f=−kpx−kvx˙m\ddot x+b\dot x+kx=f,\qquad f=-k_px-k_v\dot x
(64)
mx¨+(b+kv)x˙+(k+kp)x=0m\ddot x+(b+k_v)\dot x+(k+k_p)x=0
(65)

Position feedback changes effective stiffness; velocity feedback changes effective damping. This regulates the block to zero position.

k1=k+kp,b1=b+kv,b1=2mk1for critical dampingk_1=k+k_p,\quad b_1=b+k_v,\quad b_1=2\sqrt{mk_1}\quad\text{for critical damping}
(66)

For desired ωn,ζ\omega_n,\zeta, choose kp=mωn2−kk_p=m\omega_n^2-k and kv=2mζωn−bk_v=2m\zeta\omega_n-b. Gains may be negative; stability requires m>0m>0, b+kv>0b+k_v>0, k+kp>0k+k_p>0. Zero coefficients need separate marginal-stability analysis.

Fig. 12 Mass-Spring-Damper System with Control Input.
Fig. 13 Closed-Loop System.

Derivation · PD feedback changes effective damping and stiffness

PPT Part 3 · slides 12-14 · intermediate algebra expanded

Substitute f = −kₚx − kᵥẋ into the forced plant:

mx¨+bx˙+kx=−kpx−kvx˙m\ddot x+b\dot x+kx=-k_px-k_v\dot x
mx¨+(b+kv)x˙+(k+kp)x=0m\ddot x+(b+k_v)\dot x+(k+k_p)x=0

Define b₁ = b + kᵥ and k₁ = k + kₚ. The characteristic discriminant is b₁² − 4mk₁, so critical damping requires b₁ = 2√(mk₁). Selecting the desired stiffness fixes kₚ; this relation then fixes kᵥ.

9.4 Model cancellation and trajectory tracking

Explanation / application, not a source quotation

Partition the input into a model-based part and a servo part:

f=αu+β,α=m,β=bx˙+kx⟹x¨=uf=\alpha{u}+\beta,\qquad\alpha=m,\quad\beta=b\dot x+kx\quad\Longrightarrow\quad\ddot x={u}
(67)

For regulation: u=−kpx−kvx˙{u}=-k_px-k_v\dot x. For smooth trajectory tracking:

u=x¨d+kve˙+kpe,e=xd−x{u}=\ddot x_d+k_v\dot e+k_pe,\quad e=x_d-x
(68)
e¨+kve˙+kpe=0\boxed{\ddot e+k_v\dot e+k_pe=0}
(69)

Select kp=ωn2k_p=\omega_n^2, kv=2ζωnk_v=2\zeta\omega_n; critical damping gives kv=2kpk_v=2\sqrt{k_p}. These normalized gains differ in units from direct force-feedback gains. Exact cancellation needs an exact model. Zero initial error stays zero ideally; nonzero error decays for positive gains.

Fig. 14 Closed-Loop System.
Fig. 15 Trajectory Tracking Control.

Derivation · Model cancellation and the tracking-error equation

PPT Part 3 · slides 15-19 · intermediate algebra expanded

1 · Cancel known plant terms.

mx¨+bx˙+kx=mu+bx˙+kx⇒x¨=um\ddot x+b\dot x+kx=m{u}+b\dot x+kx\quad\Rightarrow\quad\ddot x={u}

2 · Regulation. Choosing u = −kₚx − kᵥẋ gives ẍ + kᵥẋ + kₚx = 0. Its critical-damping condition is kᵥ² = 4kₚ.

3 · Tracking. Set e = xᵈ − x and choose u = ẍᵈ + kᵥė + kₚe. Since ë = ẍᵈ − ẍ:

e¨=x¨d−(x¨d+kve˙+kpe)=−kve˙−kpe\ddot e=\ddot x_d-(\ddot x_d+k_v\dot e+k_pe)=-k_v\dot e-k_pe
e¨+kve˙+kpe=0\boxed{\ddot e+k_v\dot e+k_pe=0}

The desired acceleration is the feedforward term; the other two terms correct tracking errors.

9.5 Disturbance rejection and PID

Define d as the signed normalized disturbance entering the error equation:

e¨+kve˙+kpe=d(t),∣d(t)∣≤a\ddot e+k_v\dot e+k_pe=d(t),\qquad |d(t)|\le a
(70)

For positive gains the stable linear system is BIBO stable. Constant d gives ess=d/kpe_{ss}=d/k_p: increasing position gain reduces, but does not eliminate, offset.

u=x¨d+kve˙+kpe+ki∫e dt{u}=\ddot x_d+k_v\dot e+k_pe+k_i\int e\,dt
(71)
e...+kve¨+kpe˙+kie=d˙\dddot e+k_v\ddot e+k_p\dot e+k_ie=\dot d
(72)

A stable integral controller rejects a constant disturbance with ess=0e_{ss}=0. For this normalized cubic, stability requires kv,kp,ki>0k_v,k_p,k_i>0 and kvkp>kik_vk_p>k_i (a useful check on the slides’ conclusion).

Fig. 16 Trajectory Tracking Control under Disturbance.

Derivation · PD offset and PID elimination of constant offset

PPT Part 3 · slides 20-23 · intermediate algebra expanded

PD: at steady state under a constant signed normalized disturbance d, set ė = ë = 0:

e¨+kve˙+kpe=d⇒kpess=d⇒ess=d/kp\ddot e+k_v\dot e+k_pe=d\quad\Rightarrow\quad k_pe_{ss}=d\quad\Rightarrow\quad e_{ss}=d/k_p

PID: adding the integral command yields

e¨+kve˙+kpe+ki∫e dt=d\ddot e+k_v\dot e+k_pe+k_i\int e\,dt=d

Differentiate once (for t > 0 in the PPT’s formulation):

e...+kve¨+kpe˙+kie=d˙\dddot e+k_v\ddot e+k_p\dot e+k_ie=\dot d

For a constant disturbance, ḋ = 0. In a stable steady state all error derivatives vanish, so kᵢeₛₛ = 0 and eₛₛ = 0 when kᵢ ≠ 0. Stability is a condition of this conclusion, not a consequence of adding an integral term.

9.6 Practice and recall

Use the next/previous buttons and reveal each answer only after attempting the question. Answers are retained from the original notebook.

Chapter 9 practice questions · Interactive demonstration

10. Rotary joints & digital control

Connect motor physics, gearing, resonance, and sampling.

10.1 DC torque motor and armature circuit

The stator provides the magnetic field; rotor/armature windings carry current. Brushes and a commutator switch current so the torque has the required direction. The magnetic-force relation is F=Qev×BF=Q_e v\times B.

τm=kmia,vemf=keθ˙m\tau_m=k_mi_a,\qquad v_{emf}=k_e\dot\theta_m
(73)
Lai˙a+Raia=va−keθ˙mL_a\dot i_a+R_ai_a=v_a-k_e\dot\theta_m
(74)

Torque is proportional to armature current; back emf is proportional to motor speed. Commutation produces torque ripple, neglected in the simplified model.

Current command → Current-feedback driver → Armature: Lₐ, Rₐ, back emf → τₘ = kₘiₐ

The driver adjusts voltage to track current. Inductance and voltage limits restrict how quickly current and torque can change, producing an effective low-pass response. Direct torque command is an approximation when the motion-control bandwidth is well below current-loop bandwidth.

Fig. 17 Armature Circuit of DC Torque Motor.

10.2 Gearing and reflected inertia

Let η=θ˙m/θ˙>1\eta=\dot\theta_m/\dot\theta>1 be the ideal gear reduction ratio, not efficiency. Ideal gearing increases torque and reduces speed.

τ=ητm,θ˙=θ˙m/η\tau=\eta\tau_m,\qquad\dot\theta=\dot\theta_m/\eta
(75)
τm=Imθ¨m+bmθ˙m+1η(Iθ¨+bθ˙)\tau_m=I_m\ddot\theta_m+b_m\dot\theta_m+\frac1\eta(I\ddot\theta+b\dot\theta)
(76)
τm=(Im+I/η2)θ¨m+(bm+b/η2)θ˙m\tau_m=(I_m+I/\eta^2)\ddot\theta_m+(b_m+b/\eta^2)\dot\theta_m
(77)
τ=(I+η2Im)θ¨+(b+η2bm)θ˙\tau=(I+\eta^2I_m)\ddot\theta+(b+\eta^2b_m)\dot\theta
(78)

At the motor shaft, load inertia reflects down by η2\eta^2. At the output, rotor inertia reflects up by η2\eta^2. Ideal power is conserved.

Fig. 18 DC Torque Motor connected through Gearing to Inertial Load.

Derivation · Reflect inertia and damping through the gears

PPT Part 3 · slides 31-32 · intermediate algebra expanded

Begin with the motor torque balance and ideal ratio θ̇ₘ = ηθ̇. The same constant ratio applies to acceleration.

τm=Imθ¨m+bmθ˙m+Iθ¨+bθ˙η\tau_m=I_m\ddot\theta_m+b_m\dot\theta_m+\frac{I\ddot\theta+b\dot\theta}{\eta}

Motor coordinates: substitute θ̇ = θ̇ₘ/η and θ̈ = θ̈ₘ/η:

τm=(Im+I/η2)θ¨m+(bm+b/η2)θ˙m\tau_m=(I_m+I/\eta^2)\ddot\theta_m+(b_m+b/\eta^2)\dot\theta_m

Load coordinates: substitute θ̇ₘ = ηθ̇, θ̈ₘ = ηθ̈ and multiply by η, since τ = ητₘ:

τ=(I+η2Im)θ¨+(b+η2bm)θ˙\tau=(I+\eta^2I_m)\ddot\theta+(b+\eta^2b_m)\dot\theta

The two factors of η come from motion scaling and torque scaling.

10.3 Structural flexibility and practical gains

Shafts, gears, bearings, and links have finite stiffness. Neglecting flexibility removes higher-order resonances from the model, but control must avoid exciting them. The slides cite typical industrial structural resonances of 5-25 Hz; this is a course example range.

ωr≈k/m,ωn≤12ωr\omega_r\approx\sqrt{k/m},\qquad\omega_n\le\tfrac12\omega_r
(79)

The half-resonance limit is the slides’ design rule. Use a consistent unit: ω=2πf\omega=2\pi f. With high reduction, approximate output inertia by α=Imax+η2Im\alpha=I_{max}+\eta^2I_m, and set β=(b+η2bm)θ˙\beta=(b+\eta^2b_m)\dot\theta.

τ=αu+β,u=θ¨d+kve˙+kpe\tau=\alpha{u}+\beta,\qquad{u}=\ddot\theta_d+k_v\dot e+k_pe
(80)
kp=ωn2≤ωr2/4,kv=2kp≤ωr(ζ=1)k_p=\omega_n^2\le\omega_r^2/4,\quad k_v=2\sqrt{k_p}\le\omega_r\quad(\zeta=1)
(81)

At the chosen upper bandwidth limit the inequalities become equalities. The approximate error model is e¨+kve˙+kpe=d\ddot e+k_v\dot e+k_pe=d; model errors and coupling enter d. Increasing gains improves nominal speed and offset but is limited by unmodeled dynamics.

Derivation · Normalized rotary-joint control and resonance-limited gains

PPT Part 3 · slides 33-35 · intermediate algebra expanded

Approximate the output model by αθ̈ + bₑθ̇ = τ with α = Iₘₐₓ + η²Iₘ and bₑ = b + η²bₘ. Choose τ = αu + bₑθ̇, giving θ̈ = u. Insert u = θ̈ᵈ + kᵥė + kₚe:

e¨+kve˙+kpe=0\ddot e+k_v\dot e+k_pe=0

For critical damping kₚ = ωₙ² and kᵥ = 2ωₙ. At the PPT’s maximum choice ωₙ = ωᵣ/2:

kp=ωr2/4,kv=ωrk_p=\omega_r^2/4,\qquad k_v=\omega_r

At a lower chosen bandwidth, both gains reduce accordingly. Modeling error and disturbances act as forcing terms in the approximate error equation.

10.4 Digital implementation and sampling

A digital controller computes at finite intervals; the held actuator command is a staircase signal. Continuous-time design is a useful approximation only when computation and sampling are fast relative to the relevant dynamics.

Constraint in the slides Meaning
Reference content Sampling rate at least twice the reference bandwidth; practical designs need margin
Disturbance rejection Ts≲Tcorr/10T_s\lesssim T_{corr}/10 as the stated rule
Analog sensor aliasing Band-limit with an anti-alias filter and choose a rate making aliased energy small
Structural vibrations At least twice the highest relevant resonance frequency to be represented; suppression requires additional control margin

Nyquist is a signal-representation bound, not a complete feedback design rule. Delays, current-loop bandwidth, sensor noise, and flexible modes all constrain useful gains and sample rate.

10.5 Practice and recall

Use the next/previous buttons and reveal each answer only after attempting the question. Answers are retained from the original notebook.

Chapter 10 practice questions · Interactive demonstration

Source and notation notes

This article was adapted from the supplied Robotics Exam Notebook HTML export. The original notebook identifies three course slide decks (Parts I, II and III) and includes a separate practice bank and supplementary references. Slide references in the content are preserved for traceability. Interactive widgets in this post are independent demonstrations written as self-contained HTML/CSS/JavaScript directly in its Markdown source.

Some source statements are quoted or accompanied by explicit correction notes; those have intentionally been preserved and labelled rather than silently reconciled. The controls and figures are educational models, not safety-rated robot-control software.