Feedback-Linearised Trajectory Tracking via Model-Informed Robust Geometric DDPC
Data-driven predictive control (DDPC) predicts system responses from recorded trajectories, but nonlinear dynamics can limit the accuracy of fixed linear predictors. This paper studies geometric robust DDPC for trajectory tracking of a fully actuated manipulator using model-based feedback linearisation.
From the abstract. Our summary is in progress.
Full paper
Feedback-Linearised Trajectory Tracking via Model-Informed Robust Geometric DDPC
Published under CC BY 4.0. Reproduced with attribution; original at arXiv:2611.23215 (PDF).
Abstract
Data-driven predictive control (DDPC) predicts system responses from recorded trajectories, but nonlinear dynamics can limit the accuracy of fixed linear predictors. This paper studies geometric robust DDPC for trajectory tracking of a fully actuated manipulator using model-based feedback linearisation. A mechanical model maps virtual acceleration commands into joint torques, while recorded data capture residual dynamics arising from imperfect model parameters. The controller minimises worst-case prediction error over an open Grassmannian ball centred at the fitted trajectory subspace. Simulations on a planar 2R manipulator under gravity compare the proposed method with double-integrator model predictive control (MPC) and direct regularised data-enabled predictive control (DeePC). Results show improved tracking over double-integrator MPC despite increased torque effort, while performance relative to DeePC depends on the reference trajectory.
1 Introduction
Predictive control chooses future inputs by predicting the system’s response, applies the first input, and repeats the optimisation after each new measurement. Model predictive control (MPC) predicts with a mathematical model. Data-driven predictive control (DDPC) predicts from recorded data instead, as in data-enabled predictive control (DeePC), which represents trajectories as linear combinations of recorded input–output data (Coulson et al., 2019a). The Fundamental Lemma justifies this representation for controllable linear time-invariant (LTI) systems with noiseless, sufficiently exciting data (Willems et al., 2005).
Nonlinear systems with uncertain parameters challenge both: inaccurate mechanical models yield biased predictions, while linearly combining measured trajectories approximates nonlinear dynamics only locally. Model knowledge reduces the data burden. For fully actuated manipulators, feedback linearisation maps uses a mechanical model to map virtual acceleration commands to joint torques. With exact parameters and states, each joint becomes a double integrator from virtual input to position. Parameter, state-estimation and actuator errors produce residual dynamics learnable from virtual-input and position recordings.
Geometric robust DDPC (Bharadwaj et al., 2026) fits a low-dimensional trajectory subspace and handles fitting errors using an open chordal-distance ball of same-dimensional subspaces on the Grassmannian. It minimises worst-case weighted squared deviation from a target combining measured history and desired future trajectory. The mechanical model supplies the feedback-linearising torque map; DDPC predicts the virtual-input-to-position response. We test whether learning this response improves prediction and tracking beyond the known double-integrator model.
Related work.
Regularised and robust formulations extend DeePC to noisy data (Coulson et al., 2019b; Huang et al., 2023). For nonlinear systems, Berberich et al. (2022) obtain closed-loop stability guarantees by updating the data of a linear predictor online. For feedback-linearisable systems, Alsalti et al. (2023) build a data-based predictor from input–output data and basis functions that approximate the unknown nonlinearities, with a fully actuated double inverted pendulum as example. Watson (2025) incorporates partial model knowledge into DeePC by combining model-based and data-based representations. Tube MPC handles bounded disturbances around a model prediction (Mayne et al., 2005), and learning-based MPC augments a model with learned corrections and uncertainty estimates (Hewing et al., 2020b; Hewing et al., 2020a).
Contributions.
We apply geometric robust DDPC to trajectory tracking of a planar 2R manipulator under gravity. Prediction tests compare the learned feedback-linearised response with the ideal double integrator, for exact and inaccurate mechanical parameters. Transfer tests examine whether fixed parameter tunings remain effective when the measurement noise and arm parameters change. Tracking tests compare accuracy and torque effort with double-integrator MPC and with direct regularised DeePC, which predict from recorded joint torques and positions directly.
2 Preliminaries
Notation.
Operator \col(\cdot) stacks its arguments vertically. For Q\succeq 0 we write \left\lVert z\right\rVert_{Q}^{2}=z^{\top}Qz. We use \left\lVert\cdot\right\rVert_{\mathrm{F}} for the Frobenius norm, A^{\dagger} for the Moore–Penrose pseudoinverse, and \im A for the column space. I_{r} and \mathbf{1}_{r} are the identity matrix and the all-ones vector, and \otimes is the Kronecker product. For z_{j}\in\mathbb{R}^{n_{z}}, we write \mathbf{z}_{a:b}=\col(z_{a},\ldots,z_{b}). Superscripts \mathrm{d}, \mathrm{ini} and \mathrm{ref} mark recorded data, initial histories and references. The measured output is \widetilde{y}_{k}=y_{k}+\varepsilon_{k}^{y}, where \varepsilon_{k}^{y} is measurement noise. A record \mathbf{z}^{\mathrm{d}}=\mathbf{z}^{\mathrm{d}}_{0:T_{\mathrm{d}}-1} of length T_{\mathrm{d}} defines, for 1\leq s\leq T_{\mathrm{d}}, the depth-s block Hankel matrix
\mathcal{H}_{s}(\mathbf{z}^{\mathrm{d}})=\begin{bmatrix}z_{0}^{\mathrm{d}}&z_{1}^{\mathrm{d}}&\cdots&z_{T_{\mathrm{d}}-s}^{\mathrm{d}}\\
z_{1}^{\mathrm{d}}&z_{2}^{\mathrm{d}}&\cdots&z_{T_{\mathrm{d}}-s+1}^{\mathrm{d}}\\
\vdots&\vdots&\ddots&\vdots\\
z_{s-1}^{\mathrm{d}}&z_{s}^{\mathrm{d}}&\cdots&z_{T_{\mathrm{d}}-1}^{\mathrm{d}}\end{bmatrix}\in\mathbb{R}^{n_{z}s\times(T_{\mathrm{d}}-s+1)}.Each column is a window of s consecutive samples. The record is persistently exciting of order s if this matrix has full row rank, that is, \rank\mathcal{H}_{s}(\mathbf{z}^{\mathrm{d}})=n_{z}s.
2.1 Linear Systems and Model Predictive Control
Consider a controllable and observable discrete-time LTI system x_{k+1}=Ax_{k}+Bu_{k}, y_{k}=Cx_{k}+Du_{k}, with x_{k}\in\mathbb{R}^{n_{x}}, u_{k}\in\mathbb{R}^{n_{u}} and y_{k}\in\mathbb{R}^{n_{y}}. Its lag \ell is the smallest positive integer for which the observability matrix \mathcal{O}_{\ell}=\col(C,CA,\ldots,CA^{\ell-1}) has rank n_{x}.
MPC predicts over a horizon of N samples. At step k, let u_{k+i\mid k} and y_{k+i\mid k} denote the (k+i)^{th} prediction, stacked as \mathbf{u}_{k} and \mathbf{y}_{k} over i=0,\ldots,N-1. With desired sequences u_{j}^{\mathrm{ref}},y_{j}^{\mathrm{ref}}, the input-output tracking cost is writen as
J_{k}(\mathbf{u}_{k},\mathbf{y}_{k})=\sum_{i=0}^{N-1}\left(\left\lVert y_{k+i\mid k}-y_{k+i}^{\mathrm{ref}}\right\rVert_{Q}^{2}+\left\lVert u_{k+i\mid k}-u_{k+i}^{\mathrm{ref}}\right\rVert_{R}^{2}\right),where Q\succeq 0 and R\succ 0. MPC minimises this cost subject to the dynamics and an initial state estimate, then applies the first input.
2.2 Data-Based Prediction
For w_{j}=\col(u_{j},y_{j}), the length-L behaviour \mathcal{B}_{L} is the set of trajectories \mathbf{w}=\col(w_{0},\ldots,w_{L-1}) that the system generates from arbitrary initial states and inputs. For L\geq\ell, it is a subspace of dimension n_{u}L+n_{x} (Markovsky and Dörfler, 2021). Let \mathbf{w}^{\mathrm{d}} be a noiseless trajectory of the system with persistently exciting input of order L+n_{x}. Willems et al. (2005)’s Fundamental Lemma states:
\mathcal{B}_{L}=\im\mathcal{H}_{L}(\mathbf{w}^{\mathrm{d}}).For prediction, choose a history length T_{\mathrm{ini}}\geq\ell and a prediction horizon N, and set L=T_{\mathrm{ini}}+N. In every column of a Hankel matrix, the first T_{\mathrm{ini}} samples form the past (superscript \mathrm{p}) and the remaining N samples form the future (superscript \mathrm{f}). The input and output Hankel matrices are therefore H_{u}=\mathcal{H}_{L}(\mathbf{u}^{\mathrm{d}})=\col(U^{\mathrm{p}},U^{\mathrm{f}}) and H_{y}=\mathcal{H}_{L}(\mathbf{y}^{\mathrm{d}})=\col(Y^{\mathrm{p}},Y^{\mathrm{f}}). With measured outputs, the output matrix becomes \widetilde{H}_{y}=\mathcal{H}_{L}(\widetilde{\mathbf{y}}^{\mathrm{d}})=\col(\widetilde{Y}^{\mathrm{p}},\widetilde{Y}^{\mathrm{f}}). All blocks have n_{g} columns, with n_{g}=T_{\mathrm{d}}-L+1 for a single record. The blocks U^{\mathrm{p}} and U^{\mathrm{f}} have n_{u}T_{\mathrm{ini}} and n_{u}N rows, and the output blocks have n_{y}T_{\mathrm{ini}} and n_{y}N rows.
Define the histories \mathbf{u}_{k}^{\mathrm{ini}}=\mathbf{u}_{k-T_{\mathrm{ini}}:k-1} and \mathbf{y}_{k}^{\mathrm{ini}}=\mathbf{y}_{k-T_{\mathrm{ini}}:k-1}, and let \widetilde{\mathbf{y}}_{k}^{\mathrm{ini}} denote the measured output history. Under the noiseless spanning conditions, (\mathbf{u}_{k},\mathbf{y}_{k}) is a valid continuation of this history if and only if some g_{k}\in\mathbb{R}^{n_{g}} satisfies
\col(U^{\mathrm{p}},Y^{\mathrm{p}},U^{\mathrm{f}},Y^{\mathrm{f}})g_{k}=\col(\mathbf{u}_{k}^{\mathrm{ini}},\mathbf{y}_{k}^{\mathrm{ini}},\mathbf{u}_{k},\mathbf{y}_{k}).Since T_{\mathrm{ini}}\geq\ell, the history determines the initial state, and the prediction is equivalent to model-based prediction with the same cost and constraints (Coulson et al., 2019a).
2.3 Regularised DeePC
Measurement noise perturbs both the recorded matrix and the online history, so (4) cannot be satisfied exactly. Regularised DeePC therefore allows a residual \sigma_{k}^{y} in the past-output equation and penalises the coefficient vector g_{k} (Coulson et al., 2019b). Penalising \left\lVert g_{k}\right\rVert_{2} pulls the prediction towards the zero trajectory, which is unsuitable for a nonzero reference. Following Elokda et al. (2021), we centre the penalty at a coefficient vector that reproduces the reference. Define
\displaystyle\widetilde{H}^{\mathrm{d}} \\ \displaystyle=\col(U^{\mathrm{p}},\widetilde{Y}^{\mathrm{p}},U^{\mathrm{f}},\widetilde{Y}^{\mathrm{f}}),\qquad g_{k}^{\mathrm{ref}}=(\widetilde{H}^{\mathrm{d}})^{\dagger}r_{k}, \\ \displaystyle r_{k} \\ \displaystyle=\col(\mathbf{u}^{\mathrm{ref}}_{k-T_{\mathrm{ini}}:k-1},\mathbf{y}^{\mathrm{ref}}_{k-T_{\mathrm{ini}}:k-1},\mathbf{u}^{\mathrm{ref}}_{k:k+N-1},\mathbf{y}^{\mathrm{ref}}_{k:k+N-1}).The minimum-norm least-squares solution g_{k}^{\mathrm{ref}} is recomputed when the reference or the data change. It reproduces r_{k} exactly if r_{k}\in\im\widetilde{H}^{\mathrm{d}}, which does not imply physical feasibility.
The regularised problem is
\displaystyle\min_{g_{k},\,\sigma_{k}^{y}} \\ \displaystyle J_{k}(U^{\mathrm{f}}g_{k},\widetilde{Y}^{\mathrm{f}}g_{k})+\lambda_{y}\left\lVert\sigma_{k}^{y}\right\rVert_{2}^{2}+\lambda_{g}\left\lVert g_{k}-g_{k}^{\mathrm{ref}}\right\rVert_{2}^{2} \\ \displaystyle\text{subject to} \\ \displaystyle U^{\mathrm{p}}g_{k}=\mathbf{u}_{k}^{\mathrm{ini}},\qquad\widetilde{Y}^{\mathrm{p}}g_{k}=\widetilde{\mathbf{y}}_{k}^{\mathrm{ini}}+\sigma_{k}^{y},where \lambda_{y},\lambda_{g}>0. Known inputs \mathbf{u}_{k}^{\mathrm{ini}} are matched exactly, and the penalised past-output residual is \sigma_{k}^{y}=\widetilde{Y}^{\mathrm{p}}g_{k}-\widetilde{\mathbf{y}}_{k}^{\mathrm{ini}}. The future predictions are \mathbf{u}_{k}=U^{\mathrm{f}}g_{k} and \mathbf{y}_{k}=\widetilde{Y}^{\mathrm{f}}g_{k}.
2.4 Geometric Robust DDPC
Geometric robust DDPC (Bharadwaj et al., 2026) accounts for uncertainty in the subspace that represents the trajectories. Let w_{j}=\col(u_{j},\widetilde{y}_{j}) and n_{\mathrm{amb}}=(n_{u}+n_{y})L. The leading d<n_{\mathrm{amb}} left singular vectors of \mathcal{H}_{L}(\widetilde{\mathbf{w}}^{\mathrm{d}}) form an orthonormal basis \widehat{V} of the fitted subspace \widehat{\mathcal{S}}=\im\widehat{V}. The dimension d is motivated by the LTI behaviour dimension n_{u}L+n_{x}. Nonlinear effects and measurement noise raise the rank of the data matrix, \widehat{\mathcal{S}} becomes a fixed-rank approximation. The data may be centred and scaled before fitting (Section C.1).
The Grassmannian \Gr(d,n_{\mathrm{amb}}) is the set of d-dimensional subspaces of \mathbb{R}^{n_{\mathrm{amb}}}. For an orthonormal basis V of \mathcal{S}, the projector is P_{\mathcal{S}}=VV^{\top}. The principal angles \theta_{j}\in[0,\pi/2] between two subspaces satisfy \cos\theta_{j}=\sigma_{j}(V_{1}^{\top}V_{2}), where \sigma_{j} is the jth singular value. The chordal distance and the open ball of radius \rho around \widehat{\mathcal{S}} are
\displaystyle d_{\mathrm{ch}}(\mathcal{S}_{1},\mathcal{S}_{2}) \\ \displaystyle=\frac{\left\lVert P_{\mathcal{S}_{1}}-P_{\mathcal{S}_{2}}\right\rVert_{\mathrm{F}}}{\sqrt{2}}=\left(\sum_{j=1}^{d}\sin^{2}\theta_{j}\right)^{1/2}, \\ \displaystyle\mathbb{B}_{\rho}(\widehat{\mathcal{S}}) \\ \displaystyle=\{\mathcal{S}\in\Gr(d,n_{\mathrm{amb}}):d_{\mathrm{ch}}(\mathcal{S},\widehat{\mathcal{S}})<\rho\},\quad 0<\rho<1.At update k, the target b_{k}\in\mathbb{R}^{n_{\mathrm{amb}}} collects the measured past pairs \col(u_{j},\widetilde{y}_{j}) for j=k-T_{\mathrm{ini}},\ldots,k-1 and the future reference pairs \col(u_{j}^{\mathrm{ref}},y_{j}^{\mathrm{ref}}) for j=k,\ldots,k+N-1. For a decision variable \xi\in\mathbb{R}^{n_{\mathrm{amb}}}, the projection P_{\mathcal{S}}\xi onto a candidate subspace \mathcal{S} is the corresponding predicted trajectory, with past and future inputs and outputs. The predictive problem is
\min_{\xi\in\mathbb{R}^{n_{\mathrm{amb}}}}\\
\sup_{\mathcal{S}\in\mathbb{B}_{\rho}(\widehat{\mathcal{S}})}F_{k}(\xi,\mathcal{S}),\qquad F_{k}(\xi,\mathcal{S})=\left\lVert P_{\mathcal{S}}\xi-b_{k}\right\rVert_{W}^{2},with W=\diag\bigl((1+\gamma)I_{(n_{u}+n_{y})T_{\mathrm{ini}}},I_{(n_{u}+n_{y})N}\bigr) and \gamma>0. The past block of W penalises deviations from the measured history, with \gamma controlling how strongly the prediction is tied to it, and the future block penalises tracking errors. The radius \rho sets the subspace uncertainty. Figure 1 illustrates the projections.
\Gr(1,2). The fitted subspace \widehat{\mathcal{S}} is the horizontal line. The shaded double cone is the ball \mathbb{B}_{\rho}(\widehat{\mathcal{S}}) of lines with |\theta|<\theta_{\rho}=\sin^{-1}\rho, (dashed boundary lines are excluded). Projecting \xi onto \widehat{\mathcal{S}} and onto an adverse subspace \mathcal{S}^{\mathrm{a}} gives different trajectories, the adverse with the larger residual to b_{k}.The objective in (8) is convex in \xi as a supremum of convex functions, while the search for the adverse subspace is nonconvex. Because F_{k} is continuous in \mathcal{S}, the supremum over the open ball equals the maximum over its closure. For the returned \xi, the adverse subspace \mathcal{S}^{\mathrm{a}} maximises F_{k}(\xi,\cdot) over the ball. The controller decodes the trajectory P_{\mathcal{S}^{\mathrm{a}}}\xi and applies its first future input. Both inputs and outputs vary with the subspace. The ball also contains subspaces without a causal LTI realisation, so its use here is evaluated experimentally.
3 Planar 2R Manipulator Control
The mechanical model feedback-linearises the arm, and geometric DDPC predicts the resulting virtual-input–position response.
3.1 Manipulator Model and Tracking Task
The base angle q_{1} is measured from the positive horizontal axis; q_{2} is relative to link 1, so link 2 has absolute angle q_{1}+q_{2}. Link j has length l_{j}, mass m_{j}, centre-of-mass distance r_{j} from its proximal joint, and inertia \mathcal{I}_{j} about its centre of mass. Figure 2 shows this convention and the centre-of-mass positions p_{c1},p_{c2}. For uniform rods, r_{j}=l_{j}/2 and \mathcal{I}_{j}=m_{j}l_{j}^{2}/12.
Let q=\col(q_{1},q_{2}), v=\dot{q}, and x=\col(q,v). The joint dynamics are
M(q)\ddot{q}+\eta(q,v)+g(q)+D_{\mathrm{v}}v=\tau^{\mathrm{act}},where M(q)\succ 0 is the inertia matrix, \eta contains Coriolis and centrifugal terms, g is the gravity torque, D_{\mathrm{v}}\succeq 0 is diagonal viscous damping, and \tau^{\mathrm{act}} is the applied torque. The expressions for M and \eta are given in Appendix A. For gravitational acceleration of magnitude g_{0} in the negative vertical direction,
g(q)=g_{0}\begin{bmatrix}(m_{1}r_{1}+m_{2}l_{1})\cos q_{1}+m_{2}r_{2}\cos(q_{1}+q_{2})\\
m_{2}r_{2}\cos(q_{1}+q_{2})\end{bmatrix}.Positions are measured at t_{k}=kT_{\mathrm{s}} as \widetilde{y}_{k}=q(t_{k})+\varepsilon_{k}^{y}, with independent \varepsilon_{k}^{y}\sim\mathcal{N}(0,\Sigma_{y}). Velocity is estimated. The task is to track q^{\mathrm{ref}}(t), assessed by position error and applied torque. Predictive problems impose no joint or torque constraints.
3.2 Feedback Linearisation and State Estimation
Write h(q,v)=\eta(q,v)+g(q)+D_{\mathrm{v}}v. The supplied model uses \widehat{M}(q) and \widehat{h}(q,v), and its parameters may differ from the plant. For a held virtual acceleration \mu_{k}\in\mathbb{R}^{2}, the inverse dynamics map gives
\tau^{\mathrm{id}}(t)=\widehat{M}(\widehat{q}(t))\mu_{k}+\widehat{h}(\widehat{q}(t),\widehat{v}(t)).With exact parameters, state feedback, continuous torque evaluation and inactive actuator limits, substitution gives \ddot{q}=\mu_{k}. The feedback-linearised system then consists of two double integrators, with exact sampled model x_{k+1}=Ax_{k}+B\mu_{k}, y_{k}=Cx_{k}, where
A=\begin{bmatrix}I_{2}&T_{\mathrm{s}}I_{2}\\
0&I_{2}\end{bmatrix},\qquad B=\begin{bmatrix}\tfrac{1}{2}T_{\mathrm{s}}^{2}I_{2}\\
T_{\mathrm{s}}I_{2}\end{bmatrix},\qquad C=\begin{bmatrix}I_{2}&0\end{bmatrix}.The ideal model is controllable, has observability lag two, and has \dim\mathcal{B}_{L}=2L+4 for L\geq 2.
A Kalman filter estimates position and velocity from measured positions and commanded virtual inputs (Welch and Bishop, 2000), using (12). Figure 4 shows the loop; Appendix A gives the filter.
The difference between the actual and continuously evaluated model torque is \Delta\tau^{\mathrm{act}}=\tau^{\mathrm{act}}-\tau^{\mathrm{id}}. This includes torque holding and actuator limitations. Consequently, \ddot{q}=\mu_{k}+a^{\mathrm{res}}, with
a^{\mathrm{res}}=M(q)^{-1}\!\left[(\widehat{M}(\widehat{q})-M(q))\mu_{k}+\widehat{h}(\widehat{q},\widehat{v})-h(q,v)+\Delta\tau^{\mathrm{act}}\right].With exact state feedback and unrestricted continuous torque application, the dynamics become \ddot{q}=G(q)\mu_{k}+f_{\mathrm{r}}(q,v), where G=M^{-1}\widehat{M} and f_{\mathrm{r}}=M^{-1}(\widehat{h}-h). The recorded response contains these model errors together with estimation and actuator effects, giving the learned predictor information beyond the ideal double integrator.
3.3 Offline Data and Reference Initialisation
A PD tracking controller with acceleration feedforward and random excitation generates offline data. Its sinusoidal reference q^{\mathrm{col}}(t) varies in centre, amplitude, phase and period between episodes (Appendix B).
For the feedback-linearised arm, u_{k}=\mu_{k} is held for T_{\mathrm{s}}, while inverse dynamics is evaluated from the propagated estimate every T_{\tau}. For direct data, u_{k}=\tau_{k}^{\mathrm{cmd}} is computed once at t_{k} and held for T_{\mathrm{s}}. The actuator enforces torque magnitude and slew limits at each T_{\tau} update in both cases. The mechanical model and state estimates are used to generate both offline datasets. Windows are concatenated without crossing episode boundaries.
Tracking references are joint sinusoids with a smooth entry ramp. Sampled q_{k}^{\mathrm{ref}},v_{k}^{\mathrm{ref}},\mu_{k}^{\mathrm{ref}} satisfy the ideal dynamics through a piecewise-constant-acceleration interpolant. Torque and torque-rate requirements are checked throughout the motion (Appendix B).
3.4 Geometric DDPC for the Feedback-Linearised Arm
A rank-d=2L+4 fit to records of (\mu_{k},\widetilde{y}_{k}) defines \widehat{\mathcal{S}}. This dimension follows the ideal four-state model; the affine fitting coordinates are specified in Section C.1.
At update k, the target b_{k} contains the preceding T_{\mathrm{ini}} measured pairs and the next N reference pairs (\mu_{j}^{\mathrm{ref}},q_{j}^{\mathrm{ref}}), expressed in the predictor’s coordinates. The controller solves (8) over the open ball in \Gr(2L+4,4L), with fixed \rho and \gamma. A scenario-exchange algorithm returns an approximate adverse trajectory, whose first future virtual input is applied through (11). Section C.3 gives the solve and stopping rules.
(\mu_{j},\widetilde{y}_{j}) pairs through j=k-1.3.5 Comparison Controllers
Double-integrator MPC.
This controller predicts with (12), using the same horizon, observer, feedback-linearising torque map and actuator as geometric DDPC. It minimises (2) with u=\mu and y=q, using the same future tracking weights as geometric DDPC in physical coordinates. Its first virtual input is applied through the shared torque map.
Direct regularised DeePC.
Direct DeePC uses the recorded torque and position pairs to predict future motion (Elokda et al., 2021; Wegner, 2021). In Figure 4, the desired motion defines the torque reference \tau_{k}^{\mathrm{ref}}=\widehat{M}(q_{k}^{\mathrm{ref}})\mu_{k}^{\mathrm{ref}}+\widehat{h}(q_{k}^{\mathrm{ref}},v_{k}^{\mathrm{ref}}). Set u^{\mathrm{ref}}=\tau^{\mathrm{ref}} and y^{\mathrm{ref}}=q^{\mathrm{ref}} in both the tracking cost and g^{\mathrm{ref}} (5). At each update, the measured history initialises (6), whose first predicted torque is applied directly. The model supplies references and collection torques; online feedback uses measured input–output history. Section C.5 gives the quadratic solve.
4 Simulation Studies
We examine prediction accuracy (A), transfer of predictive tuning (B), and cyclic tracking (C). Controllers receive noisy positions; true positions are used only to evaluate errors.
4.1 Simulation Setup and Evaluation
Table 1 defines the mechanical conditions. Experiments A and C retain a fixed model while changing the plant parameters. Experiment B uses exact models of two known arms. In all cases, gravity acts downward and position noise has covariance \Sigma_{y}=\sigma_{y}^{2}I_{2} during collection and control.
- Exact parameters
- A, C
- (1.0,0.8)
- (0.9,0.72)
- (0.9,0.72)
- Parameter errors
- A, C
- (1.0,0.8)
- (1.0,0.8)
- (0.9,0.72)
- Arm A
- B
- (1.0,0.8)
- (1.0,0.8)
- (1.0,0.8)
- Arm B
- B
- (0.75,0.55)
- (1.3,0.6)
- (1.3,0.6)
Controller settings are fixed before evaluation. Direct-DeePC weights are selected on separate Arm A trials at baseline noise. The data-driven methods share the collection procedure and budget, with their respective input conventions. Trials use paired measurement-noise sequences across controllers, and predictive computation is instantaneous. Each run covers a smooth entry ramp and two reference cycles. Appendix D gives the settings and evaluation protocol.
Tables report median [minimum, maximum] periodic position RMSE E_{\mathrm{cyc}}, median whole-run applied-torque RMS \tau_{\mathrm{rms}}, and completed trials n_{\mathrm{c}}. Both measures average over the two joints. Incomplete trials enter completion counts but are excluded from full-duration error and effort statistics.
4.2 Prediction Accuracy After Feedback Linearisation
Experiment A compares the double integrator with the predictor fitted to virtual-input–position data. On independent test trajectories, both predict future positions from the same prescribed inputs and past measured positions (Markovsky and Rapisarda, 2008). Future positions enter only the error calculation. Table 2 covers exact and inaccurate mechanics at three noise levels.
- Exact parameters
- 0.001
- 0.0098 [0.0068, 0.0110]
- 0.0058 [0.0051, 0.0070]
- No data
- 0.005
- 0.0157 [0.0118, 0.0191]
- 0.0129 [0.0094, 0.0147]
- No data
- 0.010
- 0.0251 [0.0213, 0.0279]
- 0.0200 [0.0191, 0.0242]
- Parameter errors
- 0.001
- 0.2096 [0.1831, 0.2496]
- 0.0153 [0.0131, 0.0194]
- No data
- 0.005
- 0.1801 [0.1510, 0.2207]
- 0.0167 [0.0104, 0.0183]
- No data
- 0.010
- 0.1598 [0.1292, 0.1916]
- 0.0234 [0.0187, 0.0270]
Learning gives a modest improvement with exact parameters and a much larger improvement with parameter errors, indicating that data capture systematic departures from the ideal dynamics. The learned predictor remains more accurate at each noise level, although its error grows with noise. Noise also changes the feedback-controlled collection trajectories, so comparisons across noise levels include this effect.
4.3 Transfer Across Noise and Arm Changes
Experiment B uses the base cycle with unchanged predictive tuning. Noise is increased on Arm A, then a known Arm B with shorter links and different masses is tested. Each condition uses newly collected data and the stated observer noise covariance; the mechanical model is updated for Arm B. The collection procedure and predictive settings stay fixed.
- Arm A, \sigma_{y}=0.001
- Geometric DDPC
- 0.0042 [0.0038, 0.0054]
- 2.984
- 6/6
- No data
- Direct DeePC
- 0.0245 [0.0236, 0.0266]
- 2.961
- 6/6
- Arm A, \sigma_{y}=0.005
- Geometric DDPC
- 0.0138 [0.0116, 0.0164]
- 2.977
- 6/6
- No data
- Direct DeePC
- 0.0370 [0.0285, 0.0545]
- 2.955
- 6/6
- Arm A, \sigma_{y}=0.010
- Geometric DDPC
- 0.0280 [0.0210, 0.0345]
- 3.560
- 6/6
- No data
- Direct DeePC
- 0.0662 [0.0369, 0.2517]
- 2.949
- 5/6
- Arm B, \sigma_{y}=0.001
- Geometric DDPC
- 0.0048 [0.0039, 0.0055]
- 1.957
- 6/6
- No data
- Direct DeePC
- 0.0257 [0.0227, 0.0323]
- 1.948
- 6/6
Tracking error increases with noise for both methods (Table 3). Geometric DDPC retains lower median error and completes every trial. At high noise, its torque variation and actuator activity increase (Figure 5); direct DeePC has a wider error spread and one incomplete trial. On Arm B, both methods retain accuracy close to their Arm A baselines with reduced torque effort. Geometric DDPC remains more accurate at similar effort.
\sigma_{y} in radians.4.4 Trajectory Tracking
Experiment C compares geometric DDPC, double-integrator MPC and direct regularised DeePC. The base reference is tested with exact mechanical parameters; all three references in Table 4 are tested with parameter errors. The mechanical model stays fixed, and offline data are reused across references within each plant condition. Sampled reference torques satisfy the actuator limits.
- Base
- (-\pi/2,0.4)
- (0.35,0.50)
- 6
- Shifted
- (-\pi/2+0.05,0.48)
- (0.42,0.58)
- 6
- Faster
- (-\pi/2,0.4)
- (0.30,0.42)
- 4.5
Table 5 summarises tracking accuracy and effort. Figure 6 shows the base-cycle trajectories with parameter errors.
- Exact parameters, base
- Double-integrator MPC
- 0.0050 [0.0046, 0.0053]
- 2.703
- 6/6
- No data
- Geometric DDPC
- 0.0050 [0.0047, 0.0064]
- 2.690
- 6/6
- No data
- Direct DeePC
- 0.0253 [0.0213, 0.0292]
- 2.665
- 6/6
- Parameter errors, base
- Double-integrator MPC
- 0.1091 [0.1090, 0.1093]
- 2.810
- 6/6
- No data
- Geometric DDPC
- 0.0650 [0.0482, 0.0749]
- 3.030
- 6/6
- No data
- Direct DeePC
- 0.0826 [0.0636, 0.0848]
- 2.530
- 6/6
- Parameter errors, shifted
- Double-integrator MPC
- 0.1152 [0.1150, 0.1154]
- 3.456
- 6/6
- No data
- Geometric DDPC
- 0.0592 [0.0412, 0.0744]
- 3.681
- 6/6
- No data
- Direct DeePC
- 0.1365 [0.1089, 0.1411]
- 3.043
- 6/6
- Parameter errors, faster
- Double-integrator MPC
- 0.1068 [0.1068, 0.1069]
- 2.209
- 6/6
- No data
- Geometric DDPC
- 0.0779 [0.0648, 0.0866]
- 2.381
- 6/6
- No data
- Direct DeePC
- 0.0731 [0.0594, 0.0771]
- 1.977
- 6/6
With exact mechanics, double-integrator MPC and geometric DDPC give similar accuracy and effort, both outperforming direct DeePC in tracking. With parameter errors, geometric DDPC improves on double-integrator MPC in every paired trial at greater effort. It also has lower median error than direct DeePC on the base and shifted cycles, while direct DeePC has lower error and effort on the faster cycle. All tracking trials complete with inactive actuator limits.
5 Discussion and Conclusions
This study examined geometric robust DDPC for a feedback-linearised planar 2R arm. The results identify a useful role for data when the mechanical model captures the main structure but leaves systematic prediction errors. Learning the resulting virtual-input–position response improves prediction and tracking under parameter errors. With exact mechanical parameters, the known double integrator already provides an effective controller. Performance relative to direct regularised DeePC depends on the reference, with different trade-offs between accuracy and torque effort.
The predictive settings also remained effective across the tested noise levels and arm parameters. This transfer used newly collected data and the corresponding mechanical-model and observer updates. Higher measurement noise increased tracking error and actuator activity, although every geometric-DDPC trial completed.
References
Generative AI Use
Generative AI tools assisted with literature review, preparation of TikZ illustrations, simulation-code optimisation, and auditing the mathematical exposition/results.
Appendix A Mechanical Model, State Estimation and Torque Application
Inertia and velocity coupling.
For the coordinates and link parameters in Section 3, the inertia and velocity-coupling terms are
M(q)=\begin{bmatrix}\alpha+2\beta\cos q_{2}&\delta+\beta\cos q_{2}\\
\delta+\beta\cos q_{2}&\delta\end{bmatrix},\qquad\eta(q,v)=\beta\sin q_{2}\begin{bmatrix}-2v_{1}v_{2}-v_{2}^{2}\\
v_{1}^{2}\end{bmatrix}.Here \alpha=\mathcal{I}_{1}+\mathcal{I}_{2}+m_{1}r_{1}^{2}+m_{2}(l_{1}^{2}+r_{2}^{2}), \beta=m_{2}l_{1}r_{2}, and \delta=\mathcal{I}_{2}+m_{2}r_{2}^{2}.
The estimator uses the double-integrator matrices A,B,C in (12) and measured joint positions.
Position-based state estimation.
A Kalman filter on the ideal double-integrator model estimates position and velocity (Welch and Bishop, 2000). Let \widehat{x}_{k}^{-} and \widehat{x}_{k}^{+} be the prior and corrected estimates, with covariances \Sigma_{k}^{-} and \Sigma_{k}^{+}. The current measurement gives
\displaystyle K_{k} \\ \displaystyle=\Sigma_{k}^{-}C^{\top}(C\Sigma_{k}^{-}C^{\top}+\Sigma_{y})^{-1},\qquad\widehat{x}_{k}^{+}=\widehat{x}_{k}^{-}+K_{k}(\widetilde{y}_{k}-C\widehat{x}_{k}^{-}), \\ \displaystyle\Sigma_{k}^{+} \\ \displaystyle=(I_{4}-K_{k}C)\Sigma_{k}^{-}(I_{4}-K_{k}C)^{\top}+K_{k}\Sigma_{y}K_{k}^{\top}.After selecting \mu_{k}, propagate \widehat{x}_{k+1}^{-}=A\widehat{x}_{k}^{+}+B\mu_{k} and \Sigma_{k+1}^{-}=A\Sigma_{k}^{+}A^{\top}+Q^{\mathrm{KF}}, where Q^{\mathrm{KF}}=B\Sigma_{a}B^{\top} and \Sigma_{a} is a chosen acceleration-error covariance. The covariance models uncertainty in the observer prediction; the plant has no added process noise.
Between measurements, inverse dynamics uses \widehat{x}(t_{k}+s)=A(s)\widehat{x}_{k}^{+}+B(s)\mu_{k} for 0\leq s<T_{\mathrm{s}}, with A(s),B(s) obtained by replacing T_{\mathrm{s}} in (12) by s. The initial estimate uses the reset position and zero velocity. Commanded virtual inputs drive the filter during collection, startup and tracking.
Torque application.
Let T_{\tau} divide T_{\mathrm{s}}. At t_{k,m}=t_{k}+mT_{\tau}, for m=0,\ldots,T_{\mathrm{s}}/T_{\tau}-1, compute \tau^{\mathrm{cmd}}_{k,m}=\tau^{\mathrm{id}}(t_{k,m}). Given the preceding applied torque \tau^{\mathrm{prev}}, positive magnitude bounds \tau_{\max}, and slew bounds r_{\tau}, apply
\displaystyle\tau^{\mathrm{sat}}_{k,m} \\ \displaystyle=\clip(\tau^{\mathrm{cmd}}_{k,m},-\tau_{\max},\tau_{\max}), \\ \displaystyle\tau^{\mathrm{act}}_{k,m} \\ \displaystyle=\tau^{\mathrm{prev}}+\clip(\tau^{\mathrm{sat}}_{k,m}-\tau^{\mathrm{prev}},-T_{\tau}r_{\tau},T_{\tau}r_{\tau}).Here \clip(z,a,b) truncates each component of z to its interval [a_{j},b_{j}]. The torque is held until the next update. Torque holding and actuator modification enter \Delta\tau^{\mathrm{act}} in (13).
Appendix B Data Collection and Reference Construction
Data collection.
A PD tracking controller with acceleration feedforward follows an auxiliary sinusoid q^{\mathrm{col}}(t) and adds random virtual excitation:
\mu_{k}^{\mathrm{d}}=\ddot{q}^{\mathrm{col}}(t_{k})+K_{p}(q^{\mathrm{col}}(t_{k})-\widehat{q}_{k}^{+})+K_{d}(\dot{q}^{\mathrm{col}}(t_{k})-\widehat{v}_{k}^{+})+e_{k}^{\mathrm{d}}.The diagonal gains K_{p},K_{d}\succ 0 are fixed. The sinusoid varies between episodes, and e_{k}^{\mathrm{d}} is independent, zero-mean Gaussian excitation. The complete command also depends on measured feedback.
For the feedback-linearised dataset, the recorded command is \mu_{k}^{\mathrm{d}}. For the direct dataset, it is \tau_{k}^{\mathrm{d}}=\widehat{M}(\widehat{q}_{k}^{+})\mu_{k}^{\mathrm{d}}+\widehat{h}(\widehat{q}_{k}^{+},\widehat{v}_{k}^{+}). Both use the supplied model and estimated state, with the input-holding conventions of Section 3.3.
Position is sampled before the new command acts. The recorded pair is (u_{k},\widetilde{y}_{k}), where u_{k}=\mu_{k} for the feedback-linearised system and u_{k}=\tau_{k}^{\mathrm{cmd}} for direct DeePC. Inputs are stored before actuator modification. An episode of T_{e}\geq L samples supplies T_{e}-L+1 columns, giving n_{g}=\sum_{e}(T_{e}-L+1) offline windows. All windows remain within their episodes.
Reference construction.
The evaluation references are
q_{j}^{\mathrm{ref}}(t)=q_{\mathrm{c},j}+a_{j}\chi(t/T_{\mathrm{r}})\sin(\omega t+\phi_{j}),\qquad j=1,2,with centre q_{\mathrm{c}}, amplitudes a_{j}, phases \phi_{j}, angular frequency \omega and ramp duration T_{\mathrm{r}}. The ramp \chi(z)=10z^{3}-15z^{4}+6z^{5} for 0\leq z\leq 1, extended by zero before and one after this interval, gives continuous position, velocity and acceleration.
The desired position samples are q_{k}^{\mathrm{ref}}=q^{\mathrm{ref}}(t_{k}). A virtual-input reference consistent with the ideal sampled dynamics is obtained from v_{0}^{\mathrm{ref}}=\dot{q}^{\mathrm{ref}}(0) and
\mu_{k}^{\mathrm{ref}}=\frac{2}{T_{\mathrm{s}}^{2}}(q_{k+1}^{\mathrm{ref}}-q_{k}^{\mathrm{ref}}-T_{\mathrm{s}}v_{k}^{\mathrm{ref}}),\qquad v_{k+1}^{\mathrm{ref}}=v_{k}^{\mathrm{ref}}+T_{\mathrm{s}}\mu_{k}^{\mathrm{ref}}.This defines a piecewise-constant-acceleration interpolant through the desired positions. Its discrete velocity can differ from the analytic reference derivative. Torque and torque-rate demands of this interpolant are checked through the ramp and periodic motion.
Initial history and sample timing.
Before predictive tracking, the arm is held near the initial reference for \max(T_{\mathrm{ini}},12) sampling intervals, using the collection controller with a constant reference and zero added excitation. The final plant and observer states of this hold initialise the tracking run.
At update k, the current measurement corrects the observer while the predictor uses completed pairs through k-1. The selected command is applied immediately in simulated time. After the interval, (u_{k},\widetilde{y}_{k}) replaces the oldest history pair.
For the direct coefficient reference, extend the desired history before time zero by q_{j}^{\mathrm{ref}}=q_{0}^{\mathrm{ref}}, v_{j}^{\mathrm{ref}}=0, and \tau_{j}^{\mathrm{ref}}=\widehat{h}(q_{0}^{\mathrm{ref}},0) for j<0. At nonnegative samples, use the torque reference in Section 3.5 with the sampled velocity and acceleration in (19). The measured history enters the predictive consistency terms separately.
Appendix C Geometric Representation and Predictive Solves
C.1 Affine, Dimensionless Trajectory Coordinates
Let \widetilde{H}_{w}^{\mathrm{d}}\in\mathbb{R}^{4L\times n_{g}} be the concatenated Hankel matrix of measured pairs \col(\mu_{k},\widetilde{y}_{k}), ordered by sample. Fix positive scales s_{\mu},s_{y}\in\mathbb{R}^{2} for virtual input and position, and set D_{s}=I_{L}\otimes\diag(s_{\mu,1},s_{\mu,2},s_{y,1},s_{y,2}). Define the mean window c, scaled centred matrix Z, and fitted basis by
\displaystyle c \\ \displaystyle=\frac{1}{n_{g}}\widetilde{H}_{w}^{\mathrm{d}}\mathbf{1}_{n_{g}},\qquad Z=D_{s}^{-1}(\widetilde{H}_{w}^{\mathrm{d}}-c\mathbf{1}_{n_{g}}^{\top}), \\ \displaystyle d \\ \displaystyle=2L+4,\qquad\widehat{V}=\svd_{d}(Z),\qquad\widehat{\mathcal{S}}=\im\widehat{V}.Here \svd_{d} returns the leading d left singular vectors. Centring limits the data rank to at most n_{g}-1, so the fit requires n_{g}>d and an adequately excited dth direction. This rank follows the ideal four-state model and approximates the implemented response.
Each candidate \mathcal{S} describes the physical affine set c+D_{s}\mathcal{S}. The mean, scales and fitted subspace remain fixed during a run. Scaling sets both the relative input/output weights and the geometry used to compare subspaces.
Let \widetilde{w}_{j}=\col(\mu_{j},\widetilde{y}_{j}) and w_{j}^{\mathrm{ref}}=\col(\mu_{j}^{\mathrm{ref}},q_{j}^{\mathrm{ref}}). Stack the measured past and desired future, then transform them into the fitting coordinates:
\bar{b}_{k}=\col(\widetilde{\mathbf{w}}_{k-T_{\mathrm{ini}}:k-1},\mathbf{w}_{k:k+N-1}^{\mathrm{ref}}),\qquad b_{k}=D_{s}^{-1}(\bar{b}_{k}-c).For the returned trajectory parameter and adverse subspace, decode
\mathbf{w}_{k}^{\mathrm{a}}=c+D_{s}P_{\mathcal{S}_{k}^{\mathrm{a}}}\xi_{k},\qquad\mu_{k}=S_{\mu}\mathbf{w}_{k}^{\mathrm{a}},\qquad S_{\mu}=\begin{bmatrix}0_{2\times 4T_{\mathrm{ini}}}&I_{2}&0_{2\times(4N-2)}\end{bmatrix}.The selector extracts the first future virtual input. Physical future tracking weights are the inverse squared channel scales.
C.2 Prediction for Prescribed Inputs
For the prediction tests, write a fitted trajectory as w(\zeta)=c+D_{s}V\zeta, with \zeta\in\mathbb{R}^{d}. Let S_{u} select all 2L input entries and S_{y,\mathrm{p}} the 2T_{\mathrm{ini}} past output entries. Given the complete prescribed input stack \mathbf{u}^{\mathrm{test}} and past measured positions \widetilde{\mathbf{y}}^{\mathrm{test,p}}, compute
\displaystyle\min_{\zeta\in\mathbb{R}^{d}} \\ \displaystyle\left\lVert S_{y,\mathrm{p}}w(\zeta)-\widetilde{\mathbf{y}}^{\mathrm{test,p}}\right\rVert_{Q_{\mathrm{p}}}^{2} \\ \displaystyle\text{subject to} \\ \displaystyle S_{u}w(\zeta)=\mathbf{u}^{\mathrm{test}},\qquad Q_{\mathrm{p}}=I_{T_{\mathrm{ini}}}\otimes\diag(s_{y,1}^{-2},s_{y,2}^{-2}).The future output entries are the forecast. For the known double integrator, use its exact behaviour and zero affine mean in the same solve. Future positions enter only the error calculation.
C.3 Sine Chart and Scenario-Exchange Optimisation
The scenario-exchange method alternates a convex master solve with an adverse-subspace search. The master minimises the largest cost over its current subspaces. The adverse search adds a subspace with a larger cost at the returned \xi. The master uses the bound \left\lVert\xi\right\rVert_{2}\leq(\sqrt{b_{k}^{\top}Wb_{k}}+\left\lVert b_{k}\right\rVert_{2})/\rho, which contains the sublevel set whose worst-case cost is no greater than the cost at \xi=0.
If \widehat{V}_{\perp} is an orthonormal basis of the complement of \widehat{\mathcal{S}}, the sine chart is
V(X)=\widehat{V}(I_{d}-X^{\top}X)^{1/2}+\widehat{V}_{\perp}X,\qquad X\in\mathbb{R}^{(4L-d)\times d},\quad\left\lVert X\right\rVert_{\mathrm{F}}\leq\rho.For \rho<1, the positive-definite square root exists and the resulting basis is orthonormal. Its chordal distance from the fitted subspace is d_{\mathrm{ch}}(\im V(X),\widehat{\mathcal{S}})=\left\lVert X\right\rVert_{\mathrm{F}}. Multistart local searches operate on this closed chart ball. Its extremal value equals the open-ball supremum; the selected chart point is restricted to \left\lVert X\right\rVert_{\mathrm{F}}\leq(1-10^{-7})\rho before command extraction, keeping the executed projection strictly inside the open ball.
Warm starts and an invertible preconditioning of the master improve its numerical solution without changing the objective. Let J_{k}^{\mathrm{U}} be the numerical upper estimate of the worst-case cost at the returned parameter, J_{k}^{\mathrm{L}} the master-based lower estimate of the optimum, and F_{k}^{\mathrm{a}} the cost at the returned adverse projection. The recorded relative gaps are
\delta_{k}^{\mathrm{out}}=\frac{\max\{0,J_{k}^{\mathrm{U}}-J_{k}^{\mathrm{L}}\}}{1+|J_{k}^{\mathrm{U}}|},\qquad\delta_{k}^{\mathrm{adv}}=\frac{\max\{0,J_{k}^{\mathrm{U}}-F_{k}^{\mathrm{a}}\}}{1+|J_{k}^{\mathrm{U}}|}.These floating-point estimates assess the numerical solve. A finite candidate can be applied at the iteration limit with an open gap, and its termination status is retained in the results. Table 6 lists the numerical settings.
- Exchange iteration limit
- 20
- Adverse search
- Three starts, up to 80 iterations each
- Master / spectral-search limits
- 500 / 80 iterations
- Relative outer / adverse gap targets
- 10^{-4} / 10^{-4}
- Inner / master tolerances
- 10^{-6} / 10^{-9}
- Extracted chart radius
- At most (1-10^{-7})\rho
Across the 6540 geometric updates, 404 meet both gap targets and 6136 reach the exchange-iteration limit. The median relative outer gap is 0.453, with maximum 0.765; the median adverse-search gap is 1.19\times 10^{-7}, with maximum 0.491. These bound separations leave the suboptimality of the executed decisions unresolved. Every executed subspace lies strictly inside the radius-0.01 ball.
C.4 Double-Integrator MPC
Let \mathcal{O}_{N}=\col(C,CA,\ldots,CA^{N-1}). Define \mathcal{T}_{N} by its (i,j) block: CA^{i-j-1}B for 0\leq j<i<N, and zero otherwise. The predicted output is \mathbf{y}=\mathcal{O}_{N}\widehat{x}_{k}^{-}+\mathcal{T}_{N}\mathbf{\mu}. With \bar{Q}=I_{N}\otimes Q and \bar{R}=I_{N}\otimes R, the minimiser satisfies
(\mathcal{T}_{N}^{\top}\bar{Q}\mathcal{T}_{N}+\bar{R})\mathbf{\mu}_{k}=\mathcal{T}_{N}^{\top}\bar{Q}(\mathbf{q}_{k}^{\mathrm{ref}}-\mathcal{O}_{N}\widehat{x}_{k}^{-})+\bar{R}\mathbf{\mu}_{k}^{\mathrm{ref}}.The positive-definite coefficient matrix is factored once; the reference and observer prior update the right-hand side.
C.5 Reference-Centred Direct DeePC
Let H=\widetilde{H}^{\mathrm{d}} be the current direct data matrix, including online windows. The reference centre is g_{k}^{\mathrm{ref}}=H^{\dagger}r_{k}, with r_{k} defined in (5).
For a wide matrix, take a thin QR factorisation H^{\top}=Q_{c}R_{c}, with Q_{c}^{\top}Q_{c}=I, and set H_{c}=R_{c}^{\top}. Then H=H_{c}Q_{c}^{\top}. Decompose g=Q_{c}\zeta+g_{\perp}, where Q_{c}^{\top}g_{\perp}=0. Since g_{k}^{\mathrm{ref}} belongs to the row space of H, it can be written as Q_{c}\zeta_{k}^{\mathrm{ref}}, with \zeta_{k}^{\mathrm{ref}}=H_{c}^{\dagger}r_{k}. Hence
Hg=H_{c}\zeta,\qquad\left\lVert g-g_{k}^{\mathrm{ref}}\right\rVert_{2}^{2}=\left\lVert\zeta-\zeta_{k}^{\mathrm{ref}}\right\rVert_{2}^{2}+\left\lVert g_{\perp}\right\rVert_{2}^{2}.The omitted component changes no prediction and is zero at the optimum. Thus the reduction is exact for the reference-centred squared penalty. When compression is unnecessary, use Q_{c}=I and H_{c}=H. The pseudoinverse is evaluated by a singular-value decomposition with relative cutoff 10^{-12}.
Partition H_{c}=\col(U_{c}^{\mathrm{p}},Y_{c}^{\mathrm{p}},U_{c}^{\mathrm{f}},Y_{c}^{\mathrm{f}}) and set \bar{Q}=I_{N}\otimes Q, \bar{R}^{\tau}=I_{N}\otimes R^{\tau}. Let \mathbf{\tau}_{k}^{\mathrm{ref}}=\col(\tau_{k}^{\mathrm{ref}},\ldots,\tau_{k+N-1}^{\mathrm{ref}}). The condensed quadratic has coefficient matrix and linear term
\displaystyle A_{g} \\ \displaystyle=(Y_{c}^{\mathrm{f}})^{\top}\bar{Q}Y_{c}^{\mathrm{f}}+(U_{c}^{\mathrm{f}})^{\top}\bar{R}^{\tau}U_{c}^{\mathrm{f}}+\lambda_{y}(Y_{c}^{\mathrm{p}})^{\top}Y_{c}^{\mathrm{p}}+\lambda_{g}I, \\ \displaystyle h_{k} \\ \displaystyle=(Y_{c}^{\mathrm{f}})^{\top}\bar{Q}\mathbf{q}_{k}^{\mathrm{ref}}+(U_{c}^{\mathrm{f}})^{\top}\bar{R}^{\tau}\mathbf{\tau}_{k}^{\mathrm{ref}}+\lambda_{y}(Y_{c}^{\mathrm{p}})^{\top}\widetilde{\mathbf{y}}_{k}^{\mathrm{ini}}+\lambda_{g}\zeta_{k}^{\mathrm{ref}}.The stationarity and equality equations are
\begin{bmatrix}A_{g}&(U_{c}^{\mathrm{p}})^{\top}\\
U_{c}^{\mathrm{p}}&0\end{bmatrix}\begin{bmatrix}\zeta_{k}\\
\nu_{k}\end{bmatrix}=\begin{bmatrix}h_{k}\\
\mathbf{u}_{k}^{\mathrm{ini}}\end{bmatrix},where \nu_{k} is a scaled equality multiplier. Cholesky factors and a Schur complement solve this system. Scaled equality and stationarity residuals are checked before accepting the command. Data updates change the factors; reference and history updates change the linear term.
Appendix D Simulation Parameters and Evaluation
D.1 Fixed Settings and Data Collection
All links are uniform rods with g_{0}=9.81\,\mathrm{m\,s^{-2}}. The plant and model parameters are given in Table 1. Table 7 lists the shared controller and simulation settings. The observer uses \Sigma_{y}=\sigma_{y}^{2}I_{2}, \Sigma_{a}=\sigma_{a}^{2}I_{2}, and diagonal initial covariance obtained from the listed standard deviations.
- Predictive / torque-update periods
- T_{\mathrm{s}}=0.1\,\mathrm{s}, T_{\tau}=0.01\,\mathrm{s}
- History, horizon and rank
- T_{\mathrm{ini}}=4, N=8, L=12; d=28 in \mathbb{R}^{48}
- Offline data per method and trial
- Eight episodes of 60 samples; 392 windows
- Collection gains and excitation
- K_{p}=12I_{2}, K_{d}=7I_{2}; excitation standard deviation 0.7\,\mathrm{rad\,s^{-2}} per joint
- Baseline position noise
- \sigma_{y}=0.001\,\mathrm{rad} per joint
- Observer uncertainty
- \sigma_{a}=1\,\mathrm{rad\,s^{-2}}; initial position and velocity standard deviations 0.01\,\mathrm{rad} and 0.1\,\mathrm{rad\,s^{-1}}
- Geometric settings
- \gamma=300, \rho=0.01; position scale 0.1\,\mathrm{rad} and virtual-input scale 2\,\mathrm{rad\,s^{-2}} per joint
- Direct DeePC settings
- Q=100I_{2}, R^{\tau}=0.3I_{2}, \lambda_{y}=3\times 10^{3}, \lambda_{g}=100; centre g_{k}^{\mathrm{ref}}
- Torque magnitude / slew limits
- (15,5)\,\mathrm{N\,m} / (300,100)\,\mathrm{N\,m\,s^{-1}}
- Plant integration
- Fourth-order Runge–Kutta, 0.005\,\mathrm{s} steps
The auxiliary sinusoids have uniformly sampled centres in (-\pi/2\pm 0.06,\,0.4\pm 0.08)\,\mathrm{rad}, amplitudes in [0.25,0.45] and [0.35,0.60]\,\mathrm{rad}, periods in [5,7.5]\,\mathrm{s}, and phases in [0,2\pi). Episodes start at zero velocity with an independent 0.02\,\mathrm{rad} Gaussian position perturbation. Direct DeePC retains all offline columns and up to 392 completed online windows.
Direct-DeePC weights were selected on four separate Arm A trials with the base reference and baseline noise, favouring completed runs with low cyclic error. The selected weights, torque reference and reference-centred penalty are then used in every evaluation condition. No condition-specific retuning is performed.
D.2 References and Performance Measures
The references in Table 4 have phases (0,\pi/3) and a two-second ramp. Evaluation follows a 1.2-second stabilising hold and lasts for the ramp and two cycles: 14 seconds for the base and shifted references, and 11 seconds for the faster reference. Each condition uses six independent data/noise pairs, with measurement noise paired across controllers.
For a completed run of K intervals, define e_{k}=q(t_{k})-q_{k}^{\mathrm{ref}} and the periodic indices \mathcal{K}_{\mathrm{c}}=\{k:0\leq k<K,\ t_{k}\geq T_{\mathrm{r}}\}. The reported measures are
E_{\mathrm{cyc}}=\sqrt{\frac{1}{2|\mathcal{K}_{\mathrm{c}}|}\sum_{k\in\mathcal{K}_{\mathrm{c}}}\left\lVert e_{k}\right\rVert_{2}^{2}},\qquad\tau_{\mathrm{rms}}=\sqrt{\frac{1}{2KT_{\mathrm{s}}}\int_{0}^{KT_{\mathrm{s}}}\left\lVert\tau^{\mathrm{act}}(t)\right\rVert_{2}^{2}\,\mathrm{d}t}.The factor two averages over the joints. Torque effort includes the actual held torque after actuator modification. A trial stops when either position error exceeds 2\,\mathrm{rad}, either speed exceeds 10\,\mathrm{rad\,s^{-1}}, or a numerical failure occurs. The terminal state is checked as well. Incomplete runs enter completion counts but not full-duration error or effort statistics.
D.3 Prediction Tests and Numerical Accuracy
For each test window, the error is \left\lVert\mathbf{q}^{\mathrm{pred}}-\mathbf{q}^{\mathrm{true}}\right\rVert_{2}/\sqrt{2N}, where the vectors stack future positions. Each independently fitted predictor uses three separate 60-sample test episodes, giving 15 non-overlapping windows. Take the median over windows for each fit, then the median and range across six fits. Data are recollected for each noise/mechanics condition, and both predictors solve (22) with identical inputs and past measurements.
The dimension d=28 is retained throughout. Supporting fits with d=30 and 32 gave larger prediction errors and poorer conditioning on the same test records. A numerical-integration check at half the step size changed saved-interval positions by at most 1.42\times 10^{-9}\,\mathrm{rad}, with unchanged actuator paths. Optimisation settings and termination statistics are reported in Section C.3.