Manuscript Offprint
arXiv:2610.41752Higher-Order Kinematic Derivatives for Aspect-Preserving Real-Time Numerical Inverse Kinematics
Steffan Lloyd
Abstract—This paper leverages the higher-order kinematic derivatives of serial robots to achieve efficient, aspect-preserving real-time inverse kinematics. First, a family of higher-order solvers is derived, with a necessary orientation-error correction map, yielding the QuIK4 and QuIK5 methods with fourth- and fifth-order convergence. Second, an aspect-preserving step limiter extrapolates the Jacobian determinant along the step to predict and avoid singularities, shortening steps only when they head toward a singularity rather than when the current iterate is ill-conditioned. Third, a Hermite-interpolation certifier verifies the aspect of each answer, and a certified restart algorithm recovers failures from proven same-aspect seeds. The proposed methods are shown to outperform prior methods, reducing failures by up to four orders of magnitude and nearly eliminating aspect switching at tracking-level errors. A C++ library is released with ROS 2 integration.
Index Terms—Kinematics, numerical inverse kinematics, motion control of manipulators, performance evaluation & benchmarking.
I. INTRODUCTION
NUMERICAL inverse kinematics methods are a convenient alternative to analytic solutions when a closed form does not exist or is difficult to derive. They are particularly useful on kinematically calibrated robots [1], where imperfect joint alignment precludes a closed-form solution [2], or on manipulators whose geometry was driven by other design criteria, such as avoiding the pinch points common to spherical wrists [3]. They also allow straightforward null-space optimization on redundant chains [4], require no derivation step, which suits computer graphics [5] and reconfigurable robots [6], and lower the barrier to entry for non-experts, for whom an analytic derivation may be out of reach.
In real-time applications, numerical methods have historically been avoided: they were too slow, could fail to converge, and behaved unpredictably near singularities. The most common approach is the Newton–Raphson (NR) method, which approximates the kinematics linearly about the current guess through the geometric Jacobian and iterates toward the root as
where is the spatial twist from the current pose to the desired one, and denotes the linear solution of ; for an underdetermined system, the minimum-norm solution is implied. Existing generic kinematic libraries implement this algorithm: KDL, one of the more popular generic inverse kinematics solvers, offers a Newton–Raphson solver and its damped Levenberg–Marquardt implementation [7], [8], and TRAC-IK runs a Newton–Raphson solver simultaneously with a sequential quadratic programming solver [9].
Recent work, together with gains in processor speed, has removed these objections. Lloyd et al. [10] showed that higher-order methods leveraging the kinematic Hessian can be applied to inverse kinematics, yielding the step
where the bracket notation , used throughout this paper, denotes the contraction of the tensor against copies of the vector , with the exponent omitted when . The resulting Quick Inverse Kinematics (QuIK) method converges cubically, runs faster than Newton–Raphson, and improves reliability by more than an order of magnitude. Lloyd et al. have since demonstrated this method for real-time inverse kinematics on a kinematically calibrated robotic machining system under admittance control [11]. Chen et al. [12] built on this work, composing a Halley step with a Newton step whose Jacobian is extrapolated from the Hessian of the first point, achieving fifth-order convergence at the cost of an additional error evaluation and linear solve. This “two-point” scheme, which evaluates the error at a second point while reusing the derivatives of the first, builds on existing scalar literature [13], [14]. As the order of a composite iteration depends on how an iteration is defined, we compare methods by order and cost together.
The Newton–Raphson and QuIK methods solve the first- and second-order Taylor models of the error function, respectively [13], [15]. However, this method family can be extended to any order. With the order- kinematic derivatives denoted as , such that and , the step
(3)
solves the degree- Taylor model of the error, using the order- step substituted into its nonlinear term, with and . So long as is exact, the iteration converges at order (Proposition 1, Appendix), and for it reproduces the Newton–Raphson and Halley (QuIK) methods.
In practice, higher-order models are rarely used, since carries partial terms for an -DOF problem, and their cost outweighs the accuracy gained. Serial-chain inverse kinematics is an unusually favorable case: is small, evaluating
This work has been submitted to the IEEE for possible publication. Copyright may be transferred without notice, after which this version may no longer be accessible.
S. Lloyd is with the Department of Forest and Forest Resources, Norwegian Institute of Bioeconomy Research, Høgskoleveien 8, 1433 Ås, Norway (e-mail: steffan.lloyd@nibio.no).
e is relatively expensive, and follow a Lie-bracket recursion on the joint screws [16], [17], leaving them sparse, symmetric, and inexpensive to compute [10]. Moreover, (3) requires only in contracted form, never as the full tensor, which this paper exploits to accelerate its evaluation.
Previous work on numerical inverse kinematics, [10] included, measures convergence to any solution within tolerance as a success [9], [10], [12]. A 6R chain can have up to 16 solutions per pose [18], and on most industrial arms, moving from the seed to a solution in another aspect takes the arm through a singular configuration, where a continuous tool path would require unbounded joint rates. Likewise, solve times are reported as means or medians over large sample sets, but real-time controllers have a fixed period, so a slow solve can be as detrimental as a failed one. Real-time use therefore imposes two constraints that existing benchmarks do not capture:
-
the solution must lie in the same aspect as the seed, so that they are joined by a singularity-free path; and
-
the solver must complete within a fixed deadline, and an overrun is a failure rather than a slow success.
We require that the seed's aspect be maintained, rather than its branch: a solver can readily check the former at every call, from the sign of det J along the chord (Section VI). On non-cuspidal arms, which include most industrial designs, each aspect holds at most one nonsingular solution per pose, and the two requirements coincide [19]. On cuspidal arms, such as the Kinova Jaco, several solutions can share an aspect, and a change between them is not immediately detectable from the sign of det J [20]. Similarly, kinematic calibration of an industrial arm can make a nominally non-cuspidal arm cuspidal. In practice, however, this distinction is less important than it may appear. The corridors connecting two same-aspect solutions are often narrow, particularly when the cuspidality arises from a perturbation (e.g., a calibration) of a nominally non-cuspidal model, and from a given seed, typically only one of the solutions can be reached along a straight singularity-free path. If both can be so reached, we consider both equally valid for the purpose of this study.
Existing work has developed strategies to make iterative solvers safer in two ways. Damped least-squares methods shorten and rotate the step when J is ill-conditioned [21], [22]. Adaptive damping raises the damping factor as the smallest singular value of J falls [23], selectively damped least squares (SDLS) damps each singular component of the step separately [24], and Levenberg-Marquardt variants set the damping from the error norm [25]. Line searches and trust regions accept a step only when the error decreases [26], and step clamps bound its length [24]. However, these methods judge the step from J at the current iterate, and line searches from the error at the trial point. Neither models how J, and with it det J, changes along the step. A step from a well-conditioned configuration is therefore taken in full even if it crosses a singular surface, and a step that does cross one can still reduce the error and pass the line search. Conversely, a step near a singularity is damped, even when it points away from it. The aspect literature has investigated whether configurations are separated by a singularity, but offline and
over the whole workspace, rather than under the real-time constraints of a solver [19], [27].
Higher-order methods such as QuIK gain speed by taking fewer, larger steps; however, a larger step is more likely to cross a singularity and arrive in a different aspect. Damping and step clamps reduce this risk by shortening and warping the step, which discards the accuracy that motivated the higher-order model. This paper instead uses the higher-order derivatives in three complementary ways for efficient, aspect-preserving real-time inverse kinematics: first, to take more accurate steps through higher-order models; second, to predict where det J changes sign along a step; and third, to certify the aspect of the final answer. This paper makes five contributions:
-
We show that the steps of (3) require the higher-order kinematic derivatives only as contractions along the step. Evaluated with the Lie-bracket recursion of [17] over cumulative joint rates, their cost scales as instead of for the full tensors, and the contractions can be evaluated highly efficiently.
-
We derive the orientation-error correction map required in Taylor models of third and higher order, and through it obtain the QuIK4 and QuIK5 methods, which converge at fourth and fifth order.
-
We propose a step limiter that uses the same kinematic derivatives to extrapolate where det J changes sign along the step, and shortens the step accordingly to avoid it.
-
We propose an efficient aspect-certification algorithm that interpolates det J along the chord from seed to answer with Hermite polynomials, built from the limiter's determinant derivatives, and subdivides the chord until it is cleared or a singularity is found. Certified restarts then use this certification to verify answers and, when a solve fails or is refused, restart from a same-aspect seed.
-
We evaluate these solvers and safeguards against existing methods by the rate at which they fail to return a same-aspect answer within a hard deadline, and release the C++ library with ROS 2 integration.
This paper is organized as follows: Section II states the problem and the metrics used throughout. Section III derives the efficient contraction-ladder evaluation of the higher-order kinematic derivatives along a step. Section IV introduces the QuIK4 and QuIK5 methods, including the orientation-error correction map. Section V develops the aspect-preserving step limiter from a determinant-derivative front model and Hermite sign-change detection, and Section VI presents the Hermite trust-band certifier and the certified-restart algorithm. Section VII discusses the extension to redundant arms via the extended Jacobian. Section VIII evaluates the methods experimentally against prior solvers, and Section IX concludes.
(4) where extracts the rotation vector of a rotation matrix, and is thus the spatial twist between the current and desired poses, expressed in exponential coordinates as in [10]. With this definition, the geometric Jacobian approximates the error Jacobian to first order, and equals it at a root [25], and a solve is declared converged once . We focus on non-redundant 6-DOF chains ( ); however, the solver and derivative formulas in Sections III and IV hold for any . The step limiter and aspect certifier of Sections V and VI require and therefore a square Jacobian; they are developed for . Section VII discusses the extension of these methods to redundant arms explicitly.
A configuration is singular when . The aspects of a manipulator are the maximal connected regions of joint space on which , bounded by singularities [19]. Two configurations in one aspect are joined by a path on which stays invertible; every path between aspects meets a singularity. We require that the solution lie in the same aspect as the seed , and in testing score a solve as correct only when it does. On the KR6, this is decided exactly from the closed-form factors of det ; chains without such a label are treated in Section VIII-D.
For real-time use, we define a solver deadline set by the control period. A solve can end in one of four ways: it converges to a same-aspect solution; it fails to converge within ; the certifier of Section VI refuses the answer; or it converges to a solution in a different aspect. A failure is any outcome other than a same-aspect answer by the deadline. Of these, an unconverged or refused solve is recoverable, since the controller can hold its previous setpoint and retry, but a wrong-aspect answer could command a discontinuity and is far more damaging.
Unless otherwise specified, the primary test chain is a KUKA KR6 [10], a non-cuspidal, Puma-style robot whose det J factors in closed form as a product of elbow, shoulder, and wrist terms. The signs of these factors serve as the ground-truth aspect label, independently of the certifier, and are used to score the algorithms. Sample problems are generated as in [10]: a ground-truth configuration is drawn uniformly from and used to compute the target pose . The initial guess is obtained via a perturbation
so that is the mean absolute initial joint error and sets the difficulty of the problem. Problems in which lies in a different aspect from are discarded and regenerated, so that is the unique same-aspect answer. Results are reported against and unless otherwise noted. All timings are single-threaded C++, compiled with -O3 optimization, from the released library, measured on a MacBook Pro with M5 Pro chipset.
III. EFFICIENT HIGHER-ORDER KINEMATIC DERIVATIVES ALONG A STEP
The kinematic Hessian H can be built from the columns of J alone, with minimal additional computation [10], [28]. In screw theory, this is the classical result that the derivative
of a joint screw with respect to a preceding joint variable is the Lie bracket of the two screws [16], [17]. Define and as the linear and angular columns of , and as the tool position, so that . Turning a revolute joint rotates every Jacobian column above it rigidly about that joint's axis, giving
where the two linear cases are related by the symmetry of , so only one needs to be computed.
The identities behind (6), however, are not specific to obtaining the second derivative from the first. Generalizing, we write for the order-m kinematic derivative, with and as before. Differentiating (6) further, the Jacobi identity collapses the two terms of each product rule into one, so every entry of is a single nested cross product of Jacobian columns [16], [17]. For joints ,
(7)
The linear block is symmetric in all indices, while an angular entry is zero unless the differentiated column is that of the highest joint. A prismatic joint enters only as the innermost column.
Although each partial derivative term is cheap, there are of them. Critically, however, the full tensors need never be formed: (3) requires only the contraction , a matrix
whose case is itself. This matrix is the derivative of along the ray ; equivalently, it is the time derivative of at the constant joint rate [17], [29]. Contracting (6) against and pulling the sums inside the cross products, each column needs only the cumulative vectors
where is the angular velocity of link when the joints move at rate , and is the contribution to the tool's linear velocity from the joints above . The vector is fixed, so differentiating a cumulative vector returns the same sum raised one order,
with and . Repeated differentiation follows Leibniz's rule and gives the ladder formula
(11)
TABLE I
EVALUATION COST OF KINEMATIC DERIVATIVE CONTRACTIONS FOR n = 6.
| Full tensor & contraction | Contraction ladder | |||
|---|---|---|---|---|
| + / × | Time [ ] | + / × | Time [ ] | |
| T, J (FK/Jacobian) | 378 / 526 | 0.057 | 378 / 526 | 0.057 |
| 324 / 432 | 0.037 | 162 / 144 | 0.021 | |
| 1 569 / 1 878 | 0.298 | 270 / 252 | 0.039 | |
| 8 364 / 9 204 | 2.757 | 378 / 396 | 0.046 | |
| Total (all orders) | 10 635 / 12 040 | 3.149 | 1 188 / 1 318 | 0.163 |
Note: all numbers are non-cumulative, assuming that the lower-rung values have already been computed; the total shows the combined cost for all orders together, with FK and Jacobian. Computation times are averaged over samples. Operations and time scale linearly with n for the contraction ladder, whereas they scale as for the full tensor.
The first rung, , is the form commonly used to compute . Here, (11) is the known recursion for higher time derivatives [17], [29], specialized to a constant joint rate and written for the geometric Jacobian, whose tool-point reference adds the second term in the linear row.
Each rung adds terms per column, so the ladder costs , instead of for forming the full tensor and contracting it. Each rung also reuses the sums of the rungs below it, so , , and come from a single sweep over the chain. Table I gives operation counts and times for : through , the ladder adds 0.106 s to the 0.057 s of the forward kinematics and Jacobian, against 3.09 s for the full tensors.
The derivatives above describe the forward kinematics of the chain, whereas (3) is a Taylor model of the error (4). The two agree only in part: for position the derivative is exact, but for orientation it is not. Were the gradient of some orientation coordinate (i.e., an analytic Jacobian), its mixed partial derivatives would commute, and would equal for every . Instead, describes the relationship , and by (6) we have while : the mixed partials differ whenever the two axes are not parallel, so no orientation coordinate has as its gradient. The angular blocks of are thus not the Taylor coefficients of the orientation error. This discrepancy cancels in the first- and second-order models of (1) and (2); for higher-order models, it does not. Section IV derives the mismatch precisely, along with the correction terms needed.
IV. THE QUIK4 AND QUIK5 METHODS
Newton–Raphson and QuIK are the first two members of (3), and coincide with the order-1 and order-2 Householder methods (Newton and Halley). This section defines two further members: QuIK4 (p = 3) and QuIK5 (p = 4), each an application of (3) seeded with the step estimate from the preceding member.
With and as in (1) and (2), the nominal QuIK4 step is
(12)
The QuIK5 step extends the sequence one rung further. Seeded with the QuIK4 step , its nominal equation is
(13)
QuIK4 and QuIK5 are named after the convergence order they achieve, not their model order p: QuIK4 converges at fourth order and QuIK5 at fifth, since each order-p member converges at order (Proposition 1, Appendix).
Implemented naively as above, however, neither method reaches its full rate; both cap at third-order convergence, the same as baseline QuIK. The problem is the orientation error. The linear part of e in (4) is a point difference whose derivatives from Section III are exact. The Jacobian and its derivatives, however, describe the angular velocity of the tool, not the orientation error. Unlike positions, rotations compose rather than add: the composition of two rotation vectors a and b yields , not . Nor can the issue be sidestepped by redefining the error, since no orientation coordinate has as its gradient (Section III).
Consider the step along for , and let be the rotation vector of the tool's own motion up to ,
The rotation is determined by the chain and step alone, not the target. By construction , and at the full step we require , so
where is the angular block of e.
To solve for , we expand about . Along the ray, the tool turns at , whose derivatives in are the same contractions of Section III,
so that and . If rotations were additive, would be a direct Taylor sum of these terms, exactly as supplied by (12) and (13). Instead, rotations compose, and the accumulated rotation obeys [30, Sec. 7.2]
Equation (17) can be used directly to derive the Taylor coefficients , giving the expansion
where and
Then, evaluating at t = 1 through fourth order, we obtain
(19)
The first line contains the standard Taylor terms already present in , but the second line contributes two cross-product corrections that the kinematic derivatives alone do not capture. These corrections are the same order as the third- and fourth-order terms in , so QuIK4 and QuIK5 cannot reach their full convergence rate without them. This analysis also explains why Newton–Raphson and QuIK required no corrections: and coincide with the terms already in the model, and the additional cross products first appear in and .
These terms are carried into the QuIK4 and QuIK5 solvers by modifying (12) and (13) as
(20)
At each stage, (11) generates all contracted derivative terms in a single pass, plus two additional cross products for the correction. The contraction ladder must be recomputed at each level of (3), since each level contracts along a different step: QuIK contracts along , QuIK4 along , and QuIK5 along . Even so, contracting along a vector remains far cheaper than forming the full tensors.
One safeguard proved necessary when applying (20): a near-singular intermediate solve can occasionally return a large step. The matrix contains terms contracted from this estimated step, and the contraction grows as for but as for . A large step can therefore swamp the lower-order terms in , inflating the matrix and driving the corrected step to near zero. This traps the solver in the singular region. To prevent this, the substituted estimate is used
only within a trust radius , where is a characteristic length of the chain that normalizes linear and angular measurements; if , the Newton step is substituted instead. Setting corrected most occurrences while activating on under 1% of iterations.
Fig. 1 runs the four methods on poses of the KUKA KR6 robot, seeded with rad mean absolute joint error, without the joint-step cap, the Cartesian clamp, or the limiters described later in Section V. The ladder behaves as derived: after two iterations, the median error is for Newton–Raphson, for QuIK, for QuIK4, and for QuIK5, and the median iteration count falls from 6.0 for Newton–Raphson to 3.6 (QuIK), 3.1 (QuIK4), and 2.7 (QuIK5). The higher-order methods cost more per iteration, however, and the median solve time is 1.58 s for QuIK, 1.79 and 2.42 s for QuIK4 and QuIK5, and 1.67 s for Newton–Raphson.
Importantly, every method regularly converges to a solution in a different aspect: QuIK changed aspects on 3.1% of solves, against 4.8% for QuIK4 and 4.7% for QuIK5. Newton–Raphson was worst at 11.6%. The following section addresses this issue directly, using the same higher-order derivative information to predict singularities along a step.
V. ASPECT-PRESERVING STEP LIMITER
The previous section shows that higher-order methods can converge in fewer iterations. However, in doing so, they tend to take longer steps, allowing the iterate to cross a singular surface. The key insight of this section is that the same higher-order derivatives used by Section IV to locate the desired pose can also be used to locate, and avoid, singularities. The

