# Residual Reinforcement Learning for Visual Servo Control with Zero-Shot Sim-to-Real Transfer

Robotics.world

> Industrial robots that pick objects off a moving conveyor must track a target precisely, but the robot's kinematic model is never exactly right, camera measurements arrive late and noisy, and belts…

**arXiv**: 2611.19318 · Preprint · not peer-reviewed

**Published**: 2026-11-14

**Authors**: Mahdi Nobar, Alisa Rupenyan, John Lygeros, Jürg Keller

## In plain words

Industrial robots that pick objects off a moving conveyor must track a target precisely, but the robot's kinematic model is never exactly right, camera measurements arrive late and noisy, and belts and actuators have unmodeled dynamics. The authors keep a conventional model-based controller in charge and train a reinforcement learning agent in simulation to add small corrective joint-velocity commands on top of it.

## AI summary

## Overview

**Research area:** Robotics control — reinforcement learning (RL) for visual servo control, sim-to-real transfer, and frequency-domain performance analysis, evaluated on a Franka Emika Panda arm tracking objects on a conveyor belt.

**Technical level:** Advanced. The paper combines loop-shaped multivariable PI control design, Soft Actor–Critic (SAC) training, a delay-compensated Kalman filter, and a sensitivity-function-based lower bound on tracking-error power spectra. Readers need working familiarity with state-space/frequency-domain control and deep RL.

**Scope in one sentence:** The paper shows that a small residual policy learned in a deliberately imperfect simulator, layered on top of an inverse-Jacobian PI controller and paired with latency-compensated state estimation, can be deployed zero-shot on real hardware and beat a provable error bound for that controller class.

## What This Paper Is About

Industrial robots that pick objects off a moving conveyor must track a target precisely, but the robot's kinematic model is never exactly right, camera measurements arrive late and noisy, and belts and actuators have unmodeled dynamics. The authors keep a conventional model-based controller in charge and train a reinforcement learning agent in simulation to add small corrective joint-velocity commands on top of it. The goal is sub-millimeter tracking on a real Franka Emika Panda robot with no hardware fine-tuning, and to demonstrate that this hybrid controller pushes the error below what the family of pure model-based PI controllers can achieve.

## Key Contributions

1. **A residual control architecture with zero-shot sim-to-real transfer.** A nominal inverse-Jacobian PI controller, designed by loop shaping on a biased kinematic model, produces the main joint-velocity command; a SAC policy trained entirely in the digital twin adds an additive residual command. The policy is deployed on hardware without any real-system data or fine-tuning.
2. **A varying delay-compensated Kalman filter for vision-based state estimation.** Each delayed stereo-camera measurement is inserted at its true acquisition index, corrected once, then forward-propagated to the current control instant using conveyor speed, giving a latency-aware target position estimate.
3. **A frequency-domain lower bound on tracking error.** Using a frozen-LTI approximation over 1 s windows, a Hann-tapered short-time power spectral density, and singular-value bounds on the perturbed sensitivity function, the authors derive a pointwise bound on achievable tracking-error spectrum for an admissible class of inverse-Jacobian PI gains (each gain allowed between 0 and twice its loop-shaped baseline value).
4. **Experimental demonstration that the residual policy drives error below that bound.** Simulations in PyBullet and hardware experiments on the Panda show the residual SAC–PI controller outperforming both the biased-model and true-model PI baselines, and crossing the model-based performance limit.

## Main Findings

- **Hardware tracking error reduction:** Across conveyor speeds of 27.9–41.8 mm/s, the method reduces mean tracking errors from 1.1–1.4 mm (baseline inverse-Jacobian PI) to 0.3–0.7 mm.
- **Residual policy beats the theoretical bound:** Simulation and hardware experiments indicate the learned residual drives tracking error below the lower bound derived for the admissible PI controller class.
- **Monte Carlo in simulation (M = 50 episodes):** The residual SAC–PI controller's mean tracking error is around 0.4 mm, while the inverse-Jacobian PI controller with kinematic bias reaches around 1.4 mm and the same controller with the true kinematic model reaches around 1.0 mm. (The provided content is truncated at this point.)
- **Learning behavior:** Training runs for 4000 tracking episodes of N = 110 time instants at δt = 100 ms in PyBullet, with a maximum possible return of 110. After 2000 episodes the residual SAC–PI controller consistently outperforms the inverse-Jacobian PI baseline.
- **Generalization beyond the training speed:** Training uses a nominal conveyor speed of 34.9 mm/s with episode-wise Gaussian offsets of 1 mm/s standard deviation; the same trained policy, with unchanged controller settings, is then evaluated across the wider 27.9–41.8 mm/s range.
- **Zero-shot transfer succeeds despite deliberate mismatch:** A kinematic bias of approximately ±0.5 mm in joint-frame position and ±3° in orientation is injected into the model-based controller in both simulation and hardware trials, and the residual policy is trained under matching domain randomization rather than being corrected by hand.
- **Not reported in the available content:** The number of hardware trials, the spread or variance of hardware tracking errors, training wall-clock time, and comparisons against other RL or learning-based baselines are not given in the text provided.

