Algorithm Search⌘K

Techniqueadvanced

Kane's method

Also called Kane's equations.

Derives equations of motion by projecting the forces and inertia forces of each body on its partial velocities, F_r + F_r* = 0. Ideal constraint forces drop out, with no multipliers.

Kane's method derives the equations of motion of a system of rigid bodies by projecting forces onto special directions, the partial velocities. For each generalized speed uru_r it forms one scalar equation, Fr+Fr∗=0F_r + F_r^* = 0, where FrF_r collects the applied forces and Fr∗F_r^* the inertia forces −ma-m a and −(Iα+ω×Iω)-(\mathcal{I}\alpha + \omega \times \mathcal{I}\omega). Forces of ideal joints and of rolling without slipping do no work along the partial velocities, so they never appear. It sits between the Newton-Euler equations, which keep every joint force, and Euler-Lagrange dynamics, which needs derivatives of an energy.

In plain words

Each way that a system can move is a direction. If you push the system along one of these directions, some forces help, some resist, and some, such as the forces inside a hinge, do nothing at all. Kane's method writes one balance per direction: the forces that help, minus the resistance of the masses to speeding up, must add to zero. The hinge forces drop out by themselves. The method also lets you pick the directions freely, so a wheel that rolls without slipping simply gets fewer directions, and no extra unknown forces are needed.

When it applies

  • A system of rigid bodies (and particles) in an inertial frame, with nn generalized coordinates qq.
  • The velocities are linear in a set of pp generalized speeds u∈Rpu \in \mathbb{R}^p: vci=∑rvrci(q,t) ur+vtci(q,t)v_{ci} = \sum_r v^{ci}_r(q, t)\,u_r + v^{ci}_t(q, t) and ωi=∑rωri(q,t) ur+ωti(q,t)\omega_i = \sum_r \omega^{i}_r(q, t)\,u_r + \omega^i_t(q, t). For a holonomic system, p=np = n and often u=q˙u = \dot q. For a system with n−pn - p nonholonomic constraints, such as the rolling constraint of a wheel, one picks p<np < n independent speeds.
  • The constraints are ideal: the constraint forces do no work along any motion that the constraints allow. Frictionless joints and rolling without slipping are ideal. Sliding friction is not, and must be added as an applied force.
  • It is useful for symbolic derivations of mechanisms, for vehicles with rolling constraints, and for spacecraft and multibody codes. Kane and Levinson (1983) used it to derive compact equations for a six-joint arm.

The template

  1. Choose the generalized coordinates qq and the generalized speeds uu, and write the kinematic equations q˙=W(q)u\dot q = W(q)u that link them.
  2. For each body ii, write the velocity vciv_{ci} of its center of mass and its angular velocity ωi\omega_i as linear functions of uu.
  3. Read off the partial velocities vrci=∂vci/∂urv^{ci}_r = \partial v_{ci}/\partial u_r and the partial angular velocities ωri=∂ωi/∂ur\omega^i_r = \partial\omega_i/\partial u_r.
  4. Differentiate to get the accelerations acia_{ci} and the angular accelerations αi\alpha_i, both in an inertial frame.
  5. Form the generalized active forces. If body ii carries the resultant force RiR_i through its center of mass and the couple TiT_i, then
Fr=∑i(vrci⋅Ri+ωri⋅Ti).F_r = \sum_i \big(v^{ci}_r \cdot R_i + \omega^i_r \cdot T_i\big).

A motor torque τ\tau about the axis zz between body jj and body kk acts with +τz+\tau z on kk and −τz-\tau z on jj, and contributes τ (ωrk−ωrj)⋅z\tau\,(\omega^k_r - \omega^j_r)\cdot z. 6. Form the generalized inertia forces

Fr∗=∑i(vrci⋅(−miaci)+ωri⋅(−Iiαi−ωi×Iiωi)).F_r^* = \sum_i \Big(v^{ci}_r \cdot (-m_ia_{ci}) + \omega^i_r \cdot \big(-\mathcal{I}_i\alpha_i - \omega_i \times \mathcal{I}_i\omega_i\big)\Big).
  1. Write Kane's equations Fr+Fr∗=0F_r + F_r^* = 0 for r=1,…,pr = 1, \dots, p. Together with q˙=W(q)u\dot q = W(q)u they are the equations of motion.

Why ideal constraint forces drop out. A constraint force RcR^c that does no work on any allowed motion satisfies ∑i(vci⋅Ric+ωi⋅Tic)=0\sum_i (v_{ci} \cdot R^c_i + \omega_i \cdot T^c_i) = 0 for every uu. Since the velocities are linear in uu, the coefficient of each uru_r is zero, and that coefficient is exactly the contribution of the constraint forces to FrF_r. Kane's equations are then the Newton-Euler equations of all bodies, projected on the partial velocities, which is d'Alembert's principle in the coordinates uu.