Fig. 1. Convergence of the error on the KUKA KR6 with mean absolute initial joint error rad, over random poses. Right-hand statistics give the percentage converged (to any solution), the percentage failed, the percentage converged to a different aspect, the interpolated median number of iterations, and the median solve time. Distributions are scaled individually to show shape; they are not to scale relative to each other.
boundaries of an aspect are defined by the singular condition , a polynomial in the entries of , whose derivatives Section IV already forms, with no further kinematics or decompositions. The determinant also passes through zero at the boundary, becoming negative on the other side. In this section, we use both properties in complementary ways. First, an inexpensive second-order Taylor model of along the step direction is used as a front model to predict the crossing point and to shorten the step accordingly. Second, we use a Hermite sign-change detection algorithm to detect crossings the front model missed, and to backtrack accordingly before the step is accepted.
A. A determinant-derivative front model along the step
Consider again the ray , and let be the manipulator Jacobian along the ray, and its determinant. Then, a Taylor-series expansion of about is
where are the tensor contractions along the step from (11),
Define , and (21) becomes
with . Determinants are multiplicative, so we can cancel as
Let be the eigenvalues of . Then the eigenvalues of are , and the determinant is the product of eigenvalues
(25)
where the second line simplifies using the identities , , and . Dropping higher-order terms leaves the quadratic model
where
As nothing in this derivation depends on expanding about , the determinant derivatives generalize, with , to
(28)
and is thus the second-order Taylor polynomial of about , with and . Taylor expansions of the minors of , included, are known

