betaFeedback

WorksEngineering

Stabilizing Low-Stiffness Soft Robots at Unstable Equilibria: A Model-Based Optimal Control Approach

Abstract

Continuum soft robots are highly nonlinear and underactuated systems, which makes stabilizing them around unstable equilibrium points difficult. This challenge becomes even greater in low stiffness regimes, where gravitational forces dominate elastic forces. In this letter, we explore whether optimal control can address these challenges using a computa- tionally efficient method suitable for real time use. We propose a nonlinear model predictive control (NMPC) approach based on Differential Dynamic Programming (DDP), combined with an accurate reduced order Variable Strain model with analytical derivatives. This results in an efficient control framework for addressing the stabilization problem. Tested on a soft inverted pendulum and other hybrid soft rigid systems, the method outperforms traditional controllers, stabilizes more challenging configurations, and operates reliably at real time speeds (50 150 Hz), demonstrating both effectiveness and practical feasibility in experimental settings.

Introduction

Soft robotics has grown rapidly over the past decade, driven by advances in materials, fabrication, and new technologies [1]. Although soft robotics have advanced substantially, their widespread deployment remains limited by the difficulty of achieving precise and reliable control [2].

This perspective has recently shifted, primarily due to the development of reduced-order models that provide tractable and interpretable representations of soft robot dynamics [3]. Beyond the well-known Piecewise Constant Curvature (PCC) assumption for modeling, more general reduced-order formulations—including Geometrically Variable Strain (GVS) approaches [4] and polynomial curvature models [5]—offer dynamically consistent, finite-dimensional yet accurate Cosserat-rod-based representations that are well suited for control design.

Optimal control is widely used to stabilize underactuated rigid systems around their unstable equilibrium configurations; however, its real-time application to soft robots remains challenging. Model Predictive Control (MPC), valued for its explicit handling of constraints and uncertainties [10], [11], is commonly employed with learned models [12]. Data-driven methods [13], [14] are typically integrated within MPC frameworks, while reduced-order FEM approaches enable real-time receding-horizon control [15], [16] and offline trajectory optimization [17]. Fully nonlinear MPC remains limited to simplified or learned models. A notable exception is [18], which investigates analytical model-based optimal control for soft robots. However, its integration with nonlinear optimal control has so far only been demonstrated in simulation, without real-time validation or evidence of improved stabilization around unstable equilibria in low-stiffness regimes.

Despite recent progress, important gaps remain: collocated methods are constrained by stiffness limitations, non-collocated strategies do not fully overcome low-stiffness challenges, and optimal control implementations rely either on simplified models with limited generalization capability or on high-dimensional models that are impractical for real-time deployment. Then, the central research question we address is: How can real-time optimal control methods be used to accurately and efficiently control soft robots operating in low-stiffness regimes around unstable equilibrium configurations?

We develop a control approach that combines an

ends_mid=1 analytical reduced-order model of soft robot configurations with a nonlinear model predictive control (NMPC) framework. By exploiting analytical dynamics gradients, the method enables efficient Differential Dynamic Programming (DDP) iterations for real-time closed-loop control. The approach stabilizes systems in mass–stiffness regimes where zero-dynamics constraints prevent both collocated and non-collocated model-based controllers from stabilizing unstable equilibria, while maintaining robustness and generalization across soft and hybrid robotic systems within a unified modeling–control framework.

Preliminaries

Lagrangian form of soft robots

A slender soft body of length LL can be modeled as a Cosserat rod, represented as a continuous stack of rigid cross-sections parameterized by a curvilinear abscissa s∈[0,1]s \in[0,1]. Each cross-section is assigned a rigid-body configuration through the homogeneous transformation g(s)∈SE(3)\boldsymbol{g}(s) \in SE(3), which defines the directed spatial curve g(∙):s→g(s)\boldsymbol{g}(\bullet):s \to\boldsymbol{g}(s). The rod configuration is parameterized by a strain field, which is discretized using a finite set of generalized coordinates [4]. The rod dynamics in these coordinates are obtained by integrating the free-body equations derived from Cosserat equilibrium along the rod length, projecting them onto the generalized-coordinate space, q\boldsymbol{q}, via the Jacobian, and incorporating the elastic, damping, and actuation laws. The resulting dynamics can be written in the form:

M(q)q¨+C(q,q˙)q˙+Kq+G(q)+Dq˙=A(q)u(1)M(\boldsymbol{q})\ddot{\boldsymbol{q}}+C(\boldsymbol{q},\dot{\boldsymbol{q}})\dot{\boldsymbol{q}}+K\boldsymbol{q}+G(\boldsymbol{q})+D\dot{\boldsymbol{q}}=A(\boldsymbol{q})\boldsymbol{u} \tag*{(1)}