Link to the manipulator equation. For a fixed-base arm with u=q˙u = \dot q, the partial velocities are the columns of the Jacobians, vrci=Jvierv^{ci}_r = J_{vi}e_r and ωri=Jωier\omega^i_r = J_{\omega i}e_r. Then F∗=−∑i(JviTmiaci+JωiT(Iiαi+ωi×Iiωi))=−(Mq¨+Cq˙)F^* = -\sum_i\big(J_{vi}^Tm_ia_{ci} + J_{\omega i}^T(\mathcal{I}_i\alpha_i + \omega_i \times \mathcal{I}_i\omega_i)\big) = -(M\ddot q + C\dot q) and F=τ−g(q)F = \tau - g(q), so Kane's equations are the manipulator equation.

Classic examples

The planar 2R arm. Take L1=L2=1L_1 = L_2 = 1 m, point masses of 1 kg at the link ends, u=q˙u = \dot q, a vertical plane with heights measured upward, and q1q_1 from the horizontal. With s1=sin⁡q1s_1 = \sin q_1, c1=cos⁡q1c_1 = \cos q_1, s12=sin⁡(q1+q2)s_{12} = \sin(q_1 + q_2) and c12=cos⁡(q1+q2)c_{12} = \cos(q_1 + q_2), the partial velocities are

v1(1)=(−s1,c1),v2(1)=(0,0),v1(2)=(−s1−s12, c1+c12),v2(2)=(−s12,c12).v^{(1)}_1 = (-s_1, c_1),\quad v^{(1)}_2 = (0, 0),\quad v^{(2)}_1 = (-s_1 - s_{12},\ c_1 + c_{12}),\quad v^{(2)}_2 = (-s_{12}, c_{12}).

Link 1 turns at u1u_1 and link 2 at u1+u2u_1 + u_2, so motor 1 contributes τ1\tau_1 to F1F_1, and motor 2 contributes τ2(1−1)=0\tau_2(1 - 1) = 0 to F1F_1 and τ2\tau_2 to F2F_2. The weights (0,−9.81)(0, -9.81) N give F1=τ1−9.81(2c1+c12)F_1 = \tau_1 - 9.81(2c_1 + c_{12}) and F2=τ2−9.81c12F_2 = \tau_2 - 9.81c_{12}.

Now take q=(0,π/2)q = (0, \pi/2), u=(1,1)u = (1, 1) rad/s and u˙=0\dot u = 0. The masses are at (1,0)(1, 0) and (1,1)(1, 1). Their accelerations are centripetal: a1=(−1,0)a_1 = (-1, 0) m/s2^2 and a2=a1−(u1+u2)2(c12,s12)=(−1,−4)a_2 = a_1 - (u_1 + u_2)^2(c_{12}, s_{12}) = (-1, -4) m/s2^2. The partial velocities there are v1(1)=(0,1)v^{(1)}_1 = (0, 1), v1(2)=(−1,1)v^{(2)}_1 = (-1, 1) and v2(2)=(−1,0)v^{(2)}_2 = (-1, 0). So

F1∗=−((−1,0)⋅(0,1)+(−1,−4)⋅(−1,1))=3,F2∗=−(−1,−4)⋅(−1,0)=−1.F_1^* = -\big((-1, 0)\cdot(0, 1) + (-1, -4)\cdot(-1, 1)\big) = 3,\qquad F_2^* = -(-1, -4)\cdot(-1, 0) = -1.

Without gravity, Fr+Fr∗=0F_r + F_r^* = 0 gives τ=(−3,1)\tau = (-3, 1) N m, the same torques as the Euler-Lagrange equations. No joint reaction force was computed.

A knife edge on a plane (the unicycle model with mass). A body of mass mm and inertia II about its center of mass moves on a horizontal plane with pose (x,y,θ)(x, y, \theta). A knife edge at the center of mass forbids sideways motion, −x˙sin⁡θ+y˙cos⁡θ=0-\dot x\sin\theta + \dot y\cos\theta = 0, which is a nonholonomic constraint. Choose p=2p = 2 speeds: u1u_1, the forward speed, and u2=θ˙u_2 = \dot\theta. Then vc=u1(cos⁡θ,sin⁡θ)v_c = u_1(\cos\theta, \sin\theta) and ω=u2\omega = u_2, so v1=(cos⁡θ,sin⁡θ)v_1 = (\cos\theta, \sin\theta), v2=0v_2 = 0, ω1=0\omega_1 = 0 and ω2=1\omega_2 = 1. The acceleration is ac=u˙1(cos⁡θ,sin⁡θ)+u1u2(−sin⁡θ,cos⁡θ)a_c = \dot u_1(\cos\theta, \sin\theta) + u_1u_2(-\sin\theta, \cos\theta), and the second term is orthogonal to v1v_1. With a forward force ff and a turning moment TT, Kane's equations are mu˙1=fm\dot u_1 = f and Iu˙2=TI\dot u_2 = T, with x˙=u1cos⁡θ\dot x = u_1\cos\theta, y˙=u1sin⁡θ\dot y = u_1\sin\theta, θ˙=u2\dot\theta = u_2. The sideways force of the knife edge never enters. A Lagrangian treatment of the same system needs three equations and one multiplier.