## Methodology in Plain English

**1. Keep a classical controller as the backbone.** The robot's task is expressed as a Cartesian tracking error between the estimated target position and the end-effector. A PI controller turns that error into a desired Cartesian velocity, which is converted to joint velocities through the pseudo-inverse of the robot's Jacobian. Because the digital twin's kinematics are wrong, the Jacobian used is a biased one, written as the true pseudo-inverse plus an additive uncertainty term.

**2. Tune the gains with textbook loop shaping.** Each of the six joints is modeled as a first-order lag whose time constants were identified in the digital twin by injecting a pseudo-random binary sequence of speed commands and fitting by least squares, giving τ = [0.001, 0.006, 0.011, 0.097, 0.002, 0.008] s. The target crossover frequency is set from the mean of these time constants, and the symmetric optimum criterion yields a phase margin of roughly 60° and a gain margin above 6 dB. The resulting diagonal gains are K_P = diag(5.6, 6.8, 5.6) and K_I = diag(0.38, 8.25, 4.64). When the true kinematic model is used for comparison, re-optimization gives K_P = diag(3.7, 10.9, 8.6) and K_I = diag(3.0, 3.4, 7.7).

**3. Fix the latency problem before learning anything.** Camera images arrive with a random delay; the filter computes the delay in samples, rewinds to the buffered state at the moment the image was actually taken, applies a single Kalman correction there, and then rolls the estimate forward to the present using the conveyor speed. This produces the target position estimate the controller actually uses.

**4. Let RL learn only the correction.** The SAC agent sees a 27-dimensional state: the tracking error, joint positions, joint velocities, the nominal controller's command, and its own previous residual command. Its action is a 6-dimensional residual joint-velocity command, clipped during training to ±0.1 of the maximum joint velocity to keep authority limited. The reward is a smooth logistic function of the absolute per-axis error, with scale L = 2 and sensitivity l = 600, so smaller errors pay more. Training uses two critics, automatic entropy tuning toward a target entropy of −6, discount 0.99, hidden layers of 2 × 256 with ReLU, Adam rates of 10⁻³ for actor and critics and 10⁻⁴ for the temperature, minibatches of 136, a replay capacity of 1.36 × 10⁶, 13 600 warm-up interactions, and 136 updates per 136 interactions.

**5. Randomize everything the real world might do.** Each episode perturbs link positions by N(0, 0.5 mm) and orientations by N(0, 3°), initial joint angles by N(0, 0.01) rad, and initial joint speeds by N(0, 0.001) rad/s, and samples the camera delay uniformly from 70–150 ms. Every time step adds joint-speed noise of N(0, 0.04) rad/s, target-position noise of N(0, 0.5) mm, and target-speed noise of N(0, 0.05) mm/s along the belt axis only. Each episode includes a startup phase (accelerating from rest to near belt speed) followed by the tracking phase.

**6. Prove a floor, then measure against it.** For the class of PI gains within a factor of two of the loop-shaped baseline, the authors bound the smallest singular value of the perturbed sensitivity function and convert that into a lower bound on the tapered tracking-error power spectrum. Comparing the measured error spectrum of the hybrid controller against this bound is what turns "we improved the error" into "we went below what this controller class can do."

## Why This Matters

**Research impact.** The paper makes an unusually strong claim for a learned controller: not merely "better than the baseline" but "below a derived performance limit for the baseline class." It also shows that a low-fidelity digital twin plus targeted domain randomization is enough for zero-shot transfer, which lowers the usual barrier of building high-fidelity simulators. The delay-compensated Kalman filter treats measurement latency as a first-class part of the learning problem rather than a nuisance to be averaged away.

**Real-world applications.**

