# Enhancing Sim2Real Transfer for Torque-Controlled Robots through Real2Sim Dynamics Estimation and Reinforcement Learning

Robotics.world

> Training a robot arm to reach target positions by commanding joint torques directly is attractive because torque control responds naturally to physical forces, but training it on real hardware is…

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

**Published**: 2026-08-23

**Authors**: Davide Bargellini, Alex Pasquali, Andrea Govoni, Riccardo Zanella, Gianluca Palli

## In plain words

Training a robot arm to reach target positions by commanding joint torques directly is attractive because torque control responds naturally to physical forces, but training it on real hardware is slow, expensive, and potentially unsafe.

## AI summary

## Overview

**Research area:** Robotics — reinforcement learning for low-level torque control, and simulation-to-reality (Sim2Real) transfer for robot manipulators.

**Technical level:** Advanced. The paper assumes familiarity with manipulator dynamics (inertia matrices, Coriolis/centrifugal terms, gravity vectors), off-policy reinforcement learning algorithms, and system identification.

**Scope (one sentence):** The paper describes a Real2Sim2Real pipeline that calibrates a simulated 7-DOF Franka Emika Panda using trajectory matching with a genetic algorithm, then trains a TQC (Truncated Quantile Critics) torque-control policy in simulation and transfers it to the physical robot for Cartesian target-reaching tasks.

## What This Paper Is About

Training a robot arm to reach target positions by commanding joint torques directly is attractive because torque control responds naturally to physical forces, but training it on real hardware is slow, expensive, and potentially unsafe. Simulation is the practical alternative, except that simulated dynamics never exactly match the real robot, so policies that look good in simulation can fail or behave unsafely on hardware — the "reality gap." This paper's goal is to shrink that gap for the Franka Emika Panda by identifying the robot's real friction and inertia parameters from measured trajectories, embedding them in the simulator, and then training a reinforcement learning policy that transfers cleanly to the real arm.

## Key Contributions

1. **A Real2Sim2Real pipeline** that chains four stages: parameter estimation from real torque/position data, reinforcement learning training in a calibrated simulator, validation across two simulators (MuJoCo and Gazebo), and deployment on the physical robot.
2. **A custom friction model plus genetic-algorithm optimization** for the Panda's dynamics. Rather than using the friction and damping coefficients from the robot description file, the authors model joint friction separately with a velocity-dependent sigmoid function that includes directional asymmetry (different friction for positive and negative joint velocities), and they optimize inertia and friction parameters by minimizing the error between simulated and real joint trajectories using a genetic algorithm.
3. **A hand-tuned reward function for smooth torque-level reaching**, combining distance-to-goal with `tanh`-bounded velocity and acceleration penalties, with reported weights k₁ = 2, k₂ = 0.03, k₃ = 0.05, k₄ = 1.15, k₅ = 0.03, k₆ = 0.15.
4. **A comparative evaluation of four RL algorithms** — DDPG, SAC, TD3, and TQC — each tuned by grid search, with TQC selected for deployment because it produced the highest episode mean reward and the lowest sensitivity to hyperparameters.

## Main Findings

