Algorithm Search⌘K

Definitioncore

Manipulator equation

Also called robot equations of motion.

The standard form of the equations of motion of a robot arm: M(q) q'' + C(q, q') q' + g(q) = tau + J(q)^T F_ext, with M symmetric positive definite.

The manipulator equation is the standard form of the equations of motion of a robot arm with nn joints. It says that the joint torques, plus the torques that external forces cause, equal an inertia term, a velocity term and a gravity term: M(q)q¨+C(q,q˙)q˙+g(q)=τ+J(q)TFextM(q)\ddot q + C(q, \dot q)\dot q + g(q) = \tau + J(q)^T F_{\text{ext}}. Almost every result in robot control is stated for this form. This page defines the form and its terms. Euler-Lagrange manipulator dynamics shows how to derive it, and the joint-space inertia matrix page treats MM alone.

Definition

A robot is a set of rigid links joined by nn one-degree-of-freedom joints into a serial chain or a tree with a fixed base. Its configuration is q∈Rnq \in \mathbb{R}^n. Its equation of motion is in manipulator form if

M(q) q¨+C(q,q˙) q˙+g(q)=τ+J(q)TFext,M(q)\,\ddot q + C(q, \dot q)\,\dot q + g(q) = \tau + J(q)^T F_{\text{ext}},

with these terms:

  • M(q)∈Rn×nM(q) \in \mathbb{R}^{n \times n} is the joint-space inertia matrix, symmetric and positive definite, with kinetic energy K=12q˙TM(q)q˙K = \tfrac12\dot q^T M(q)\dot q.
  • C(q,q˙)q˙∈RnC(q, \dot q)\dot q \in \mathbb{R}^n holds the Coriolis and centripetal torques. Each entry is a quadratic form in q˙\dot q: (Cq˙)k=∑i,jcijk(q)q˙iq˙j(C\dot q)_k = \sum_{i,j} c_{ijk}(q)\dot q_i\dot q_j. The vector is unique; the matrix CC is not. The usual choice is Ckj=∑icijkq˙iC_{kj} = \sum_i c_{ijk}\dot q_i with the Christoffel symbols cijk=12(∂Mkj/∂qi+∂Mki/∂qj−∂Mij/∂qk)c_{ijk} = \tfrac12(\partial M_{kj}/\partial q_i + \partial M_{ki}/\partial q_j - \partial M_{ij}/\partial q_k).
  • g(q)=∂P/∂qg(q) = \partial P/\partial q is the gravity torque, the gradient of the potential energy P(q)P(q). Gravity is (0,0,−9.81)(0, 0, -9.81) m/s2^2 in the space frame {s}\{s\}.
  • τ∈Rn\tau \in \mathbb{R}^n is the vector of joint torques (N m for a revolute joint) and forces (N for a prismatic joint).
  • FextF_{\text{ext}} is the wrench (moment first, then force) that the environment applies to the robot at a contact frame, and J(q)J(q) is the Jacobian of that frame, in the same coordinates as FextF_{\text{ext}}. Lynch and Park use the opposite sign: they write τ=Mq¨+h+JTFtip\tau = M\ddot q + h + J^T\mathcal{F}_{\text{tip}}, where Ftip=−Fext\mathcal{F}_{\text{tip}} = -F_{\text{ext}} is the wrench that the robot applies to the environment.

Lynch and Park write c(q,q˙)=C(q,q˙)q˙c(q, \dot q) = C(q, \dot q)\dot q and h(q,q˙)=c(q,q˙)+g(q)h(q, \dot q) = c(q, \dot q) + g(q), so the equation becomes M(q)q¨+h(q,q˙)=τM(q)\ddot q + h(q, \dot q) = \tau when there is no contact. Friction, if it is modeled, adds a term τf(q˙)\tau_f(\dot q) on the left side, for example Fvq˙+Fs sgn(q˙)F_v\dot q + F_s\,\mathrm{sgn}(\dot q) in Siciliano et al.

Because M(q)M(q) is invertible, the equation is a second-order ordinary differential equation. With the state x=(q,q˙)x = (q, \dot q),

x˙=[q˙M(q)−1(τ+JTFext−C(q,q˙)q˙−g(q))],\dot x = \begin{bmatrix}\dot q \\ M(q)^{-1}\big(\tau + J^T F_{\text{ext}} - C(q, \dot q)\dot q - g(q)\big)\end{bmatrix},

which is an ODE initial value problem once τ(t)\tau(t) and the initial state are given. Solving the equation for q¨\ddot q is the forward dynamics problem; solving it for τ\tau is the inverse dynamics problem.

Four structural properties follow from the form, each with its own page:

  1. M(q)M(q) is symmetric positive definite, and bounded above and below for an arm with revolute joints only.
  2. With the Christoffel choice of CC, the matrix M˙−2C\dot M - 2C is skew-symmetric; for every valid choice, q˙T(M˙−2C)q˙=0\dot q^T(\dot M - 2C)\dot q = 0. See skew symmetry of manipulator dynamics.
  3. The left side is linear in the masses, first moments and inertias of the links: Mq¨+Cq˙+g=Y(q,q˙,q¨)πM\ddot q + C\dot q + g = Y(q, \dot q, \ddot q)\pi. See linearity in the dynamic parameters.
  4. Energy balance: ddt(K+P)=q˙T(τ+JTFext)\frac{d}{dt}(K + P) = \dot q^T(\tau + J^T F_{\text{ext}}). The arm is passive from τ\tau to q˙\dot q; see passivity.

Examples and non-examples

The planar 2R arm. Take L1=L2=1L_1 = L_2 = 1 m, point masses of 1 kg at the link ends, a vertical plane, and q1q_1 measured from the horizontal. With s2=sin⁡q2s_2 = \sin q_2, c2=cos⁡q2c_2 = \cos q_2, c1=cos⁡q1c_1 = \cos q_1 and c12=cos⁡(q1+q2)c_{12} = \cos(q_1 + q_2):

[3+2c21+c21+c21]q¨+[−s2q˙2−s2(q˙1+q˙2)s2q˙10]q˙+9.81[2c1+c12c12]=τ.\begin{bmatrix} 3 + 2c_2 & 1 + c_2 \\ 1 + c_2 & 1\end{bmatrix}\ddot q + \begin{bmatrix} -s_2\dot q_2 & -s_2(\dot q_1 + \dot q_2) \\ s_2\dot q_1 & 0\end{bmatrix}\dot q + 9.81\begin{bmatrix} 2c_1 + c_{12} \\ c_{12}\end{bmatrix} = \tau.

At rest at q=(0,0)q = (0, 0) with τ=0\tau = 0, M=[[5,2],[2,1]]M = [[5, 2], [2, 1]], M−1=[[1,−2],[−2,5]]M^{-1} = [[1, -2], [-2, 5]] and g=(29.43,9.81)g = (29.43, 9.81) N m, so q¨=−M−1g=(−9.81,9.81)\ddot q = -M^{-1}g = (-9.81, 9.81) rad/s2^2. Both masses start to fall with the acceleration 9.819.81 m/s2^2, and link 2 keeps its absolute angle (q¨1+q¨2=0\ddot q_1 + \ddot q_2 = 0), which is what free fall of two point masses on massless links should give.

A load at the tip. Put the same arm at q=(0,π/2)q = (0, \pi/2), at rest, so that the tip is at (1,1)(1, 1) m and the linear Jacobian of the tip is [[−1,−1],[1,0]][[-1, -1], [1, 0]]. A weight hangs on the tip and pulls with the force Fext=(0,−10)F_{\text{ext}} = (0, -10) N. Then JTFext=(−10,0)J^T F_{\text{ext}} = (-10, 0) N m, and the static equation g(q)=τ+JTFextg(q) = \tau + J^T F_{\text{ext}} gives τ=(19.62,0)+(10,0)=(29.62,0)\tau = (19.62, 0) + (10, 0) = (29.62, 0) N m. Joint 2 needs no torque, because the tip is straight above it.

A Cartesian gantry. Three prismatic joints along xx, yy and zz give M=diag(m1+m2+m3,m2+m3,m3)M = \mathrm{diag}(m_1 + m_2 + m_3, m_2 + m_3, m_3), C=0C = 0 and g=(0,0,9.81 m3)g = (0, 0, 9.81\,m_3) N. The equation is three decoupled masses.

Non-example: a robot with elastic joints. If a spring connects each motor to its link, the motor angles θ\theta and the link angles qq are separate coordinates. The model has two coupled equations, M(q)q¨+Cq˙+g=K(θ−q)M(q)\ddot q + C\dot q + g = K(\theta - q) for the links and Bθ¨+K(θ−q)=τB\ddot\theta + K(\theta - q) = \tau for the motors. The torque does not act on qq directly, so this is not the manipulator form in qq; see flexible joint model.

Non-example: a robot in contact with a constraint. If the tip must stay on a surface, JTFextJ^T F_{\text{ext}} is not a given input but an unknown constraint force, and the model is a differential-algebraic system with multipliers. See rigid contact complementarity and the Gauss principle of least constraint.

Non-example: a wheeled robot with rolling constraints. A nonholonomic constraint cannot be removed by a choice of independent coordinates, so the equation carries a constraint force term A(q)TλA(q)^T\lambda with A(q)q˙=0A(q)\dot q = 0.

References

  1. Kevin M. Lynch and Frank C. Park, Modern Robotics, Mechanics, Planning, and Control, Cambridge University Press, 2017, Chapter 8, Section 8.1.2 (general formulation), Section 8.5 (forward dynamics of open chains), Section 8.6 (dynamics in the task space) and Section 8.7 (constrained dynamics)
  2. Mark W. Spong, Seth Hutchinson and M. Vidyasagar, Robot Modeling and Control, second edition, Wiley, 2020, Chapter 6, Section 6.3 (equations of motion) and Section 6.5 (properties of robot dynamic equations)
  3. Bruno Siciliano, Lorenzo Sciavicco, Luigi Villani and Giuseppe Oriolo, Robotics, Modelling, Planning and Control, Springer, 2009, Chapter 7 (dynamics; the equation B(q) q'' + C(q, q') q' + F_v q' + F_s sgn(q') + g(q) = tau - J^T(q) h_e)
  4. Richard M. Murray, Zexiang Li and S. Shankar Sastry, A Mathematical Introduction to Robotic Manipulation, CRC Press, 1994, Chapter 4 (robot dynamics and control)

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/P9VBJE/text.yaml