- Conveyor pick-and-place and bin picking in logistics and e-commerce fulfillment, where objects arrive at varying belt speeds.
- Packaging, sorting, and quality inspection lines where parts move continuously past a fixed camera and gripper.
- Food and agricultural handling, where objects deform or shift and precise kinematic models are hard to maintain.
- Electronics and small-parts assembly on indexed or continuously moving stages, where sub-millimeter placement matters.
- Retrofitting existing installed robots: the method learns a correction around the controller already in the cell, so the low-level controller need not be replaced.

**Industry relevance.** The approach preserves the safety and stability guarantees engineers rely on from model-based control while adding a bounded, clipped learned correction. Training happens entirely offline in simulation, so no production time is spent on hardware exploration, and the paper offers a concrete tuning recipe: try a few hyperparameter candidates in the digital twin across random seeds and pick settings with low tracking error that do not exceed actuator limits.

## Future Directions

- **Beyond pure tracking.** The gripper joint is fixed and the task is tracking a moving target; extending the residual framework to interception, grasping, and contact-rich manipulation on moving conveyors is a natural next step.
- **Richer mismatch models.** The current study injects kinematic bias of about ±0.5 mm and ±3°; how the bound and the residual policy behave under dynamic, payload-dependent, or belt-flexibility mismatch is left open.
- **Delay and sensing assumptions.** Camera delay is sampled uniformly from 70–150 ms and the conveyor speed feedback has a stated noise level; heavier-tailed, time-correlated, or vision-dropout latency profiles are not addressed in the reported content.
- **Tighter bounds and broader controller classes.** The lower bound applies to inverse-Jacobian PI gains within a factor of two of the baseline and relies on a frozen-LTI, ideal-joint-model approximation over 1 s windows; generalizing the bound to other controller structures would sharpen the comparison.
- **Reducing the digital twin requirement.** The paper quantifies how much fidelity is actually needed; identifying the minimum viable twin for a new robot cell is a practical open question.

## Target Audience

Robotics and control researchers working on learning-based control, sim-to-real transfer, and industrial manipulation; control engineers at integrators and robot OEMs who want a learned add-on that does not sacrifice the guarantees of their existing loop; and graduate students in robotics or control who want a worked example of combining loop shaping, Kalman filtering, SAC, and frequency-domain performance analysis in one system. Readers interested only in RL algorithms will find the algorithmic content conventional; the value lies in the system integration and the bound.

## Authors’ abstract

We address tracking a moving object on a conveyor with a Franka Emika Panda robot arm, despite an imprecise digital twin, measurement errors, and noise. Our novel approach augments a loop-shaped inverse-Jacobian PI controller with a residual policy learned via Soft Actor-Critic in the digital twin. A delay-compensated Kalman filter fuses out-of-sequence camera measurements to provide latency-aware moving target position estimates. We compare the achieved performance to a…

[The full abstract on arXiv](https://arxiv.org/abs/2611.19318)

[Read the original paper](https://arxiv.org/abs/2611.19318)

## Related papers

- [All You Need Is Low Fidelity: Zero-Shot Sim-to-Real of Learned Robotic Fish Control](https://robotics.world/paper/all-you-need-is-low-fidelity-zero-shot-sim-to-real-of-learned-robotic-2609.36993) 2026-09-29 · cs.RO · Key terms of the title in common
- [Safe and Scalable Multi-Drone Payload Transport via CBF-based Reinforcement Learning with Zero-Shot Sim-to-Real Transfer](https://robotics.world/paper/safe-and-scalable-multi-drone-payload-transport-via-cbf-based-2607.20665) 2026-07-22 · cs.RO · Key terms of the title in common
- [Embedded Sim-to-Real Visual Servoing: Learned Reaching and Force-Guided Placement](https://robotics.world/paper/embedded-sim-to-real-visual-servoing-learned-reaching-and-force-guided-2611.15658) 2026-11-11 · cs.RO · Key terms of the title in common
- [SimRetract: Zero-Shot Sim-to-Real Robotic Assistance for Retractor Take-Over in Open Surgery](https://robotics.world/paper/simretract-zero-shot-sim-to-real-robotic-assistance-for-retractor-take-2610.38234) 2026-10-28 · cs.RO · Key terms of the title in common
- [SimVLA: Zero-Shot Sim-to-Real VLA Learning for Mobile Manipulation](https://robotics.world/paper/simvla-zero-shot-sim-to-real-vla-learning-for-mobile-manipulation-2610.11248) 2026-10-08 · cs.RO · Key terms of the title in common

---

Canonical: https://robotics.world/paper/residual-reinforcement-learning-for-visual-servo-control-with-zero-shot-2611.19318