Fig. 2. Visualization of the quadratic determinant model on the , surface of the KUKA KR6 determinant, near a singularity, for a sample step vector . The true singularity crossing is approximated by the quadratic model at , then the actual step taken is reduced further to .
to arbitrary order [17], where they serve offline singularity analysis. Here, the same second-order model is used online, as a step limiter.
The front model takes the nearest predicted singularity crossing to be the smallest positive root of (26), and limits the step to
where is a safety factor, and is a fixed cap bounding the norm of the joint step to . The cap is independent of the determinant, and guards against a step long enough to cross into an adjacent aspect and back out again. Fig. 2 shows a sample step of this method on the determinant surface of on a 6-DOF robot: the quadratically approximated root (red) predicts the true root with some error, and the step is then backed off further to account for model errors. Two positive roots of mean the step dips through a boundary and returns; the smaller root is then used. No positive real root means no singularity is predicted in front of the step, and the step is limited by the cap alone.
B. Hermite sign-change detection and backtracking
The quadratic front model predicts a crossing from derivatives at t = 0 alone, and its error grows along the step. In this section, the step from (29) is verified before it is taken: first by inexpensive checks that clear most steps, and then, when these fail, by a more accurate backtracking model.
First, the step is probed by evaluating the kinematics at and computing . If the step is accepted, this probe is free, since its forward kinematics and Jacobian are reused in the next iteration. If and differ in sign, a singularity has been crossed and the step must be shortened. If they agree, the test is inconclusive: either no singularity was crossed, or an even number were. To resolve this, let be a rescaled step coordinate that places the probe at .
The value, slope, and curvature of at u = 0, along with its value at u = 1, define a unique cubic Hermite interpolant [31]
(30)
where , , and are already available from the front model. The first three terms of are exactly , and the cubic term warps the front model to pass through the measured endpoint, . If has no root on , the step is accepted. We set on the first probe and thereafter, so that the first fit extrapolates past the probe and a crossing beyond the step is still shortened.
However, if the signs differ, or if has a root, the interpolant is refined with the slope at the probe, computed from (28) at . The five endpoint conditions then define the unique, more accurate quartic Hermite interpolant
(31)
with as in (30), such that and . If has no root on , the step is accepted. Otherwise, let be the first root of at probe , and shorten the step to
where is the backtracking factor, and the clamp prevents the step from lengthening if U > 1 on the first probe. The process then repeats with a new probe at , and terminates in one of three ways: a probe is accepted and its kinematics are carried into the next iteration; the probe budget is exhausted and the step is taken unverified; or falls below a floor and the solver declines to answer.
Fig. 3 shows the full limiter sequence on an unlucky sample step of the QuIK4 algorithm on a solve of the KR6 manipulator. In this example, the front model estimate is poor, and the first probe is placed beyond the singular crossing at . As dips through zero and back before , the sign of matches . Accordingly, the cubic interpolant is formed, which misses the dip but still fails on , just past the probe in the look-ahead window. The slope at the probe is then used to refine the fit, forming , which correctly locates the dip at . The step backs off to , where the second round forms a cubic (not shown) that has no root, and the step is accepted.
The limiter adds little cost to an iteration. The front model requires one sweep of (11) through to , one LU factorization, and two solves, costing approximately 0.37 µs per step on the KR6 in testing. An accepted probe requires only a further determinant computation, at 0.08 µs, and the first probe is accepted on about 99.9% of steps (with error level and joint cap rad). A rejected probe requires additional computations, costing an additional 0.28 µs on average, but these computations are only required when a step would otherwise cross or approach a boundary.
This limiter acts, in effect, as a form of damping, but one that is applied surgically. Damped least-squares methods

