Algorithm Search⌘K

Problemadvanced

Dynamic parameter identification

Also called robot inertial parameter estimation.

Estimate the identifiable inertial and friction parameters of a robot from measured joint motions and torques, usually by least squares on the base parameters along an exciting trajectory.

Dynamic parameter identification is the problem of finding the inertial parameters of a robot, and usually its joint friction parameters, from measurements of its motion and its joint torques. Because the dynamics are linear in these parameters, the problem is a linear least squares problem once the motion is known. Only the base inertial parameters can be found, and only if the robot moves along a trajectory that excites every one of them.

In plain words

The data sheet of a robot rarely gives the mass and the shape of the mass of each link with enough accuracy for good control, and a tool or a load changes them. So we let the robot move, record where its joints are and how hard each motor pushes, and ask which masses and inertias explain the record best. Each instant gives a few equations, and a long record gives many more equations than unknowns, so we take the best fit. Two things can spoil the answer. Some properties of the links never change the motor effort, so no record can show them; we drop those and keep only the combinations that matter. And a gentle or repetitive motion shows some combinations so weakly that noise hides them; the motion must be rich enough to show each one clearly.

Definition

Input. The kinematic model of the robot, a choice of base parameters with the regressor YB(q,q˙,q¨)Y_B(q, \dot q, \ddot q) of size n×rn \times r (see linearity in the dynamic parameters), and KK samples (qk,q˙k,q¨k,τk)(q_k, \dot q_k, \ddot q_k, \tau_k) of joint positions, velocities, accelerations and torques. In practice q˙k\dot q_k and q¨k\ddot q_k come from filtered numerical derivatives of the measured positions, and τk\tau_k from motor currents and the motor torque constants.

Model. τk=YB(qk,q˙k,q¨k) πB+ek\tau_k = Y_B(q_k, \dot q_k, \ddot q_k)\, \pi_B + e_k with an error eke_k. With joint friction, the vector πB\pi_B also holds, for example, a viscous coefficient and a Coulomb friction level per joint, whose columns are q˙j\dot q_j and sign(q˙j)\mathrm{sign}(\dot q_j).

Output. An estimate π^B∈Rr\hat\pi_B \in \mathbb{R}^r. The ordinary least squares estimate minimizes ∥T−WπB∥2\| T - W \pi_B \|^2, with the stacked observation matrix WW (Kn×rKn \times r) and the stacked torques TT:

π^B=arg⁡min⁡πB∑k=1K∥τk−YB(qk,q˙k,q¨k) πB∥2.\hat\pi_B = \arg\min_{\pi_B} \sum_{k=1}^K \| \tau_k - Y_B(q_k, \dot q_k, \ddot q_k)\, \pi_B \|^2 .

It is unique if and only if WW has full column rank rr.

Variants

  • Weighted least squares. Joints have different noise levels, so each row is divided by an estimate of the standard deviation of its joint; see weighted least squares.
  • Maximum likelihood. Swevers et al. (1997) used a periodic excitation, averaged the measurements over the periods to estimate the noise, and computed a maximum likelihood estimate.
  • Physical consistency. Add the condition that πB\pi_B comes from links with positive masses and valid inertia matrices. Wensing, Kim and Slotine (2018) wrote this condition as a linear matrix inequality on the pseudo-inertia matrix of each link, so the estimation becomes a semidefinite program.
  • Load identification. Only the ten parameters of the payload are unknown, measured with a wrist force sensor or from the joint torques (Atkeson, An and Hollerbach 1986).
  • Excitation design. Choose the trajectory before the experiment so that WW is well conditioned; see below.
  • Floating base. For a legged robot, the six base rows of the floating-base dynamics give equations in the parameters with the contact forces in place of the joint torques.
  • Online estimation. Estimate the parameters while the robot runs, as in Slotine-Li adaptive control, where the estimate is updated to reduce the tracking error.

Examples

A pendulum with one joint has the model τ=Iq¨+g csin⁡q+fq˙\tau = I \ddot q + g\, c \sin q + f \dot q, where qq is measured from the hanging position, II is the inertia about the joint, cc the mass times the distance of the center of mass from the axis, and ff the viscous friction coefficient. So YB=(q¨, gsin⁡q, q˙)Y_B = (\ddot q,\ g \sin q,\ \dot q) and πB=(I,c,f)\pi_B = (I, c, f). Take the true values (0.5(0.5 kg m2^2, 11 kg m, 0.10.1 N m s)), 200 samples every 0.05 s, and Gaussian torque noise with a standard deviation of 0.05 N m (random seed 5).

Trajectory Condition number of WW Estimate (I,c,f)(I, c, f)
q=0.1sin⁡2tq = 0.1 \sin 2t 6807 (−0.405, 0.630, 0.098)(-0.405,\ 0.630,\ 0.098)
q=0.8sin⁡t+0.4sin⁡3tq = 0.8 \sin t + 0.4 \sin 3t 5.58 (0.502, 1.000, 0.100)(0.502,\ 1.000,\ 0.100)