A pendulum. A point mass mm on a massless rod of length LL, with u=q˙u = \dot q and qq from the horizontal: v1=L(−sin⁡q,cos⁡q)v_1 = L(-\sin q, \cos q), F1=τ−mgLcos⁡qF_1 = \tau - mgL\cos q and F1∗=−mL2u˙F_1^* = -mL^2\dot u, so τ=mL2q¨+mgLcos⁡q\tau = mL^2\ddot q + mgL\cos q.

Variations

  • Choice of speeds. Body-frame components of the angular velocity, or the forward speed of a vehicle, often give shorter expressions than u=q˙u = \dot q. The kinematic equations q˙=W(q)u\dot q = W(q)u then carry the extra work.
  • Computer algebra. Packages for symbolic multibody dynamics implement the method, for example the mechanics module of SymPy, which has a class for Kane's method.
  • Related principles. The Gibbs-Appell equations and Jourdain's principle lead to the same equations by other routes. The Gauss principle of least constraint states the same physics as a minimum over accelerations.
  • Recursive forms. Organized link by link along a chain, the projections of Kane's method become a recursive algorithm much like the recursive Newton-Euler algorithm.

Pitfalls

  • Partial velocities are derivatives with respect to the speeds uu, not the coordinates qq. If u≠q˙u \ne \dot q, do not differentiate with respect to q˙\dot q.
  • Accelerations must be taken in an inertial frame. When vcv_c is written in a moving frame, add the transport term ω×v\omega \times v.
  • Nonideal constraints. Joint friction and sliding contact do work, so their forces must be added to FrF_r as applied forces. Leaving them out gives wrong equations without any warning.
  • Internal forces that do work, such as a spring between two links, must appear in FrF_r; only workless constraint forces drop out.
  • The constraint forces are not computed. If you need the joint reaction forces, for example to size a bearing, add a speed that violates the constraint (Kane and Levinson call such speeds auxiliary), or use the Newton-Euler equations.

Exercises

  1. Derive the equation of the pendulum with a rod of mass mm and length LL (center of mass at L/2L/2, I=mL2/12I = mL^2/12 about it). Answer: τ=13mL2q¨+12mgLcos⁡q\tau = \tfrac13mL^2\ddot q + \tfrac12mgL\cos q.
  2. For the 2R arm at q=(0,0)q = (0, 0), u=(1,0)u = (1, 0) rad/s and u˙=0\dot u = 0, without gravity, show that F∗=0F^* = 0, so no torque is needed. Explain the result with the direction of the centripetal accelerations.
  3. Show that for u=q˙u = \dot q, Fr∗=−(ddt∂K∂q˙r−∂K∂qr)F_r^* = -\big(\tfrac{d}{dt}\tfrac{\partial K}{\partial\dot q_r} - \tfrac{\partial K}{\partial q_r}\big), so Kane's equations and the Euler-Lagrange equations agree.
  4. Add a viscous force −b u1-b\,u_1 along the heading of the knife edge and solve for u1(t)u_1(t) with f=0f = 0. Answer: u1(t)=u1(0)e−bt/mu_1(t) = u_1(0)e^{-bt/m}.

References

  1. Thomas R. Kane and David A. Levinson, Dynamics, Theory and Applications, McGraw-Hill, 1985, the generalized speeds, partial velocities, generalized active and inertia forces, and the dynamical equations (general locator)
  2. Thomas R. Kane and David A. Levinson, The use of Kane's dynamical equations in robotics, International Journal of Robotics Research 2(3), 3-21, 1983, the whole paper (the method applied to the Stanford arm, and its operation count compared with other formulations)
  3. Mark W. Spong, Seth Hutchinson and M. Vidyasagar, Robot Modeling and Control, second edition, Wiley, 2020, Chapter 6, Section 6.1.2 (holonomic constraints and virtual work) and Section 6.1.3 (D'Alembert's principle)

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
  • three classic examples