Fig. 3. Hermite sign-change detection on an unlucky KUKA KR6 step where the front model prediction is inaccurate. The quadratic estimator limits the first probe to , where the cubic fails. The quartic locates the crossing at , and the step backs off to the accepted .
and their adaptive variants [21]–[24] judge proximity to a singularity by the conditioning of J at the current iterate, and shorten or warp the step when it is poor, regardless of the step's direction. The limiter proposed here instead predicts how the determinant changes along the step, and shortens it only when it approaches a boundary: a step from a well-conditioned pose toward a singularity is shortened, while one at an ill-conditioned pose facing away from the singularity is left intact. The step direction is always preserved, and only its length is reduced, by as much as the predicted distance to the boundary requires. The limiter is also faster: adaptive damping variants typically require a singular value decomposition every iteration, on average about twice as expensive (0.95 µs versus 0.45 µs on an n = 6 chain).
Although accurate, the limiter is designed for speed, and does not certify aspect preservation: a pair of closely spaced crossings between probes can escape the interpolants. The following section addresses the problem of real-time certification more directly.
VI. ASPECT CERTIFICATION AND RESTARTS
The limiter of Section V judges each step quickly from local data, and a solve that slips past it returns an answer in another aspect that otherwise appears correct. In this section, we instead check the answer after the solve. Once a solve converges to , the answer can be certified by showing that the chord from the seed to never crosses . The converse does not hold: can lie in the same aspect as while the chord leaves the aspect and re-enters it, in which case certification refuses a correct answer. A refusal can be recovered from, however, and Section VI-B introduces aspect-certified restarts to recover solves that failed, were refused, or converged to a wrong aspect.
A. Certifying the chord with a Hermite trust band
Let , with , now denote the determinant along the chord. Its derivatives follow from (28) with . If and differ in sign, the chord crosses a singularity and the answer is refused directly. If they agree, then as before the chord either stays nonsingular throughout, or crosses an even number of times. This latter case, a hidden crossing, is more challenging: nearly all hidden crossings arise where the chord passes close to the intersection of two singular surfaces, and the resulting excursion from the aspect can be arbitrarily narrow, such that fixed sampling density cannot catch them all. Rather, we need a method fast enough to run in real time, but accurate enough that off-aspect answers are not accepted.
We reuse the Hermite interpolation of Section V-B, but now apply it for accuracy rather than speed, to search for excursions from the aspect. On an interval of width , with normalized position , the value, slope, and curvature of at both ends define a unique quintic Hermite interpolant , the two-sided counterpart of and ,
(33)
where and are as in (30) and (31), with derivatives taken at and in place of 0 and , and scaled by in place of . The interpolation error is known: [31, Sec. 2.1.5]: for each there is some such that
which vanishes at both ends, peaks at the midpoint, and is reduced by a factor of each time the interval is halved. This expression cannot be used directly, since the sixth derivative is impractical to compute along the chord. Instead, the interpolation error is measured at a single point and used to calibrate (34), assuming that is roughly constant over the interval. The determinant is evaluated through the robot kinematics at the minimum of , or at the midpoint if that minimum lies at an endpoint. A sign change there proves a crossing, and the chord is refused. Otherwise, the residual
calibrates the error scale of (34), giving the estimate
so that . Taking at the ends without loss of generality, the interval is accepted if
that is, if stays positive by a margin of at least times the estimated error, where is a safety factor on the error in the estimate itself. The left side of (37) is a sextic that is positive at both ends, so the test reduces to checking that it has no real root on . If no real roots exist, the interval is certified. Otherwise, the interval is split at , where is already known, and each part is tested in turn. The subintervals are cheaper than the first: both of their endpoints already have a determinant and Jacobian factorization, and at least one endpoint already has its derivatives computed. The process repeats until every interval is accepted, a sign change is found, or the evaluation budget is exhausted.

True - Interpolant Trust region, Hidden crossing
Fig. 4. Hermite certification of a KUKA KR6 chord with a hidden crossing 0.007 wide. Top: and the quintic interpolant of each iteration (dashed), shaded down to its trust band , with . Each iteration evaluates at the minimum of and splits there; shows the crossing. Bottom: the true interpolation error of each iteration and trust band estimate.
Fig. 4 shows this procedure on a 3rad chord of the KR6, whose determinant has a hidden crossing only 0.007 wide and deep. A uniform grid would require about 150 samples to land reliably inside the excursion; the Hermite certifier locates it in three. The first interpolant misses the dip, with its minimum at , but its trust band falls far below zero, so the interval is split. The sign test at passes, and the interpolant on is an order of magnitude more accurate, but its trust band still does not clear the interval, so it is split again at its minimum . The third interpolant, on , lies within about 1% of the true curve throughout and places its minimum inside the excursion, where the evaluation at fails the sign test and proves a crossing. We use here for illustration. In practice, a larger safety factor provides higher accuracy. In this work, we use throughout, which reproduces these three iterations identically.
The trust test is a heuristic, not a proof, as is estimated from a single residual sample. In practice, however, it is highly accurate. Fig. 5 compares the proposed certifier against six alternatives on random chords of the KR6 that cross a singular surface and that do not, drawn in equal numbers at lengths of 0.1, 0.3, 1, and 3 rad. A certifier can err in two ways: a miss, when a crossing chord is accepted, or a false alarm, when a non-crossing chord is refused, including when its evaluation budget runs out. H5 trust is the method described above. D1 samples the sign of on a uniform grid of points. D2 bounds between samples with an adaptive Lipschitz envelope [32], [33], taking the slope bound as a

Fig. 5. Error rate against computation time for chord certifiers on the KUKA KR6, over random chords that cross a singularity, and that do not. An error is a missed crossing or a refused non-crossing chord. Each curve sweeps the main safety parameter of one method; H5 trust sweeps . Times are medians over non-crossing chords, the cost of accepting a correct answer, measured on C++ implementations of every method. Open markers on the axis indicate no errors observed.
safety factor times the larger slope at the interval's ends. C1 and C2 mirror D1 and D2, but act on the smallest singular value of J rather than on the determinant, and flag any sample below a floor of . CP fits Chebyshev interpolants of of increasing degree and locates their roots [34]. Finally, H5 plain accepts an interval whenever stays positive, omitting the trust band of (37).
The H5 trust algorithm is the clear winner, outperforming all others in speed and accuracy, with no errors observed for and a median time of only 0.88s. Of the other methods, only CP and D2 also reach zero errors, at and the cost. C2 levels off near 0.01%, and C1 approaches the same level, since their floor also refuses chords that merely pass close to a singularity. D1 still misses 62 crossings per million at , as a uniform grid cannot resolve arbitrarily narrow excursions. The trust band makes the H5 interpolant viable: without it, H5 plain misses 2.8% of crossings. Raising improves reliability at almost no cost: at of non-crossing chords are cleared by a single interior evaluation and none needs more than nine, and raising from 1 to 64 increases the mean number of evaluations on such chords only from 1.00 to 1.11. A larger thus increases the work on only the few chords that need it, and as the error in (34) decreases by approximately at every subdivision, the number of iterations remains largely unchanged.
B. Aspect-certified restarts
Certification can turn a wrong answer into a refusal, but it cannot produce a correct answer by itself. A refused or unconverged attempt may instead be restarted from a new seed . The idea of restarts in numerical inverse kinematics
is not new, typically implemented via random reseeding [9]. However, by leveraging the efficient aspect certification of the previous section, we propose aspect-certified restarts, in which each new seed is itself certified to lie in the original seed's aspect, and the final solution is certified in the same way.
To form a new seed, we step out from along a ray
where is the unit direction of the ray and is the attempt count. The normalization follows (5), such that is the mean absolute joint perturbation, which starts at and grows by a factor with each attempt. Each new segment , with , is certified with the method of Section VI-A; since the segments are collinear, together they certify the whole ray from to . In this paper, the first ray follows the steepest descent on the error at , , which is inexpensive and was found to outperform a random seed direction. A ray that fails certification is discarded and replaced by a random direction.
The full procedure runs as follows. The first attempt starts from . If it converges to , the chord is certified, and a clean chord returns the answer. Otherwise, whether the solver attempt failed or its certification was refused, a new seed is formed: the next candidate on the ray is computed, and the new segment is certified. If the segment is clean, becomes the new seed. Otherwise, the ray is discarded and replaced with a random direction, and a new seed is computed and certified. The new attempt runs from this seed, and the process repeats until an answer is accepted or until a maximum number of restarts is reached.
A subtle case is a correct answer whose chord leaves and re-enters the aspect. The certifier correctly refuses the chord, as it exits the aspect, but the answer is nonetheless correct.