The first trajectory is small and has one frequency. Then sin⁡q≈q=−q¨/4\sin q \approx q = -\ddot q / 4, so the first two columns of WW are almost parallel, and the data fix only the combination I−gc/4I - g c / 4: the estimate gives −0.405−9.81×0.630/4=−1.950-0.405 - 9.81 \times 0.630 / 4 = -1.950, and the true value is 0.5−9.81/4=−1.95250.5 - 9.81 / 4 = -1.9525. The inertia estimate is negative, which no physical pendulum has. The second trajectory has a large amplitude and two frequencies, and it gives all three parameters to about 0.5 percent.

Known algorithms

  • Least squares by QR. Solve the stacked problem with a QR decomposition of WW, or with the SVD when WW is close to rank deficient. The normal equations square the condition number. Cost: O(Knr2)O(K n r^2) for KK samples.
  • Regressor by recursion. Each row block YB(qk,q˙k,q¨k)Y_B(q_k, \dot q_k, \ddot q_k) can be computed with a modified recursive Newton-Euler algorithm, followed by the column reduction of the base parameters.
  • Exciting trajectories. Gautier and Khalil (1992) computed trajectories that minimize a criterion based on the condition number of WW. Swevers et al. (1997) used finite Fourier series for the joint motions, which are periodic and band limited, and optimized their coefficients.
  • Semidefinite programming. For the physically consistent variant, an interior point method solves the least squares problem under the LMI constraints (Wensing, Kim and Slotine 2018).

Bounds

  • Identifiability (theorem). The parameters πB\pi_B are determined by noise-free data if and only if WW has full column rank. The standard parameters π\pi are never all determined when the regressor has a rank deficit; see base inertial parameters.
  • Statistical accuracy (theorem). If the errors eke_k are independent with zero mean and covariance σ2I\sigma^2 I, the least squares estimate is unbiased with covariance σ2(WTW)−1\sigma^2 (W^T W)^{-1}, and by the Gauss-Markov theorem no other linear unbiased estimate has a smaller covariance. With Gaussian errors this is also the Cramér-Rao bound.
  • Effect of conditioning. The relative error of π^B\hat\pi_B is bounded by the condition number of WW times the relative size of the noise, to first order. This is why excitation design minimizes the condition number.
  • Errors in the regressor. The accelerations in WW are noisy too, so the least squares estimate has a bias; filtering the data and the use of many samples make it small in practice.

Reductions

  • To the linear least squares problem, after the reduction to base parameters.
  • To a semidefinite program, when physical consistency is required.
  • The same structure as kinematic calibration, where geometric parameters are found from pose measurements and only identifiable combinations of the errors can be found.

Applications

  • Feedforward and model-based control, such as computed-torque control, which needs the inertial parameters to cancel the dynamics.
  • Collision detection, which compares the measured torques with the torques of the model.
  • Identification of a payload before the robot moves it fast.
  • Simulation models of an existing robot.

References

  1. Christopher G. Atkeson, Chae H. An and John M. Hollerbach, Estimation of inertial parameters of manipulator loads and links, The International Journal of Robotics Research 5(3), 1986, pages 101 to 119
  2. Maxime Gautier and Wisama Khalil, Direct calculation of minimum set of inertial parameters of serial robots, IEEE Transactions on Robotics and Automation 6(3), 1990, pages 368 to 373
  3. Maxime Gautier and Wisama Khalil, Exciting trajectories for the identification of base inertial parameters of robots, The International Journal of Robotics Research 11(4), 1992, pages 362 to 375
  4. Jan Swevers, Chris Ganseman, Dilek Bilgin Tükel, Joris De Schutter and Hendrik Van Brussel, Optimal robot excitation and identification, IEEE Transactions on Robotics and Automation 13(5), 1997, pages 730 to 740
  5. Patrick M. Wensing, Sangbae Kim and Jean-Jacques E. Slotine, Linear matrix inequalities for physically consistent inertial parameter identification: a statistical perspective on the mass distribution, IEEE Robotics and Automation Letters 3(1), 2018, pages 60 to 67
  6. Bruno Siciliano and Oussama Khatib (editors), Springer Handbook of Robotics, second edition, Springer, 2016, Chapter 6, Model Identification, by John Hollerbach, Wisama Khalil and Maxime Gautier, pages 113 to 138
  7. Bruno Siciliano, Lorenzo Sciavicco, Luigi Villani and Giuseppe Oriolo, Robotics, Modelling, Planning and Control, Springer, 2009, Chapter 7, Section 7.4 (dynamic parameter identification)

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)
WritingW2 basic
  • a known algorithm
  • a contract.yaml