Beruflich Dokumente
Kultur Dokumente
net/publication/327834410
CITATIONS READS
3 300
1 author:
Edward Haug
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Edward Haug on 13 October 2018.
1 Introduction differentiating Eq. (1) with respect to time yields velocity and
acceleration constraints
G. A. Maggi published landmark papers at the end of the 19th
century [1,2] that establish a system of equations of motion for Uq ðqÞq_ ¼ 0 (2)
nonholonomically constrained mechanical systems. His equations
of motion are ordinary differential equations (ODE) that avoid the
Uq ðqÞ€ ^_ q_ Uq ðqÞ€
q þ ðUq ðqÞqÞ q þ cðq; qÞ
_ ¼0 (3)
need for Lagrange multipliers and the associated differential- q
algebraic equations (DAE) of motion [3]. While valid representa-
tions of system dynamics with holonomic and nonholonomic con- where a bold symbol is a vector or matrix, an over dot denotes
straints, DAE are difficult to solve [4] and lack theoretical derivative with respect to time, an over tilde (hat) identifies a vari-
underpinnings that are provided by the theory of ODE [5]. With able that is held constant for the indicated differentiation, and the
the goal of obtaining ODE of dynamics, the Maggi equations multivariable calculus notation Uq ðqÞ ½@Ui ðqÞ=@qj mn is used.
were rediscovered in the 1960s in the setting of nonholonomic It is important that the Jacobian matrix Uq ðqÞ of the holonomic
systems [6], for which they were intended, and rediscovered or constraints has full row rank for all q. Otherwise, the constraints
reinvented by Kane and applied to both nonholonomic and holo- are dependent, or at least locally singular, requiring specialized
nomic systems [7]. Maggi equations, equivalently Kane equations analysis methods that are beyond the scope of this paper.
[8], have been applied to holonomic systems by enforcing con- Dynamics of the system is governed by d’Alembert’s principle
straints only at the velocity level [9–12]. This raises both theoreti- [3]
cal and practical issues with the resulting ODE, since
configuration kinematic constraints are not included in the formu- dqT ½MðqÞ€
q QA ðq; q;
_ tÞ Sðq; qÞ
_ ¼0 (4)
lation and numerical solution of the equations leads to “drift”
from the holonomic constraints [10,11]; i.e., error that accrues which must hold for all dq that satisfy Uq ðqÞdq ¼ 0, where the
over time. mass matrix MðqÞ is positive definite on the null space of Uq ðqÞ,
The objective of this paper is to extend the domain of validity QA ðq; q;
_ tÞ is the vector of generalized applied forces, and Sðq; qÞ
_
of the Maggi and Kane formulations to holonomically constrained is a vector of velocity coupling terms, all assumed to be twice
systems. An early attempt to meet this objective [13] presents an continuously differentiable functions of their arguments. Consist-
analysis based on the Lagrange multiplier form of the equations of ent with d’Alembert’s principle, no constraint reaction forces or
motion. The assumption is made that nonlinear holonomic con- Lagrange multipliers appear in Eq. (4).
straints can be solved analytically for dependent generalized coor- An implementation of the Maggi/Kane equations using tangent
dinates as functions of independent coordinates, to satisfy the space independent generalized coordinates and enforcing holo-
holonomic constraints. Such analytical solutions, however, are nomic velocity and acceleration constraints is presented in Sec. 2,
seldom possible in applications. using only matrix and multivariable calculus concepts. It is shown
For the purposes of this paper, a mechanical system is defined in Sec. 3 that solutions of the resulting ODE need not satisfy Eq.
as a collection of rigid bodies whose position and orientation in an (1); hence, they may not satisfy all equations of system dynamics.
inertial reference frame are defined by generalized coordinates An extension of the Maggi/Kane approach that satisfies Eqs.
q ¼ ½ q1 qn T 2 Rn that must satisfy holonomic constraints (1)–(3) and yields ODE of system dynamics is presented in Sec. 4.
of the form Technical issues associated with evaluating terms that are shown
to exist in Secs. 2 and 4 and implementing manifold theoretic sol-
UðqÞ ¼ ½ U1 ðqÞ Um ðqÞ T ¼ 0 2 Rm (1) utions of the ODE of motion are presented in Secs. 5 and 6. Com-
putational results obtained with the extended formulation are
Time-independent constraints are treated here, but the formulation presented in Sec. 7. Conclusions are presented in Sec. 8.
is easily extended to time dependent constraints [14]. It is
assumed that the vector function UðqÞ of Eq. (1) has two continu-
ous derivatives with respect to its arguments. With q ¼ qðtÞ, 2 Maggi/Kane Equations That Enforce Only Velocity
and Acceleration Constraints
Contributed by the Design Engineering Division of ASME for publication in the
JOURNAL OF COMPUTATIONAL AND NONLINEAR DYNAMICS. Manuscript received June 18,
At initial time t0 , with qðt0 Þ ¼ q0 that satisfies Eq. (1), define
2018; final manuscript received September 16, 2018; published online October 15, U UTq ðq0 Þ and V as a solution of Uq ðq0 ÞV ¼ 0 and VT V ¼ I,
2018. Assoc. Editor: Paramsothy Jayakumar. using singular value decomposition [15]. Note that VT U ¼ 0 and
BðqÞ ðUq ðqÞUÞ1 (7) which is a system of ð2n mÞ first order ODE in ð2n mÞ varia-
bles w and q. This is the form of Maggi/Kane equations of motion
where BðqÞ is a continuously differentiable, nonsingular, matrix that appears in the modern literature [9–12]. As noted earlier, the
function of q in W1 . Thus, from Eq. (6), z ¼ BðqÞUq ðqÞVw and mass matrix is positive definite on the null space of the constraint
Eq. (5) reduces to Jacobian, so the matrix DT ðq0 ÞMðq0 ÞDðq0 Þ ¼ VT Mðq0 ÞV is posi-
tive definite. Since DT ðqÞMðqÞDðqÞ is a continuous function of q,
q_ ¼ Vw UBðqÞUq ðqÞVw ¼ ðI UBðqÞUq ðqÞÞVw ¼ DðqÞw it is nonsingular in an open set W2 that contains q0 . From Eq. (5),
w ¼ VT q,_ so initial conditions are
(8)
wðt0 Þ ¼ VT qðt
_ 0Þ
where (18)
qðt0 Þ ¼ q0
DðqÞ ðI UBðqÞUq ðqÞÞV (9)
The theory of ODE [5] guarantees that the initial-value problem
The product of Eqs. (17) and (18) has a unique solution ðwðtÞ; qðtÞÞ on the
open set W1 \ W2 .
Uq ðqÞDðqÞ ¼ ðUq ðqÞ Uq ðqÞUBðqÞUq ðqÞÞV
¼ ðUq ðqÞ Uq ðqÞÞV ¼ 0 (10) 3 The Trouble with Maggi and Kane Equations
Applied to Holonomic Systems
shows that the columns of the matrix function DðqÞ are in the null
space of the constraint Jacobian. Thus, q_ of Eq. (8) satisfies the Even though the Maggi/Kane ODE initial value problem of
constraint velocity equation of Eq. (2), for arbitrary values of w. Eqs. (17) and (18) has a unique solution, it is not necessarily the
The vector w comprises the “kinetic characteristics” in the Maggi solution of the dynamics problem. The theoretical difficulty in
formulation [1,2,6,8] and “generalized speeds” in the Kane formu- applying the Maggi/Kane equations with holonomic constraints is
lation [7]. Further, the columns of DðqÞ are Kane’s “partial veloc- that q and w are not Lagrangian generalized coordinates [3]; i.e.,
ities” [7], which in this formulation provide a differentiable basis they do not identically satisfy all three forms of the equations of
for the null space of the constraint Jacobian. constraint of Eqs. (1)–(3). More specifically, the unique solution
In variational form, Eq. (8) is the virtual displacement relation of Eqs. (17) and (18) need not satisfy Eq. (1).
A more important issue is that in numerical solution of the ini-
dq ¼ DðqÞdw (11) tial value problem of Eqs. (17) and (18), Eq. (1) is satisfied only
Using Eq. (10) to within error tolerances of the numerical integration method.
This is a source of “drift,” i.e., error in satisfying Eq. (1) over
Uq ðqÞdq ¼ Uq ðqÞDðqÞdw ¼ 0 (12) time. Since the equations of motion are valid only on the con-
straint manifold X ¼ fq 2 Rn : UðqÞ ¼ 0g, not in a neighborhood
for arbitrary dw; i.e., dq of Eq. (11) satisfies Eq. (12) for arbitrary of it, numerical integration error corrupts the equations of motion
dw. Substituting dq ¼ DðqÞdw into Eq. (4) yields and leads to an additional source of error that is difficult to quan-
tify. Since the constraint of Eq. (1) is an integral component of
q DT ðqÞQA ðq; q;
dwT ½DT ðqÞMðqÞ€ _ tÞ DT ðqÞSðq; qÞ
_ ¼0 system kinematics, the fact that it is not satisfied in numerical
solution of the Maggi/Kane equations is a serious problem. Some
(13)
implementations of the Maggi/Kane equations monitor error in
which holds for all dq such that Uq ðqÞdq ¼ 0, so by Eq. (12), it satisfying Eq. (1), stop the simulation when the error exceeds a
holds for arbitrary dw. Using this fact and Eq. (8) given threshold, modify the approximate solution to satisfy Eq.
(1), and continue the simulation [10,11], which induces further
DT ðqÞMðqÞ€
q DT ðqÞQA ðq; DðqÞw; tÞ DT ðqÞSðq; DðqÞwÞ ¼ 0 error in the approximate solution. This deficiency is resolved in
(14) Sec. 4.
A second practical difficulty with the Maggi/Kane equations is
which are Maggi’s equations [6,8]. Since Eq. (14) is comprised of that ad hoc selection of generalized coordinates may not yield dif-
n m differential equations in 2n þ m variables q and w, there ferentiable vector functions that span the null space of the con-
are an infinity of solutions. To obtain uniquely solvable equations, straint Jacobian, leading to significant error. The derivation of
q€ must be written in terms of w and its derivatives. Differentiating Sec. 2 avoids this problem, but only in the neighborhood W1 . This
equation (5) with respect to time deficiency is resolved in Sec. 6.
€ ¼ Vw_ Uz_
q (15)
For q€ to satisfy Eq. (3), Uq ðqÞ€ q þ cðq; qÞ
_ ¼ Uq ðqÞVw_ 4 The Extension
Uq ðqÞUz_ þ cðq; qÞ
_ ¼ 0. Using Eq. (7), z_ ¼ BðqÞUq ðqÞVw_ To overcome the problems identified is Sec. 3, tangent space
þBðqÞcðq; qÞ.
_ Substituting this and Eq. (8) into Eq. (15) generalized coordinates are defined in the configuration space as
To satisfy the holonomic constraint of Eq. (1), for a given value of DT ðqÞMðqÞDðqÞ€
v ¼ DT ðqÞðMðqÞUBðqÞcðq; qÞ
_ þ QA ðq; q;
_ tÞ
v, u must satisfy þ Sðq; qÞÞ
_ (26)
Uðq0 þ Vv UuÞ ¼ 0 (20) With Eqs. (22) and (23) substituted into this equation, all expres-
_
sions that appear are functions of Lagrangian coordinates v and v.
Using the chain rule of differentiation and Eq. (7), Equation (26) is thus a second-order ODE of motion in general-
Uu ðqÞ ¼ Uq ðqÞU ¼ B1 ðqÞ, which is nonsingular in a neigh- ized coordinate v. With initial conditions derived from Eqs. (19)
borhood X1 of q0 . Since u ¼ 0 is a solution of Eq. (20) for v ¼ 0, and (23), 0 ¼ VT ðq0 q0 Þ ¼ v and VT q_ 0 ¼ v_ 0 ; i.e.,
the implicit function theorem [16] guarantees that there is a
unique continuously differentiable solution of Eq. (20) vðt0 Þ ¼ 0
(27)
u ¼ hðvÞ (21) _ 0 Þ ¼ VT q_ 0
vðt
Table 1 Maximum norms of top constraint error so the system has 8 degrees-of-freedom. Initial position conditions
are p01 ¼ p02 ¼ ½1; 0; 0; 0T and r02 ¼ ½0; 0; 3T ; i.e., the body z0
Tol Pos. Vel. Acc. axes coincide with the inertial z axis and body two hangs verti-
cally downward. The initial velocity of body two is r_ 2 ¼ 0 and
e-6 e-8 e-6 e-4 initial angular velocities are x0 01 ¼ 0 and x0 02 ¼ ½0; 5; 0T , so
e-9 e-11 e-8 e-7 p_ 0i ¼ 0:5Gðp0i ÞT x0 0i .
e-12 e-14 e-10 e-9 To evaluate constraint error control, the convergence tolerance
Tol ¼ Btol ¼ utol in Eqs. (28) and (29) is varied in simulations
carried out using the Nystrom4 explicit integrator [14], to evaluate
its influence on constraint error. Results presented in Table 2
show that position, velocity, and acceleration constraint errors are
driven toward zero to near computer precision as convergence tol-
erances are tightened. Little increase in compute time is associ-
ated with the tighter tolerances.
8 Conclusions
While the Maggi and Kane equations of motion are valid for
systems with only nonholonomic constraints, they fail to enforce
configuration constraints in holonomic systems. To correct this
deficiency, the tangent space ODE extension that is presented
defines Lagrangian generalized coordinates at the configuration
level and enforces position, velocity, and acceleration constraints.
Numerical examples presented show that the extended formula-
tion satisfies all three forms of constraint to near computer
precision.
Acknowledgment
The author acknowledges (1) valuable discussions with Profes-
Fig. 4 Two body spatial pendulum sor Bahram Ravani of the University of California-Davis that con-
tributed to development of the tangent space ODE algorithm
presented and (2) thoughtful critiques and constructive sugges-
tions by three reviewers that enabled conversion of a rough draft
0:5Gðp0 ÞT x00 and r_ ¼ 0. Numerical solutions are carried out with to a hopefully useful paper.
the fourth-order Nystrom4 explicit integrator [14].
To evaluate constraint error control, the convergence tolerance References
Tol ¼ Btol ¼ utol in Eqs. (28) and (29) is varied to evaluate its [1] Maggi, G. A., 1896, Principii Della Teoria Matematica Del Movimento Dei
influence on constraint error. Results presented in Table 1 show Corpi: Corso de Meccanica Razionale, Ulrico Hoepli, Milano.
that position, velocity, and acceleration constraint errors are [2] Maggi, G. A., 1901, “Di Alcune Nuove Forme Delle Equazioni Della Dinamica
driven toward zero to near computer precision as convergence tol- Applicabili ai Sistemi Anolonomi,” Rendiconti Della Regia Academia Dei Lin-
cei, Serie V, Vol. X, pp. 287–291.
erances are tightened. Little increase in compute time is associ- [3] Pars, L. A., 1965, A Treatise on Analytical Dynamics, Reprint by Ox Bow Press
ated with the tighter tolerances. (1979), Woodbridge, CT.
[4] Rabier, P. J., and Rheinboldt, W. C., 2002, “Theoretical and Numerical Analy-
sis of Differential-Algebraic Equations,” Handbook of Numerical Analysis,
7.2 Two Body Spatial Pendulum. Two spheres of unit radius Vol. 8, P. G. Ciarlet and J. L. Lions, eds., Elsevier Science B.V, Amsterdam,
are shown in Fig. 4. The origin of body 1 is fixed to the origin of The Netherlands, pp. 183–540.