Fig. 6. A certified restart on the KUKA KR6, using the plain QuIK solver with no step limiter. The surface plots over the plane, isolating the shoulder singularity. The first attempt from crosses the singularity and converges to in another aspect, which is refused. The restart segment is certified, and the second attempt converges to the same-aspect solution , whose chord is certified.
Such refusals are handled by the procedure above: a restart from a certified seed may converge to the same , whose chord from the new seed can certify cleanly. In practice, these false refusals are rare: on the KR6, over solves with plain QuIK at , certification refused a correct first answer 2144 times (0.22%). Each false refusal was on a chord that leaves and re-enters the aspect, and with restarts, the solver recovered all but 44.
Fig. 6 illustrates the procedure on the KR6. The first attempt from crosses into another aspect and is refused. The restart to is certified, and the second attempt converges to ; the two certified segments and compose into a certified path from to .
VII. EXTENSION TO REDUNDANT ARMS
With joints, the solutions of form an -dimensional self-motion manifold, , and has no determinant. Its rank-deficient set has codimension , so a generic path misses singularities with probability one, and it does not divide the joint space into aspects. A redundant arm therefore does not have aspects to preserve, and the safeguards of Sections V and VI do not apply. The solvers of Section IV can, however; this section summarizes a method for doing so.
Applied directly to a redundant arm, with \ taken as the minimum-norm solution, (3) converges to a point on the self-motion manifold determined by the seed rather than by any criterion, and is therefore not repeatable. The extra freedom is typically used for a secondary goal, such as staying near a nominal configuration and away from the joint limits, or maintaining a well-conditioned pose. We resolve it through the extended Jacobian [35], [36]. A secondary objective is chosen, whose stationary points on the self-motion manifold satisfy for some . Choose six joints with invertible and let be the other ; this gives equations
whose solution does not depend on the choice of . Their Jacobian is
where denotes the contraction of the kinematic Hessian along its six rows. Then, stacking and gives a square augmented system
Expanding all rows to order to achieve convergence in the higher-order methods of Section IV would require the derivatives of along the step, which in turn requires to be computed explicitly with a free joint index. Since the pose is the primary task and only selects among valid solutions, we expand the pose rows alone, and solve the system
with and as in (3) and (20). The pose error then retains order- convergence, and h converges quadratically.
We use two secondary objective functions:
- Objective I keeps the arm near a nominal configuration chosen to be well-conditioned, or far from the joint limits. Then,
with trivial derivatives
where W is a symmetric positive definite weighting matrix that typically scales each joint by its range. With at mid-range and a diagonal W, this is the classical joint-limit criterion of [37].
- Objective II maximizes the manipulability [38]. We minimize , which has the same stationary points but better-behaved derivatives
These quantities follow from the closed-form gradient and Hessian of w given in [39], which require only J, H, and at the current iterate.
A root of the system is a stationary point of , which can be a maximum, minimum, or saddle. From an arbitrary seed, iteration with (42) will often land on a saddle. It is therefore standard [36] to warm-start the method by first performing first-order null-space descent with step size [37]
This requires no second derivatives and converges reliably to a minimum rather than a saddle, but more slowly and at higher cost. Subsequent solves along a trajectory are already in the basin, and do not require this initial step.
The full expansion is possible but costly, with limited practical benefit. Table II compares the three strategies per iteration for 7-DOF and 16-DOF chains, and per solve on the 7-DOF KUKA iiwa at rad, reproducing one step of trajectory tracking. The second-order expansion preserves the higher-order convergence of e at a modest cost: 0.66 s/iteration for QuIK at against 0.34 s pose-only, and 1.9 s per tracking solve, well within a real-time budget. The full-order expansion matches the convergence order of h to that of e and saves up to one iteration, but the per-iteration cost grows steeply with both p and n, and the total solve time is worse in every case. Null-space descent converges linearly in h and needs 27 iterations and significantly more time, but is necessary to avoid saddle points when no prior solution is available. The library implements the second-order expansion for every step method, and can warm-start the first solve of a trajectory with null-space descent.
VIII. EXPERIMENTAL VALIDATION
The solvers and safeguards of Sections IV to VI are implemented in C++ with Eigen 3.4 and released as a library with ROS 2 integration. The implemented solvers are highly optimized, leveraging the efficient derivative evaluations from
TABLE II COST OF RESOLVING THE REDUNDANCY: ONE ITERATION, AND ONE TRACKING STEP.
| Order | Iteration [µs] | Solve () | |||||
|---|---|---|---|---|---|---|---|
| e | h | Iter. | [µs] | ||||
| Pose only | NR | 2.00 | - | 0.20 | 0.38 | 3.1 | 0.7 |
| QuIK | 3.00 | - | 0.34 | 0.57 | 2.0 | 0.8 | |
| QuIK4 | 4.00 | - | 0.53 | 0.93 | 2.0 | 1.1 | |
| QuIK5 | 5.00 | - | 0.81 | 1.47 | 1.9 | 1.6 | |
| + redundancy(2nd-order) | NR | 2.00 | 1.99 | 0.53 | 1.56 | 3.2 | 2.1 |
| QuIK | 3.00 | 1.99 | 0.66 | 2.26 | 2.2 | 1.9 | |
| QuIK4 | 4.00 | 1.99 | 0.86 | 3.13 | 2.7 | 2.8 | |
| QuIK5 | 4.99 | 1.99 | 1.14 | 4.21 | 2.9 | 3.7 | |
| + redundancy(full-order) | NR | 2.00 | 1.99 | 0.49 | 1.51 | 3.1 | 3.3 |
| QuIK | 3.00 | 2.99 | 1.18 | 4.46 | 2.1 | 3.7 | |
| QuIK4 | 4.00 | 4.00 | 2.57 | 10.34 | 2.0 | 6.4 | |
| QuIK5 | 5.00 | 4.97 | 4.85 | 21.03 | 2.0 | 10.5 | |
| Null-space descent | 2.00 | 1.02 | 0.21 | 0.36 | 27.4 | 72.0 | |
Note: Objective I (). Order: measured convergence order of the pose error e and of the optimality condition h on the 7-DOF KUKA iiwa; the full-order block is a prototype, not in the library. Iteration: the time of one iteration. Solve: mean iterations and time of a solve at at , reproducing one trajectory-tracking step.
Section III and caching per-step quantities (kinematics, factorizations, and derivative contractions) for reuse across the solver, limiter, and certifier. The nominal QuIK method is implemented as in [10], but also integrates a tunable joint-step limit that bounds the step norm to as in (29).
In this section, we evaluate the assembled solver on random problems, sampled as in (5), under a hard deadline , scored by failure rate: the fraction of solves that do not return a same-aspect answer within . These failures can be further subdivided into refusals, where the solver is unable to converge or refuses to answer, and wrong-aspect answers, where the solver returns an answer in a different aspect as if correct. A refusal is visible to the caller, which can hold its previous setpoint safely; a wrong-aspect answer is a valid-looking configuration whose execution drives the arm through a singularity, at unbounded joint speed in the worst case, and is a far more dangerous outcome.
Testing is performed at two representative error levels: rad, representing a cold-start scenario, and rad, representing a trajectory-tracking step. Six deadlines are tested, from 1 ms, representing an appropriate share of the control period in 100–500 Hz loops, down to 10 s, representing servo rates of 1–10 kHz or higher, or lower-performance hardware at moderate rates. The KUKA KR6 is used throughout unless otherwise noted.
A. Experimental setup
In practice, an inverse kinematics solver can be tuned for a given chain, deadline, or error level. At more permissive deadlines, a slower, more cautious convergence may be preferable, whereas at tighter deadlines, convergence must be fast and efficient. To this end, a tuning procedure is designed and
packaged into the codebase, allowing users to fine-tune the methods to their situation. Accordingly, each data point in this study is tuned for its chain, method, deadline, and error level, such that each reported failure rate is the best found by the tuning for that configuration. Tuning fits a cost model
predicting the time of a solve from counted work. The deadline is then applied through the model rather than the CPU clock, such that the objective, the failure rate under the deadline, is deterministic and free of timing noise, and the tuning search can run in parallel on several cores. Parameters are optimized by a coordinate pattern search in two stages, on and problems, and the best candidates are re-scored on a separate set of problems. At , these sizes rise to , , and to resolve the lower failure rates. Even so, near one failure in , the selection set holds too few failures to rank candidates reliably, and better parameters may exist in that regime.
Every in-library solver tunes the joint-step cap (0.05–4 rad), a Cartesian clamp scale as in [10], relative-improvement and gradient-failure tolerances, and the QuIK4/QuIK5 substituted-step margin . The step limiter adds , , the probe budget, and the -floor . Certified restarts add the retry count (1–16), initial perturbation size , growth factor , and rays certified per retry. The following five prior methods are tested alongside the proposed safeguards:
-
Selectively damped least squares (SDLS) [24], which damps each singular direction of the step separately; tuned parameter: .
-
Adaptive damping [21], [23], which raises the damping factor only when the smallest singular value of J drops below a threshold; tuned parameter: .
-
DMH [12], the fifth-order damped modified Halley method, which follows a Halley step with a Newton correction using a frozen Hessian; reimplemented on this library's DH kinematics, as its released product-of-exponentials code was significantly slower, leading to an unfair comparison. Tuned parameters: damping and maximum iterations.
-
KDL [7], [8], the Levenberg–Marquardt solver of the Orocos library, run as released and selected from maximum iterations of 20, 100, or 500.
-
TRAC-IK [9], which runs a Newton–Raphson solver in parallel with an SQP formulation and returns the first answer; run as released but pinned to one core, selected from Speed or Distance mode.
SDLS and adaptive damping are proposed as damping schemes only; accordingly, they are implemented inside this library on each of NR, QuIK, QuIK4, and QuIK5, and the best at each point is plotted. Problem generation follows (5), except where otherwise specified.
All timings are single-threaded C++ compiled with -O3 optimizations, measured on a pinned core of a MacBook Pro with M5 Pro chipset. Each data point begins with at least problems, and the sample size is then increased until 100 failures are observed, which gives a 95% confidence interval of approximately ±20%, or until . Since the test machine is not a real-time system, each failure at the deadline boundary is re-measured five times and counted only if it fails in the majority.
B. Evaluation of the safeguards
Fig. 7 tests each safeguard level on the KR6 at and 0.01 rad, with parameters tuned per deadline. Without safeguards, the failure rate levels off at 2.0% for , and at 0.018% for ; the majority of these failures are wrong-aspect answers, which are not avoided by faster convergence.
The step limiter provides increasing benefit as the deadline grows. At ms and , it reduces failures to 0.26%; at , it provides a improvement to . Further adding certified restarts extends the gain where the time budget permits multiple attempts: at they reach 0.031% ( below nominal), and at fewer than one failure per problems from s onward. At the tightest deadline, s, and , there is not enough time for certification or extra attempts, so limiter+restarts fail more than the limiter alone; for s, they overtake it.
The step method (QuIK, QuIK4, or QuIK5) makes little difference without a safeguard, as higher-order steps do not prevent aspect switches. With the limiter, higher-order methods perform better: for ms, QuIK4 fails less often than QuIK at , and less often at , as its faster convergence offsets the limiter's per-step overhead. QuIK5 shows similar gains, but with diminishing returns at its higher per-iteration cost.
C. Comparison with prior solvers
Fig. 8 compares the proposed safeguard levels against the prior solvers of Section VIII-A. Solid lines plot the best of QuIK, QuIK4, and QuIK5 at each level; dashed lines show the baselines, each tuned to its own lowest failure rate.
At , the prior methods fail far more often. KDL and TRAC-IK could not run reliably below s; even at longer deadlines, TRAC-IK failed on 80% of problems and KDL on 23%. DMH leveled off at 31%, limited by convergence to the wrong solution basin rather than by speed. SDLS and adaptive damping reached 8.5% and 2.1%, but both performed worse on average than nominal (safeguard-free) QuIK: the singular-value decomposition required at each step is expensive, and both can stall the solver near ill-conditioned configurations, even when the step points away from the singularity. At ms, the limiter and limiter+restarts reach 0.26% and 0.031%, an and improvement over the best prior method (adaptive damping, 2.1%).
At , aspect switching is rarer and deadlines are easier to meet, so every method fails less often. The prior methods level off at 0.015–0.03% (TRAC-IK excepted), nearly all wrong answers, while the safeguards continue to improve, so the relative gap widens. The limiter reaches ( below SDLS, the best prior method), and with limiter+restarts only 6 failures were observed in samples (): a improvement.