where M(q)∈Rn×nM(\boldsymbol{q}) \in\mathbb{R}^{n \times n}, is the generalized mass matrix, C(q,q˙)∈Rn×nC(\boldsymbol{q},\dot{\boldsymbol{q}}) \in\mathbb{R}^{n \times n} is the Coriolis matrix, D∈Rn×nD \in\mathbb{R}^{n \times n} is the elastic damping matrix, K∈Rn×nK \in\mathbb{R}^{n \times n} is the stiffness matrix, G(q)∈RnG(\boldsymbol{q}) \in\mathbb{R}^{n} is the gravitational force. The term A(q)∈Rn×naA(\boldsymbol{q}) \in\mathbb{R}^{n \times n_a} denotes the actuation matrix, which maps control inputs u\boldsymbol{u} into the Lagrangian generalized forces τa\boldsymbol{\tau}_a.

Collocated form

A Lagrangian system of the form (1) can be conveniently reformulated by separating the dynamic equations of the actuated θa∈Rna\boldsymbol{\theta}_a \in\mathbb{R}^{n_a} and unactuated variables θu∈Rn−na\boldsymbol{\theta}_u \in\mathbb{R}^{n-n_a}, such that θ=[θaT,θuT]T\boldsymbol{\theta}=[\boldsymbol{\theta}_a^T,\boldsymbol{\theta}_u^T]^T. Finding a more suitable representation of the system dynamics can greatly simplify both analysis and control design through an appropriate transformation of the generalized coordinates. This procedure is described in detail in [19]. After performing the change of coordinates, the decoupled dynamics of the system can be expressed as:

[M~aaM~auM~uaM~uu][θ¨aθ¨u]+[C~aaC~auC~uaC~uu][θ˙aθ˙u]+[G~aG~u]+[K~aaK~auK~uaK~uu][θaθu]+[D~aaD~auD~uaD~uu][θ˙aθ˙u]=[u0](2)\begin{bmatrix} \widetilde{M}_{aa} & \widetilde{M}_{au} \\ \widetilde{M}_{ua} & \widetilde{M}_{uu} \end{bmatrix} \begin{bmatrix} \ddot{\boldsymbol{\theta}}_a \\ \ddot{\boldsymbol{\theta}}_u \end{bmatrix} + \begin{bmatrix} \widetilde{C}_{aa} & \widetilde{C}_{au} \\ \widetilde{C}_{ua} & \widetilde{C}_{uu} \end{bmatrix} \begin{bmatrix} \dot{\boldsymbol{\theta}}_a \\ \dot{\boldsymbol{\theta}}_u \end{bmatrix} + \begin{bmatrix} \widetilde{G}_a \\ \widetilde{G}_u \end{bmatrix} + \begin{bmatrix} \widetilde{K}_{aa} & \widetilde{K}_{au} \\ \widetilde{K}_{ua} & \widetilde{K}_{uu} \end{bmatrix} \begin{bmatrix} \boldsymbol{\theta}_a \\ \boldsymbol{\theta}_u \end{bmatrix} + \begin{bmatrix} \widetilde{D}_{aa} & \widetilde{D}_{au} \\ \widetilde{D}_{ua} & \widetilde{D}_{uu} \end{bmatrix} \begin{bmatrix} \dot{\boldsymbol{\theta}}_a \\ \dot{\boldsymbol{\theta}}_u \end{bmatrix} = \begin{bmatrix} \boldsymbol{u} \\ \boldsymbol{0} \tag*{(2)} \end{bmatrix}

where, for compactness, we define, h~=C~θ˙+G~+K~θ+D~θ˙\widetilde{\boldsymbol{h}}=\widetilde{C}\dot{\boldsymbol{\theta}}+\widetilde{G}+\widetilde{K}\boldsymbol{\theta}+\widetilde{D}\dot{\boldsymbol{\theta}}. Based on the general form in (2), different control strategies can be employed. Here, we focus on open-loop and closed-loop approaches. In particular, we consider the following purely feedforward controller and collocated PFL:

u=G~a(θˉ)+K~aa(θˉ)θˉa+K~au(θˉ)θˉu(3)\boldsymbol{u}=\widetilde{G}_a(\bar{\boldsymbol{\theta}})+\widetilde{K}_{aa}(\bar{\boldsymbol{\theta}})\bar{\boldsymbol{\theta}}_a+\widetilde{K}_{au}(\bar{\boldsymbol{\theta}})\bar{\boldsymbol{\theta}}_u \tag*{(3)}
u=(h~a−M~auM~uu−1h~u)+(M~aa−M~auM~uu−1M~ua)τ(4)\boldsymbol{u}=\left(\widetilde{\boldsymbol{h}}_a-\widetilde{M}_{au}\widetilde{M}_{uu}^{-1}\widetilde{\boldsymbol{h}}_u\right)+\left(\widetilde{M}_{aa}-\widetilde{M}_{au}\widetilde{M}_{uu}^{-1}\widetilde{M}_{ua}\right)\boldsymbol{\tau} \tag*{(4)}

