scieee AI-readable full text Open interactive document viewer

A linear relaxation technique for the position analysis of multi-loop linkages

Porta Pleite, Josep Maria,Ros Giralt, Lluís,Thomas, Federico

Abstract

This report presents a new method able to isolate all configurations that a multi-loop linkage can adopt. We tackle the problem by providing formulation and resolution techniques that fit particularly well together. The adopted formulation yields a system of simple equations (only containing linear and bilinear terms, and trivial trigonometric functions for the helical pair exclusively) whose special structure is later exploited by a branch-and-prune method based on linear relaxations. The method is general, as it can be applied to linkages with single or multiple loops with arbitrary topology, involving lower pairs of any kind, and complete, as all possible solutions get accurately bounded, irrespectively of whether the linkage is rigid or mobile.

Full text

IRI-TR-01-08 A Linear Relaxation Technique for the Position Analysis of Multi-Loop Linkages Josep M. Porta Llu´ıs Ros Federico Thomas Abstract This report presents a new method able to isolate all configurations that a multi-loop linkage can adopt. We tackle the problem by providing formulation and resolution techniques that fit particularly well together. The adopted formulation yields a system of simple equations (only containing linear and bilinear terms, and trivial trigonometric functions for the helical pair exclusively) whose special structure is later exploited by a branch-and-prune method based on linear relaxations. The method is general, as it can be applied to linkages with single or multiple loops with arbitrary topology, involving lower pairs of any kind, and complete, as all possible solutions get accurately bounded, irrespectively of whether the linkage is rigid or mobile. Institut de Rob`otica i Inform`atica Industrial (IRI) Consejo Superior de Investigaciones Cient´ıficas (CSIC) Universitat Polit`ecnica de Catalunya (UPC) Llorens i Artigas 4-6, 08028, Barcelona, Spain Tel (fax): +34 93 401 5750 (5751) http://www.iri.upc.edu Corresponding author: JM Porta tel: +34 93 401 0775 [email protected] http://www.iri.upc.edu/people/porta Copyright IRI, 2008 Section 1 Introduction 1 1 Introduction A linkage is an articulated mechanism of rigid links connected through lower-pair joints. We are interested in linkages forming one or more kinematic loops, i.e., closed sequences of pairwise articulated links. This report presents a new method for the position analysis of such linkages, that is, for the computation of the configurations they can adopt, within specified ranges for their degrees of freedom. A configuration is here understood in a kinematic sense: as an assignment of positions and orientations to all links that respects the kinematic constraints imposed by all joints, with no regard to possible link-link interferences. Several problems in Robotics translate into the above one, or require an efficient module able to solve it. The problem arises, for instance, when solving the inverse/forward kinematics of serial/parallel manipulators [32, 20], when planning the coordinated manipulation of an object or the locomotion of a reconfigurable robot [56], or in simultaneous localization and map-building [40]. The problem also appears in other domains, such as in the simulation and control of complex deployable structures [27], the theoretical study of rigidity [4], or the conformational analysis of biomolecules [55]. The common denominator in all cases is the existence of one or more kinematic loops in the system at hand, defining a linkage whose feasible configurations must be determined. For decades, kinematicians have devoted considerable efforts to solve such problem, but eminently on an ad-hoc basis. Closed-form or efficient iterative solutions have been derived for specific linkages, notable ones including those for the inverse kinematics of general 6R manipulators [45], or for the forward kinematics of parallel platforms [50]. However, scarce efforts have been devoted to obtain a general solver, able to tackle linkages of any kind. While it is true that such solver could be implemented by algebraizing the problem and using any general technique for systems of polynomial equations (see Section 2), our experience shows that, unfortunately, a solution to both algebraization and resolution, treated as independent problems, does not necessarily yield an efficient procedure. In this work, in contrast, we will propose solution techniques to both problems that fit particularly well together. A few previous works in the literature specifically provide general linkage solvers, but limited to planar linkages only. These include the work by Nielsen and Roth, who gave an algorithm to derive the Dixon resultant of any planar linkage [39], the work by Wampler, which improves on Nielsen and Roth’s by applying a complex plane formulation [54], the work by Celaya et al. [8], which provides an interval propagation algorithm, and, finally, the work by Porta et al. [41], which attacks the problem via linear relaxations of the equations. A careful examination of these methods shows that [41] is specially amenable for generalization to the spatial case, a task we preliminary addressed in [42] and which we complete in the present work. As a result, we contribute with a method able to solve the position analysis of any spatial linkage, irrespective of the joint types it involves, of the number of loops it presents, and of the loops’ interconnection pattern. In every case the method returns a discrete map of the linkage configuration space given as a box approximation—a collection of boxes enclosing all of its points at the desired resolution level. Such map allows visualizing the linkage rigid and flexible assembly modes, and bifurcations. The rest of the report is organized as follows. Section 2 briefly reviews related work concerning the resolution of the problem using general techniques for systems of algebraic equations. Section 3 shows how the position analysis of a multi-loop linkage can be formulated as a canonical system of quadratic, bilinear, and trivial trigonometric equations. A linear relaxation method for solving this system is next presented in Section 4. Section 5 includes several experiments illustrating the performance of a C implementation of the technique. Finally, the report concludes in Section 6 summarizing the main contributions and points deserving further attention. 2 Position Analysis of Multi-Loop Linkages 2 Related Work Although the position analysis problem can be approached by geometric constructive techniques [13], only the algebraic methods have proved general enough to tackle all problem instances. These methods consist in characterizing the linkage configurations by an algebraic system of equations that is then solved using standard techniques. Reviews of such techniques in the context of Robotics, CAD/CAM and Molecular Modelling can be found for example in [38], [19], and [43], respectively. Broadly speaking, the proposed methods fall into three categories, depending on whether they use algebraic geometry, continuation, or branch-and-prune techniques. Algebraic-geometric methods, including those based on resultants and Gr¨obner bases, use variable elimination to reduce the initial system to a univariate polynomial. The roots of this polynomial, once backsubstituted into other equations, yield all solutions of the original system. These methods have proved quite efficient in fairly non-trivial problems such as the inverse kinematics of general 6R manipulators [32, 45], or the forward analysis of general Stewart- Gough platforms [50]. Recent progress on the theory of sparse resultants, moreover, qualifies them as a very promising set of techniques [10]. Continuation methods, in contrast, begin with an initial system whose solutions are known, and then transform it gradually to the system whose solutions are sought, while tracking all solution paths along the way. In its original form, this technique was known as the Bootstrap Method, as developed by Roth and Freudenstein [47], and subsequent work by Garcia and Li [14], Garcia and Zangwill [15], Morgan [35], and Li et al. [30], among others, led the procedure into its current highly-developed state [49, 17]. These methods have been responsible for the first solutions to many long-standing problems in Kinematics. For example, using them, Tsai and Morgan first showed that the inverse kinematics of the general 6R manipulator has up to sixteen solutions [28], Raghavan showed that the direct kinematics of the general Stewart- Gough platform can have at most forty solutions [44], and Wampler et al. solved nine-point path synthesis problems for four-bar linkages [52]. In a different approach, branch-and-prune methods use approximate bounds of the solution set in order to rule out portions of the search space that contain no solution. The initial domain is iteratively reduced as much as possible, and then bisected in two halves. The whole reductionbisection process is then applied on each half recursively, until a fine-enough approximation of the solution set is derived. The convergence of this scheme is guaranteed by the fact that the bounds get tighter as the intermediate domains get smaller. While algebraic-geometric and continuation methods are general, they have a number of limitations in practice. On the one hand, algebraic-geometric methods usually explode in complexity, may introduce extraneous roots, and can only be applied to relatively simple systems of equations. Beyond this, they may require the solution of high-degree polynomials, which may be a numerically ill-conditioned step in some cases. On the other hand, continuation methods must be implemented in exact rational arithmetic to avoid numerical instabilities, leading to important memory requirements, and, like elimination methods, they must compute all possible roots, even the complex ones, which slows the process substantially on systems with a small fraction of real roots. Branch-and-prune methods are also general, but present a number of advantages that make them preferable in our case: (1) Contrarily to many elimination methods, they do not require intuition-guided symbolic reductions, (2) they directly isolate the real roots, (3) they can be made numerically robust without resorting to extra-precision arithmetic, and (4) some of them can tackle under- and over-constrained problems without any modification. These are the main reasons that motivate the approach we present, which belongs to this latter category. Two families of branch-and-prune methods can be distinguished, depending on whether they Section 3 Kinematic Equations 3 bound the solution set via Taylor expansions, or via polytopes. Within the first family, the interval Newton method [18, 46, 11, 7, 21, 22] is perhaps the most-studied one. This method is based on the mean value theorem or, what is the same, on a zeroth-order Taylor expansion of the equations with a remainder of order one. The method requires the interval evaluation of the inverse of the Jacobian involved in the Taylor remainder and, therefore, it is only applicable to systems where such Jacobian is non-singular at all points of the input domain. Daney [9] and Gavriliu [16] present methods relying on first-order Taylor approximations of the equations, with bounded second-order reminders. While [9] uses Linear Programming to determine the area of feasible solutions, [16] solves a linear system instead, inverting a Jacobian matrix. The main difference with respect to interval Newton methods is that, here, the matrix to be inverted is real-valued and, therefore, the Jacobian is only required to be non-singular at the linearization point. Results show that first-order methods outperform zeroth-order ones [16]. Higher-order Taylor approximations are used in the so-called Taylor forms [3, 36], but they are limited to singe variable, single equation problems. Methods in the second family bound the solutions by deriving, at each iteration, a convex polytope enclosing the solution set. In fact, such polytope is never determined explicitly, as its exact form can be rather complex. Instead, its rectangular hull is readily derived via Linear Programming. Polytope methods have similar convergence properties to Taylor methods [48, 25], but present a number of advantages: (1) they avoid the computation of derivatives and Jacobian inverses, (2) they naturally account for inequalities in the problem, and (3) they can directly deal with under- or over-constrained problems. The first methods of this kind appeared in the early nineties, by hand of Sherbrooke and Patrikalakis, who derived the polytope from properties of the equations’ Bernstein form [48]. Later on, Yamamura [57] and Kolev [26] presented algorithms where the equations are bounded by polytopes made out of bands. In the first case, the bands are aligned according to the linear terms of the equations and the interval evaluation of the non-linear terms defines their width. In the second case, the slopes of trivial functions define the bands’ orientation, and the roots of a univariate polynomial yield their width. More recently, linear relaxation techniques have been proposed [29], following a research line that can be traced back to the seventies [1, 33]. A linear relaxation is a set of linear inequalities that tightly bound a particular type of function. The simplest possible relaxation is the one obtained from a firstorder Taylor expansion plus a second-order remainder that, when bounded, defines a polytope similar to those of Yamamura’s and Kolev’s methods. However, rather than resorting to general Taylor expansions, linear relaxations are defined on an ad-hoc basis for each function, including as many linear constraints as necessary to produce better bounds for the function at hand. Among polytope methods, those based on linear relaxations are usually faster, as they define tighter polytopes with smaller linear programs. Their drawnback is, however, that although linear relaxations are easy to define and yield efficient pruning, they do so only on polynomial equations with simple terms (usually quadratic, or bilinear terms). While in principle any polynomial system could be transformed into such form, the transformation would introduce too extra variables, rendering the solution method inefficient. This is precisely why, being superior in principle, linear relaxation techniques have not been tried in the past on well-established algebraizations of the position analysis problem. This work overcomes this limitation by proposing a new formulation that comes in the adequate form, together with accurate relaxations for its defining equations. 3 Kinematic Equations This section formulates the kinematic equations of a linkage. Contrarily to the standard approach, all links will be oriented with respect to an absolute frame, rather than by giving their relative angles to vicinal links. 4 Position Analysis of Multi-Loop Linkages We introduce some definitions for the purpose of discussion. A linkage is a pair L= (L, J), where L={L1,...,Ln}is a set of rigid links, and J={J1,...,Jm}is a set of lower-pair joints, each connecting a couple of links. Every linkage has an associated graph G(L) = (V, E) encoding its topology. We place a node in Vfor every link Li∈L, and an edge (u, v) in Eif the links associated with uand vare connected by a joint. We also furnish every link Liwith a local reference frame, denoted Fi, and anchor any one of the links to the ground, letting its reference frame be the absolute frame, Fa. We will use the notation pFito indicate that the components of vector p∈R3, representing the coordinates of point P, are given in the basis of Fi. Vectors with no superscript are assumed to be given in the basis of the absolute frame. A linkage configuration is an assignment of a pose (ri,Ri) to each link, where ri∈R3is the absolute position of Fi’s origin, and Riis a 3 ×3 rotation matrix giving the orientation of Fi relative to Fa. Note that we cannot assign arbitrary poses to the links, since the joints impose certain constraints that must be fulfilled. We next formulate them explicitly. 3.1 Joint equations We start assuming that the linkage consists of only one loop, with links and joints numbered from 1 to n, consecutively, and that all joints are of revolute type. Later on, the formulation will be easily extended to arbitrary linkage topologies and joint types. Let us derive the assembly constraints imposed by joint Jion its two links, Liand Li+1. If Piand Qiare two different points on the axis of Ji(Fig. 1), the valid poses for such links are those that fulfill1 ri+RiqFi i=ri+1 +Ri+1 qFi+1 i,(1) RidFi i=Ri+1 dFi+1 i,(2) where di=qi−pi. The first condition forces Lito be placed so that the point Qi, seen as attached to Fi, coincides with the same point, seen as attached to Fi+1. The second condition does a similar identification for the divector. Note that, if Ri= (ˆui,ˆvi,ˆwi), then the following orthonormality conditions must also hold for i= 1,...,n, so that Rirepresents a valid rotation: kˆuik= 1,(3) kˆvik= 1,(4) ˆui·ˆvi= 0,(5) ˆui׈vi=ˆwi.(6) Definition 1. The basic system of equations of a linkage is the one formed by Eqs. (1) and (2), gathered for all joints, and Eqs. (3)-(6), gathered for all links. Definition 2. A feasible configuration is a tuple (r1,R1,...,rn,Rn) that satisfies all equations of the basic system. 3.2 Loop equations Our next goal is to show that the basic system can actually be simplified, reducing the number of equations and variables involved. Note for this that we can write Eq. (1) as ri+RipFi i+RidFi i−Ri+1 qFi+1 i−ri+1 = 0 (7) 1In what follows, indices will be cyclic, so that indices n+ 1 and 0 will refer to indices 1 and n, respectively. Section 3 Kinematic Equations 5 ˆzi ˆzi+1 Fi Fi+1 φi Li Li+1 Pi Qi di Figure 1: Elements intervening in the assembly constraints of a revolute joint. ri+2 polygon_i −qipi O polygon_i−1 polygon_i+1 ri−1 p1 qn Link L1(ground) Link Li−1 Link LiLink Li+1 Link Li+2 Joint Ji riri+1 a1 aiai+1 d1 di dn P1 Pi Qi−1Pi+1 Qi Qn Figure 2: Schematic representation of the joint and loop equations. The joint equation for Jiexpresses the closure of a pentagon through Ji(thick arrows). The loop equation expresses the closure of the polygon defined by the aiand divectors (the outer perimeter of all pentagons). which can be interpreted as the sum of five vectors forming a closed polygon (Fig. 2). This implies that if we add up equation (7), for i= 1,...,n, we obtain n X i=1 RiaFi i+RidFi i= 0,(8) where ai=pi−qi−1. We call Eq. (8) a loop equation, as it expresses the fact that the aiand divectors form a closed polygon. 6 Position Analysis of Multi-Loop Linkages Definition 3. The reduced system of a single-loop linkage Lis the one formed by Eqs. (2), gathered for all joints, Eqs. (3)-(6), gathered for all links, and Eq. (8). Definition 4. A feasible orientation of a linkage is an assignment of a 3×3 matrix Rito each of its links such that all equations in the reduced system get satisfied. Observe that the reduced system only contains the Rimatrices as variables (the rivectors have been eliminated) and much less equations (nequations of the basic system have been replaced by just one equation). We next prove that solving any of the two systems is equivalent. Proposition 5. Assuming that link L1is the ground, with r1=0and R1=I, the solutions of the reduced system are in one-to-one correspondence with the solutions of the basic system. Proof 1 Clearly, if the tuple (r1,R1,...,rn,Rn)satisfies the basic system, the tuple (R1,...,Rn) also satisfies the reduced system, and we only need to prove the converse. Given a feasible orientation (R1,...,Rn)we only need to give the associated rivectors, i= 1,...,n, to complete it to a feasible configuration. For a link Li, we can compute its riusing the recurrence rk=rk−1+Rk−1pFk−1 k−1+Rk−1dFk−1 k−1−RkqFk k−1,(9) for k= 2,...,i. Observe that the use of this recurrence makes Eq. (7), and thus Eq. (1), be satisfied on joints J1,...,Ji−1. However, we can also compute riusing the recurrence rk=rk+1 −RkpFk k−RkdFk k+Rk+1 qFk+1 k(10) for k=i, . . . , n, which renders Eq. (7) satisfied on joints Ji, Ji+1,...,Jn. To conclude the proof, we only need to check whether the rivalues, computed either via Eq. (9) or Eq. (10), do coincide. Note for this that, taking into account that p1=qn+R1aF1 1, and using (9), then ri can be written in solved form as ri=qn+  i−1 X j=1 RjaFj j+RjdFj j −RiqFi i−1,(11) and using (10) as ri=qn−  n X j=i RjaFj j+RjdFj j −RiqFi i−1.(12) The two values will coincide if the difference between the right-hand sides of Eqs. (11) and (12) vanishes. But this is the case, since such difference is n X j=1 RjaFj j+RjdFj j, and according to Eq. (8) this summation vanishes. 3.3 Multiple loops We next extend the formulation to cope with linkages L= (L, J) with an arbitrary graph G(L). Note first that if G(L) is a tree (Fig. 3a), then the position analysis of Lbecomes trivial: we can parameterize the configurations of Lby the relative joint angles of one link with respect to its predecessor in the tree, and the set of valid angle tuples is simply Tm, the m-dimensional torus. Similarly, the graph of a general linkage can be seen as a tree of “ordinary” nodes and Section 3 Kinematic Equations 7 Pair Shape Joint equations δiterm Revolute Pi Qi di ri+RiqFi i=ri+1 +Ri+1 qFi+1 i RidFi i=Ri+1 dFi+1 i RidFi i Prismatic Pi Qi diˆ di ri+RipFi i+diRiˆ dFi i=ri+1 +Ri+1 qFi+1 i. Ri=Ri+1 diRiˆ dFi i Cylindrical Pi Qi diˆ di ri+RipFi i+diRiˆ dFi i=ri+1 +Ri+1 qFi+1 i Riˆ dFi i=Ri+1 ˆ dFi+1 i, Helical Pi Qi diˆ di φi ri+RipFi i+diRiˆ dFi i=ri+1 +Ri+1 qFi+1 i Riˆ dFi i=Ri+1 ˆ dFi+1 i, φi=kidi Spherical Qiri+RiqFi i=ri+1 +Ri+1 qFi+1 i0 Planar ˆniˆni+1 PiQi πi di ri+RipFi i+di=ri+1 +Ri+1 qFi+1 i di·RiˆnFi i= 0 RiˆnFi i=−Ri+1 ˆnFi+1 i+1 . di Table 1: Joint equations and δiterm for all lower pairs. “block” nodes2(Fig. 3b) and the position analysis of Lreduces to the position analysis of its constituent blocks. We assume hereafter, thus, that G(L) is a block graph. We now realize that the loop equation (8) must hold for every cycle of G(L) since, along the cycle, the aiand divectors must necessarily form a closed polygon. However, not all loop equations are independent. Proposition 6: For a linkage L, every loop equation can be expressed as a linear combination of the loop equations associated with a cycle basis of G(L). Proof 2 Let Cbe a cycle of G(L) = (V, E). Assuming E={e1,...,em}, we may encode C with the binary vector c= (c1,...,cm), where ci= 1 if edge eibelongs to the cycle, and ci= 0 otherwise. It is well known that, using the symmetric difference ⊕as vector addition3, the set of cycle vectors defined in this way forms a vector space, CG. Thus, if Aand Bare cycles with vectors aand b, then c=a⊕balso defines a cycle. It is also known that any cycle ccan be expressed as c=c1⊕...⊕ck,(13) 2A block is a maximal subgraph where every two vertices are traversed by one cycle 3The symmetric difference of two binary vectors, c=a⊕b, is their element-wise XOR. I.e., ci= 1 if aiand bihave different values, and ci= 0 otherwise. 14 Position Analysis of Multi-Loop Linkages Solve-Linkage(B, F, σ, ρ) 1: S← ∅ 2: P← {B} 3: while P6=∅do 4: Bc←Extract(P) 5: repeat 6: Vp←Volume(Bc) 7: Shrink-Box(Bc, F) 8: Vc←Volume(Bc) 9: until Is-Void(Bc)or Size(Bc)≤σor Vc Vp> ρ 10: if not Is-Void(Bc)then 11: if Size(Bc)≤σthen 12: S←S∪{Bc} 13: else 14: (B1,B2)←Split-Box(Bc) 15: P←P∪{B1,B2} 16: end if 17: end if 18: end while 19: return S Algorithm 1: The top-level search scheme. collection of small boxes containing them all, with each solution lying in one, and only one box. If, on the contrary, the solution space is an algebraic variety of dimension one or higher, the returned boxes will form a discrete envelope of the variety. The precision of the output can be adjusted at will by using the σparameter, which fixes an upper limit for the width of the widest interval on all returned boxes. 4.4 Performance analysis The performance of a root finding algorithm is normally assessed in terms of its completeness, correctness, and convergence order. An algorithm is complete if its output includes all solutions of the problem at hand. As for the proposed method, we note that it iterates over two basic operations: the linear relaxation of non-linear functions and the solution of linear programs. Both operations are designed in a conservative way: as defined, a linear relaxation fully includes the graph of the function it approximates (within the box where solutions are sought), and the output of the linear programs always defines an axis-aligned orthotope enclosing the solution set. The proposed method is thus complete, because solution points are never ruled out anywhere in the algorithm. While it is true that numerical issues could arise due to the use of floating-point arithmetic, both in the computation of the linear relaxations and in the solution of the linear programs, these problems can be easily overcome. Linear relaxations can be made conservative by carefully considering the rounding when computing them [29] and, with a cheap post-process, the output of the Simplex method can be correctly interpreted so that it is also numerically safe [37, 23]. An algorithm is correct if its output only includes solution points. In the context of branch- and-prune methods, the algorithm is correct if all of the returned boxes contain, at least, one solution each. We next provide a sufficient condition that allows checking the existence of solutions of F(x) = 0 in a given box Bc. To this end, consider the system formed by L(x) = 0 together with the linear relaxations of P(x) = 0 and H(x) = 0, derived for Bcas explained Section 4 Solution Strategy 15 Shrink-Box(Bc, F) 1: C← { Linear equations in F} 2: for all equations qi=x2 iin Fdo 3: C←C∪{ Two half planes bounding the feasible area of the equation for the ranges of qi,xi} 4: end for 5: for all equations bk=xixjin Fdo 6: C←C∪{ Four half planes bounding the feasible area of the equation for the ranges of bk,xi,xj} 7: end for 8: for all i∈ {1,...,vl}do 9: xl i←min. xisubject to all eqs. in Cand x∈ Bc 10: xu i←max. xisubject to all eqs. in Cand x∈ Bc 11: end for Algorithm 2: The Shrink-Box procedure. in Section 4.2. Note that the solution set of this system is a convex polytope P(Bc)⊂Rn. If F(x) = 0 has as many variables as equations (i.e., n=m), the following existence condition can be used: If P(Bc)⊂ Bc, then Bccontains at least one solution point of F(x) = 0. Note that, in practice, the condition can be easily checked by deriving the smallest orthotope enclosing P(Bc) via Linear Programming, and checking whether it is contained in Bc. To prove the condition, we first realize that, by linearizing F(x) about a point xc∈ Bc, F(x) = 0 can be written as F(xc) + JF(xc) (x−xc) + ε(x,xc) = 0,(24) where JF(xc) is the Jacobian of F(x) at xc, and ε(x,xc) is a second-order error term. But, if m=nand Cis full rank, Eq. (24) is equivalent to x=JF(xc)−1(JF(xc)xc−F(xc)−ε(x,xc)).(25) Thus, finding the solutions of F(x) = 0 is equivalent to finding the fixed points of the right hand side of Eq. (25), M(x) = JF(xc)−1(JF(xc)xc−F(xc)−ε(x,xc)). Since y=M(x) maps points x∈ Bcto points y∈ P(Bc), by Brouwer’s fixed point theorem [6] we can assert that, if P(Bc)⊂ Bc, then there exists an x∗∈ Bcfor which x∗=M(x∗), which implies that x∗is a solution of F(x) = 0. It is worth mentioning that the existence condition just described is less restrictive than other sufficient criteria [24, 34, 5], yet easier to integrate in our framework. Also, while the test proposed by Miranda [34] can be extended to non-squared systems, the resulting sufficient condition is too weak to be useful in general. To our knowledge, no results are available to derive necessary and sufficient conditions for the existence of solutions in a given box. Therefore, as it happens on all algorithms of this kind, our algorithm can in principle return boxes for which it is not possible to elucidate whether they include a solution. In any case, the error in all function approximations, ε(x,xc), is quadratic with respect to the size of the box. Since the algorithm returns boxes whose largest side is below σ, the error in the equations is always O(σ2). Thus, only boxes with small errors can be misleadingly taken as solutions. In practice this occurs for linkage configurations that are close to a singularity. 16 Position Analysis of Multi-Loop Linkages (a) (b) (c) (d) Figure 7: Test cases analyzed: (a) A generic 6R loop, (b) a special 6R loop, (c) a generic 6-6 Stewart platform, and (d) a special 6-6 Stewart platform. General 6R Parameters Special 6R i aidiαiinterpretation i aidiαi 1 0.3 0.0106 π/2 pi−1 qi−1 Link i Link i−1 Link i+ 1 di ai αi Pi Qi xi zi 1 0.5 1 π/3 2 1 0 0.0175 2 0 1 π/3 3 0 0.2π/2 3 0 1 π/3 4 1.5 0 0.0175 4 0.5 1 π/3 5 0 0 π/2 5 0 1 π/3 6 1.1353 0.1049 1.4716 6 0 1 π/3 Table 2: Denavit-Hartenberg parameters of the solved 6R loops. Generic 6-6 Stewart platform Special 6-6 Stewart platform iqB iqP iliqB iqP ili 1 (0,0,0) (0,0,0) l1= 1 (0,0,0) (0,0,0) 1.519640 2 (1.107915,0,0) (0.542805,0,0) l2= 0.645275 (c, s, 0) (−c, s, 0) 1.922131 3 (0.549094,0.756063,0) (0.956919,−0.528915,0) l3= 1.086284 (2c, 2s, 0) (c, s, 0) 1.812880 4 (0.735077,−0.223935,0.525991) (0.665885,−0.353482,1.402538) l4= 1.503439 (1 + c, s, 0) (3c, s, 0) 1.380117 5 (0.514188,−0.526063,−0.368418) (0.478359,1.158742,0.107672) l5= 1.281933 (2,0,0) (2c, 0,0) 1.715536 6 (0.590473,0.094733,−0.205018) (−0.137087,−0.235121,0.353913) l6= 0.771071 (1,0,0) (c, −s, 0) 1.714524 Table 3: Geometric parameters of the solved 6-6 platforms. The letters sand cabbreviate the sine and cosine of π/3, respectively. Section 4 Solution Strategy 17 The convergence order of a root finding algorithm gives information about its asymptotic performance. An algorithm is said to exhibit a convergence of order rif there exists a constant k∈(0,1), such that ǫ(xi+1,x∗)≤k·ǫ(xi,x∗)r, where xiis an estimation of the exact root x∗at iteration i, and ǫ(xi,x∗) indicates the distance from x∗ ito x∗. As mentioned in Section 2, branch-and-prune methods rely on conservative bounds to discard subsets of the input domain that do not containt solutions. The tighter the bounds, the faster the convergence of the method. Therefore, we can compare the convergence order of different families of branch-and-prune methods by comparing the quality of the bounds used in each method. The recursion used by the Newton method is derived from applying the mean value theorem to the individual functions fiof F(x), at some point xc∈ Bc, fi(x) = fi(xc) + ∇fi(ζ) (x−xc). Here, ζis also a point of Bc, but it is in general unknown. The interval extension of the Newton recursion overcomes this problem using an interval evaluation of ∇fi(ζ) for all possible ζ∈ Bc. However, if all functions fiare quadratic (as it occurs in our formulation), any fi(x) can be expressed in the form fi(x) = x⊤Aix+b⊤ ix+ci, where Aiis an n×nsymmetric matrix, and biis an n-dimensional vector. Thus, we can write ∇fi(x) = (2 Aix+bi)⊤ = (2 Ai(xc+x−xc) + bi)⊤ = (2 Aixc+bi)⊤+ (2 Ai(x−xc))⊤ = (2 Aixc+bi)⊤+ (x−xc)⊤2Ai =∇fi(xc) + (x−xc)⊤Hfi, where Hfiis the Hessian of fi, which is constant. Therefore, each fican be written as fi(x) = f(xc) + ∇fi(xc) (x−xc) + (ζ−xc)⊤Hfi(x−xc). On the other hand, a quadratic function can be exactly represented by its first-order Taylor expansion about xcas fi(x) = f(xc) + ∇fi(xc) (x−xc) + 1 2(x−xc)⊤Hfi(x−xc). Comparing the last two equations, we see that the mean value approximation is exact when ζ= (x+xc)/2. Therefore, if xis subject to lie in Bc,ζcan only be in B′ c={x′|x′=x+xc 2,x∈ Bc}. Clearly, B′ cis fully included in Bcand, thus, by evaluating ∇fi(ζ) for all ζin Bc, and not only in B′ c, the interval Newton method overestimates the error. For this reason, at least for quadratic functions, branch-and-prune methods based on first-order Taylor approximations, like those used in [16], converge faster than the interval Newton method, which is known to be quadratically convergent [2]. Since the approximations derived from linear relaxations are equal or tighter than those derived from first-order Taylor approximations, we can conclude that the convergence order of methods based on the former is equal or greater than methods based on the latter. 18 Position Analysis of Multi-Loop Linkages Note finally that, contrarily to interval Newton methods, our method can be applied to under- or over-constrained systems. On over-constrained systems, our method exhibits the same convergence order than when applied to well-constrained ones, since the addition of extra equations does not hinder the convergence in any way. On the contrary, redundancy produces larger box reductions in Shrink-Box and thus reduces the number of iterations. The drawback is that the higher the number of equations, the slower the execution of each iteration. On underconstrained systems, the convergence order of the algorithm is difficult to derive precisely. A worst-case analysis, though, sheds some light on it. Note that, for an n-dimensional box Bcall of whose sides are of length σ, the error at step iis ǫi=√σ2n=σ√n. The worst possible case occurs when the Shrink-Box procedure is completely ineffective, which makes the method rely on bisection only to isolate the solutions. Should this be the case, after splitting Bcthe error on each one of the child boxes would be ǫi+1 =rσ2(n−1) + σ2 4=k ǫi. where k=p(4 n−3)/(4 n). Thus, in this situation the method would exhibit linear convergence, with kapproaching one (i.e., to the non-convergence case) as the number of variables grows. We point out, however, that the worst-case just depicted is rather improbable and, in fact, experiments show that when isolating positive-dimensional solutions, the convergence order is linear, but kis always substantially smaller than p(4 n−3)/(4 n) because the Shrink-Box procedure always performs some reduction. 5 Experiments The algorithm has been implemented in C, using the glpk library to solve the linear programs involved [31]. We next illustrate its performance on a Pentium Core 2 at 2.4 GHz by way of solving the four test cases shown in Fig. 7: a generic 6R loop, a generic 6-6 Stewart platform, and special versions of these two linkages. Efficient specific solutions for them were obtained in 1993 [45] and 2001 [50], respectively, via elimination techniques. We note, however, that although the methods in [45] and [50] can solve the generic versions of such linkages, none of them can isolate the one-dimensional configuration space of mobility-one instances like those in Fig. 7 (b) and (d). The algorithm has also been tested successfully on numerous other examples, ranging from planar linkages to spatial robots and molecules. Details on such experiments (including their formulation, output solutions, and linkage animations) are provided in [51]. In all cases, the presented method is more than one order of magnitude faster than general polytope methods like [48], whose implementation is notably more intricate. 5.1 Solving generic and special 6R loops Loops with six revolute joints typically arise when solving the inverse kinematics of serial 6R robot arms. Since in this context the ground link and the end effector have fixed relative positions, the problem boils down to finding all possible configurations of a 6R loop. The geometry of 6R loops is easily described in terms of Denavit-Hartenberg parameters, provided in Table 2 for the two linkages herein analysed. The parameters in Table 2, left, correspond to problem number 6 introduced in [53]. It has a generic geometry, with no special dimensions or line coincidences, and exhibits 16 isolated solutions. The parameters in Table 2, right, correspond Section 5 Experiments 19 overlaid overlaid (a) (b) i1 i1 i2 i2 b1 b1 b2 b2 Two paths Two paths Figure 8: (a) One-dimensional configuration space of the Bricard loop, as computed by the presented technique. Actually, the boxes are 22- dimensional, but are here shown projected onto three of the problem’s variables. Boxes corresponding to the two isolated solutions have been enlarged to make them visible. (b) The actual topology of the configuration space. to a special Bricard linkage. Because all of its pairs of adjacent axes are intersecting (two of them at infinity), this linkage exhibits a one-dimensional solution set, with bifurcation points and additional isolated solutions. We next show that the parameters required by our formulation can be easily written in terms of Denavit-Hartenberg parameters. In our formulation, the system to be solved is formed by the loop equation (8), and equations (2) to (6) gathered for all joints. Thus, we need to obtain the vectors aFi i,dFi i, and dFi+1 i. As done in the Denavit-Hartenberg convention, we number the links consecutively from 1 to n, and define a reference frame Fifor each link Li, with the ziaxis directed along the axis of the 20 Position Analysis of Multi-Loop Linkages (a) (b) Figure 9: Left: Dietmeier’s 6-6 platform, solved at two different precisions. Right: A closer view of the output. In the two plots, transparent and opaque boxes correspond to two different runs, at σ= 0.1 and σ= 10−7, respectively. All opaque boxes have been slightly enlarged to make them visible. i+ 1-th joint, and the xiaxis directed along the normal line through joint axes iand i+ 1, with both axes pointing towards a selected positive sense for the loop. It is easy to realise that, if we select the Piand Qipoints of joint ias indicated in Table 2, middle figure, then aFi i= (ai,0,0),(26) dFi i= (0,0, di),(27) dFi+1 i= (0, disin αi+1, dicos αi+1),(28) where: -aiis the distance between joints iand i+ 1 along their common normal. -diis the distance between consecutive normals along joint i. -αiis the angle from the zi−1axis to ziaxis, turning around the direction of the positive xiaxis. In sum, as for the problem formulation, we obtain a system of 28 linear, 21 parabolic and 23 hyperbolic equations, involving 23 primary variables and 44 dummy ones. Choosing the parameters in Table 2, left, and setting σ= 10−2and ρ= 0.95, we solve the generic 6R loop in about 14 seconds, correctly isolating 16 boxes corresponding to the solutions published in [32]. In this case, the system processed 131 boxes, 16 of which contain a solution, 50 were found to be empty, and 65 were split for recursive processing. All 16 solution boxes are validated to include a solution point according to the existence condition described in Section 4.4. Section 6 Conclusions 21 Choosing the parameters in Table 2, right, the 6R loop becomes an overconstrained mechanism. While existing methods like [45, 32] can not deal with this degenerate case, the proposed procedure is immune to such situations and obtains a complete box approximation of the whole configuration space, as shown in Fig. 8 (a). With σ= 0.1 and ρ= 0.95, we obtain the shown 1863 boxes in 23 seconds, after processing 3749 boxes, 12 of which were found to be empty. The number of empty boxes is pretty small, taking into account the total amount of processed boxes and solutions, indicating that the box-shrinking strategy is efficient. Note that, ideally, by iterating box-shrinking, one should end up with a box with solutions lying on its walls and, therefore, splitting a box at such point should always separate portions of the search space containing solutions. In other words, the ideal algorithm should not generate empty boxes. From the output of the algorithm we can readily define a graph with one node for each box and one edge joining two nodes if their corresponding boxes are adjacent. Note that the structure of this graph reflects the structure of the configuration space of the analysed linkage. For the special 6R loop, the analysis reveals that such space has two isolated points, corresponding to two rigid assembly modes, and a one-dimensional cyclic curve, corresponding to a one-degree- of-freedom assembly mode. Such curve, moreover, has two bifurcation points connected by six different paths. The actual topology is represented in Fig. 8 (b). 5.2 Solving generic and special 6-6 platforms A generic 6-6 Stewart platform can have up to 40 solutions. One case giving rise to exactly 40 solutions was found by Dietmeier [12], with the geometric parameters indicated in Table 3, left. For each leg, the table gives the coordinates of the base (qB i) and platform (qP i) anchor points, relative to base and platform frames respectively, and the leg length (li). The problem formulation involves 24 equations in 24 variables, derived from five kinematic loops. When solving the system with σ= 10−3and ρ= 0.95 we obtain 35 isolated solutions and several one-dimensional “curve segments” of boxes that include the remaining 11 solutions (Fig. 9). All points included in these curve segments are quasi solutions: recall that the error is quadratic with the size of the boxes and, thus for σ= 10−3the error in the returned boxes is below σ2= 10−6. Therefore, the presence of curve segments of quasi solutions indicates that the linkage is close to a singular configuration. It is possible to isolate the true solution points within these curve segments by just re-running the method with a smaller σ. For σ= 10−7, our implementation isolates the correct 40 solutions in 260 seconds, after processing 3395 boxes, 1658 of which were found to be empty. In this case, also all the solutions boxes are verified to include a solution point. Choosing the geometric parameters of Table 3, the 6-6 platform becomes moveable with one degree of freedom (despite it has all of its leg-lengths fixed). We highlight that the problem formulation for this case is identical to the one used for the general 6-6 platform, only differing on the mentioned geometric parameters. Fig. 10 shows the solution boxes obtained by the algorithm, for decreasing values of the σparameter, projected onto two of the problem’s dimensions. For σ= 0.5, the obtained box approximation is too crude to reveal the toplogy of the configuration space. However, as we reduce σ, two separated one-dimensional components rapidly emerge (depicted in white and grey in the figure), allowing for a correct motion analysis of the linkage at hand. Finally, Fig. 11 is a 3D version of the last plot in Fig. 10 where the two connected components can be better appreciated. 6 Conclusions We have presented a complete method able to give box approximations of the configuration space of arbitrary multi-loop linkages. The method is general, in the sense that it can manage 22 REFERENCES σ= 0.5, t= 94, ns= 193 σ= 0.25, t= 109, ns= 256 σ= 0.0625, t= 140, ns= 703 Figure 10: Box approximations obtained for the Griffis-Duffy platform, at three different resolutions, projected onto two of the problem’s variables. In each plot we indicate the σparameter used, the CPU seconds employed (t), and the number of solution boxes found (ns). any type of links and lower-pair joints, forming kinematic loops of arbitrary topology. It is also complete, meaning that every solution point will be contained in one of the returned boxes. Moreover, in all experiments done so far the algorithm was also correct, since, by using a small enough σvalue, all output boxes contained at least one solution point each. Although we cannot verify the presence of solutions in all boxes, returning boxes with no solution seems rather improbable due to the fact that the linearizations introduce errors smaller than the size of the considered boxes. Moreover, the fact that all equations are simultaneously taken into account during box reduction (whether directly or in a linearized form) palliates the so-called cluster effect, a known problem of bisection-based techniques of this kind, whereby each solution is obtained as a compact cluster of boxes instead of a single box containing it, irrespectively of the precision used [35]. In the experiments performed so far, we encountered spurious output on linkages with close-to-singular configurations, but this can not be attributed to clustering problems since the phenomenon disappeared when running the algorithm at smaller σvalues. A main contribution with respect to previous work is the method’s ability to deal with configuration spaces of general structure. This is accomplished by maintaining a collection of boxes that form a tight envelope of such spaces, which can be refined to the desired precision in a multi-resolutive fashion. The method is quadratically convergent to all roots if these are isolated points, and linearly convergent to them if these form positive-dimensional connected components. Although the method’s performance is notable for a general technique of this kind, an extensive study should be endeavored to determine how it scales with the complexity of the tackled linkages. References [1] C. S. Adjiman, S. Dallwig, C. A. Foudas, and A. Neumaier. A global optimization method, αBB, for general twice-differentiable constrained NLPs - I theoretical advances. Computer and Chemical Engineering, 22:1137–1158, 1998. [2] G. Alefeld and J. Herzberger. Introduction to Interval Computations. Academic Press, Orlando, Florida, 1983. REFERENCES 23 Figure 11: Box approximation obtained for the Griffis-Duffy platform, for σ= 0.0625, projected onto three of the problem’s variables. [3] M. Berz and G. Hoffst¨atter. Computation and applications of Taylor polynomials with interval remainder bounds. Reliable Computing, 4:83–97, 1998. [4] C. Borcea and I. Streinu. The number of embeddings of a minimally-rigid graph. Discrete and Computational Geometry, 31(2):287–303, 2004. [5] K. Borsuk. Drei s¨atze ¨uber die n-dimensionale sph¨are. Fund. Math., 20:177–190, 1933. [6] L. E. J. Brouwer. Ueber eineindeutige, stetige transformationen von fl¨achen in sich. Math. Ann., 69:176–180, 1910. [7] A. Castellet and F. Thomas. An algorithm for the solution of inverse kinematics problems based on an interval method. In M. Husty and J. Lenarcic, editors, Advances in Robot Kinematics, pages 393–403. Kluwer Academic Publishers, 1998. [8] E. Celaya, T. Creemers, and L. Ros. Exact interval propagation for the efficient solution of planar linkages. In Proceedings of 12th World Conference in Mechanism and Machine Science, 2007.