Algorithm Search⌘K

Theoremcore

Linearity in the dynamic parameters

Also called dynamic regressor form.

The joint torques are linear in the masses, first moments and inertias of the links, tau = Y(q, q', q'') pi, with 10 parameters per link and a regressor Y that depends only on the motion.

Linearity in the dynamic parameters says that the joint torques of a rigid robot arm are a linear function of the inertial parameters of its links: the masses, the first moments of mass and the entries of the rotational inertias. The motion enters only through a known matrix, the regressor Y(q,q˙,q¨)Y(q, \dot q, \ddot q), so that τ=Y(q,q˙,q¨) π\tau = Y(q, \dot q, \ddot q)\,\pi. This turns the estimation of unknown inertias into a linear least squares problem, and it is the basis of adaptive control of robot arms. The equation is not linear in the link lengths or in the joint angles.

Statement

Take a robot of NN rigid links joined by nn revolute or prismatic joints into a serial chain or a tree with a fixed base, with the manipulator equation M(q)q¨+C(q,q˙)q˙+g(q)=τM(q)\ddot q + C(q, \dot q)\dot q + g(q) = \tau and no contact. Fix a frame {i}\{i\} to each link ii. For link ii let mim_i be its mass, cic_i its center of mass in {i}\{i\}, hi=micih_i = m_i c_i its first moment of mass, and IiO=Ici+mi[ci]T[ci]\mathcal{I}_i^O = \mathcal{I}_{ci} + m_i[c_i]^T[c_i] its rotational inertia about the origin of {i}\{i\}, in {i}\{i\} coordinates. Collect the ten numbers

πi=(mi, hix,hiy,hiz, IixxO,IixyO,IixzO,IiyyO,IiyzO,IizzO)∈R10\pi_i = \big(m_i,\ h_{ix}, h_{iy}, h_{iz},\ I^O_{ixx}, I^O_{ixy}, I^O_{ixz}, I^O_{iyy}, I^O_{iyz}, I^O_{izz}\big) \in \mathbb{R}^{10}

and stack them as π=(π1,…,πN)∈R10N\pi = (\pi_1, \dots, \pi_N) \in \mathbb{R}^{10N}. Then there is a matrix Y(q,q˙,q¨)∈Rn×10NY(q, \dot q, \ddot q) \in \mathbb{R}^{n \times 10N} that depends only on the joint types, the geometry of the frames and the gravity vector, and not on π\pi, such that for all qq, q˙\dot q and q¨\ddot q

M(q)q¨+C(q,q˙)q˙+g(q)=Y(q,q˙,q¨) π.M(q)\ddot q + C(q, \dot q)\dot q + g(q) = Y(q, \dot q, \ddot q)\,\pi.

Each entry of YY is a sum of terms that are linear in q¨\ddot q, quadratic in q˙\dot q or free of q˙\dot q and q¨\ddot q, with coefficients that are smooth functions of qq.

In plain words

To know which torques move an arm in a given way, you need two kinds of facts. Some describe the shape: link lengths and joint axes. Others describe the mass: how heavy each link is and how its mass is spread. The theorem says that the second kind enters in the simplest possible way. If you double every mass and inertia, the torques double. If you add two arms that have the same shape, their torques add. So you can write the torque as a fixed table of numbers that depends on the motion, times a list of unknown mass numbers. Finding that list from measured torques is then a plain fitting problem.

Proof

The proof uses energy. Let Vi=(ωi,vi)\mathcal{V}_i = (\omega_i, v_i) be the twist of frame {i}\{i\} in {i}\{i\} coordinates. It depends only on qq, q˙\dot q and the geometry. The spatial inertia of link ii about the origin of {i}\{i\} is

Gi=[IiO[hi][hi]TmiI],\mathcal{G}_i = \begin{bmatrix} \mathcal{I}_i^O & [h_i] \\ [h_i]^T & m_i I\end{bmatrix},

which is the spatial inertia of Featherstone (2008, Chapter 2) written with hi=micih_i = m_i c_i and IiO=Ici+mi[ci][ci]T\mathcal{I}_i^O = \mathcal{I}_{ci} + m_i[c_i][c_i]^T. Every entry of Gi\mathcal{G}_i is one of the ten numbers in πi\pi_i, up to sign. So the kinetic energy Ki=12ViTGiViK_i = \tfrac12\mathcal{V}_i^T\mathcal{G}_i\mathcal{V}_i is linear in πi\pi_i.

Let pi(q)p_i(q) and Ri(q)R_i(q) be the position and orientation of {i}\{i\} in the space frame. The center of mass is at pi+Ricip_i + R_ic_i, so the potential energy is

Pi=−mi gT(pi+Rici)=−gT(mipi+Rihi),P_i = -m_i\,\mathrm{g}^T(p_i + R_ic_i) = -\mathrm{g}^T\big(m_ip_i + R_ih_i\big),

with g=(0,0,−9.81)\mathrm{g} = (0, 0, -9.81) m/s2^2. This is linear in (mi,hi)(m_i, h_i).

So the Lagrangian L=∑i(Ki−Pi)\mathcal{L} = \sum_i (K_i - P_i) has the form L=ϕ(q,q˙)Tπ\mathcal{L} = \phi(q, \dot q)^T\pi, where ϕ\phi does not depend on π\pi. The Euler-Lagrange operator is linear in L\mathcal{L}, so

τk=ddt∂L∂q˙k−∂L∂qk=(ddt∂ϕ∂q˙k−∂ϕ∂qk)Tπ.\tau_k = \frac{d}{dt}\frac{\partial\mathcal{L}}{\partial\dot q_k} - \frac{\partial\mathcal{L}}{\partial q_k} = \Big(\frac{d}{dt}\frac{\partial\phi}{\partial\dot q_k} - \frac{\partial\phi}{\partial q_k}\Big)^T\pi.

The total time derivative brings in q¨\ddot q linearly. Row kk of YY is the vector in parentheses. □\square

The same result follows from the recursive Newton-Euler algorithm: the wrench of link ii is GiV˙i−[adVi]TGiVi\mathcal{G}_i\dot{\mathcal{V}}_i - [\mathrm{ad}_{\mathcal{V}_i}]^T\mathcal{G}_i\mathcal{V}_i, which is linear in Gi\mathcal{G}_i, gravity enters as an acceleration of the base, and the joint torques are sums of link wrenches mapped by matrices that depend only on qq. This is how Khosla and Kanade (1985) and Atkeson, An and Hollerbach (1986) wrote it.

Consequences

A worked example. Take the planar 2R arm in a vertical plane, with q1q_1 from the horizontal, link lengths L1L_1 and L2L_2, and the center of mass of link ii on the line of the link at distance rir_i from joint ii, with inertia IiI_i about it. With c1=cos⁡q1c_1 = \cos q_1, c12=cos⁡(q1+q2)c_{12} = \cos(q_1 + q_2), c2=cos⁡q2c_2 = \cos q_2 and s2=sin⁡q2s_2 = \sin q_2, the Euler-Lagrange derivation gives τ=Ya\tau = Y a with

Y=[q¨1q¨1+q¨2c2(2q¨1+q¨2)−s2(2q˙1q˙2+q˙22)c1c120q¨1+q¨2c2q¨1+s2q˙120c12],Y = \begin{bmatrix} \ddot q_1 & \ddot q_1 + \ddot q_2 & c_2(2\ddot q_1 + \ddot q_2) - s_2(2\dot q_1\dot q_2 + \dot q_2^2) & c_1 & c_{12} \\ 0 & \ddot q_1 + \ddot q_2 & c_2\ddot q_1 + s_2\dot q_1^2 & 0 & c_{12}\end{bmatrix},
a1=I1+m1r12+m2L12,a2=I2+m2r22,a3=m2L1r2,a4=9.81(m1r1+m2L1),a5=9.81 m2r2.a_1 = I_1 + m_1r_1^2 + m_2L_1^2,\quad a_2 = I_2 + m_2r_2^2,\quad a_3 = m_2L_1r_2,\quad a_4 = 9.81(m_1r_1 + m_2L_1),\quad a_5 = 9.81\,m_2r_2.

For L1=L2=1L_1 = L_2 = 1 m and point masses of 1 kg at the link ends, a=(2,1,1,19.62,9.81)a = (2, 1, 1, 19.62, 9.81). At q=(0,π/2)q = (0, \pi/2), q˙=(1,1)\dot q = (1, 1) rad/s and q¨=0\ddot q = 0, the rows of YY are (0,0,−3,1,0)(0, 0, -3, 1, 0) and (0,0,1,0,0)(0, 0, 1, 0, 0), so τ=(−3+19.62,1)=(16.62,1)\tau = (-3 + 19.62, 1) = (16.62, 1) N m, the same as the Euler-Lagrange torque.

Base parameters. The 2R example has 20 inertial parameters (10 per link), but the torque depends on them only through the five numbers a1,…,a5a_1, \dots, a_5. In general YY has fewer independent columns than 10N10N. The independent linear combinations of π\pi that the torques determine are the base inertial parameters, and only they can be found from motion data.

Identification. If you record τ\tau along a motion, stack the rows Y(q(tk),q˙(tk),q¨(tk))Y(q(t_k), \dot q(t_k), \ddot q(t_k)), and solve the least squares problem for the base parameters, you get a model of the arm; see dynamic parameter identification. The motion must excite all base parameters. In the 2R example, static poses give only a4a_4 and a5a_5: at q=(0,0)q = (0, 0) at rest, τ=(a4+a5,a5)\tau = (a_4 + a_5, a_5), which for the point-mass arm is (29.43,9.81)(29.43, 9.81) N m and gives a5=9.81a_5 = 9.81 and a4=19.62a_4 = 19.62. The arm must move to reveal a1a_1, a2a_2 and a3a_3.

Adaptive control. The Slotine-Li controller updates an estimate π^\hat\pi with a law of the form π^˙=−ΓY(q,q˙,q˙r,q¨r)Ts\dot{\hat\pi} = -\Gamma Y(q, \dot q, \dot q_r, \ddot q_r)^Ts. The regressor form makes the parameter error enter the Lyapunov derivative linearly, so it can be cancelled.

Friction and motors. Viscous friction fv,jq˙jf_{v,j}\dot q_j and Coulomb friction fc,j sgn(q˙j)f_{c,j}\,\mathrm{sgn}(\dot q_j) are linear in fv,jf_{v,j} and fc,jf_{c,j}, and the reflected rotor inertia of a geared motor adds a term linear in the rotor inertia. All of them can be appended to π\pi with extra columns in YY.

Tightness

The choice of parameters matters. If you use the mass mim_i, the center of mass cic_i and the inertia Ici\mathcal{I}_{ci} about the center of mass as parameters, the torque is not linear in them: IiO\mathcal{I}_i^O contains the product mi[ci][ci]Tm_i[c_i][c_i]^T, and the gravity torque contains micim_ic_i. The first moment hi=micih_i = m_ic_i and the inertia about a fixed point of the link remove both products.

The torque is not linear in the kinematic parameters. In the 2R example, a3=m2L1r2a_3 = m_2L_1r_2 is a product of a link length and an inertial parameter, and YY contains cos⁡q2\cos q_2 and sin⁡q2\sin q_2. A change in a link length changes YY itself.

Linearity does not give physical consistency. Every π\pi in R10N\mathbb{R}^{10N} gives some torque, but only those with mi>0m_i > 0 and a rotational inertia about the center of mass that is positive definite and satisfies the triangle inequalities of its principal moments describe a real body. A least squares estimate can violate these conditions.

Some friction laws are not linear in their parameters. A Stribeck model with an exponential decay in the velocity has a parameter inside the exponential, and elastic links or joints add states that the regressor of the rigid model does not cover.

History

Several groups found the linear form in the mid-1980s and used it for identification. Khosla and Kanade (1985) wrote the Newton-Euler equations linearly in the inertial parameters of the links and used the form to estimate them. Atkeson, An and Hollerbach (1986) gave the same form with ten parameters per link, estimated the inertial parameters of loads and links, and pointed out the parameters that cannot be found from joint torques. Slotine and Li (1987) used the regressor form to build an adaptive controller with a global stability proof. Textbooks now list the property beside skew symmetry: Spong et al. (Section 6.5) and Siciliano et al. (Section 7.2.2).

References

  1. Mark W. Spong, Seth Hutchinson and M. Vidyasagar, Robot Modeling and Control, second edition, Wiley, 2020, Chapter 6, Section 6.5 (properties of robot dynamic equations)
  2. Bruno Siciliano, Lorenzo Sciavicco, Luigi Villani and Giuseppe Oriolo, Robotics, Modelling, Planning and Control, Springer, 2009, Chapter 7, Section 7.2.2 (linearity in the dynamic parameters)
  3. Pradeep K. Khosla and Takeo Kanade, Parameter identification of robot dynamics, Proceedings of the 24th IEEE Conference on Decision and Control, 1985, the linear form of the Newton-Euler equations in the inertial parameters and its use for identification (general locator)
  4. Christopher G. Atkeson, Chae H. An and John M. Hollerbach, Estimation of inertial parameters of manipulator loads and links, International Journal of Robotics Research 5(3), 101-119, 1986, the whole paper (the Newton-Euler equations written linearly in the ten inertial parameters of each link, least squares estimation, and the unidentifiable parameters)
  5. Jean-Jacques E. Slotine and Weiping Li, On the adaptive control of robot manipulators, International Journal of Robotics Research 6(3), 49-59, 1987, the adaptive law built on the regressor form

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/7X2N83/text.yaml