TL;DR
This paper introduces a novel framework that combines Reinforcement Learning (RL) with Model-Based Optimal Control (MBOC) to enable versatile and robust legged locomotion. By using MBOC to generate on-demand reference motions, the RL policy learns to imitate these dynamic behaviors, leading to more reliable and adaptable locomotion controllers that can generalize across different robots and challenging terrains.
What Problem Does This Paper Address?
Legged robots, particularly quadrupedal ones, are incredibly versatile but notoriously difficult to control. Traditional Model-Based Optimal Control (MBOC) approaches, while offering transparency, often rely on simplified models and assumptions that limit the robot's ability to perform a wide range of dynamic maneuvers or adapt to unforeseen circumstances. On the other hand, Reinforcement Learning (RL) can learn complex behaviors through trial-and-error but often requires extensive reward shaping and can struggle with reliability and generalization. This paper aims to bridge this gap by leveraging the strengths of both approaches: using MBOC to provide rich, dynamically consistent training signals for RL, thereby improving its learning efficiency and the resulting policy's versatility and robustness.
Methods
The core of this framework is a hybrid approach that uses MBOC to generate reference motions for RL training. Here's a breakdown:
- On-Demand Reference Motion Generation: The system uses a finite-horizon optimal control problem (OCP) based on a Variable Height Inverted Pendulum Model (VHIPM) to generate dynamically coherent reference motions. This VHIPM is a simplified model that captures base height as a dynamic variable, allowing for more realistic capture of dynamic effects like flying phases. These reference motions are generated "on-demand" during training, meaning they are created as needed, covering a spectrum of gaits and velocities.
- RL-based Motion Imitation: A Deep RL policy (specifically using Proximal Policy Optimization - PPO) is trained to imitate these generated reference motions. The policy takes the robot's state (including body velocity commands, contact phase variables, and observations) as input and outputs joint target positions.
- Reward Function: The reward signal is a product of an imitation reward (measuring the similarity between the robot's state and the reference motion) and a regularizer. This imitation reward is crucial for guiding the RL policy to match the MBOC demonstrations, while the regularizer helps maintain stability and penalizes excessive action rates or foot slippage.
- Generalization: The framework is designed to generalize across different robots and terrains. By training on reference motions generated from a model that can accommodate varying physical properties, the resulting RL policy can be applied to different robot dimensions without specific adjustments. For terrain generalization, simple modifications to reference trajectories and the inclusion of terrain measurements in the observation space are used.
Datasets
The paper primarily uses simulated data generated by an in-house tool based on the Open Dynamics Engine (ODE). The policies are trained on this simulated data and then transferred to real hardware. No new datasets or benchmarks are introduced; instead, the paper focuses on demonstrating the effectiveness of its method on existing robot platforms (Unitree Gol and Unitree Aliengo) and standard locomotion tasks.
Key Insights and Ideas
- MBOC as a "Smart Teacher" for RL: The paper demonstrates that MBOC can serve as an incredibly effective teacher for RL. Instead of relying on hand-crafted rewards, RL learns by imitating high-quality, dynamically consistent motions generated by an optimal controller. This significantly improves learning reliability and reduces the need for extensive reward engineering.
- Dynamic Effects are Crucial for Agile Gaits: The authors highlight that simply imitating kinematic references is insufficient for learning dynamic gaits like pronk or bound. The MBOC-generated reference motions, which incorporate dynamic effects, are essential for the RL policy to learn these agile behaviors.
- Generalization Across Robots is Achievable: A significant contribution is the ability to train a single RL policy that can be applied to robots of different sizes and physical properties without robot-specific tuning. This is achieved by incorporating robot variations into the MBOC reference motion generation.
- RL's Flexibility Overcomes Model Limitations: While the MBOC uses a simplified VHIPM, the RL policy, through its ability to generalize and learn from the demonstrations, can produce more complex and robust behaviors that go beyond the limitations of the underlying simplified model.
Key Results
- Versatile Gait Generation: The trained policies successfully produce a range of gaits (trot, pace, pronk, bound, gallop) and can respond to varying velocity commands.
- Robustness to Perturbations: The policies demonstrate superior performance in rejecting external pushing forces compared to a baseline MPC and another RL method (WTW), maintaining stable locomotion.
- Terrain Adaptation: The framework shows enhanced adaptability to rough and uneven terrains, significantly outperforming a modified MPC in navigating step terrains.
- Sim-to-Real Transfer: The method successfully transfers learned policies from simulation to real hardware (Unitree Gol and Aliengo robots), demonstrating practical applicability.
Limitations and Future Work
- VHIPM Simplifications: The authors acknowledge that the VHIPM, while efficient, does not perfectly represent all aspects of robot dynamics (e.g., pitch and roll body motions on uneven terrain). They suggest that integrating more advanced dynamics models into the MBOC phase is a potential avenue for future work.
- Trade-off Between Imitation and Generalization: A key aspect for future investigation is carefully balancing the strict imitation of MBOC behaviors with RL's ability to generalize. This trade-off is crucial for achieving both precise control and broad adaptability.
- Beyond Periodic Gaits: The current work focuses on gaits that are often periodic or symmetric. Future research aims to extend the approach to generate a wider range of unrestricted, non-periodic, or asymmetric legged robot behaviors, building on their prior work in animal-inspired locomotion.
Summary updated