where τ=−KPθ˙a−KDθ˙a\boldsymbol{\tau}=-K_P\dot{\boldsymbol{\theta}}_a-K_D\dot{\boldsymbol{\theta}}_a; KP>0K_P>0; KD>0K_D>0

Methodology

Instability Analysis

For underactuated systems such as soft robots, zero dynamics describe the internal behavior of the unactuated coordinates when the outputs are constrained by control. Their stability determines whether the internal dynamics remain bounded. We show here that specific combinations of stiffness and gravity terms relative to mass terms, the system cannot be stabilized using state of the art control approaches.

Proposition 1 (Open-Loop instability). Consider the open-loop soft robot dynamics (2) subject to a constant control action (3) and suppose that (θˉ,0)(\bar{\boldsymbol{\theta}},\boldsymbol{0}) be an equilibrium. Assume the inertia and damping matrices satisfy M~≻0\widetilde{M} \succ0 and D~≻0\widetilde{D} \succ0. Let the Hessian of the potential energy at the equilibrium be:

H=K~+∇θG~∣θ=θˉ(5)H=\widetilde{K}+\nabla_{\boldsymbol{\theta}}\widetilde{G}\big|_{\boldsymbol{\theta}=\bar{\boldsymbol{\theta}}} \tag*{(5)}

If HH possesses at least one negative eigenvalue, i.e., H⪰̸0H \not\succeq0, then the equilibrium (θˉ,0)(\bar{\boldsymbol{\theta}},\boldsymbol{0}) is unstable.

Proof. Define the displacement variable x=θ−θˉ\boldsymbol{x}=\boldsymbol{\theta}-\bar{\boldsymbol{\theta}}. Linearizing the dynamics at the equilibrium (θˉ,0)(\bar{\boldsymbol{\theta}},\boldsymbol{0}) yields M~ex¨+D~ex˙+Hx=0\widetilde{M}_e\ddot{\boldsymbol{x}}+\widetilde{D}_e\dot{\boldsymbol{x}}+H\boldsymbol{x}=\boldsymbol{0}, where M~e:=M~(θˉ)\widetilde{M}_e:=\widetilde{M}(\bar{\boldsymbol{\theta}}), D~e:=D~(θˉ)\widetilde{D}_e:=\widetilde{D}(\bar{\boldsymbol{\theta}}) and H=∇2U(θ)H=\nabla^2 U(\boldsymbol{\theta}), with U(θ)U(\boldsymbol{\theta}) a potential function satisfying ∇U(θ)=K~θ+G~(θ)\nabla U(\boldsymbol{\theta})=\widetilde{K}\boldsymbol{\theta}+\widetilde{G}(\boldsymbol{\theta}). Introducing the state vector z=[xT x˙T]T\boldsymbol{z}=[\boldsymbol{x}^T\ \dot{\boldsymbol{x}}^T]^T, the linearized system takes the form z˙=Az\dot{\boldsymbol{z}}=A\boldsymbol{z} with

A=[0I−M~e−1H−M~e−1D~e].A= \begin{bmatrix} \boldsymbol{0} & I \\ -\widetilde{M}_e^{-1}H & -\widetilde{M}_e^{-1}\widetilde{D}_e \end{bmatrix}.

The eigenvalues of AA satisfy the characteristic equation det⁡(λ2M~e+λD~e+H)=0\det(\lambda^2\widetilde{M}_e+\lambda\widetilde{D}_e+H)=0. Since M~e≻0\widetilde{M}_e\succ0 and D~e≻0\widetilde{D}_e\succ0 while HH has negative eigenvalues (H⪰̸0H\not\succeq0), the quadratic matrix polynomial above has at least one real positive eigenvalue. Consequently, the linearized system is unstable. By Lyapunov’s indirect method, the equilibrium (θˉ,0)(\bar{\boldsymbol{\theta}},\boldsymbol{0}) of the nonlinear system is therefore unstable.

:::

Proposition 2 (Collocated PFL instability). Consider the soft robot dynamics in (2) together with the control law (4). Let the Hessian of the potential energy of the unactuated coordinates at the equilibrium be:

Hu=K~uu+∇θuG~u∣θ=θ∗(6)H_u = \widetilde{K}_{uu} + \left.\nabla_{\theta_u}\widetilde{G}_u\right|_{\theta=\theta^*} \tag*{(6)}

If HuH_u possesses at least one negative eigenvalue, i.e., Hu⪰̸0H_u \not\succeq0, then the equilibrium (θˉ,0)(\bar{\theta},0) is unstable.

Proof: By introducing the control law (4) in (2), it is straightforward to show that the actuated variables θa\theta_a are regulated to a constant value θa∗\theta_a^*. However, the presence of unactuated coordinates implies that the system still exhibits internal dynamics of dimension 2(n−na)2(n-n_a). These dynamics can be obtained by examining the residual dynamics in (2) after imposing θ˙a=0\dot{\theta}_a=0 and θ¨a=0\ddot{\theta}_a=0:

