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 q; Cartesian pose or position is written as X. All slider angles in the visualizations are shown in degrees, while the underlying mathematical functions use radians.
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 gives a point’s coordinates in frame {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
(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,detR=+1,ABR=(BAR)T=(BAR)−1
(2)
A frame is specified by one origin vector and three unit-axis vectors, equivalently {BAR,ApBorg}. Pure position uses R=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
RTR=I⇒R−1=RT=ABR
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
Parallel, equally oriented axes
Rotation
Ap=BARBp
Coincident origins
Both
Ap=BARBp+ApBorg
General frames
[Ap1]=BAT[Bp1],BAT=[BAR000ApBorg1]
(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=[RT0−RTp1]
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=BorgtoPBARBp+AorgtoBorgApBorg
Append a 1 and collect both operations into one block multiplication:
[Ap1]=[BAR0ApBorg1][Bp1]=[BARBp+ApBorg1]
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. 1Original 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 i is z^i; x^i lies along the common normal from axis i toward i+1. The origin is its intersection with joint axis i. Use right-hand positive angles.
Parameter
Geometric meaning
ai−1
Distance from zi−1 to zi, along xi−1
αi−1
Angle from zi−1 to zi, about xi−1
di
Distance from xi−1 to xi, along zi
θi
Angle from xi−1 to xi, about zi
Revolute:θi varies. Prismatic:di varies. The other three parameters are fixed for that joint.
Here a=ai−1,α=αi−1,d=di,θ=θi. Derive the matrix by multiplying the four elementary transforms.
n0T=10T21T⋯nn−1T
(7)
Include a final fixed tool transform if the tool origin is offset from frame n.
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−1TQRTPQTiPTip
ii−1T=fixed link geometryRx(αi−1)Dx(ai−1)joint connectionRz(θi)Dz(di)
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,l2, with joint 2 measured relative to link 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.
Procedure: test ∣D∣≤1; compute both branches; apply joint limits; verify each answer by forward kinematics; select a collision-free configuration with appropriate joint travel.
Use atan2, rather than a single-argument inverse tangent, to preserve quadrants. At l1=l2 and x=y=0, θ2=π and θ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θ2
cosθ2=D,sinθ2=±1−D2
The ± sign produces the two elbow branches. To recover θ₁, group the forward equations as a rotation of a known vector:
[xy]=[c1s1−s1c1][l1+l2c2l2s2]
The target direction is the sum of θ₁ and the direction of the second vector, hence
θ1=atan2(y,x)−atan2(l2s2,l1+l2c2)
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
(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≤π, 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ϕ00−sinϕcosϕ000010xy01
(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>0. The tool’s z-axis points radially outward, its y-axis points down, and x^2=y^2×z^2.
0z^2=x/ry/r0,0y^2=00−1,0x^2=y/r−x/r0
(14)
20T=y/r−x/r0000−10x/ry/r00xy01
(15)
Orientation is constrained by position; it is not independently specifiable. At r=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
4. Rigid-body & link velocities
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 is the velocity differentiated relative to frame B. A second frame label may specify where that resulting vector is expressed:
A(BVP)=BARBVP
(16)
A point fixed in B has BVP=0, even if it moves relative to a universal frame U. For frame C, vC=UVCorg and AvC=A(UVCorg).
Linear velocity belongs to a point. Angular velocity belongs to a rigid body or attached frame. AΩB describes B’s rotation relative to A: direction = instantaneous rotation axis, magnitude = angular speed. C(AΩB) expresses that same vector in C. Write ωC=UΩC.
Fig. 2Angular Velocity.
4.2 Transport theorem
Write R=BAR, r=RBp, and express all terms below in A:
vP=vBorg+RBVP+ω×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γ
(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. 3Velocity 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γ
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+ω×r
4.3 Velocity propagation
Use the rotation ii+1R, p=ipi+1,org, and z=[0,0,1]T. Each velocity is expressed in its own link frame.
Revolute joint i+1:
ωi+1=ii+1Rωi+θ˙i+1z,vi+1=ii+1R(vi+ωi×p)
(19)
Prismatic joint i+1:
ωi+1=ii+1Rωi,vi+1=ii+1R(vi+ωi×p)+d˙i+1z
(20)
Start at a fixed base with v0=ω0=0, propagate outward, then include any fixed tool offset using vtool=vn+ωn×rtool in a common frame.
Fig. 4Velocity 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)
Premultiply by ii+1R. Since the two opposite rotations multiply to I:
ωi+1=ii+1Rωi+θ˙i+1z
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=∂xj∂fi,Y˙=J(X)X˙
(21)
ν=[vω]=J(q)q˙
(22)
For n joints and m independent task-velocity coordinates, J is m×n. A full spatial twist has six components, so its geometric Jacobian is 6×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=1∑n∂xj∂fiδxj
Stack the outputs and place their partial derivatives in rows:
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:
Here s12=sin(θ1+θ2), and similarly for c. Add row [11] to include planar angular velocity.
AJ=[BAR00BAR]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ν.
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˙
Compare with ᴬν = ᴬJq̇. Because the relation holds for arbitrary joint rates:
AJ=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
detJxy=l1l2sinθ2
(25)
For nonzero link lengths, the 2R position Jacobian is singular at θ2=0,π. 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: Jxy 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,ni be the force and moment exerted on link i by link i−1. Define R=i+1iR and p=ipi+1,org.
ifi=Ri+1fi+1,ini=Ri+1ni+1+p×ifi
(26)
τi=ziTni(revolute),τi=ziTfi(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 denotes a force.
Fig. 5Static 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
Abbreviate that rotation by R. Force balance and moment balance about the frame-i origin then give
fi−Rfi+1=0
ni−Rni+1−p×(Rfi+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⟹τ=JTF
(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: JTF 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) 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δq
Insert δX = Jδq:
FTJδq=τTδq⇒(FTJ−τT)δq=0
Since this holds for every virtual joint displacement, the coefficient row must vanish:
FTJ=τT⇒τ=JTF
6.3 Six-dimensional velocity and wrench transforms
For two frames rigidly attached to the same body, put R=BAR, p=ApBorg, and let [p]×u=p×u.
[p]×=0pz−py−pz0pxpy−px0
(29)
νB=XB←A[RT0−RT[p]×RT]νA
(30)
νA=[R0[p]×RR]νB
(31)
FA=XB←AT[R[p]×R0R]FB
(32)
The velocity vectors refer to the respective frame origins. A wrench moment changes with its reference point. Dual transforms preserve FATνA=FBTν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=BAR, p=ApBorg, and [p]×u=p×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ω
Rotate both velocity components into B:
vB=RTvA−RT[p]×ωA,ωB=RTω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
vA=RvB+[p]×Rω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]×RfB
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
FA=XTFB
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¨, find the required effort.
With all terms in A, r=RBp, and relative velocity/acceleration differentiated in B:
aP=aBorg+Rarel+2ω×(Rvrel)+α×r+ω×(ω×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
(34)
AΩ˙C=AΩ˙B+RBΩ˙C+AΩB×(RBΩC)
(35)
Derivation · Differentiate velocity to obtain acceleration
PPT Part 2 · slides 28-30 · intermediate algebra expanded
Use r=RBr, vr=Rvrel, and α=ω˙, 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
2 · Differentiate each term of the full point velocity.
v=vO+vr+ω×r
a=aO+v˙r+ω˙×r+ω×r˙
3 · Substitute the two derivatives.
a=aO+Rarel+ω×vr+α×r+ω×(vr+ω×r)
a=aO+Rarel+2ω×vr+α×r+ω×(ω×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).
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
(36)
Ixx=∫(y2+z2)dm,Iyy=∫(x2+z2)dm,Izz=∫(x2+y2)dm
(37)
Ixy=∫xydm,Ixz=∫xzdm,Iyz=∫yzdm,dm=ρ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. 6Differential Volume Element.
7.3 Newton and Euler equations
Fi=miaCi,Ni=ICiαi+ωi×(ICiω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. 7Force acting on Centre of Mass of Body.Fig. 8Moment acting on Body.
7.4 Outward recursion: revolute and prismatic
Use the rotation ii+1R, p=ipi+1,org, z=[0,0,1]T. Vectors on each side use the link frame indicated by their index.
Apply Newton-Euler at each COM. Fixed base: ω0=α0=0. Include gravity by initializing a0=−g0, where g0 is the physical gravity vector; then do not add gravity a second time.
Use the rotation ii+1R, p=ipi+1,org, and z=[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
αi+1=ii+1Rαi+(ii+1Rωi)×(θ˙i+1z)+θ¨i+1z
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)}
3 · Prismatic origin acceleration. A sliding joint instead contributes relative velocity ḋz and relative acceleration d̈z, and no relative angular acceleration:
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=ipCi
5 · Compute the required net link loads.
Fi=miaCi,Ni=ICiαi+ωi×(ICiω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+1iR, p=ipi+1,org, and ri=ipCi. All terms below are expressed in frame i.
fi=Rfi+1+Fi
(45)
ni=Ni+Rni+1+ri×Fi+p×(Rfi+1)
(46)
τi=zTni(R),τi=zTfi(P)
(47)
Run from link n back to link 1. Free-space tip: fn+1=nn+1=0. For contact, insert the terminal wrench with the chosen interaction-load sign convention.
Fig. 9Forces 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)
Substitute fᵢ = Fᵢ + Rfᵢ₊₁. The two rᵢ × Rfᵢ₊₁ terms cancel:
Ni=ni−Rni+1−ri×Fi−p×(Rfi+1)
Solve for nᵢ:
ni=Ni+Rni+1+ri×Fi+p×(Rfi+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.
8.1 Two-link point-mass model
Assumptions: planar revolute joints, mass mi concentrated at the distal end of link li, zero COM rotational inertia, rigid links, no terminal load, and physical gravity −gy^0. Angles are measured from +x.
Thus τ1=M11θ¨1+M12θ¨2+h1+G1, and similarly for τ2. The slides call the velocity vector C(q,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ŷ₀.
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.
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)
(51)
The cross-product vector contains all distinct q˙iq˙j for i<j, so it has n(n−1)/2 entries. The squared-rate vector has n entries. B is n×n(n−1)/2, and Cc is n×n; their coefficients depend only on q.
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=dtd∂q˙i∂L−∂qi∂L,L=K−P
Because gravitational potential P depends on q and not on q̇,
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˙)
(56)
Mxx¨+hx+Gx=F
(57)
Mx=J−TMJ−1,hx=J−T(h−MJ−1J˙q˙),Gx=J−TG
(58)
τ=JTF=JT(Mxx¨+hx+Gx)
(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
F=J−TMq¨+J−Th+J−TG
2 · Differentiate the velocity map by the product rule.
x˙=J(q)q˙⇒x¨=J˙q˙+Jq¨
Jq¨=x¨−J˙q˙⇒q¨=J−1x¨−J−1J˙q˙
3 · Substitute without skipping the matrix products.
F=J−TM(J−1x¨−J−1J˙q˙)+J−Th+J−TG
F=J−TMJ−1x¨−J−TMJ−1J˙q˙+J−Th+J−TG
4 · Group the acceleration, velocity-dependent, and gravity terms.
Mx=J−TMJ−1,hx=J−T(h−MJ−1J˙q˙),Gx=J−TG
Mxx¨+hx+Gx=F
5 · Return to joint effort, as in source equations 136-139.
τ=JT(Mxx¨+hx+Gx)
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.
A manipulator is nonlinear and coupled. Joint sensors measure q and sometimes q˙; actuators apply a torque vector. The trajectory generator supplies qd,q˙d,q¨d.
τff=M(qd)q¨d+h(qd,q˙d)+G(qd)
(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˙
(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. 10Robot Control System.
9.2 Second-order system and damping
mx¨+bx˙+kx=0,ms2+bs+k=0
(62)
s1,2=2m−b±b2−4mk,ωn=k/m,ζ=2mkb
(63)
Condition (m,k > 0; b ≥ 0)
Response
b2>4mk, ζ>1
Overdamped: real distinct negative poles, nonoscillatory
b2=4mk, ζ=1
Critical: repeated negative pole, fastest nonoscillatory standard response for fixed natural frequency
0<b2<4mk, 0<ζ<1
Underdamped: complex poles, decaying oscillation
b=0, ζ=0
Undamped: sustained oscillation
The initial position and velocity determine x(t). Negative damping is not a decaying underdamped case.
Fig. 11Mass-Spring-Damper System.
Derivation · Characteristic equation and damping cases
PPT Part 3 · slides 8-10 · intermediate algebra expanded
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)
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˙
(64)
mx¨+(b+kv)x˙+(k+kp)x=0
(65)
Position feedback changes effective stiffness; velocity feedback changes effective damping. This regulates the block to zero position.
For desired ωn,ζ, choose kp=mωn2−k and kv=2mζωn−b. Gains may be negative; stability requires m>0, b+kv>0, k+kp>0. Zero coefficients need separate marginal-stability analysis.
Fig. 12Mass-Spring-Damper System with Control Input.Fig. 13Closed-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˙
mx¨+(b+kv)x˙+(k+kp)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¨=u
(67)
For regulation: u=−kpx−kvx˙. For smooth trajectory tracking:
u=x¨d+kve˙+kpe,e=xd−x
(68)
e¨+kve˙+kpe=0
(69)
Select kp=ωn2, kv=2ζωn; critical damping gives kv=2kp. 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.
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¨=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
e¨+kve˙+kpe=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
(70)
For positive gains the stable linear system is BIBO stable. Constant d gives ess=d/kp: increasing position gain reduces, but does not eliminate, offset.
u=x¨d+kve˙+kpe+ki∫edt
(71)
e...+kve¨+kpe˙+kie=d˙
(72)
A stable integral controller rejects a constant disturbance with ess=0. For this normalized cubic, stability requires kv,kp,ki>0 and kvkp>ki (a useful check on the slides’ conclusion).
Fig. 16Trajectory 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
PID: adding the integral command yields
e¨+kve˙+kpe+ki∫edt=d
Differentiate once (for t > 0 in the PPT’s formulation):
e...+kve¨+kpe˙+kie=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×B.
τm=kmia,vemf=keθ˙m
(73)
Lai˙a+Raia=va−keθ˙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. 17Armature Circuit of DC Torque Motor.
10.2 Gearing and reflected inertia
Let η=θ˙m/θ˙>1 be the ideal gear reduction ratio, not efficiency. Ideal gearing increases torque and reduces speed.
τ=ητm,θ˙=θ˙m/η
(75)
τm=Imθ¨m+bmθ˙m+η1(Iθ¨+bθ˙)
(76)
τm=(Im+I/η2)θ¨m+(bm+b/η2)θ˙m
(77)
τ=(I+η2Im)θ¨+(b+η2bm)θ˙
(78)
At the motor shaft, load inertia reflects down by η2. At the output, rotor inertia reflects up by η2. Ideal power is conserved.
Fig. 18DC 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θ˙
Motor coordinates: substitute θ̇ = θ̇ₘ/η and θ̈ = θ̈ₘ/η:
τm=(Im+I/η2)θ¨m+(bm+b/η2)θ˙m
Load coordinates: substitute θ̇ₘ = ηθ̇, θ̈ₘ = ηθ̈ and multiply by η, since τ = ητₘ:
τ=(I+η2Im)θ¨+(b+η2bm)θ˙
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≤21ωr
(79)
The half-resonance limit is the slides’ design rule. Use a consistent unit: ω=2πf. With high reduction, approximate output inertia by α=Imax+η2Im, and set β=(b+η2bm)θ˙.
τ=αu+β,u=θ¨d+kve˙+kpe
(80)
kp=ωn2≤ωr2/4,kv=2kp≤ωr(ζ=1)
(81)
At the chosen upper bandwidth limit the inequalities become equalities. The approximate error model is e¨+kve˙+kpe=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
For critical damping kₚ = ωₙ² and kᵥ = 2ωₙ. At the PPT’s maximum choice ωₙ = ωᵣ/2:
kp=ωr2/4,kv=ω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/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.
Continue from ?
Text size
Line width
[] previous / next section b bookmark this section ? this panel