How To Train Your HERON

Antoine Richard, Stéphanie Aravecchia, Thomas Schillaci, Matthieu Geist, Cédric PradalierIEEE RA-L 2021

Abstract

In this paper we apply Deep Reinforcement Learning (Deep RL) and Domain Randomization to solve a navigation task in a natural environment relying solely on a 2D laser scanner. We train a model-based RL agent in simulation to follow lake and river shores and apply it on a real Unmanned Surface Vehicle in a zero-shot setup. We demonstrate that even though the agent has not been trained in the real world, it can fulfill its task successfully and adapt to changes in the robot's environment and dynamics. Finally, we show that the RL agent is more robust, faster, and more accurate than a state-aware Model-Predictive-Controller.

1. Introduction

Navigating natural, unstructured environments such as lakes and rivers presents a significant challenge for autonomous robotics. Traditional navigation systems often rely on high-fidelity dynamic models and expensive sensor suites, including RTK-GPS and IMU, to maintain precise state awareness. However, these sensors frequently fail in occluded areas, such as under dense tree canopies, and hand-engineering models for complex water dynamics is notoriously difficult.

While Reinforcement Learning (RL) offers a promising alternative, standard "model-free" RL requires millions of real-world interactions, which is both risky and time-consuming for physical hardware. This work addresses the sim-to-real gap by training an agent entirely in a simulator for immediate ("zero-shot") deployment onto a real Unmanned Surface Vehicle (USV) using only low-cost, sparse 2D laser sensors.

2. Methodology

The core of our approach is the DREAMER algorithm, a model-based RL framework. Unlike model-free methods, DREAMER learns a "world model"—a latent representation of the environment's dynamics—and uses "latent imagination" to train its policy by predicting future states within this internal model. This makes the training process highly data-efficient.

The DREAMER model-based RL architecture, utilizing a Recurrent State Space Model (RSSM) and perception modules to enable latent imagination.

To adapt DREAMER for USV navigation, we implemented several key technical modifications:

  • Perception Modules: We replaced standard 2D CNNs with 1D CNNs to process 2D laser scans efficiently.
  • Domain Randomization (DR): To bridge the sim-to-real gap, we randomized environmental parameters during training, including water current velocity, water density (simulating weight changes), and robot spawn locations.
  • Data Representation: We compared "Laser To Projection" (L2P), using raw laser measurements, against "Projection To Projection" (P2P), which transforms scans into a simplified 2D local map. We found that P2P acted as a crucial bridge, filtering out noise and artifacts present in real-world LiDAR data.
  • Reward Function: The agent was incentivized to maintain a constant velocity of 1.0 m/s and a fixed distance of 10 meters from the shoreline.

3. Experimental Setup

Training was conducted in the Gazebo simulator, utilizing a feature-rich shoreline with approximately 1,000 trees to mimic real-world complexity. Real-world evaluation took place at Lac Symphonie in Metz, France. This 1.4 km shoreline includes challenging features such as hairpin bends and narrow passages, alongside unpredictable variables like wind, rain, and moving obstacles like swans.

4. Results and Discussion

The P2P-based RL agent demonstrated remarkable performance, traveling over 8.2 kilometers on the real lake without a single collision or human intervention. In real-world tests, the agent maintained an average distance of 9.9m from the shore (target: 10m) and an average speed of 0.99 m/s (target: 1.0 m/s).

The HERON Unmanned Surface Vehicle (USV) navigating Lac Symphonie in Metz, France, demonstrating successful zero-shot transfer from simulation in a natural environment.

Our results highlight several key insights:

  • Implicit State Estimation: Despite only having access to 2D laser scans, the agent successfully learned to estimate its own velocity and distance from the shore.
  • Robustness: The RL agent outperformed a traditional Model Predictive Path Integral (MPPI) controller, showing greater resilience to environmental changes. In a stress test involving increased drag (via an attached swimming board), the RL agent adapted instinctively to maintain its path.
  • Weather Resilience: The system remained stable under moderate rain and wind gusts up to 60 kmph, proving its viability for real-world deployment.

5. Conclusion

This work demonstrates that model-based RL with domain randomization can achieve robust zero-shot transfer for USVs in complex natural environments. While tuning domain randomization remains a delicate process, the resulting agent is more adaptable than traditional controllers. Future work will explore extending this framework to Unmanned Ground Vehicles (UGVs) and improving the world model to handle highly dynamic moving obstacles.

Summary updated

BibTeX
@article{richard2021how,
  author = {Antoine Richard and Stéphanie Aravecchia and Thomas Schillaci and Matthieu Geist and Cédric Pradalier},
  title = {{How To Train Your HERON}},
  journal = {IEEE Robotics Autom. Lett.},
  year = {2021},
  url = {https://openreview.net/forum?id=QP5koDTDIXu},
}
Figure