M~uu(θa∗,θu)θ¨u+C~uu(θa∗,θu,0,θ˙u)θ˙u+G~u(θa∗,θu)+K~uaθa∗+K~uuθu+D~uu(θa∗,θu)θ˙u=0.(7)\widetilde{M}_{uu}(\theta_a^*,\theta_u)\ddot{\theta}_u+\widetilde{C}_{uu}(\theta_a^*,\theta_u,0,\dot{\theta}_u)\dot{\theta}_u+\widetilde{G}_u(\theta_a^*,\theta_u)+\widetilde{K}_{ua}\theta_a^*+\widetilde{K}_{uu}\theta_u+\widetilde{D}_{uu}(\theta_a^*,\theta_u)\dot{\theta}_u=0. \tag*{(7)}

Linearizing the dynamics (7) at the equilibrium (θˉ,0)(\bar{\theta},0) and proceeding similarly to Proposition 1. We can obtain that the eigenvalues of the unactuated submatrix AuA_u satisfy the characteristic equation

det⁡(λ2M~uu,e+λD~uu,e+Hu)=0\det\left(\lambda^2\widetilde{M}_{uu,e}+\lambda\widetilde{D}_{uu,e}+H_u\right)=0

where M~uu,e:=M~uu(θˉ)\widetilde{M}_{uu,e}:=\widetilde{M}_{uu}(\bar{\theta}), D~uu,e:=D~uu(θˉ)\widetilde{D}_{uu,e}:=\widetilde{D}_{uu}(\bar{\theta}). Since M~uu,e≻0\widetilde{M}_{uu,e}\succ0 and D~uu,e≻0\widetilde{D}_{uu,e}\succ0 while HuH_u has negative eigenvalues (Hu⪰̸0H_u\not\succeq0), the quadratic matrix polynomial above has at least one real positive eigenvalue. Consequently, the linearized system is unstable. By Lyapunov’s indirect method, the equilibrium (θˉ,0)(\bar{\theta},0) of the nonlinear system is therefore unstable.

Remarks on Instability

The stability of underactuated soft robotic systems is strongly influenced by the Hessian of the potential energy and the internal dynamics. In open loop, the equilibrium becomes unstable when the Hessian of the potential energy satisfies H⪰̸0H\not\succeq0, which typically occurs when the system stiffness is insufficient for elastic forces to dominate gravity.

With collocated partial feedback linearization (PFL), closed-loop stability depends on the zero dynamics and becomes unstable when Hu⪰̸0H_u\not\succeq0 at the equilibrium. Notably, Hu⪰̸0H_u\not\succeq0 implies H⪰̸0H\not\succeq0, whereas the converse does not necessarily hold, allowing collocated PFL to extend the range of low-stiffness regimes with respect to the open-loop case. Although non-collocated PFL linearizes unactuated coordinates and allows pole placement via linear feedback (e.g., linear–quadratic regulator (LQR)), no general stabilization method exists for soft robotic systems. Moreover, such controllers typically provide only local stabilization near the equilibrium and are not suitable for regulating trajectories starting far from the desired configuration. The region of attraction becomes very small in very low-stiffness regimes.

Problem Formulation

The objective of this work is to stabilize the robot around unstable equilibria, particularly in low-stiffness regimes where traditional collocated control strategies fail.

Consider a slender soft robot modeled using an accurate reduced-order formulation (e.g., Polynomial Curvature or GVS-based models), resulting in a discretized nonlinear dynamic system of the form xk+1=fd(xk,uk)\mathbf{x}_{k+1}=f_d(\mathbf{x}_k,\mathbf{u}_k), where xk∈R2n\mathbf{x}_k\in\mathbb{R}^{2n} is the state vector (positions and velocities), uk∈Rna\mathbf{u}_k\in\mathbb{R}^{n_a} is the control input, and fdf_d represents the discretized system dynamics. The system is underactuated, i.e., na<nn_a<n. The optimal control problem is formulated in discrete time as

min⁡u0,…,uN−1 ℓf(xN)+∑k=0N−1ℓ(xk,uk)\min_{\mathbf{u}_0,\ldots,\mathbf{u}_{N-1}}\ \ell_f(\mathbf{x}_N)+\sum_{k=0}^{N-1}\ell(\mathbf{x}_k,\mathbf{u}_k)
s.t.xk+1=fd(xk,uk),k=0,…,N−1,\text{s.t.}\quad\mathbf{x}_{k+1}=f_d(\mathbf{x}_k,\mathbf{u}_k),\quad k=0,\ldots,N-1,
x0=xinit,uk∈U, xk∈X.(8)\mathbf{x}_0=\mathbf{x}_{\mathrm{init}},\quad\mathbf{u}_k\in\mathcal{U},\ \mathbf{x}_k\in\mathcal{X}. \tag*{(8)}

