Locating Contact on Tendon-Driven Continuum Robots From Tendon Measurements Alone via Constrained Moving Horizon Estimation
Tendon-driven continuum robots can reach through constrained spaces, but contact along their bodies is invisible to the sensors at their motors. We show that this is a structural limitation rather than a tuning problem: the map from contact forces to tendon measurements has a null space of dimension at least seven, so no estimator that leaves the contact support free can locate contact.
From the abstract. Our summary is in progress.
Full paper
Locating Contact on Tendon-Driven Continuum Robots From Tendon Measurements Alone via Constrained Moving Horizon Estimation
Published under CC BY 4.0. Reproduced with attribution; original at arXiv:2611.09877 (PDF).
Abstract
Tendon-driven continuum robots can reach through constrained spaces, but contact along their bodies is invisible to the sensors at their motors. We show that this is a structural limitation rather than a tuning problem: the map from contact forces to tendon measurements has a null space of dimension at least seven, so no estimator that leaves the contact support free can locate contact. When the obstacle geometry is known, however, non-penetration and complementarity make the contact force locally identifiable, and we prove that the resulting system with unknown contact inputs is locally exponentially strongly detectable. We present a constrained moving horizon estimator (MHE) that encodes these conditions and runs in real time as one quadratic program per sample, and we give a local, mode-wise robust stability result for it. In a finite-element benchmark of a two-section robot pressing and sliding on a wall, the estimator located contact to 0.9 mm and estimated contact force to 0.22 N, compared with 65 mm and 0.72 N for a tuned extended Kalman filter (EKF) with state projection. The estimator tolerated millimeter-level errors in the obstacle position and unmodeled wall friction, under which the projected EKF failed. Under randomized model mismatch over 40 trials, including unmodeled tendon friction, it remained better in force and location in every trial. Without contact, the MHE offered no advantage over the EKF, which confirms that its benefit comes from the contact constraints. This report extends a letter submitted to IEEE Control Systems Letters with complete proofs and additional experiments.
1 Introduction
Continuum robots could act as our hands in spaces that rigid instruments cannot reach, such as the anatomy traversed in minimally invasive surgery [1]. In these spaces the robot body touches its surroundings along its length, and knowing where and how hard it touches is needed both for safety and for control. However, sensing contact on a continuum robot is challenging, because force sensors are difficult to integrate into slender, flexible, and often sterilizable bodies.
Existing methods therefore infer contact from the robot’s own deflection. Table 1 summarizes the closest work. Xu and Simaan [2] estimated external wrenches from actuation forces, and Bajo and Simaan [3] detected and localized contacts from kinematic deviations of multisegment robots. Aloi et al. [4] estimated distributed loads and their locations from shape measurements with a Cosserat model and an EKF, Ferguson et al. [5] estimated shape and external loads jointly, Johnston et al. [6] used a modal momentum observer, and Prakash et al. [7] estimated multiple contact forces with a factor graph from strain and pose measurements. Learned methods have used distributed optical-fiber strain [8]. Each of these methods that localizes contact along the body relies on a shape signal. The only method we found that uses tendon measurements alone [9] estimates the force at the tip, not where contact occurs.
- Xu & Simaan [2]
- actuation forces, configuration
- wrench
- statics
- Bajo & Simaan [3]
- segment kinematics
- contact, segment
- thresholds
- Aloi et al. [4]
- 3D shape, tensions
- loads and locations
- EKF
- Ferguson et al. [5]
- position or strain
- shape and loads
- batch estimation
- Johnston et al. [6]
- shape, motor current
- wrench
- momentum observer
- Prakash et al. [7]
- strain, tip pose, tensions
- multiple contact forces
- factor graph
- Tavangarifard et al. [8]
- distributed fiber strain
- contact, location, force
- learned
- Feng et al. [9]
- tendon tension and displacement
- tip force
- learned
- This work
- tendon tension and displacement
- shape, force, location
- constrained MHE
Building on these results, there is a need for an estimator that locates and sizes contact along a tendon-driven robot using only the signals available at its motors. This report presents such an estimator, explains why it requires constraints that a Kalman filter cannot represent, and states when it is stable. Constrained moving horizon estimation (MHE) [10, 11] with contact complementarity has been used for legged robots [12], where contact sensors provide the active contact set; here the active set must be inferred from geometry. The contributions of this work are:
- An identifiability and detectability analysis of contact from tendon measurements. We prove that contact forces are not identifiable from tendon lengths without information on the contact support (Proposition 1), and that complementarity with a known obstacle restores local identifiability (Proposition 2) and local exponential strong detectability (Proposition 3). In contrast to prior observability discussions [6], which concern wrench components at a known contact, our analysis addresses where along the body contact occurs.
- A real-time constrained MHE with a stability result. We encode non-penetration, non-negative forces, and complementarity in an MHE and solve it with a real-time iteration [13, 14], replacing complementarity by a linearized penalty. We give a local, mode-wise robust stability result (Theorem 1). In contrast to [12], our estimator infers the active contact set from geometry.
- A finite-element benchmark against tuned Kalman filtering. We compare the estimator with tuned EKFs, including state projection [15], under nominal conditions, obstacle-position error, unmodeled wall friction, mid-body contact, randomized model mismatch, and, as a control, motion without contact.
The remainder of this report is organized as follows. Section 2 describes the robot, the reduced model, and the contact model. Section 3 presents the identifiability and detectability analysis. Section 4 presents the estimator and its stability. Section 5 reports the simulation study, and Section 6 concludes.
2 Robot, Model, and Measurements
This section describes the robot, the reduced model used by all model-based estimators, and the contact model.
2.1 Robot and sensors
We consider a two-section tendon-driven robot of length 0.6 m. Each section has three tendons spaced at 120∘ and offset 20 mm from the backbone, and the tendons of the second section are rotated by 60∘ relative to the first. Twenty-four spacer disks of radius 26 mm route the tendons. The only measurements are the six tendon length changes at the motors, with 0.1 mm noise, and the six tendon tensions T\in\mathbb{R}^{6}, with 0.5 N noise, both sampled at 20 Hz. The length measurements include the elastic elongation of the tendons, which we compensate with a tendon stiffness that is deliberately 10% different from the true value. The tensions are commanded by a feedforward allocation that keeps all tendons above a 2 N pretension.
2.2 Reduced model
The estimators use a pseudo-rigid-body rod with n_{J}=12 joints placed at the midpoints of 12 equal segments, so that a constant-curvature arc is reproduced exactly at the joints. Each joint has two bending angles and one torsion angle, so the configuration is q\in\mathbb{R}^{n_{q}} with n_{q}=36. We include torsion because a lateral contact at the tip twists the backbone by approximately 30∘ in our scenarios: a 1.85 N contact force acting at a lever of approximately 0.2 m against a torsional stiffness GJ=0.39 N m2. Without torsion, every model-based estimator we tested failed in sliding contact, with shape errors of 9–12 mm instead of 2–3 mm.
Tendon-driven continuum robots move slowly relative to their elastic dynamics, so we model the motion as overdamped and write it with implicit Euler discretization as
\tfrac{d}{h}\,(q_{k+1}-q_{k})=e(q_{k+1},\lambda_{k+1},T_{k}),e(q,\lambda,T)=-Kq-\nabla V(q)-J_{l}(q)^{\top}T-J_{x}(q)^{\top}\lambda,where h=0.05 s is the sample time; d is a scalar damping coefficient; K is the diagonal joint stiffness, with entries EI/\ell for bending and GJ/\ell for torsion, segment length \ell=0.05 m, and GJ=EI/(1+\nu); V is the gravitational potential of the disks; l(q)\in\mathbb{R}^{6} are the tendon path lengths, computed as polylines through the disk holes, with Jacobian J_{l}; and J_{x} is the Jacobian of the candidate contact points defined below. The tendon term follows from virtual work: a tendon under tension T_{i} does work -T_{i}\,\mathrm{d}l_{i}. We chose implicit Euler because the elastic dynamics are stiff at h=0.05 s. We calibrated d on one free-motion training run by matching the open-loop shape; the best value, d=1.5 N m s, agrees with 0.15\,EI/\ell, the structural damping of the ground truth, and we use it unchanged throughout. The measurement model is
y_{k}=l(q_{k})-l(0)+v_{k},where v_{k} is measurement noise with standard deviation \sigma_{y}.
2.3 Contact model
The obstacle is a plane at a known position x_{w} along its normal. We place n_{c}=13 candidate contact points at the 12 joints and the tip, with normal forces \lambda\in\mathbb{R}^{n_{c}} and gaps
g(q)=x_{w}-r-x(q),where x(q)\in\mathbb{R}^{n_{c}} are the point coordinates along the obstacle normal and r=26 mm is the spacer-disk radius, so that a zero gap corresponds to a disk rim touching the plane. Figure 1(a) shows the candidate points on the ground-truth robot during contact. Physically admissible contact satisfies
\lambda\geq 0,\qquad g(q)\geq 0,\qquad\lambda_{i}\,g_{i}(q)=0\quad(i=1,\dots,n_{c}).The last condition, i.e., complementarity, states that force acts only where the robot touches the obstacle. Contact in the estimators is frictionless; Section 5.4 tests the effect of friction in the ground truth.
3 Identifiability and Detectability
This section shows that tendon measurements cannot locate contact on their own and that complementarity supplies the missing information. We first analyze the quasi-static map from forces to measurements, and then the dynamic system with unknown contact inputs.
3.1 Quasi-static identifiability
Let H(q)=-\partial e/\partial q, the Hessian of the elastic and gravitational potential plus the tendon-curvature term. In all configurations analyzed below, the symmetric part of H was positive definite (Section 3.3). At an equilibrium e(q,\lambda,T)=0, the implicit function theorem gives q=q(\lambda,T) locally, and the sensitivity of the measurements to the contact forces is
G(q)=\frac{\partial y}{\partial\lambda}=J_{l}(q)\,\frac{\partial q}{\partial\lambda}=-J_{l}(q)\,H(q)^{-1}J_{x}(q)^{\top}\in\mathbb{R}^{6\times n_{c}}.Proposition 1 (Non-identifiability).
Since \operatorname{rank}G\leq 6<n_{c}, the null space \ker G has dimension at least n_{c}-6=7. For any admissible \lambda and any \delta\in\ker G with \lambda+\delta admissible, the two force distributions produce the same measurements to first order. Therefore no estimator that leaves the support of \lambda free can identify \lambda locally from y.
Proof.
G has six rows, so \operatorname{rank}G\leq 6 and \dim\ker G\geq n_{c}-6. Local identifiability at \lambda requires the measurement map to be locally injective, which requires \ker G=\{0\}; this is impossible when n_{c}>6. ∎
Proposition 2 (Identifiability under complementarity).
Let A=\{i:g_{i}(q)=0\} be the active contact set, assume strict complementarity (\lambda_{i}>0 for i\in A), and let G_{A} denote the columns of G indexed by A. If G_{A} has full column rank, then under (5) the forces \lambda_{A} are locally identifiable from y, and any unbiased estimator satisfies the Cramér–Rao bound
\operatorname{Cov}(\hat{\lambda}_{A})\succeq\sigma_{y}^{2}\,(G_{A}^{\top}G_{A})^{-1},\qquad\operatorname{Var}(\mathbf{1}^{\top}\hat{\lambda}_{A})\geq\sigma_{y}^{2}\,\mathbf{1}^{\top}(G_{A}^{\top}G_{A})^{-1}\mathbf{1}.Proof.
Under (5), \lambda_{i}=0 for i\notin A, so the unknown reduces to \lambda_{A}\in\mathbb{R}^{|A|}. Locally, y\approx y_{0}+G_{A}\Delta\lambda_{A}+v with Gaussian v, whose Fisher information is G_{A}^{\top}G_{A}/\sigma_{y}^{2}. This matrix is nonsingular if and only if G_{A} has full column rank, in which case the map \Delta\lambda_{A}\mapsto G_{A}\Delta\lambda_{A} is injective and (7) follows from the Cramér–Rao inequality. ∎
Remark 1 (Where the active set comes from).
Proposition 1 shows that the active set cannot be read from G. It comes from geometry: the shape q is pinned by the measurements together with the model (1), and the gap constraint with complementarity selects the points that touch the known obstacle. Complementarity is a nonconvex, combinatorial condition, which a Kalman filter cannot represent. An EKF that augments \lambda with random-walk states inherits Proposition 1: its covariance grows along \ker G, and projecting each estimate onto \{\lambda\geq 0,\,g(q)\geq 0\} [15] removes only the infeasible part of the resulting drift.
Figure 2 evaluates these quantities along five simulated contact runs (990 configurations, 805 in contact). The median singular values of G were 21, 1.3, 0.14, 0.021, 4\times 10^{-5}, and 4\times 10^{-6} mm/N, so with \sigma_{y}=0.1 mm only approximately three force directions are detectable at 1 N. Neighboring columns of G were nearly parallel (median cosine 0.9997), so the measurements alone cannot distinguish adjacent contact points. The active set contained one point in 96% and two points in 4% of the contact configurations; G_{A} had full column rank in all of them, with a median smallest singular value of 11 mm/N (minimum 0.05 mm/N). The Cramér–Rao bound on the total contact force had a median of 0.009 N (95th percentile 0.02 N).
\lambda at the tip. (b) Singular values of the sensitivity G from contact forces to tendon measurements (median and 10th–90th percentiles over 990 configurations). Seven directions lie in \ker G and only approximately three exceed the noise level.G. (b) A force distribution in \ker G, which changes no tendon length. (c) Similarity of neighboring columns of G: adjacent contact points look almost identical to the tendons. (d) Cramér–Rao bound on the total contact force with a known active set, compared with the error of the real-time MHE; the gap of approximately 10\times is due to model mismatch rather than sensor noise.3.2 Strong detectability with unknown contact inputs
For estimation over time, we linearize (1)–(3) along a reference trajectory (q^{\ast}_{k},\lambda^{\ast}_{k}). Writing H_{k}=H(q^{\ast}_{k}), this gives
\delta q_{k+1}=M_{k}\,\delta q_{k}+N_{k}\,\delta\lambda_{k+1},\qquad\delta y_{k}=C_{k}\,\delta q_{k},with M_{k}=(\tfrac{d}{h}I+H_{k})^{-1}\tfrac{d}{h}, N_{k}=-(\tfrac{d}{h}I+H_{k})^{-1}J_{x}(q^{\ast}_{k+1})^{\top}, and C_{k}=J_{l}(q^{\ast}_{k}). For an active set A, let N_{A,k} denote the columns of N_{k} indexed by A.
Assumption 1.
For a fixed active set A and a compact neighborhood of the reference trajectory:
\operatorname{sym}(H_{k})\succeq\mu Ifor some\mu>0;\sigma_{\min}(C_{k+1}N_{A,k})\geq\underline{\sigma}>0;- the zero dynamics
\xi_{k+1}=P_{k}M_{k}\xi_{k}, withP_{k}=I-N_{A,k}(C_{k+1}N_{A,k})^{+}C_{k+1}, are uniformly exponentially stable, i.e.,\|\prod_{j=k}^{k+L-1}P_{j}M_{j}\|\leq\rho_{L}<1for someL\geq 1and allk.
Condition (S1) states that elastic stiffness dominates, which makes the implicit step well posed. Condition (S2) is the discrete-time analogue of the rank condition \operatorname{rank}(CB)=\operatorname{rank}(B) for unknown-input observers, and (S3) requires the states that produce zero output under a suitable unknown input to decay; together, (S2) and (S3) are the linear characterization of strong detectability [16, 17].
Proposition 3 (Local exponential strong detectability).
Under Assumption 1, there exist \varepsilon>0, c\geq 1, and \hat{\rho}\in(0,1) such that any two solutions (q,\lambda_{A}) and (q^{\prime},\lambda^{\prime}_{A}) of the model (1)–(3) with additive process disturbances w,w^{\prime} that remain within \varepsilon of the reference satisfy, for all k\geq 0,
\displaystyle|\Delta q_{k}| \\ \displaystyle\leq c\,\hat{\rho}^{\,k}|\Delta q_{0}|+c\sum_{j=1}^{k}\hat{\rho}^{\,k-j}\big(|\Delta y_{j}|+|\Delta w_{j-1}|\big), \\ \displaystyle|\Delta\lambda_{A,k}| \\ \displaystyle\leq c\big(|\Delta q_{k-1}|+|\Delta y_{k}|+|\Delta w_{k-1}|\big),where \Delta(\cdot) denotes the difference between the two solutions. That is, the system with unknown input \lambda_{A} is locally exponentially strongly detectable in the sense of [17].
Proof.
Let e_{k}=\Delta q_{k}, \delta_{k}=\Delta\lambda_{A,k}, \eta_{k}=\Delta y_{k}, and \omega_{k}=\Delta w_{k}.
Step 1 (local expansion). By (S1), \tfrac{d}{h}I+H is invertible on the neighborhood, so by the implicit function theorem the step map defined by (1) is C^{2} and
\displaystyle e_{k+1} \\ \displaystyle=M_{k}e_{k}+N_{A,k}\delta_{k+1}+G_{k}\omega_{k}+r_{k},\qquad|r_{k}|\leq\ell\,(|e_{k}|+|\delta_{k+1}|)^{2}, \\ \displaystyle\eta_{k+1} \\ \displaystyle=C_{k+1}e_{k+1}+s_{k},\qquad|s_{k}|\leq\ell\,|e_{k+1}|^{2},where \ell bounds the second derivatives on the compact neighborhood and \|G_{k}\|\leq\bar{g}.
Step 2 (input recovery). Substituting the first line into the second gives \eta_{k+1}=C_{k+1}M_{k}e_{k}+C_{k+1}N_{A,k}\delta_{k+1}+C_{k+1}G_{k}\omega_{k}+C_{k+1}r_{k}+s_{k}. By (S2), C_{k+1}N_{A,k} has a left inverse (C_{k+1}N_{A,k})^{+} with norm at most 1/\underline{\sigma}, so
\delta_{k+1}=(C_{k+1}N_{A,k})^{+}\big[\eta_{k+1}-C_{k+1}M_{k}e_{k}-C_{k+1}G_{k}\omega_{k}-C_{k+1}r_{k}-s_{k}\big].Since M_{k}, C_{k}, and G_{k} are bounded and the remainders are quadratic, for \varepsilon small enough this yields (10) with a suitable c.
Step 3 (error dynamics). Inserting \delta_{k+1} into the first line of Step 1 gives
e_{k+1}=P_{k}M_{k}e_{k}+N_{A,k}(C_{k+1}N_{A,k})^{+}\eta_{k+1}+P_{k}G_{k}\omega_{k}+\tilde{r}_{k},\qquad|\tilde{r}_{k}|\leq\tilde{\ell}\,\big(|e_{k}|^{2}+|\eta_{k+1}|^{2}+|\omega_{k}|^{2}\big).By (S3), the transition matrix \Phi(k,j) of P_{k}M_{k} satisfies \|\Phi(k,j)\|\leq c_{0}\rho_{0}^{\,k-j} with \rho_{0}=\rho_{L}^{1/L} and c_{0} the maximum norm of products of fewer than L factors. Variation of constants gives
|e_{k}|\leq c_{0}\rho_{0}^{\,k}|e_{0}|+c_{1}\sum_{j=0}^{k-1}\rho_{0}^{\,k-1-j}\big(|\eta_{j+1}|+|\omega_{j}|\big)+c_{0}\tilde{\ell}\sum_{j=0}^{k-1}\rho_{0}^{\,k-1-j}\big(|e_{j}|^{2}+|\eta_{j+1}|^{2}+|\omega_{j}|^{2}\big).Step 4 (absorbing the remainder). On the neighborhood, |e_{j}|,|\eta_{j+1}|,|\omega_{j}|\leq\varepsilon^{\prime} for some \varepsilon^{\prime} proportional to \varepsilon, so each quadratic term is bounded by \varepsilon^{\prime} times the corresponding linear term. Choosing \varepsilon such that c_{0}\tilde{\ell}\varepsilon^{\prime}/(1-\rho_{0})\leq(1-\rho_{0})/2 and applying a discrete Gronwall argument by induction on k gives (9) with \hat{\rho}=(1+\rho_{0})/2 and a suitable c. ∎
Remark 2.
If all n_{c} candidates are treated as unknown inputs, i.e., without complementarity, then \operatorname{rank}(C_{k+1}N_{k})\leq 6<n_{c} and (S2) fails. This is the dynamic counterpart of Proposition 1.
3.3 Numerical verification of the assumptions
We evaluated Assumption 1 at the 805 contact configurations. The smallest eigenvalue of \operatorname{sym}(H) was 0.36, so (S1) holds, and the free dynamics were contractive with \rho(M)\leq 0.988. The matrix CN_{A} had full column rank in all 805 configurations, with a median smallest singular value of 2.2 mm/N and a minimum of 0.004 mm/N, so (S2) holds with a large but finite input-recovery gain at a few configurations. For (S3), the pointwise spectral radius of P_{k}M_{k} was at most 0.967 (median 0.81); single steps could expand the norm by up to 11\times near changes of the active set, so we evaluated products along full trajectories. Products over 20 consecutive samples (1 s) had norm at most 0.32, and over 40 samples at most 0.033, on runs 1, 3, and 5. With all 13 candidates as unknown inputs, \operatorname{rank}(CN)\leq 6 in every configuration.
4 Constrained Moving Horizon Estimation
This section presents the estimator, its real-time implementation, and its stability.
4.1 Problem formulation
At sample k, the MHE estimates the configurations and contact forces over the window j=k-N,\dots,k by solving
\displaystyle\min_{\{q_{j},\lambda_{j}\}} \\ \displaystyle\|q_{k-N}-\bar{q}\|^{2}_{W}+\sum_{j=k-N}^{k}\frac{\|y_{j}-h(q_{j})\|^{2}}{\sigma_{y}^{2}}+\sum_{j=k-N}^{k-1}\frac{\|r(q_{j+1},q_{j},\lambda_{j+1},T_{j})\|^{2}}{\sigma_{q}^{2}}+\rho\sum_{j}\mathbf{1}^{\top}\lambda_{j} \\ \displaystyle\text{s.t.} \\ \displaystyle\lambda_{j}\geq 0,\quad g(q_{j})\geq 0,\quad\lambda_{j,i}\,g_{i}(q_{j})\leq\epsilon,\quad|q_{j}|_{\infty}\leq 0.6,where h(q)=l(q)-l(0); r is the residual of (1), which eliminates the process noise as a decision variable; \bar{q} and W define the arrival cost; \sigma_{q} weights the model residual; \rho=0.05 is a small weight that favors sparse forces; and \epsilon=2\times 10^{-4} relaxes complementarity. We chose the horizon N=6 (0.3 s) to be long enough to span the settling of the overdamped dynamics but short enough to keep the problem small. Solved to convergence with IPOPT [18] through CasADi [19], using a Gauss–Newton Hessian of the Lagrangian (which gave the same solutions as the exact Hessian 2.7\times faster), (11) takes 580 ms per sample.
4.2 Real-time iteration
Following [13, 14], we solve one Gauss–Newton quadratic program (QP) per sample, linearized at the window from the previous sample shifted by one step. The residual Jacobians come from small per-stage functions compiled to C, which compile in minutes, unlike a function for the whole window. We solve the QP with OSQP [20], warm-started and polished, with tolerances of 10^{-3}.
Because complementarity is nonconvex, we replace it in the QP by a linearized penalty,
\sum_{j,i}\big(\rho+\kappa\max(g_{i}(\bar{q}_{j}),0)\big)\,\lambda_{j,i},where \bar{q}_{j} is the linearization point and \kappa prices force at each candidate point by its current gap; we also fix \lambda_{j,i}=0 when g_{i}(\bar{q}_{j})>30 mm. Non-penetration is kept as a linearized hard constraint. We first tried a hard rule that fixed \lambda_{j,i}=0 whenever g_{i}(\bar{q}_{j})>3 mm. This rule failed: when the estimated robot drifted slightly away from the obstacle, the estimated force locked at zero for more than 1 s. The penalty (12) degrades gracefully instead, because a slightly misplaced contact point only raises the price of force there.
The real-time estimator takes 28 ms per sample on average (95th percentile 47 ms; 2.2% of samples above the 50 ms budget) in Python on a two-core virtual machine, with accuracy equal to the fully converged MHE (Section 5).
4.3 Stability
Theorem 1 (Local robust stability of the real-time MHE).
Assume (S1)–(S3) hold for every visited active set, process and measurement disturbances are bounded by \bar{w} and \bar{v}, and active sets persist for at least \tau_{d} samples. Let \varepsilon_{p} bound the linear perturbation of the QP cost introduced by (12). Then there exist \underline{N}, \tau^{\ast}, r_{0}>0, C\geq 1, \eta\in(0,1), and gains \gamma_{w},\gamma_{v},\gamma_{p} such that, for N\geq\underline{N}, \tau_{d}\geq\tau^{\ast}, and |\hat{x}_{0}-x_{0}|\leq r_{0}, the real-time MHE satisfies, for all k,
|\hat{x}_{k}-x_{k}|\leq\max\big\{C\eta^{k}|\hat{x}_{0}-x_{0}|,\ \gamma_{w}\bar{w}+\gamma_{v}\bar{v}+\gamma_{p}\varepsilon_{p}\big\},where x=(q,\lambda).
Proof sketch.
Fixed active set, exact MHE. Proposition 3 gives local exponential strong detectability. Under this property, MHE with a sufficiently long horizon is a robust unknown-input estimator with exponential bounds [17, Thm. 3.6], which builds on the Lyapunov-based robust stability analysis of [21] and the detectability framework of [22].
Real-time iteration. With full-rank Gauss–Newton Jacobians, the single-QP scheme inherits the contraction of the exact MHE in a neighborhood of the solution, up to an additional term that is quadratic in the linearization error [14]. Choosing r_{0} small keeps this term dominated by the contraction.
Penalty. The QP has a positive-definite Gauss–Newton Hessian on the free directions and linearly independent active constraints, so its solution is unique and Lipschitz in the linear cost term. The penalty (12) therefore shifts the estimate by at most \gamma_{p}\varepsilon_{p}.
Changes of the active set. The Lyapunov functions of adjacent active sets are equivalent on the neighborhood, so the error bound grows by at most a factor \mu\geq 1 at each change. If \mu\,\eta^{\tau_{d}}<1, i.e., \tau_{d}\geq\tau^{\ast}=\ln\mu/\ln(1/\eta), a dwell-time argument [23] preserves exponential decrease across changes. ∎
Remark 3 (Scope).
Theorem 1 is local and mode-wise. Its detectability assumptions are proven to imply the needed property (Proposition 3) and are verified numerically along the simulated trajectories (Section 3.3), but the constants are not computed. Section 5.5 checks the predicted behavior empirically.
5 Simulation Study
This section compares the estimators on a finite-element ground truth. We first describe the setup and baselines, and then report the nominal comparison, robustness tests, convergence, model mismatch, and a control experiment without contact.
5.1 Ground truth
We simulated the robot in SOFA [24] with a corotational Timoshenko beam of 24 elements on rigid frames, with physical disk mass and rotational inertia. Routed tendons apply their load as distributed local moments T_{i}\,r\,(-\sin\alpha_{i},\cos\alpha_{i},0) in the frame of each element they pass through. We chose this representation because SOFA’s corotational beam mishandled the large follower compression that the equivalent point forces produce, while the axial strain neglected in this way is below 0.5%. The wall is a stiff penalty contact (3000 N/m) on the backbone points, offset by the disk radius. Five 40 s runs with randomized commands placed the wall 0.26–0.31 m from the base axis; the robot was in contact 67–94% of the time, with forces up to 4.7 N at 0.525–0.6 m of arc length. We tuned all estimators on a separate run.
5.2 Baselines
We compare against four estimators. PCC inversion fits a piecewise-constant-curvature model [25] to the tendon lengths by least squares. The other three share the model (1)–(3): an EKF without contact; an EKF with the 13 contact forces as random-walk states; and the same EKF with projection of each estimate onto \{\lambda\geq 0,\ g(q)\geq 0\} by a QP [15]. We tuned the EKFs’ force process noise on the tuning run over a grid of 0.02–0.5 N. The best values were 0.05 N without and 0.1 N with projection; an earlier untuned value of 0.5 N had overstated the MHE’s force advantage by approximately 2.5\times.
5.3 Nominal comparison
The real-time MHE estimated total contact force with an RMSE of 0.22 N and contact location with an error of 0.9 mm, compared with 0.72 N and 65 mm for the projected EKF (Table 2). Shape error was the same for both (3.0 and 3.2 mm), which shows that the gain comes from the contact constraints rather than from the model. Without projection, the EKF placed 6.6 N of force at points that were not in contact and estimated the robot 25.8 mm inside the wall, as Proposition 1 predicts. Figure 3 shows the effect over time: the projected EKF overestimated the force at 38 s (7.6 N versus 2.9 N) and its location estimate moved between candidate points by up to 0.3 m, while the MHE remained at the true contact point. The real-time MHE matched the fully converged MHE, with a slightly lower force error, likely due to the smoothing effect of the penalty (12).
- PCC
- 13.8 (2.3)
- –
- –
- –
- –
- –
- 0.5
- EKF, no contact
- 23.0 (3.2)
- –
- –
- –
- –
- –
- 91
- EKF + forces
- 5.6 (0.4)
- 2.44 (0.62)
- –
- 6.6
- 25.8
- 41
- 137
- EKF + projection
- 3.2 (0.3)
- 0.72 (0.26)
- 65 (12)
- 0.50
- 9.0
- 95
- 140
- MHE, IPOPT
- 3.0 (0.3)
- 0.25 (0.12)
- 2.1 (0.6)
- 0.009
- 0
- 98
- 580
- MHE, real time
- 3.0 (0.3)
- 0.22 (0.08)
- 0.9 (0.8)
- <0.001
- 0.04
- 98
- 28
5.4 Robustness
Table 3 and Fig. 5 summarize four further tests with unchanged tuning. First, an error of \pm 5 mm in the assumed wall position raised the MHE’s force error from 0.22 to at most 0.27 N, and its reported penetration, measured against its own wrong wall, stayed below 0.7 mm. The projected EKF’s location error nearly doubled when the wall was assumed 2 mm too close. Second, with Coulomb friction at the wall (\mu=0.1 and 0.3), implemented in the ground truth as tangential springs with slip at up to 2 N and modeled by no estimator, the MHE’s force error stayed below 0.8 N and its location error near 1 mm. The projected EKF showed repeated excursions to 30–150 N, likely because small tangential loads push its estimate along \ker G. Both estimators’ shape errors rose above 22 mm, because friction adds lateral loads and torsion that the model cannot explain. Third, with contact near the middle of the robot (0.375–0.5 m, with the wall at 0.13–0.16 m), the MHE’s location error rose to 17 mm, because contact spread across several candidate points spaced 50 mm apart; its force error of 0.48 N remained 3\times lower than the EKF’s.
- Nominal
- 0.22
- 0.9
- 3.0
- 0.72
- 65
- 3.2
- Wall assumed 2 mm too close
- 0.22
- 1.0
- 3.1
- 1.16
- 118
- 3.5
- Wall assumed 2 mm too far
- 0.24
- 0.9
- 3.2
- 0.50
- 36
- 3.2
- Wall assumed \pm 5 mm off
- \leq0.27
- \leq1.0
- \leq3.8
- –
- –
- –
- Wall friction \mu=0.1
- 0.61
- 1.3
- 22.4
- 19.4
- 286
- 28.7
- Wall friction \mu=0.3
- 0.78
- 1.4
- 23.1
- 18.2
- 269
- 29.0
- Mid-body contact
- 0.48
- 17
- 5.0
- 1.51
- 61
- 5.9
5.5 Convergence
To test the behavior predicted by Theorem 1, we perturbed the whole estimation window eight times during run 1, by 0.08 rad per joint and by a wrong force of 3–8 N at a random candidate point, giving initial deviations from the unperturbed estimate of up to 46 mm and 5.6 N. In all eight cases, the estimate returned to within 0.03 mm and 0.004 N of the unperturbed estimate within 2 s, decaying by approximately 10\times every 0.25 s (Fig. 6(a,b)). We also scaled the tendon-length noise from 0.05 to 0.8 mm. The force RMSE stayed at 0.28 N up to 0.2 mm and rose to 0.31 N at 0.4 mm and 0.50 N at 0.8 mm (Fig. 6(c)): the error is set by model mismatch until noise dominates, after which it grows with a bounded gain, as the theorem predicts.
5.6 Model mismatch
To test the estimator against a robot that differs from its model, we simulated 20 further runs in which the true stiffness was scaled by 0.86–1.15, the tendon offset by 0.94–1.07, and the structural damping by 0.72–1.28, and in which the tendon tension decayed along its routing with a capstan friction coefficient of 0–0.085. None of these effects is modeled. We evaluated each run with two noise realizations (40 trials) and unchanged tuning. Table 4 and Fig. 7 report the results. The MHE was better in force and location in all 40 trials (Wilcoxon signed-rank test, p=2\times 10^{-12}). Mismatch roughly doubled the MHE’s force error (0.22 to 0.40 N; 95th percentile 1.06 N) and raised its shape error from 3.0 to 7.5 mm, while the projected EKF degraded by 7\times in force and 3\times in location. The largest MHE force errors occurred when a soft robot (stiffness scaled by 0.86–0.9) was combined with tendon friction.
- Force RMSE (N)
- 0.40 [0.31, 0.51]
- 4.8 [3.7, 6.1]
- 40/40
- 2\times 10^{-12}
- Location error (mm)
- 2.8 [2.0, 3.6]
- 193 [155, 232]
- 40/40
- 2\times 10^{-12}
- Shape error (mm)
- 7.5 [6.6, 8.4]
- 10.7 [9.6, 12.0]
- 30/40
- 7\times 10^{-6}
- Max penetration (mm)
- 0.37 [0.15, 0.65]
- 15.6 [10.4, 22.1]
- 37/40
- 3\times 10^{-11}
- Contact detection (%)
- 94
- 83
- –
- –
5.7 Control experiment: motion without contact
To test whether the MHE’s advantage depends on the contact constraints, we ran a separate study without obstacles, in which an unknown payload of 40–120 g (nominal) or 150–350 g (heavy) was attached to the tip during each 40 s run, and in which 2% of the length measurements were replaced by 3–8 mm outliers (outliers). The estimators used the model without torsion and estimated the payload as an additional state, constrained to be non-negative in the MHE. Table 5 reports the results over five runs per condition. The MHE and the EKF reached the same shape and payload accuracy in every condition; a robust (pseudo-Huber) MHE reduced shape error under outliers by 9%, which is within one standard deviation. Both model-based estimators were limited by the reduced model: with the true payload and no noise, the model alone gave shape errors of 4–13 mm. Without contact constraints, the MHE therefore offers no advantage, which supports our conclusion that its benefit comes from encoding complementarity.
- PCC
- 4.14 (0.39)
- –
- 9.42 (1.46)
- –
- 5.24 (0.40)
- –
- EKF
- 3.52 (0.37)
- 8.3
- 7.70 (2.08)
- 20.4
- 4.01 (0.37)
- 10.2
- MHE
- 3.55 (0.38)
- 8.3
- 7.75 (2.10)
- 20.1
- 3.98 (0.39)
- 10.8
- Robust MHE
- 3.55 (0.39)
- 8.6
- 7.89 (2.09)
- 22.4
- 3.65 (0.37)
- 9.0
6 Discussion and Conclusion
We presented an analysis and an estimator for locating contact on tendon-driven continuum robots using only tendon lengths and tensions. A key takeaway is that the information needed to locate contact is not in the measurements but in the geometry: tendon measurements leave at least seven force directions unobservable, and a known obstacle with complementarity restores identifiability and strong detectability. Using this insight, we presented a constrained MHE that runs in real time and locates contact to approximately 1 mm in a finite-element benchmark, where a tuned EKF with projection does not. The control experiment without contact, in which the MHE and the EKF performed identically, confirms that the benefit comes from the constraints rather than from the optimization.
The approach is well suited to tasks in which the geometry of the surroundings is known or can be measured beforehand, such as instrument guidance against registered anatomy or manipulation inside known enclosures. There are situations in which it would not be the choice, such as contact with unknown or moving obstacles, where shape sensing remains necessary. One question that remains open is how best to combine the two: for example, by estimating a parametrized obstacle together with the contact forces.
This work has several limitations, at least in its current form. First, all results are in simulation; the ground truth is a beam finite-element model, and effects such as hysteresis, manufacturing tolerances, and sensor bias remain untested. Second, the estimator assumes a known planar obstacle and frictionless contact; friction preserved force accuracy but degraded shape estimation to more than 22 mm. Third, contact near the middle of the robot spreads over adjacent candidate points, which raised the location error to 17 mm; a finer or continuous contact parametrization would likely reduce it. Fourth, Theorem 1 is local and mode-wise, with constants that we did not compute, and the conditions of Proposition 3 were verified numerically along the simulated trajectories rather than proven for all configurations. Finally, timing was measured in Python, and a compiled implementation is needed for hard real-time guarantees. Future work will validate the estimator on a tendon-driven prototype pressing on an instrumented surface, add friction cones and curved obstacles to the constraints, and quantify how uncertainty in the obstacle geometry propagates to the contact estimate.
Acknowledgment
Portions of the manuscript text, the simulation and analysis code, and the figures were drafted with the assistance of the AI system Claude (Anthropic) [26]; the author reviewed, verified, and takes full responsibility for all content.
Data and code availability
The simulation scenes, estimator code, and result data are available from the author upon request.