arXiv:2610.41752cs.ROOct 2026

Manuscript Offprint

arXiv:2610.41752

Higher-Order Kinematic Derivatives for Aspect-Preserving Real-Time Numerical Inverse Kinematics

Steffan Lloyd

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 qk∈Rn\mathbf{q}_k \in \mathbb{R}^n through the geometric Jacobian J(q)∈R6×n\mathbf{J}(\mathbf{q}) \in \mathbb{R}^{6 \times n} and iterates toward the root as

qk+1=qk+δqnr,δqnr=−J∖e,(1)\mathbf{q}_{k+1}=\mathbf{q}_{k}+\delta\mathbf{q}_{\mathrm{n r}},\quad\delta\mathbf{q}_{\mathrm{n r}}=-\mathbf{J}\setminus\mathbf{e}, \tag{1}

where e=[ve⊤ωe⊤]⊤\mathbf{e} = [\mathbf{v}_e^\top \quad \boldsymbol{\omega}_e^\top]^\top is the spatial twist from the current pose to the desired one, and x=A∖b\mathbf{x} = \mathbf{A} \setminus \mathbf{b} denotes the linear solution of Ax=b\mathbf{A}\mathbf{x} = \mathbf{b}; 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 H≜∂∂qJ\mathbf{H} \triangleq \frac{\partial}{\partial \mathbf{q}} \mathbf{J} can be applied to inverse kinematics, yielding the step

δqquik=−(J+12H[δqnr])∖e,(2)\delta\mathbf{q}_{\mathrm{q u i k}}=-\left(\mathbf{J}+\frac{1}{2}\mathbf{H}\left[\delta\mathbf{q}_{\mathrm{n r}}\right]\right)\setminus\mathbf{e}, \tag{2}

where the bracket notation A[xi]\mathbf{A}[\mathbf{x}^i], used throughout this paper, denotes the contraction of the tensor A\mathbf{A} against ii copies of the vector x\mathbf{x}, with the exponent omitted when i=1i = 1. 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-mm kinematic derivatives denoted as D(m)\mathbf{D}^{(m)}, such that D(1)=J\mathbf{D}^{(1)} = \mathbf{J} and D(2)=H\mathbf{D}^{(2)} = \mathbf{H}, the step

δq(p)=−Ap∖e,Ap=∑m=1p1m!D(m)[δq(p−1)m−1],\begin{align*}\delta\mathbf{q}_{(p)}&=-\mathbf{A}_{p}\setminus\mathbf{e},\\\mathbf{A}_{p}&=\sum_{m=1}^{p}\frac{1}{m!}\mathbf{D}^{(m)}\left[\delta\mathbf{q}_{(p-1)}^{m-1}\right],\end{align*}

(3)

solves the degree-pp Taylor model of the error, using the order-(p−1)(p-1) step substituted into its nonlinear term, with δq(1)=δqnr\delta\mathbf{q}_{(1)} = \delta\mathbf{q}_{\mathrm{nr}} and δq(2)=δqquik\delta\mathbf{q}_{(2)} = \delta\mathbf{q}_{\mathrm{quik}}. So long as D(m)\mathbf{D}^{(m)} is exact, the iteration converges at order p+1p+1 (Proposition 1, Appendix), and for p≤2p \leq 2 it reproduces the Newton–Raphson and Halley (QuIK) methods.

In practice, higher-order models are rarely used, since D(m)\mathbf{D}^{(m)} carries δnm\delta n^m partial terms for an nn-DOF problem, and their cost outweighs the accuracy gained. Serial-chain inverse kinematics is an unusually favorable case: nn 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 D(m)\mathbf{D}^{(m)} follow a Lie-bracket recursion on the joint screws [16], [17], leaving them sparse, symmetric, and inexpensive to compute [10]. Moreover, (3) requires D(m)\mathbf{D}^{(m)} 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:

  1. the solution must lie in the same aspect as the seed, so that they are joined by a singularity-free path; and

  2. 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 q0→q∗\mathbf{q}_0 \to \mathbf{q}^* (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:

  1. 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 O(m2n)O(m^{2}n) instead of O(nm)O(n^{m}) for the full tensors, and the contractions can be evaluated highly efficiently.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

References (42)