Here, ℓ(xk,uk)\ell(\mathbf{x}_k,\mathbf{u}_k) is the stage cost penalizing deviation from the target state and control effort, while ℓf(xN)\ell_f(\mathbf{x}_N) is a terminal cost. The control objective is to regulate the robot to a desired equilibrium xˉ=[qˉT,0T]T\bar{\mathbf{x}}=[\bar{\mathbf{q}}^T,0^T]^T.

Differential Dynamic Programming for NMPC

DDP is an efficient trajectory optimization algorithm for nonlinear dynamical systems. For the shape regulation problem, the optimal control problem can be discretized with quadratic stage and terminal costs:

min⁡u1,…,uN−112x~NTWNx~N+∑k=1N−1(12x~kTWkx~k+12ukTRkuk)\min_{\mathbf{u}_1,\ldots,\mathbf{u}_{N-1}}\frac{1}{2}\tilde{\mathbf{x}}_N^T W_N\tilde{\mathbf{x}}_N+\sum_{k=1}^{N-1}\left(\frac{1}{2}\tilde{\mathbf{x}}_k^T W_k\tilde{\mathbf{x}}_k+\frac{1}{2}\mathbf{u}_k^T R_k\mathbf{u}_k\right)
s.t.xk+1=fd(xk,uk),x~k=(xk−xg)(9)\text{s.t.}\quad\mathbf{x}_{k+1}=f_d(\mathbf{x}_k,\mathbf{u}_k),\quad\tilde{\mathbf{x}}_k=(\mathbf{x}_k-\mathbf{x}_g) \tag*{(9)}

where WkW_k and RkR_k are positive semi-definite and positive definite weighting matrices, respectively.

DDP is derived from Bellman’s principle of optimality. Let Vk∗(x)V_k^*(\mathbf{x}) denote the optimal cost-to-go from time step kk. The dynamic programming recursion is

Vk∗(x)=min⁡u(ℓ(x,u)+Vk+1∗(fd(x,u))),(10)V_k^*(\mathbf{x})=\min_{\mathbf{u}}\left(\ell(\mathbf{x},\mathbf{u})+V_{k+1}^*(f_d(\mathbf{x},\mathbf{u}))\right), \tag*{(10)}

where ℓ(x,u)\ell(\mathbf{x},\mathbf{u}) denotes the stage cost. Since computing Vk∗(x)V_k^*(\mathbf{x}) exactly is intractable for nonlinear systems, DDP approximates the state–action value function

Qk(x,u)=ℓ(x,u)+Vk+1(fd(x,u)),(11)Q_k(\mathbf{x},\mathbf{u})=\ell(\mathbf{x},\mathbf{u})+V_{k+1}(f_d(\mathbf{x},\mathbf{u})), \tag*{(11)}

with a second-order Taylor expansion around a nominal trajectory (xk,uk)(\mathbf{x}_k,\mathbf{u}_k). This local quadratic model allows the optimal control variation to be computed analytically as

δuk=−Quu,k−1(Qu,k+Qux,kδxk)=−lk−Kkδxk,(12)\delta\mathbf{u}_k=-Q_{\mathbf{u}\mathbf{u},k}^{-1}(Q_{\mathbf{u},k}+Q_{\mathbf{u}\mathbf{x},k}\delta\mathbf{x}_k)=-\mathbf{l}_k-\mathbf{K}_k\delta\mathbf{x}_k, \tag*{(12)}

where lk\mathbf{l}_k is the feedforward term and Kk\mathbf{K}_k is the time-varying feedback term. Notice that Quu,k,Qu,k,Qux,kQ_{\mathbf{u}\mathbf{u},k},Q_{\mathbf{u},k},Q_{\mathbf{u}\mathbf{x},k} depends on the partial derivatives ∇xfd,∇ufd,∇x,x2fd,∇u,u2fd,∇x,u2fd\nabla_{\mathbf{x}}f_d,\nabla_{\mathbf{u}}f_d,\nabla_{\mathbf{x},\mathbf{x}}^2f_d,\nabla_{\mathbf{u},\mathbf{u}}^2f_d,\nabla_{\mathbf{x},\mathbf{u}}^2f_d.

During the backward pass, these quantities are computed recursively together with the local quadratic approximation of the value function. A forward pass then applies the updated control law and propagates the nonlinear dynamics to obtain a new trajectory. The process is repeated until the cost converges. The resulting feedforward and feedback terms provide a local control policy

uk=uk∗−Kk(xk−xk∗)(13)\mathbf{u}_k = \mathbf{u}_k^* - K_k(\mathbf{x}_k - \mathbf{x}_k^*) \tag*{(13)}

although in many implementations only the first optimized control input uk∗\mathbf{u}_k^* is applied to the system, the finite-horizon optimal control is shifted forward and solved again at the next step.

Implementation Details for Real-Time Deployment

The successful real-time control of a soft robot systems in low-stiffness regimes requires both an accurate dynamic model and a control strategy that adapts to the robot motion in real time. To efficiently compute the system dynamics and their gradients required by DDP, we adopt the variable strain parametrization based on the GVS model [4]. The kinematics are computed recursively using the Magnus expansion with a fourth-order Zanna quadrature approximation of the variable strain field, combined with Gauss quadrature for efficient integration. This results in a recursive algorithm for computing the Lagrangian dynamics of the system.

