The science
Kinematics. Joint angles q1, q2 (relative), q3 give absolute link angles t1=q1, t2=q1+q2, t3=q1+q2+q3. Forward kinematics: p = L1 e(t1) + L2 e(t2) + L3 e(t3), e(t)=(cos t, sin t). With the tool pitch fixed (t3), the wrist point is known and the two-link inverse problem has the closed form cos q2 = (d²-L1²-L2²)/(2 L1 L2), q1 = atan2(y,x) - atan2(L2 sin q2, L1 + L2 cos q2); the two signs of q2 are the elbow-up and elbow-down branches. Near q2=0 or 180 deg the Jacobian determinant L1 L2 sin q2 vanishes (singularity), so small tip motions need huge joint speeds.
Dynamics. Joint torques come from the recursive Newton-Euler equations for a planar chain with the gravity acceleration injected at the base: for each link a_c = a_joint + alpha x r_c - w² r_c, F = m a_c, then backwards tau_i = I alpha_i + r_c x F + r_i x g_(i+1) + tau_(i+1). The motor torque adds reflected rotor inertia N² J_m q'' and viscous friction b q'. Payload is a point mass at the tool centre point.
Motion. Every move is a minimum-jerk profile q(s) = q0 + (q1-q0)(10 s³ - 15 s&sup4; + 6 s&sup5;), s=t/T (zero velocity and acceleration at both ends). T is the shortest time that respects the joint speed and acceleration limits and keeps every motor torque below its rating along the whole path, so a heavier payload really lengthens the cycle. If even a very slow move needs more than the static rating, the cycle refuses to start.
Precision. A joint encoder with b bits behind a gearbox of ratio N resolves dq = 2 pi / (2^b N); the worst tip error is sum |J_i| dq / 2. Compliance: each joint deflects dq_i = tau_i / k under the static torque, and the tip droops by J dq.
Simplifications. Planar side view (no base rotation), rigid links with centre-of-mass inertias, constant gear ratios, viscous-only friction, no motor thermal model, straight-line Cartesian paths are not enforced (moves are joint-space), the gripper friction check uses a constant coefficient. Numbers are representative of a small industrial robot, not a specific product.