Sim-to-reality adaptation for Deep Reinforcement Learning applied to an underwater docking application
Organizations: Authors with the Faculty of Computer Science, Computer Vision and Robotics Research Group (vicorob) Universitat de Girona, 17003 Girona, Spain.
Abstract
Deep Reinforcement Learning (DRL) offers a robust alternative to traditional control methods for autonomous underwater docking, particularly in adapting to unpredictable environmental conditions. However, bridging the "sim-to-real" gap and managing high training latencies remain significant bottlenecks for practical deployment. This paper presents a systematic approach for autonomous docking using the Girona Autonomous Underwater Vehicle (AUV) by leveraging a high-fidelity digital twin environment. We adapted the Stonefish simulator into a multiprocessing RL framework to significantly accelerate the learning process while incorporating realistic AUV dynamics, collision models, and sensor noise. Using the Proximal Policy Optimization (PPO) algorithm, we developed a 6-DoF control policy trained in a headless environment with randomized starting positions to ensure generalized performance. Our reward structure accounts for distance, orientation, action smoothness, and adaptive collision penalties to facilitate soft docking. Experimental results demonstrate that the agent achieved a success rate of over 90% in simulation. Furthermore, successful validation in a physical test tank confirmed the efficacy of the sim-to-reality adaptation, with the DRL controller exhibiting emergent behaviors such as pitch-based braking and yaw oscillations to assist in mechanical alignment.
Figures & tables
| Reference | Algorithm | Observation | Action | Reward | Sim. | Real Env. |
|---|---|---|---|---|---|---|
| Anderlini (2019) [ 1 ] | DDPG, DQN | Distance, Success | Matlab | None | ||
| Zhang (2020) [ 17 ] | DQNH/E | Rudder values | Custom reward | Gazebo | None | |
| Patil (2021) [ 12 ] | TD3, SAC, PPO | [x, y, , u, v, r, ] | UUV Simulator | None | ||
| Zhang (2023) [ 18 ] | ARDR, ABPPO, SAC, TD3, PPO | Reward, penalty | Custom | None | ||
| Bharti (2025) [ 2 ] | TD3 | Gazebo | Test tank | |||
| Zheng (2025) [ 19 ] | SAC | Rudder values | Custom | None |
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
| Symbol | Description |
|---|---|
| Algorithms and DRL Methods | |
| PPO | Proximal Policy Optimization |
| SAC | Soft Actor-Critic |
| TD3 | Twin Delayed Deep Deterministic Policy Gradient |
| ABPPO | Adaptive Buffer PPO |
| ARDR | Adaptive Rollback Demo Replay PPO |
| Category | Parameter | Value |
| Simulation | Physics calculation freq. | 300 Hz |
| RL inference freq. | 5 Hz | |
| Camera refresh rate | 5 Hz | |
| AUV starting range | ||
| AUV starting Yaw range | ||
| DS starting range |
Underwater Robotics
Underwater robotics develops autonomous and remotely operated machines for navigation, inspection, manipulation, and exploration in aquatic environments.
See all 148 papers