We employ an iLQR-type DDP formulation, where the dynamics are linearized and the cost is quadratically approximated using first-order system derivatives, while second-order derivatives of the dynamics are neglected. The Jacobians ∇xfd\nabla_x f_d, ∇ufd\nabla_u f_d can be analytically differentiated using the adapted RNEA for GVS introduced in [20]. To implement NMPC, the DDP solver is embedded in a receding-horizon framework. At each sampling instant tkt_k, a finite-horizon optimal control problem is solved using the current measured state as the initial condition. Unlike offline trajectory optimization, NMPC must operate in real time. Therefore, instead of iterating DDP until convergence, only a small number of backward–forward passes (1-3) are executed at each time step. To accelerate convergence, the solver is warm-started using the shifted solution from the previous NMPC iteration. This allows NMPC to retain the predictive and optimizing properties of DDP while remaining computationally feasible for real-time control. The control framework was first prototyped and validated in simulation in MATLAB, where the DDP/NMPC pipeline, cost shaping, and model verification were developed. For the computational times reported here in simulation, as well as for real-time execution on hardware, the controller and system dynamics were reimplemented in C++ using the Crocoddyl library [21] for shooting-based optimal control.

Simulation Results

This section evaluates the NMPC/DDP controller in simulation and compares it with state-of-the-art techniques for controlling underactuated soft robots. The algorithm is first tested on the Soft Inverted Pendulum (SIP) with length L=1L = 1 m and radius r=0.03r = 0.03 m. The material properties are ρ=103\rho= 10^3 kg/m3^3, ν=104\nu= 10^4 Pa·s, ν=0.5\nu= 0.5, and E=1×106E = 1 \times10^6 Pa. To demonstrate the superiority of the proposed approach over PFL techniques, especially in low-stiffness regimes, the mass and Young’s modulus parameters are subsequently varied. The NMPC simulation uses a time step dt=0.01dt = 0.01 s, a prediction horizon of N=100N = 100 steps (1.00 s), and a total simulation length of T=2000T = 2000 steps (20.00 s).

Baseline Performance on the Soft Inverted Pendulum

Our proposed methodology is first tested on the SIP system, where the base is clamped and a torque is applied at the tip to control the motion. The cost weights are defined as W=0.1I4W = 0.1 I_4 for the running state cost, R=diag⁡(1)R = \operatorname{diag}(1) for the control cost, and WN=diag⁡(102,102,101,101)W_N = \operatorname{diag}(10^2, 10^2, 10^1, 10^1) for the terminal state cost. The system is initialized at x0=[8.5879,−11.5744,0,0]T\mathbf{x}_0 = [8.5879, -11.5744, 0, 0]^{T} and the target state is xg=0\mathbf{x}_g = 0, corresponding to the unstable upright equilibrium that the controller aims to stabilize. The approach efficiently achieves swing up trajectory as shown in Figure 1a, with a settling time of 1.70 s (5% band). Control remains moderate (∥u∥∞≈9.77\lVert u \rVert_\infty\approx9.77) and the final cost vanishes.

Stroboscopic plot and force responses for the SIP

Figure 1. (a) Stroboscopic plot of the SIP during swing-up and stabilization under NMPC; (b) response to an external force of 3 N applied at the tip; and (c) response to an external force of 8 N applied at the midpoint.

Closed-loop robustness was also evaluated by applying exogenous forces at the tip and midpoint of the link within the range [0, 15] N after the system completed the swing-up trajectory. The system demonstrates strong robustness to disturbances, with recovery times clustering around 1.1–1.4 s for all cases, even for large forces applied at the tip. Figure 1b and Figure 1c show the results for a 3 N force applied at the tip and a 8 N force applied at the midpoint, respectively.

We also compared the use of analytical and numerical derivatives (see Figure 2). Employing analytical expressions provides a clear computational advantage, yielding approximately a 4.4× reduction in the average per-step solve time (about 10.2 ms vs. 45.2 ms). This improvement enables significantly higher control rates (≈98\approx98 Hz vs. 22 Hz) while maintaining comparable accuracy.

Figure 2. Analytical vs. numerical (finite-difference) dynamics gradients in NMPC/DDP.

Stabilization Capabilities of NMPC/DDP

This section compares the NMPC/DDP controller with two controller baselines, (3) and (4), for which the conditions under which the system starts to become unstable were previously derived. Apart from that, we also apply a non-collocated PFL controller developed in [6]. This can be done for this system because the dimension of the unactuated part and the actuated are the same. Therefore, we can linearize the unactuated dynamics, obtaining θ¨u=u\ddot{\theta}_u = u, and then apply LQR to the linearized system around the equilibrium. The objective is to demonstrate that NMPC can stabilize operating points in regions where the existing controllers fail. The evaluation is performed on the SIP system with the parameters mentioned previously, but including variations in Young’s modulus and mass density.

