Robotics — formula sheet
Mechatronics Engineering · GATE ME · SI units. Drafted with Aria, checked by the AiCanCode.org team.
Robot anatomy, configurations and work envelope
V_cyl = (θ/360°)·π·(R² − r²)·h— Work volume of a cylindrical (RPP) robot; R, r are the maximum and minimum radial reach (m), h is the vertical stroke (m), θ is the base rotation range (degrees); V in m³.V_sph = (4/3)·π·(R³ − r³)— Upper bound on the work volume of a polar (RRP) robot with full rotations; R, r are the maximum and minimum reach (m).|L₁ − L₂| ≤ ρ ≤ L₁ + L₂— Reach limits of a planar 2R (SCARA) arm; L₁, L₂ are link lengths (m), ρ is the distance of the wrist from the base axis (m).
End effectors and grippers
n_f·μ·F_g ≥ m·(g + a)·SF— Friction grip condition; n_f is the number of contact fingers, μ the coefficient of friction, F_g the normal grip force per finger (N), m the part mass (kg), g = 9.81 m/s², a the upward acceleration (m/s²), SF the safety factor.F_v = Δp·π·d²/4— Vacuum cup holding force (N); Δp is the pressure below atmosphere (Pa), d the cup diameter (m).
Spatial descriptions: rotation matrices and homogeneous transforms
R_z(θ) = [[cos θ, −sin θ, 0], [sin θ, cos θ, 0], [0, 0, 1]]— Elementary rotation about z (R_x and R_y follow the same right-hand rule; in R_y the −sin θ is in the bottom-left); dimensionless; θ in rad or degrees.R⁻¹ = Rᵀ, det R = +1— Properties of a rotation matrix; its columns are the unit axes of the rotated frame expressed in the reference frame.ᴬT_B = [[ᴬR_B, ᴬp_B], [0 0 0, 1]]— Homogeneous transform; ᴬR_B is the 3 × 3 rotation (dimensionless), ᴬp_B the origin of {B} in {A} (m); ᴬp = ᴬR_B·ᴮp + ᴬp_B.(ᴬT_B)⁻¹ = [[ᴬR_Bᵀ, −ᴬR_Bᵀ·ᴬp_B], [0 0 0, 1]]— Inverse transform; chaining is ᴬT_C = ᴬT_B·ᴮT_C.R = R₁·R₂ (moving axes), R = R₂·R₁ (fixed axes)— Composition rule for successive rotations R₁ then R₂.
Denavit-Hartenberg convention
A_i = Rot(z, θ_i)·Trans(z, d_i)·Trans(x, a_i)·Rot(x, α_i)— Standard (distal) DH link transform; θ_i is the joint angle about z_{i−1} (rad), d_i the offset along z_{i−1} (m), a_i the link length along x_i (m), α_i the twist about x_i (rad); θ_i is the variable for a revolute joint, d_i for a prismatic joint.A_i = [[cos θ_i, −sin θ_i·cos α_i, sin θ_i·sin α_i, a_i·cos θ_i], [sin θ_i, cos θ_i·cos α_i, −cos θ_i·sin α_i, a_i·sin θ_i], [0, sin α_i, cos α_i, d_i], [0, 0, 0, 1]]— Expanded DH matrix (top-left 3 × 3 dimensionless, fourth column in m).
Forward kinematics of serial manipulators
⁰T_n = A₁·A₂·…·A_n— Pose of the tool frame in the base frame; position in m, orientation dimensionless.x = L₁·cos θ₁ + L₂·cos(θ₁ + θ₂), y = L₁·sin θ₁ + L₂·sin(θ₁ + θ₂), φ = θ₁ + θ₂— Planar 2R arm; L in m, angles in rad or degrees.r = a₂·cos θ₂ + a₃·cos(θ₂ + θ₃), x = r·cos θ₁, y = r·sin θ₁, z = d₁ + a₂·sin θ₂ + a₃·sin(θ₂ + θ₃)— Articulated RRR arm; d₁ is the shoulder height (m), a₂, a₃ the upper-arm and forearm lengths (m).
Inverse kinematics
cos θ₂ = (x² + y² − L₁² − L₂²) / (2·L₁·L₂)— Planar 2R elbow angle; a real solution exists only if the right side lies between −1 and 1; ±θ₂ gives the elbow-up and elbow-down solutions.θ₁ = atan2(y, x) − atan2(L₂·sin θ₂, L₁ + L₂·cos θ₂)— Planar 2R shoulder angle (use atan2 for the correct quadrant).p_w = p − d₆·a— Wrist-centre position for a spherical-wrist arm; p is the tool position (m), a the approach unit vector, d₆ the wrist-to-tool distance (m).
Velocity kinematics and the Jacobian
ẋ = J(q)·q̇— Tool velocity from joint rates; J is m × n (6 × n for the full geometric Jacobian), q̇ in rad/s or m/s, ẋ in m/s and rad/s; J's linear-velocity entries for revolute joints have units of m/rad.J = [[−L₁·sin θ₁ − L₂·sin(θ₁ + θ₂), −L₂·sin(θ₁ + θ₂)], [L₁·cos θ₁ + L₂·cos(θ₁ + θ₂), L₂·cos(θ₁ + θ₂)]]— Position Jacobian of a planar 2R arm (m/rad).J_vi = z_{i−1} × (o_n − o_{i−1}), J_ωi = z_{i−1}— Column of the geometric Jacobian for revolute joint i (prismatic: J_vi = z_{i−1}, J_ωi = 0).q̇ = J⁻¹·ẋ; q̇ = Jᵀ(J·Jᵀ)⁻¹·ẋ— Inverse velocity solution (square J; redundant arm, minimum-norm pseudo-inverse).
Singularities and static forces
det J(q) = 0— Singularity condition for a square Jacobian (in general, rank J < m); the tool loses a direction of motion.det J = L₁·L₂·sin θ₂— Planar 2R arm (m²); singular at θ₂ = 0° or 180°.τ = Jᵀ·F— Joint torques (N·m) or forces (N) needed for the tool to apply wrench F (N, N·m) to the environment.
Manipulator dynamics: Lagrange-Euler formulation
d/dt(∂L/∂q̇_i) − ∂L/∂q_i = τ_i, L = T − V— Lagrange's equation; T, V are kinetic and potential energy (J), τ_i the generalised force at joint i (N·m or N).τ = M(q)·q̈ + C(q, q̇)·q̇ + g(q)— Manipulator dynamics; M is the symmetric positive-definite mass matrix (kg·m² for revolute joints), C·q̇ the Coriolis and centrifugal torques (N·m), g(q) the gravity torques (N·m).τ = (m·L²/3)·θ̈ + m·g·(L/2)·cos θ— Single uniform link pivoted at one end, θ from the horizontal; m in kg, L in m.
Trajectory planning in joint and Cartesian space
θ(t) = θ₀ + (3Δ/T²)·t² − (2Δ/T³)·t³— Rest-to-rest cubic; Δ = θ_f − θ₀ (rad or degrees), T is the move time (s); peak velocity 1.5·Δ/T at t = T/2, start acceleration 6·Δ/T².θ(t) = θ₀ + Δ·(10τ³ − 15τ⁴ + 6τ⁵), τ = t/T— Rest-to-rest quintic with zero end accelerations; peak velocity 1.875·Δ/T.t_b = (V·T − Δ)/V, a = V/t_b— LSPB (trapezoidal) blend time (s) and acceleration for cruise velocity V; valid for Δ/T < V ≤ 2Δ/T.
Robot joint control and force control
τ = K_p·e + K_d·ė + K_i·∫e dt— PID joint control; e = θ_d − θ (rad), K_p in N·m/rad, K_d in N·m·s/rad, K_i in N·m/(rad·s).ω_n = √(K_p/J), ζ = K_d/(2·√(K_p·J))— Closed-loop natural frequency (rad/s) and damping ratio of a PD-controlled joint of inertia J (kg·m²); critical damping at K_d = 2·√(K_p·J).e_ss = τ_L/K_p— Steady-state error of PD control under a constant load torque τ_L (N·m).J_eff = J_m + J_L/N²— Inertia seen by the motor through a gearbox of ratio N; J_m motor inertia, J_L link inertia (kg·m²).F = K·Δx (+ B·Δẋ + M·Δẍ)— Stiffness (impedance) control law; K in N/m, B in N·s/m, M in kg.
Robot sensors and vision
Resolution = 360°/(4·N·G)— Incremental encoder with N lines per revolution, quadrature decoding and gear ratio G.Resolution = 360°/2ⁿ— n-bit absolute encoder.d = v·t/2— Time-of-flight range; v is the wave speed (≈ 343 m/s for sound in air at 20 °C), t the round-trip time (s).Z = f·B/d— Stereo depth; f is the focal length (pixels), B the baseline (m), d the disparity (pixels); Z in m.
Mobile robots: kinematics and navigation
v = r·(ω_R + ω_L)/2, ω = r·(ω_R − ω_L)/L— Differential-drive forward kinematics; r is the wheel radius (m), L the track width (m), ω_R, ω_L the wheel speeds (rad/s); v in m/s, ω in rad/s.R = v/ω— Turning radius of the axle midpoint (m).v_R = v + ω·L/2, v_L = v − ω·L/2— Wheel surface speeds for a commanded (v, ω) (m/s).ẋ = v·cos θ, ẏ = v·sin θ, θ̇ = ω— Unicycle pose kinematics used for odometry.
Robot programming: teach pendant and offline programming
ᴮp = ᴮT_U·ᵁp— Point taught in a user (work-object) frame {U} expressed in the base frame {B}.t_move = d/v + v/a— Time for a trapezoidal linear move of length d (m) at speed v (m/s) and acceleration a (m/s²), valid when d ≥ v²/a.
ROS fundamentals
Data rate = message size × publish rate— Topic bandwidth in bytes/s (message size in bytes, rate in Hz).ᴾp = ᴾR_C·ᶜp + ᴾt_C— Transform of a point from child frame C to parent frame P, as computed by tf2.
Industrial robot applications and safety
S = K·T + C— Minimum safety distance of a protective device (mm); K is the approach speed (mm/s), T the total stopping time (s), C the intrusion allowance (mm) — take K and C from the current standard (ISO 13855).Payback period = Net investment / Net annual savings— Economic justification (years).