Cascaded Sim-to-Real Tuning of Extended State Observers With Hardware-Calibrated Damping Constraints for Robot Manipulators
1WIM Inc., Daegu, Republic of Korea · 2Department of Electronics Engineering, Incheon National University, Republic of Korea
Manuscript under review · IEEE Transactions on Industrial Electronics · 2026
Abstract
We propose a two-stage cascaded sim-to-real procedure to tune extended state observers for active disturbance rejection control of robot manipulators. A rigid-joint simulator can favor observer settings that excite unmodeled flexible-joint dynamics on hardware. In the first stage, Bayesian optimization in simulation provides an initial setting, which is evaluated on the robot. Its common relocation parameter is increased until a wrist oscillation appears. Torque spectra from the initial and oscillating settings calibrate a two-mass loop model, whose predicted wrist-mode damping defines a constraint for further tuning. In the second stage, constrained Bayesian optimization tunes four relocation parameters of a fourth-order observer on a randomized simulated manipulator, with and without a payload. The search evaluates three damping bounds and limits torque demand. The selected settings are then tested on Cartesian lines.
All three ran without sustained oscillation, their measured wrist-mode peaks followed the predicted order, and their encoder-derived tracking costs were lower than those of the production controller, initial setting, and binomial observer. A comparison using the same initial data and evaluation budget replaced the damping bound with a rigid-loop gain-margin condition. The resulting setting had 4 % lower simulated cost but 5–16 % higher robot cost across the six tested path-payload conditions.
Method
Bayesian optimization in simulation gives an initial common value for the observer, which runs cleanly on the robot. Stepped up toward the values the simulation favors, it brings a sustained wrist oscillation, because the rigid simulated plant has no wrist mode and the simulation lacks a constraint on its damping. Stage 1 obtains this constraint with a two-mass loop model, fitted to the torque spectra of the initial and the oscillating run, which predicts the wrist damping of any setting. In Stage 2, constrained Bayesian optimization on a randomized simulated manipulator, with and without the payload, tunes the four parameters among the settings whose predicted damping is at least a bound, at three levels of the bound, and the optimum of each level returns to the robot against the production ADRC, the binomial observer and the initial value, its measured wrist-mode peak checked against the prediction.
Symbols in the figure
- q, q̇
- measured angle and velocity of a joint
- qd
- reference angle of the joint
- τ
- torque command, limited to the clamp of the joint
- z3
- disturbance estimate of the observer, the only observer state that enters the control law
- ρ1, …, ρ4
- relocation parameters that set the four observer gains, in rad/s; all zero gives the binomial observer (ρ = 0)
- ρ
- common value, all four ρi equal; initial (nominal) value ρ = 59 from the simulation BO of Stage 1
- ρi*
- optimum of the constrained search at one damping bound
- ζ
- damping ratio of the wrist mode that the calibrated two-mass loop model predicts for a setting
- J
- cost of a trial, a weighted sum of path errors and torque activity, each relative to the production ADRC, which scores 1
- no clamp
- the torque demand of every joint stays within 0.9 of its clamp
Simulation
Constrained Bayesian optimization on a randomized simulated manipulator, with and without the payload, at three levels of the wrist-damping bound.
The eleven validation motions
Eleven validation motions, the production ADRC on the left of each cell and a damping-bound optimum of an earlier search, ρi = (108, 90, 91, 81), on the right.
Randomization of the simulated plant, cost and constraints
Every candidate was evaluated on draws 1, 2 and 3 with and without the payload, and the validation of Table I used draws 100–106. Each draw is reproducible from the seed and the row order of the first table, and all values are in randomization_draws.json.
| Quantity | Range or value | How it is applied |
|---|---|---|
| Armature (reflected inertia) scale, joints 1–3 | uniform 0.8–1.2 | one factor for the three main joints |
| Armature scale, joints 4–6 | uniform 0.4–1.0 | one factor for the wrist, the wrist mismatch b/b0 is its inverse, 1.0–2.5 |
| Actuation delay | 2–4 samples, integer uniform | the commanded torque is applied that many 1 ms samples later |
| Measurement delay | 2–4 samples, integer uniform | replaces the nominal 1 sample, the loop delay N is the sum of the two |
| Payload mass scale | uniform 0.9–1.1 | the 4.5 kg pendulum payload, no effect on the unloaded runs |
| Sensor noise scale | uniform 1–2 | multiplies the encoder and velocity noise σ below, the quantization unchanged |
| Encoder noise σ, joints 1–6 (rad) | 1.00e−6, 1.60e−6, 4.20e−6, 1.30e−6, 1.40e−6, 2.90e−6 | white Gaussian at each sample, then rounded to steps of 7.92e−7 (joints 1–3) and 9.49e−7 rad (joints 4–6) |
| Velocity noise σ, joints 1–6 (rad/s) | 4.20e−3, 5.80e−3, 5.20e−3, 1.20e−3, 7.50e−4, 6.40e−4 | white Gaussian at each sample, rounded to steps of 0.00317 (joints 1–3) and 0.00285 rad/s (joints 4–6) |
| Wrist torque noise σ | uniform 0–0.2 N m | white Gaussian on the applied torque of joints 4–6 |
| Disturbance bias | 0–1 % of the rated torque, random sign | on every joint, constant over the run |
| Coloured disturbance noise | 0.5–2 % of the rated torque (σ), corner 2–20 Hz | on every joint, first-order Gauss–Markov (Ornstein–Uhlenbeck) at 1 kHz |
| Coulomb-like disturbance | 0–2 % of the rated torque (c) | on every joint, −c · tanh(q̇/0.01 rad/s) on the true joint velocity |
| Rated torque (N m) | 432, 432, 197.2, 79.79, 79.79, 79.79 | joints 1–6, the reference of the disturbance fractions |
| Random numbers | seed 20260923 | draw k uses numpy default_rng(seed·1000 + k) in the row order above (armature main, armature wrist, wrist torque noise, actuation delay, measurement delay, payload, sensor noise), the disturbance default_rng(seed·1000 + k + 55) in the order bias level, bias sign, coloured σ, corner, Coulomb |
| Draw | Used in | Loop delay N (act. + meas.) | Armature scale, main | Armature scale, wrist (b/b0) | Payload mass scale | Sensor noise scale | Wrist torque noise σ (N m) | Bias, joints 1–6 (N m) | Coloured σ, joints 1–6 (N m) | Corner, joints 1–6 (Hz) | Coulomb c, joints 1–6 (N m) |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | search (the three configurations of every candidate) | 6 (3 + 3) | 1.15 | 0.77 (1.30) | 0.91 | 1.65 | 0.15 | 3.65, −0.59, 0.07, −0.37, −0.13, 0.33 | 5.86, 4.63, 3.05, 0.77, 1.41, 1.43 | 7.6, 17.0, 9.3, 7.2, 2.1, 3.6 | 8.40, 4.69, 2.73, 0.65, 1.43, 0.18 |
| 2 | search (the three configurations of every candidate) | 5 (2 + 3) | 1.12 | 0.64 (1.56) | 1.00 | 1.30 | 0.15 | 2.46, 2.88, 0.20, −0.49, −0.52, −0.27 | 8.17, 4.56, 1.11, 1.54, 1.25, 0.80 | 4.8, 8.4, 6.1, 8.8, 2.3, 13.4 | 2.79, 4.72, 2.83, 1.08, 1.58, 0.29 |
| 3 | search (the three configurations of every candidate) | 5 (3 + 2) | 1.18 | 0.56 (1.77) | 0.93 | 1.88 | 0.19 | −2.62, −1.42, −0.67, −0.31, −0.72, 0.32 | 7.61, 3.39, 2.40, 0.65, 0.84, 1.12 | 17.9, 7.4, 8.8, 8.7, 4.0, 11.7 | 8.49, 5.83, 2.53, 0.52, 0.82, 0.39 |
| 100 | validation | 6 (4 + 2) | 1.11 | 0.44 (2.28) | 0.91 | 1.01 | 0.18 | −2.72, 1.11, −1.02, −0.70, −0.09, −0.46 | 2.83, 6.91, 2.31, 1.38, 1.39, 1.03 | 4.4, 5.3, 16.0, 5.1, 12.5, 8.6 | 8.30, 3.30, 2.44, 0.63, 0.09, 1.10 |
| 101 | validation | 6 (3 + 3) | 1.19 | 0.66 (1.50) | 1.10 | 1.70 | 0.06 | 3.69, −2.23, −0.17, −0.46, 0.01, −0.55 | 8.04, 5.42, 1.80, 0.65, 1.44, 1.17 | 6.7, 17.6, 10.7, 18.0, 18.7, 14.8 | 7.52, 4.68, 3.91, 1.34, 1.20, 1.54 |
| 102 | validation | 5 (2 + 3) | 1.04 | 0.61 (1.63) | 1.00 | 1.40 | 0.18 | 0.75, 2.83, 1.47, 0.30, −0.77, −0.03 | 5.83, 5.67, 1.68, 1.20, 1.54, 0.93 | 10.3, 15.8, 17.6, 10.2, 3.1, 2.1 | 7.86, 6.19, 2.29, 1.51, 1.21, 0.80 |
| 103 | validation | 8 (4 + 4) | 0.86 | 0.72 (1.38) | 0.95 | 1.90 | 0.04 | −3.57, 1.81, 1.31, 0.59, −0.56, −0.01 | 3.98, 2.29, 2.61, 0.80, 1.29, 1.21 | 4.6, 14.5, 14.9, 9.3, 4.8, 7.6 | 4.66, 2.11, 3.53, 0.18, 1.45, 0.01 |
| 104 | validation | 8 (4 + 4) | 0.95 | 0.45 (2.23) | 1.09 | 1.95 | 0.08 | 2.75, −2.64, 1.13, 0.80, 0.73, 0.01 | 7.65, 6.58, 3.59, 0.87, 1.56, 0.49 | 2.5, 14.8, 10.3, 11.4, 8.0, 18.0 | 4.86, 5.65, 1.16, 1.35, 0.97, 0.18 |
| 105 | validation | 8 (4 + 4) | 1.12 | 0.40 (2.48) | 0.96 | 1.36 | 0.05 | 3.98, 3.75, 0.43, 0.38, −0.51, 0.20 | 8.08, 7.03, 1.29, 1.00, 1.55, 0.97 | 14.2, 8.6, 16.4, 11.7, 16.1, 14.5 | 3.57, 0.88, 2.23, 0.10, 1.19, 0.83 |
| 106 | validation, fixed by the configuration | 10 (5 + 5) | 1.15 | 0.45 (2.22) | 0.93 | 1.97 | 0.07 | −2.87, 3.60, 1.52, 0.58, −0.59, −0.64 | 7.98, 6.29, 2.50, 1.23, 0.78, 1.06 | 13.5, 14.5, 3.8, 14.4, 5.7, 2.9 | 4.68, 0.14, 2.01, 0.12, 1.12, 1.37 |
Draws 1–3 are the search configurations (N, b/b0) = (6, 1.3), (5, 1.6) and (5, 1.8) of the paper, draws 100–106 the seven validation configurations. The disturbance dj = biasj + xj − cj tanh(q̇j/0.01) is added to the applied torque of every joint and is unknown to the controller.
Cost J = w⊥ê⊥² + w∥ê∥² + wrevêrev² + wuû, every term a squared ratio to the production ADRC on the same motion and configuration (weights 0.50, 0.18, 0.09, 0.23), û the torque-increment RMS of each joint relative to its production level, squared and averaged over the joints. BoTorch with a log-noisy-expected-improvement acquisition and a feasibility classifier. Proposals pass the Routh–Hurwitz conditions, a slowest-pole limit of 20 rad/s, a shoulder gain margin of 3 dB at the longest delay of the randomization, and the wrist damping bound of the run. The torque demand of every joint stays within 0.9 of its clamp.
Robot experiments
Three 0.30 m lines along x, y and z, with and without a 4.5 kg payload, production gains, 72 runs (six settings, two runs per line and load).
Results against the production ADRC
| Setting | ζ (two-mass) | e⊥, payload | e⊥, no payload | erev, payload | erev, no payload | e∥, payload | e∥, no payload | Wrist-mode peak (dB) | Cost J̄ |
|---|---|---|---|---|---|---|---|---|---|
| Production ADRC (3rd order) | 0.62 | 0 % | 0 % | 0 % | 0 % | 0 % | 0 % | 1.6 | 1.00 |
| 4th, ρ = 59 nominal | 0.20 | −39 % | −36 % | −41 % | −49 % | −36 % | −44 % | 3.9 | 0.55 |
| 4th, binomial (ρ = 0) | 0.20 | −39 % | −39 % | −42 % | −51 % | −37 % | −47 % | 4.7 | 0.53 |
| 4th, ρi = (81, 63, 74, 69) bound 0.15 | 0.15 | −56 % | −60 % | −65 % | −67 % | −53 % | −57 % | 5.4 | 0.40 |
| 4th, ρi = (70, 70, 77, 71) bound 0.10 | 0.10 | −58 % | −61 % | −59 % | −65 % | −52 % | −60 % | 8.6 | 0.39 |
| 4th, ρi = (82, 92, 90, 79) bound 0.05 | 0.05 | −60 % | −61 % | −63 % | −65 % | −57 % | −60 % | 10.5 | 0.39 |
| 4th, ρ = 104 rejected | −0.002 | −68 % | −72 % | −74 % | −76 % | −59 % | −67 % | 29 | not scored |
Relative to the production ADRC, means over the three lines. ζ is the predicted wrist damping, the peak the height of the wrist mode in the joint-5 torque spectrum (z line, these 72 runs), J̄ the cost over the six lines. ρ = 104 oscillated at 30 Hz and is not scored.
Every setting in motion
One cycle of each setting with the payload, the deviation drawn ×100 and coloured by the perpendicular error.
Table II, every line and load
| Setting | e⊥ x (mm) | e⊥ y | e⊥ z | erev x (mm) | erev y | erev z | e∥ x (mm) | y | z | e⊥ x, no payload | y | z | erev x, no payload | y | z | e∥ x, no payload | y | z | J̄ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Production ADRC (3rd order) | 0.28 | 0.29 | 0.36 | 1.63 | 2.43 | 2.90 | 0.22 | 0.38 | 0.36 | 0.26 | 0.25 | 0.34 | 1.57 | 2.71 | 2.57 | 0.18 | 0.39 | 0.31 | 1.00 |
| 4th, ρ = 59 (nominal) | 0.18 | 0.16 | 0.24 | 0.81 | 1.33 | 2.11 | 0.16 | 0.18 | 0.26 | 0.17 | 0.14 | 0.24 | 0.78 | 1.18 | 1.56 | 0.14 | 0.18 | 0.14 | 0.55 |
| 4th, binomial (ρ = 0) | 0.18 | 0.16 | 0.23 | 0.77 | 1.32 | 2.07 | 0.16 | 0.18 | 0.26 | 0.17 | 0.14 | 0.22 | 0.73 | 1.18 | 1.50 | 0.13 | 0.17 | 0.14 | 0.53 |
| 4th, ρi = (81, 63, 74, 69), bound 0.15 | 0.15 | 0.11 | 0.14 | 0.61 | 0.67 | 1.16 | 0.13 | 0.11 | 0.19 | 0.12 | 0.10 | 0.11 | 0.62 | 0.71 | 0.85 | 0.12 | 0.12 | 0.12 | 0.40 |
| 4th, ρi = (70, 70, 77, 71), bound 0.10 | 0.14 | 0.11 | 0.14 | 0.67 | 0.77 | 1.42 | 0.13 | 0.13 | 0.19 | 0.12 | 0.10 | 0.11 | 0.68 | 0.78 | 0.83 | 0.10 | 0.12 | 0.11 | 0.39 |
| 4th, ρi = (82, 92, 90, 79), bound 0.05 | 0.13 | 0.11 | 0.13 | 0.64 | 0.76 | 1.13 | 0.12 | 0.12 | 0.16 | 0.11 | 0.10 | 0.12 | 0.66 | 0.79 | 0.84 | 0.10 | 0.12 | 0.11 | 0.39 |
Means over the two runs of each line, from Table II of the paper. The three optima score 0.385–0.397 over the six lines. With the payload the optimum of the bound 0.05 scores 0.39 and the two more damped optima 0.41, and without the payload the three lie within 0.377–0.387 in no order of the bound. Repeated runs of one setting differ by 2.4 % in cost on the median line and 9.5 % at most. Values run, bound 0.15 (81.43, 63.18, 74.14, 69.31), 0.10 (70.42, 69.99, 77.11, 70.62), 0.05 (82.22, 91.71, 89.59, 79.26), slowest observer pole 20.0, 20.2 and 21.4 rad/s. Production gains kp = 400 s−2 and kd = 40 s−1 (225 and 30 on joints 4–5), b0 = (0.227, 0.121, 0.556, 0.571, 0.393, 0.496) rad/(s2 N m), ωo = 60 rad/s, torque clamped at half the rated torque, (216, 216, 98.6, 39.9, 39.9, 39.9) N m, in the simulation and the hardware plugin alike.
Fitted two-mass model
The two-mass loop model fitted to the ρ = 59 and ρ = 104 runs on the z line is in twomass_fit.json. Of its six fits the paper uses the first, the one of least cost, with an actuation delay of 3 samples and a measurement delay of 4 samples at 1 kHz. Its theta holds μ, the motor-side fraction of the total inertia, fr, the free resonance in Hz, ζr, the damping ratio of the two inertias, and r, the inverse of the total inertia relative to 1/b0, so r = 0.7956 means 1.257 times the nominal inertia, the 26 % of the paper. The entry pred_f_zeta lists the mode frequency and damping of settings by their internal names, adrc the production ADRC, e2 the binomial observer, p6 ρ = 59, p10 ρ = 104, and p7, l1, l2 and q1 settings of earlier revisions. The ζ column of the results table is the damping the model predicts for the current settings. The fitted damping orders the measured wrist-mode peak of the seven straight-line settings of Fig. 6 of the paper: rank correlation −0.96 over the points not used in the fit, as in the paper, and −0.98 over all points. Fit objective: Σ[((f − fmeas)/0.5 Hz)² + ((ζ − ζtarget)/0.01)²] over the two runs (ρ = 59: 26.4 Hz, approximate spectral damping target 0.20 from the 10.5 Hz half-power width of the spectrum without background subtraction; ρ = 104: 30.0 Hz, ζ = 0) + ((Jtotb0 − 1)/0.3)² + 4·104·max(0, 0.15 − ζprod)², where ζprod is the damping of the production observer (0.62 at the fit, so the last term is inactive).
Damping-constrained versus rigid-margin-only tuning
The search at the damping bound 0.05 repeated with a rigid-loop gain margin of the wrist in place of the damping bound.
The two searches shared the 55 starting settings and their evaluations, the budget of 60 additional evaluations, the cost, the plant configurations, the other constraints, the optimizer settings and seed, and the space-filling candidate pool; only the bisected boundary candidates differ, as they lie on the wrist condition of each search. The rigid-margin-only search selected ρi = (79, 120, 105, 88), 4 % below the bound optimum in simulation. On the robot it scored 5–16 % above it on every line and load, mainly through the along-track and reversal errors. Both settings ran without sustained oscillation. On the z line the high-frequency joint-5 torque of the rigid-margin setting exceeded three times the production level, but 77 % and 76 % of its power lay within ±3 Hz of one frequency with and without the payload, below the 80 % threshold of the oscillation criterion. Its wrist-mode peak there was 16 and 14 dB with and without the payload, against 9 dB for the bound optimum on the same line. Each setting ran once per line and load, three cycles per run, so this comparison does not quantify run-to-run scatter. These runs are separate from the 72 runs of the results above.
Ablation, the cost weighting on a wave motion
The same lines with a lateral 4 cm sine, the search repeated under three weightings of the cost.
Every setting in motion
One cycle of each setting with the payload, the deviation drawn ×30.
Table III, every line and load
| Setting | e⊥ x (mm) | e⊥ y | e⊥ z | erev x (mm) | erev y | erev z | e∥ x (mm) | y | z | e⊥ x, no payload | y | z | erev x, no payload | y | z | e∥ x, no payload | y | z | J̄, w⊥ = 0.5 | w∥ = 0.5 | wrev = 0.5 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Production ADRC (3rd order) | 0.49 | 0.62 | 0.58 | 1.76 | 2.48 | 2.66 | 0.40 | 0.41 | 0.48 | 0.43 | 0.45 | 0.54 | 1.57 | 1.85 | 2.42 | 0.30 | 0.28 | 0.42 | 1.00 | 1.00 | 1.00 |
| 4th, ρi = (120, 113, 101, 86), reversal weighting | 0.14 | 0.16 | 0.17 | 0.61 | 0.86 | 0.80 | 0.14 | 0.12 | 0.15 | 0.12 | 0.13 | 0.14 | 0.62 | 0.68 | 0.73 | 0.14 | 0.13 | 0.14 | 0.41 | 0.43 | 0.43 |
| 4th, ρi = (82, 92, 90, 79), bound 0.05, straight lines; along-track weighting | 0.14 | 0.15 | 0.17 | 0.63 | 0.98 | 0.82 | 0.13 | 0.12 | 0.15 | 0.12 | 0.13 | 0.14 | 0.61 | 0.64 | 0.63 | 0.14 | 0.13 | 0.14 | 0.40 | 0.43 | 0.42 |
| 4th, ρi = (92, 92, 92, 80), perpendicular weighting | 0.13 | 0.15 | 0.16 | 0.62 | 0.77 | 0.78 | 0.14 | 0.13 | 0.15 | 0.11 | 0.12 | 0.13 | 0.62 | 0.54 | 0.70 | 0.12 | 0.10 | 0.11 | 0.39 | 0.41 | 0.41 |
Means over the two runs of each line, from Table III of the paper, and the cost under each weighting (one path weight raised to 0.5, the other two 0.1, wu = 0.3). The along-track weighting selected the line optimum. Values run (91.62, 92.25, 91.55, 80.20) and (120.00, 113.06, 100.81, 85.97), slowest observer pole 20.0 and 21.1 rad/s.
Citation
@article{kim2026cascaded,
author = {Kim, Hwarang and You, Sesun},
title = {Cascaded Sim-to-Real Tuning of Extended State Observers With
Hardware-Calibrated Damping Constraints for Robot Manipulators},
journal = {IEEE Transactions on Industrial Electronics},
year = {2026},
note = {under review}
}
Acknowledgement. The production ADRC and the real-time controller PLEM are WIM Inc.'s. The simulation used NVIDIA Isaac Sim and BoTorch.