Controller performance is evaluated over a grid of mass-stiffness pairs m∈{1,…,9}m \in\{1,\ldots,9\}, σ:=log⁡10(1/k)∈{0,1,…,100}\sigma:= \log_{10}(1/k) \in\{0,1,\ldots,100\}, where the logarithmic parameterization emphasizes low-stiffness regimes. The stiffness parameter k=EJyk = EJ_y collects the bending properties, while m=ρAm = \rho A represents the inertia per unit length for this planar example.

Figure 3 summarizes control feasibility across the (m,k)(m,k) plane. The bounds defined by blue curve and red curve delineate the region in which collocated PFL is theoretically valid. As mm increases, both thresholds shift downward, thereby widening the feasible band.

Feasibility regions over mass and stiffness for open-loop stability and PFL

Figure 3. Feasibility regions over (m,k)(m,k) for open-loop stability and collocated PFL, with analytically derived bounds. Non-collocated PFL and NMPC/DDP are evaluated beyond these analytical limits. Stable operation lies below each curve, and the purple arrow indicates decreasing stiffness.

Collocated PFL operates reliably only within a limited analytically defined region, while non-collocated PFL stabilizes a larger portion of the mass–stiffness plane at the cost of higher control effort and can handle significantly lower stiffness values. However, beyond a certain stiffness threshold, even the non-collocated approach fails despite the equilibrium remaining locally attractive. NMPC/DDP remains effective beyond the feasibility limits of both PFL methods, especially for high mass and low stiffness where unfavorable zero dynamics limit PFL, demonstrating the benefit of predictive optimal control.

Scalability and Generalization

The controller’s generalizability is tested on two additional soft robotic systems: the R-SIP and the Soft Furuta system. The R-SIP uses a rigid revolute joint at the base where the torque is applied, with a soft link whose bending is modeled using a second-order polynomial yielding to n=3+1n = 3+1. The Soft Furuta system consists of a rigid driving arm that rotates about the zz-axis, with a soft appendage attached to the tip of the arm through a revolute joint. The deformation of the soft appendage is modeled using a linear polynomial in the curvature within the same framework yielding to n=2+1n = 2+1. Results in Figure 4 shows that NMPC/DDP successfully performs swing-up and stabilization for both systems, producing smooth transients, bounded control effort, and rapid convergence to the upright equilibrium despite underactuation and low stiffness.

Simulation results: (a) shape evolution of the R-SIP; (b) shape evolution of the Soft Furuta system; and (c) state evolution and control input of the Soft Furuta system.

Figure 4. Simulation results: (a) shape evolution of the R-SIP; (b) shape evolution of the Soft Furuta system; and (c) state evolution and control input of the Soft Furuta system.

From a computational perspective, the approach scales well with model complexity. The per-step solve time increases from 7.05 ms (n=2n = 2) to 27.61 ms (n=5n = 5), with intermediate values of 17.19 ms (n=3n = 3) and 25.53 ms (n=4n = 4). This corresponds to achievable control frequencies ranging from approximately 150 Hz to 50 Hz. These results indicate that the framework remains computationally tractable and maintains real-time performance as the number of deformation modes increases.

Experimental Results

The approach was experimentally validated on a 7-DoF Franka Emika Panda manipulating a 0.76 m deformable cable grasped at a single point. The cable-gripper system is modeled as a R-SIP, composed of a rigid revolute joint at the gripper followed by a soft link representing the cable. The control task consists of swinging the system from the stable downward equilibrium to an unstable configuration and switching between two lateral equilibria. Material parameters were experimentally identified following [22], yielding a Young’s modulus of 22.07 MPa, density 3546.6 kg/m3^{3}, and elastic damping 2 MPa · s. Quadratic curvature polynomials in yy (planar movement) yield a 3-DoF model of the soft system plus the degree of freedom of the revolute joint. The cable states q\mathbf{q} are estimated using an OptiTrack motion-capture system that tracks several markers. Their positions are then used to reconstruct the configuration through inverse kinematics. Figure 5 presents snapshots of the experiments together with the desired shapes computed from the equilibrium model. Figure 6 compares the experimental trajectories obtained with the NMPC controller to the corresponding simulated NMPC solution. The close agreement indicates that the robot successfully reproduces the planned motion. Minor deviations are mainly caused by modeling inaccuracies and cable hysteresis (left/right asymmetry). The reference is tracked sufficiently well to complete the task despite the Franka robot’s joint-speed limits not being explicitly enforced as hard NMPC constraints.

Franka–cable swing-up and transition between two equilibrium configurations to be regulated

Figure 5. Franka–cable swing-up and transition between two equilibrium configurations to be regulated (black lines).

State trajectories ($q_0$–$q_3$): comparison between the NMPC/DDP simulation and the experiment.

Figure 6. State trajectories (q0q_0–q3q_3): comparison between the NMPC/DDP simulation and the experiment.