Fig. 7. Failure rate on the KUKA KR6 against the solver deadline , at large ( rad, top) and small ( rad, bottom) initial joint error. A failure is any solve that does not return a same-aspect answer within . Each point uses the parameters tuned for its deadline and error level.
Table III separates the failure types at ms. The distinction that matters most is between wrong answers, where the solver returns a configuration in another aspect, and refusals, where it declines to answer. A refusal is safer: visible to the caller, which can hold its previous setpoint; a wrong answer is not. With the nominal solver, 1.35% of solvable problems produce a wrong-aspect answer. The limiter reduces this to 0.05%, and with certified restarts no wrong answer was returned in problems, while nearly all unsolvable problems were correctly refused. Prior methods show the opposite trend: the majority of failures are wrong answers, from 1.3% with adaptive damping to 79% with TRAC-IK, and they return wrong answers on unsolvable problems at much higher rates: from 16% for SDLS to 97% for TRAC-IK, with only adaptive damping (0.5%) performing reasonably.
D. Generality and cuspidal chains
Fig. 9 repeats the measurement with QuIK4 on three further chains: the Stanford arm [40], a 6-DOF chain with one prismatic joint; the Denso VS-6556, a Puma-style arm

Fig. 8. Failure rate on the KUKA KR6 against the solver deadline at rad (top) and rad (bottom), compared with prior methods. Solid lines are the safeguard levels of Fig. 7, each at the best of QuIK, QuIK4, and QuIK5 at that point (denoted as QuIK*); the marker shows which. Prior methods (dashed) are tuned per deadline and for their own lowest failure rate; SDLS and adaptive damping run on each of Newton–Raphson (NR), QuIK, QuIK4, and QuIK5, and the marker shows the best. A red cross marks a deadline shorter than the method's median solve time.
TABLE III
WRONG ANSWERS AND REFUSALS AT RAD, ms.
| Refusals [%] | ||||
|---|---|---|---|---|
| Failed [%] | Wrong [%] | Correct | Incorrect | |
| Nominal QuIK* method | 2.03 | 1.35 | 99.1 | 0.67 |
| + limiter | 0.26 | 0.049 | 99.6 | 0.21 |
| + limiter + restarts | 0.031 | (none)† | 100.0 | 0.031 |
| SDLS | 8.51 | 8.17 | 84.2 | 0.34 |
| Adaptive damping | 2.09 | 1.33 | 99.5 | 0.76 |
| DMH | 31.2 | 22.0 | 66.6 | 9.22 |
| KDL | 22.5 | 21.7 | 36.3 | 0.75 |
| TRAC-IK | 80.4 | 79.3 | 3.38 | 1.11 |
Note: Failed is any problem that did not converge to a same-aspect answer, measured on at least problems per row and extended until 100 failures are observed. Of these, Wrong is the percentage answered in the wrong aspect, and Incorrect refusals the percentage refused when a correct answer existed. Correct refusals are measured on a separate set whose seed aspect holds no solution. The label QuIK* is used to denote the best of QuIK, QuIK4, or QuIK5 after tuning. SDLS and adaptive damping also use the best of NR, QuIK, QuIK4, or QuIK5. The best entry in each column is bold. † No wrong answer in problems (95% upper bound 0.00027%).
rendered cuspidal by its kinematic calibration [11], [41]; and the Kinova Jaco [3], cuspidal by design through its non-spherical wrist [20]. Here, not all chains have closed-form solutions to determine their aspects, so a problem is kept only when the straight chord from to is certified free of singularities; this is a stricter filter than used in Figs. 7 and 8. On the cuspidal chains, several solutions can share the seed's aspect, so a solve succeeds when it returns or another solution proven to lie in its aspect, by a certified chord from or or along the solver's own path; an answer that cannot be decided counts as a failure. To avoid grading the safeguards by their own certifier, the dataset labeling used a more expensive offline labeler: a Chebyshev interpolant of of degree up to 64 with global root finding [34], along with the certifier of Section VI-A with a very large safety factor, , run separately on 64 uniform sub-intervals such that its sample points never coincide with the runtime certifier. A chord is considered clean when the two mechanisms certify it. Against the KR6's closed-form aspect label, this approach made no error on random chords at .
The safeguards largely carry over to the other chains. On the Stanford arm at and ms, the limiter reduces failures by and limiter+restarts by . On the cuspidal chains, failures on the VS-6556 fall from 5.4% to 0.84% with the limiter and 0.080% with limiter+restarts, and on the Jaco
Fig. 9. Failure rate of the safeguards on four chains with QuIK4, at large ( rad, top) and small ( rad, bottom) initial joint error, for deadlines s and 1 ms. Filled markers use parameters tuned for each robot; open markers reuse the KR6's parameters. Problems are kept only when the chord is certified singularity-free. On the non-cuspidal KR6 and Stanford [40] chains, a failure is any solve that does not return within ; on the cuspidal (starred) VS-6556 cal. and Jaco [3] chains, any solve that does not return or another solution proven to lie in its aspect, with an undecided answer counted as a failure. Bars are 95% Wilson intervals; a triangle marks a point with no failures, drawn at its 95% upper bound.
from 18% to 6.6% and 1.2% respectively. At , the limiter alone reduces failures on the VS-6556 and on the Jaco, to and , and limiter+restarts reach and . Without safeguards, 4.0% (VS-6556) and 9.9% (Jaco) of solves at return an answer proven to lie in another aspect; with either the limiter or limiter+restarts enabled, no wrong answers were observed at any deadline.
Parameters also transfer: the KR6's parameters are no more than a factor of two worse than each chain's own tuning at nearly every point, the exception being the Stanford arm's restart cell at and ms. At the transferred parameters sometimes differ, as failure rates there lie below the resolution of the tuning sets (Section VIII-A).
Overall, failure rates are higher on the cuspidal arms. This reflects harder problems rather than a loss of aspect safety: without safeguards, QuIK4 already fails (VS-6556) and (Jaco) as often as on the KR6, and with the safeguards none of the remaining failures is a proven aspect change.
The calibrated Denso VS-6556 illustrates a key case. Industrial arms typically have aligned joints, closed-form inverse kinematics, and non-cuspidal geometry. Kinematic calibration, necessary for maximum accuracy [41], perturbs these parameters, invalidating the closed-form solution and requiring a numerical solver. This introduces risk in real-time applications: a divergent solver could halt operations or, in the worst case, produce unbounded joint speeds. With the methods of this paper, failure rates on the calibrated arm at trajectory-tracking error levels ( ) fall to about in , all of them refusals on near-singular targets rather than wrong answers. As real-world operations typically avoid singular workspace regions, numerical inverse kinematics with the aspect-preserving methods introduced here can be used in real-time control with much greater safety than before.
IX. CONCLUSION
This paper used the higher-order kinematic derivatives of a serial chain to serve three complementary purposes in real-time inverse kinematics. First, Taylor-model solvers of third and fourth order were derived, along with the orientation-error correction map needed beyond second order, yielding the QuIK4 and QuIK5 methods with fourth- and fifth-order convergence respectively. Second, an aspect-preserving step limiter was introduced that efficiently extrapolates det J to predict singularities along the proposed step, and shortens the step as necessary. Unlike damped least-squares methods, which shorten or warp the step based on the conditioning of J at the current iterate, the limiter acts on a prediction of where the step is heading. This allows it to limit steps surgically: a step from a well-conditioned pose toward a singularity is still shortened, while one at an ill-conditioned pose facing away from the singularity is left intact, achieving high aspect safety without penalizing convergence speed. Lastly, an aspect-certification algorithm, built from Hermite interpolation of the determinant along the chord from seed to answer, verifies each solution, and certified restarts recover refused or failed solves from seed points proven to lie in the same aspect.
In fixed-deadline testing, the limiter alone reduced failures by up to at large seed error ( rad) and at tracking-level error ( rad) over prior methods. Combined with certified restarts, these improvements grew to and , with failure rates as low as . The safeguards transferred to cuspidal chains, including a calibrated industrial arm and the Kinova Jaco, with no proven aspect changes at any tested deadline or error level.
The solvers, safeguards, and tuning tools are released as a C++ library with ROS 2 integration [42]. When a numerical inverse kinematics solver can deliver aspect-preserving answers in a fraction of a millisecond, the longstanding barriers to its use in real-time control are removed, and applications that depend on it, such as kinematically calibrated robots or manipulators lacking a closed-form solution, can operate with a level of safety that was previously out of reach.
APPENDIX
ORDER- TAYLOR-MODEL CONVERGENCE
Proposition 1: Let be times continuously differentiable near a root at which is invertible, and let be the exact derivatives of . Then there is a constant such that, for every close enough to , the step of (3) satisfies
so the iteration converges locally with order .
Proof: Write , so that the Taylor polynomial of about is . Let and . The steps of (3) satisfy , with . Since , it suffices to show that . We proceed by induction on .
For this is Newton's method. Assume the result for . Since , Taylor's theorem gives . Subtracting the defining equation of ,
The bracket equals , which is by the induction hypothesis, so the right side is . Near a regular root, is invertible with a bounded inverse, and therefore .
The proposition requires to be the exact derivatives of . For the position rows of the error they are; for the orientation rows they are not beyond second order, which is the mismatch that the corrections of (20) remove.
REFERENCES
[1] S. Lloyd, R. A. Irani, and M. Ahmadi, “Improved accuracy and contact stability in robotic contouring with Simultaneous Registration and Machining,” IEEE Trans. Control Syst. Technol., vol. 32, no. 4, pp. 1140–1155, 2024.
[2] G. Li, F. Xiao, X. Zhang, B. Tao, and G. Jiang, “An inverse kinematics method for robots after geometric parameters compensation,” Mech. Mach. Theory, vol. 174, p. 104903, 2022.
[3] A. Campeau-Lecours, H. Lamontagne, S. Latour, P. Fauteux, V. Maheu, F. Boucher, C. Deguire, and L.-J. Caron L'Ecuyer, "Kinova modular robot arms for service robotics applications," Int. J. Robot. Appl. Technol., vol. 5, no. 2, pp. 49–71, 2017.
[4] J. Zhao and N. I. Badler, “Inverse kinematics positioning using nonlinear programming for highly articulated figures,” ACM Trans. Graph., vol. 13, no. 4, pp. 313–336, 1994.
[5] A. Aristidou, J. Lasenby, Y. Chrysanthou, and A. Shamir, “Inverse kinematics techniques in computer graphics: A survey,” Comput. Graph. Forum, vol. 37, no. 6, pp. 35–58, 2018.
[6] I.-M. Chen, G. Yang, and I.-G. Kang, “Numerical inverse kinematics for modular reconfigurable robots,” J. Robot. Syst., vol. 16, no. 4, pp. 213–225, 1999.
[7] R. Smits, “KDL: Kinematics and Dynamics Library,” Accessed: Oct. 5, 2026. [Online]. Available: https://www.orocos.org/kdl
[8] H. Bruyninckx, “Open robot control software: The OROCOS project,” in Proc. IEEE Int. Conf. Robot. Autom. (ICRA), 2001, pp. 2523–2528.
[9] P. Beeson and B. Ames, “TRAC-IK: An open-source library for improved solving of generic inverse kinematics,” in Proc. IEEE-RAS Int. Conf. Humanoid Robots (Humanoids), 2015, pp. 928–935.
[10] S. Lloyd, R. A. Irani, and M. Ahmadi, “Fast and robust inverse kinematics of serial robots using Halley’s method,” IEEE Trans. Robot., vol. 38, no. 5, pp. 2768–2780, 2022.
[11] —, “Precision robotic deburring with Simultaneous Registration and Machining for improved accuracy, quality, and efficiency,” Robot. Comput.-Integr. Manuf., vol. 88, p. 102733, 2024.
[12] Y. Chen, Y. Wang, F. Bu, G. Xin, C. Dai, X. Liu, Y. Sun, and X. Liu, “A fifth-order POE-based method for kinematic identification and inverse kinematics of serial robots,” IEEE Trans. Robot., vol. 42, pp. 1068–1087, 2026.
[13] J. F. Traub, Iterative Methods for the Solution of Equations. Englewood Cliffs, NJ, USA: Prentice-Hall, 1964.
[14] J. Kou, Y. Li, and X. Wang, “A family of fifth-order iterations composed of Newton and third-order methods,” Appl. Math. Comput., vol. 186, no. 2, pp. 1258–1262, 2007.
[15] T. Yamamoto, “On the method of tangent hyperbolas in Banach spaces,” J. Comput. Appl. Math., vol. 21, no. 1, pp. 75–86, 1988.
[16] A. Müller, “Higher derivatives of the kinematic mapping and some applications,” Mech. Mach. Theory, vol. 76, pp. 70–85, 2014.
[17] —, “An overview of formulae for the higher-order kinematics of lower-pair chains with applications in robotics and mechanism theory,” Mech. Mach. Theory, vol. 142, p. 103594, 2019.
[18] M. Raghavan and B. Roth, “Inverse kinematics of the general 6R manipulator and related linkages,” J. Mech. Des., vol. 115, no. 3, pp. 502–508, 1993.
[19] P. Wenger and D. Chablat, “A review of cuspidal serial and parallel manipulators,” J. Mech. Robot., vol. 15, no. 4, p. 040801, 2023.
[20] D. H. Salunkhe, D. Chablat, and P. Wenger, “Trajectory planning issues in cuspidal commercial robots,” in Proc. IEEE Int. Conf. Robot. Autom. (ICRA), 2023, pp. 7426–7432.
[21] Y. Nakamura and H. Hanafusa, “Inverse kinematic solutions with singularity robustness for robot manipulator control,” J. Dyn. Syst. Meas. Control, vol. 108, no. 3, pp. 163–171, 1986.
[22] C. W. Wampler, “Manipulator inverse kinematic solutions based on vector formulations and damped least-squares methods,” IEEE Trans. Syst., Man, Cybern., vol. 16, no. 1, pp. 93–101, 1986.
[23] S. Chiaverini, B. Siciliano, and O. Egeland, “Review of the damped least-squares inverse kinematics with experiments on an industrial robot manipulator,” IEEE Trans. Control Syst. Technol., vol. 2, no. 2, pp. 123–134, 1994.
[24] S. R. Buss and J.-S. Kim, “Selectively damped least squares for inverse kinematics,” J. Graph. Tools, vol. 10, no. 3, pp. 37–49, 2005.
[25] T. Sugihara, “Solvability-unconcerned inverse kinematics by the Levenberg-Marquardt method,” IEEE Trans. Robot., vol. 27, no. 5, pp. 984–991, 2011.
[26] J. Nocedal and S. J. Wright, Numerical Optimization, 2nd ed. New York, NY, USA: Springer, 2006.
[27] D. H. Salunkhe, T. Marauli, A. Müller, D. Chablat, and P. Wenger, “Kinematic issues in 6R cuspidal robots, guidelines for path planning and deciding cuspidity,” Int. J. Robot. Res., vol. 44, no. 6, pp. 1035–1054, 2025.
[28] A. Hourtash, “The kinematic Hessian and higher derivatives,” in Proc. IEEE Int. Symp. Comput. Intell. Robot. Autom. (CIRA), 2005, pp. 169–174.
[29] Z. Fu, E. Spyrakos-Papastavridis, Y.-h. Lin, and J. S. Dai, “Analytical expressions of serial manipulator Jacobians and their high-order derivatives based on Lie theory,” in Proc. IEEE Int. Conf. Robot. Autom. (ICRA), 2020, pp. 7095–7100.
[30] T. D. Barfoot, State Estimation for Robotics. Cambridge, U.K.: Cambridge University Press, 2017.
[31] J. Stoer and R. Bulirsch, Introduction to Numerical Analysis, 3rd ed. New York, NY, USA: Springer, 2002.
[32] S. A. Piyavskii, “An algorithm for finding the absolute extremum of a function,” USSR Comput. Math. Math. Phys., vol. 12, no. 4, pp. 57–67, 1972.
[33] B. O. Shubert, “A sequential method seeking the global maximum of a function,” SIAM J. Numer. Anal., vol. 9, no. 3, pp. 379–388, 1972.
[34] J. P. Boyd, “Computing zeros on a real interval through Chebyshev expansion and polynomial rootfinding,” SIAM J. Numer. Anal., vol. 40, no. 5, pp. 1666–1682, 2002.
[35] J. Baillieul, “Kinematic programming alternatives for redundant manipulators,” in Proc. IEEE Int. Conf. Robot. Autom. (ICRA), 1985, pp. 722–728.
[36] C. A. Klein, C. Chu-Jenq, and S. Ahmed, “A new formulation of the extended Jacobian method and its use in mapping algorithmic singularities for kinematically redundant manipulators,” IEEE Trans. Robot. Autom., vol. 11, no. 1, pp. 50–55, 1995.
[37] A. Liégeois, “Automatic supervisory control of the configuration and behavior of multibody mechanisms,” IEEE Trans. Syst., Man, Cybern., vol. 7, no. 12, pp. 868–871, 1977.
[38] T. Yoshikawa, “Manipulability of robotic mechanisms,” Int. J. Robot. Res., vol. 4, no. 2, pp. 3–9, 1985.
[39] J. Kim, M. Sung, S. Kim, and Y. Choi, “Analytical computation of gradient and Hessian for three types of manipulability measures,” Intell. Serv. Robot., vol. 18, no. 5, pp. 1073–1087, 2025.
[40] V. D. Scheinman, “Design of a computer controlled manipulator,” Stanford Artificial Intelligence Laboratory, Stanford, CA, USA, Memo AIM-92, 1969.
[41] M. Dehghani, R. A. McKenzie, R. A. Irani, and M. Ahmadi, “Robot-mounted sensing and local calibration for high-accuracy manufacturing,” Robot. Comput.-Integr. Manuf., vol. 79, p. 102429, 2023.
[42] S. Lloyd, “QuIK-P: C++ library for aspect-preserving inverse kinematics,” 2026, will be released publicly upon acceptance.