- **TQC outperformed DDPG, SAC, and TD3:** across the compared algorithms, TQC showed consistently higher episode mean reward and the most stable behaviour, and was described as less sensitive to hyperparameter choices — a property the authors treat as important for deployment.
- **Calibration visibly improved torque agreement:** the paper compares joint 1 and joint 2 torque traces before and after tuning (Fig. 3), reporting that without parameter calibration and with inadequate gravity compensation, the simulated joint-level behaviour diverged from the real robot.
- **Gravity compensation offsets were found to be necessary:** a manually adjusted constant torque offset was introduced per joint to make positive and negative trajectories visually similar. The reported offsets (Nm) are −0.13, −0.73, 0.03, 0.53, 0, −0.06, 0 for joints 1 through 7.
- **Static friction was handled with a dead-zone model:** a linearly increasing torque was applied to each joint until motion was detected, giving positive and negative breakaway torques for every joint (for example 0.65 / −0.62 Nm on joint 1 and 0.88 / −0.81 Nm on joint 2). In simulation, actions were nullified when joint velocity stayed in a small band and applied torque was below the identified threshold.
- **Optimized parameters changed substantially from the description-file values:** after genetic optimization, the friction gain φ₁ rose in every joint (for example joint 1 from 0.55 to 3.40, joint 4 from 1.28 to 2.44), φ₂ changed in every joint (joint 2 from 9.07 to 28.67, joint 7 from 10.34 to 1.70), and the inertia tensors of all seven links were revised (for example link 1's I_xx went from 0.70337 to 0.5123).
- **Domain randomization ranges were tuned empirically:** all 21 joint-specific friction parameters φ were perturbed within ±10%, and all 42 elements of the joint inertia matrices within ±5% of their estimated values. The authors state that larger perturbations destabilized training while smaller ones reduced generalization.
- **Sim2Sim transfer held across two simulators:** the TQC agent, trained in MuJoCo for speed, was tested in Gazebo with different Panda model parameters across four random goal scenarios (Fig. 4), and reached the goals in both environments (Figs. 5 and 6).
- **Sim2Real transfer succeeded with minor residual error:** the deployed policy achieved what the authors describe as high reward scores on the physical Panda and consistently brought the end effector near randomized goals, with the paper noting slight deviations in two of the four illustrated goal cases (Fig. 8b and 8c).
- **Not reported:** the paper does not provide numerical tracking-error, success-rate, or reward values, nor a stated number of training steps, episodes, or real-robot trials. These results are presented graphically rather than as tables of metrics.

## Methodology in Plain English

The approach has four stages.

First, the researchers recorded how the real Panda actually moves when torque commands are applied. They then built a simulator of the same robot and asked: what friction and inertia values make the simulated joint trajectories look most like the recorded ones? Instead of solving this analytically, they used a genetic algorithm — generate many candidate parameter sets, simulate each one, keep the ones whose trajectories come closest to the real data (measured by summed absolute trajectory error over the trial), mutate them, and repeat. Friction was modeled with a smooth velocity-dependent curve that can differ for forward and backward motion, and static friction was added separately as a breakaway torque below a small velocity threshold. Gravity compensation errors were corrected with fixed per-joint torque offsets found by hand.

Second, the calibrated simulator became the training environment. The robot's task is to reach randomly placed Cartesian targets using only joint torque commands. The reward gives a positive score for being close to the goal and penalizes fast and jerky joint motion, with a `tanh` function capping how much large velocity or acceleration values can hurt, which keeps the objective numerically stable. During training, friction and inertia values were randomly jittered around the identified values (within the ±10% and ±5% ranges) so the policy would not overfit to one exact set of numbers.

Third, they compared four standard RL algorithms (DDPG, SAC, TD3, TQC), tuning each with grid search, and picked TQC based on reward and stability. Training happened in MuJoCo because it simulates faster; the resulting policy was then re-tested in Gazebo, a physically different simulator, as a middle step before touching hardware.

Fourth, the policy was run on the real Franka Emika Panda and its behavior compared against the MuJoCo results for the same randomly chosen goals.

## Why This Matters

**Impact on research:** The paper argues that for torque-level control, getting the physics right matters more than clever policy tricks. Its distinctive claim is that a bespoke, identified friction model — rather than the friction parameters shipped in the robot's description file — is what makes a purely simulated policy work on hardware. It also shows that calibration transfers across simulators, not just to the real robot, which suggests the procedure targets robot physics rather than one simulator's quirks.

**Real-world applications:**

- Manipulation tasks where the robot must physically comply with its environment rather than rigidly track a position, such as assembly or insertion.
- Human-robot collaboration and service robotics, where torque control allows safer physical interaction — the work is funded under the Horizon Europe IntelliMan project on manipulation for service, manufacturing, and prosthetics.
- Manufacturing tasks requiring force-sensitive contact with tools or parts.
- Prosthetic and assistive devices, where low-level torque control and physical compliance are central.

**Industry relevance:** Deploying a policy trained entirely in simulation avoids costly and risky real-world RL training on hardware. A repeatable identification procedure — measure trajectories, fit friction and inertia, randomize slightly, train — is a workflow that can be applied per robot unit to absorb manufacturing variation, and the paper's emphasis on TQC's low hyperparameter sensitivity speaks directly to the engineering cost of tuning.

## Future Directions

- **Contact-rich manipulation:** extending the pipeline beyond free-space target reaching to tasks where the arm interacts with objects, which the paper explicitly names as future work and which is where torque control's advantages would be most tested.
- **Online system identification:** adapting the friction and inertia estimates during operation instead of fixing them once before training, potentially compensating for drift, payload changes, or wear.
- **Generalization to other robot platforms:** determining whether the same genetic-algorithm trajectory-matching procedure and friction parameterization carry over to arms with different link structures and actuators.
- **Safety-aware RL and compliance control:** integrating explicit safety constraints and compliant behavior into the learned policy, and addressing the residual disturbances the authors observed on hardware — backlash, cable drag, and unmodelled delays — which are currently absorbed only implicitly by domain randomization.

## Target Audience

Robotics researchers and graduate students working on Sim2Real transfer, reinforcement learning for manipulation, and torque or impedance control; engineers at robotics companies who need a practical, repeatable recipe for calibrating a simulated arm before deploying learned controllers on hardware; and readers interested in system identification of friction and inertia in serial manipulators. Beginners will find the high-level pipeline accessible but will need background in manipulator dynamics and off-policy RL to follow the parameter estimation and training details.

## Authors’ abstract

Transferring reinforcement learning policies from simulation to Real-World robots remains a major challenge, particularly when dealing with low-level torque control, where even small modelling inaccuracies can lead to unstable or unsafe behaviours. In this work, we propose a Real2Sim2Real pipeline that improves Sim2Real transfer for torque-controlled robotic arms by combining trajectory matching, parameter optimization via genetic algorithms, and domain randomization. Using…

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

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

## Related papers

- [Neural Networks for Temporal Pattern Recognition and Dynamic Arm Gesture Speed Estimation for Robot Control](https://robotics.world/paper/neural-networks-for-temporal-pattern-recognition-and-dynamic-arm-2610.11631) 2026-10-08 · cs.RO · Key terms of the title in common
- [Shaping the Evolutionary Dynamics of Robot Morphology via Adaptive Control Learning](https://robotics.world/paper/shaping-the-evolutionary-dynamics-of-robot-morphology-via-adaptive-2608.23100) 2026-08-24 · cs.RO · Key terms of the title in common
- [Real-time Estimator of Actuator Control and Health (REACH) on an Eel-Inspired Soft Robot](https://robotics.world/paper/real-time-estimator-of-actuator-control-and-health-reach-on-an-eel-2608.14865) 2026-08-14 · cs.RO · Key terms of the title in common
- [QLAUN: A Research-Oriented, Robust, Agile, Modular, and Affordable Torque-Controlled Quadruped Robot](https://robotics.world/paper/qlaun-a-research-oriented-robust-agile-modular-and-affordable-torque-2609.03623) 2026-09-03 · cs.RO · Key terms of the title in common
- [Bayesian Continuum Robot Dynamics and State Estimation](https://robotics.world/paper/bayesian-continuum-robot-dynamics-and-state-estimation-2609.20605) 2026-09-17 · cs.RO · Key terms of the title in common

---

Canonical: https://robotics.world/paper/enhancing-sim2real-transfer-for-torque-controlled-robots-through-2608.22629