Conclusions

This work demonstrates that combining Differential Dynamic Programming (DDP) with Nonlinear Model Predictive Control (NMPC) and differentiable Variable Strain modeling enables the stabilization of underactuated soft robots in low-stiffness regimes where traditional collocated and non-collocated controllers fail. By leveraging analytical gradients derived from RNEA-based dynamics and reduced-order modeling, the proposed framework achieves high computational efficiency while preserving physical model fidelity, offering a promising approach for stabilizing underactuated soft robots in such regimes.

References

  1. [1]C. Laschi and et al., “Soft robotics: Technologies and systems pushing the boundaries of robot abilities,” Science robotics, vol. 1, no. 1, p. eaah3690, 2016.DOI
  2. [2]C. Della Santina and et al., “Model-based control of soft robots: A survey of the state of the art and open challenges,” IEEE Control Syst. Magazine, vol. 43, no. 3, pp. 30–65, 2023.DOI
  3. [3]C. Armanini, F. Boyer, A. T. Mathew, C. Duriez, and F. Renda, “Soft robots modeling: A structured overview,” IEEE Trans. Robots, vol. 39, no. 3, pp. 1728–1748, 2023.arxiv.org/abs/2112.03645
  4. [4]A. T. Mathew and et al., “Reduced order modeling of hybrid soft-rigid robots using global, local, and state-dependent strain parameterization,” Int. J. Robot. Research, vol. 44, no. 1, pp. 129–154, 2025.DOI
  5. [5]C. Della Santina and D. Rus, “Control oriented modeling of soft robots: The polynomial curvature case,” IEEE Robot. Autom. Lett., vol. 5, no. 2, pp. 290–298, 2019.
  6. [6]C. Della Santina, “The soft inverted pendulum with affine curvature,” in Proc. 59th Conf. Decis. Control (CDC), pp. 4135–4142, IEEE, 2020.DOI
  7. [10]Norouzi-Ghazbi and et al., “Constrained visual predictive control of tendon-driven continuum robots,” Robotics and Autonomous Systems, vol. 145, p. 103856, 2021.
  8. [11]M. H. Machen and et al., “A non-linear model predictive task-space controller satisfying shape constraints for tendon-driven continuum robots,” IEEE Robot. Automat. Lett., 2025.
  9. [12]D. A. Haggerty and et al., “Control of soft robots with inertial dynamics,” Science Robot., vol. 8, no. 81, p. eadd6864, 2023.DOI
  10. [13]Q. Yang and Z. Liu, “Model-based versus model-free optimal tracking for soft robots: analytical and data-driven koopman modeling, control design and experimental validation,” Nonlinear Dynamics, vol. 112, no. 17, pp. 15267–15287, 2024.DOI
  11. [14]D. Bruder and et al., “Data-driven control of soft robots using koopman operator theory,” IEEE Trans. Robot., vol. 37, no. 3, pp. 948–961, 2020.DOI
  12. [15]S. Tonkens and et al., “Soft robot optimal control via reduced order finite element models,” in Proc. Int. Conf. Robot. Automat. (ICRA), pp. 12010–12016, IEEE, 2021.arxiv.org/abs/2011.02092
  13. [16]E. Ménager and et al., “Condensed semi-implicit dynamics for trajectory optimization in soft robotics,” in Proc. Int. Conf. Soft Robot. (RoboSoft), pp. 808–815, IEEE, 2024.DOI
  14. [17]H. P. Sanders and M. D. Kilpack, “Dynamically feasible trajectory generation for soft robots,” in Proc. Int. Conf. Soft Robot. (RoboSoft), pp. 1–8, IEEE, 2023.
  15. [18]D. Caradonna and et al., “Model-based optimal control for rigid-soft underactuated systems,” arXiv preprint arXiv:2602.03435, 2026.arxiv.org/abs/2602.03435
  16. [19]P. Pustina and et al., “Input decoupling of lagrangian systems via coordinate transformation: General characterization and its application to soft robotics,” IEEE Trans. Robot., vol. 40, pp. 2098–2110, 2024.DOI
  17. [20]A. T. Mathew and et al., “Analytical derivatives of strain-based dynamic model for hybrid soft-rigid robots,” Int. J. Robot. Research, vol. 45, no. 1, pp. 128–158, 2026.DOI
  18. [21]C. Mastalli and et al., “Crocoddyl: An efficient and versatile framework for multi-contact optimal control,” in Proc. Conf. Robot. Automat. (ICRA), pp. 2536–2542, IEEE, 2020.arxiv.org/abs/1909.04947
  19. [22]D. Feliu-Talegon and et al., “Dynamic shape estimation of tendon-driven soft manipulators via actuation readings,” IEEE Robot. Automat. Lett., vol. 10, no. 1, pp. 780–787, 2024.

Paper details

vlnc:W_qkpzxar5
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 10

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Engineering

Not recorded for this paper

View statement
Looking for related papers…
Contents