Learning Quadruped Locomotion Policies using Logical Rules
David DeFazio, Yohei Hayamizu, Shiqi Zhang
TL;DR
This work introduces RM-based Locomotion Learning (RMLL), which uses Reward Machines to specify quadruped gaits through simple foot-contact propositions, enabling easy gait specification, efficient policy learning, and runtime gait-frequency control without relying on motion priors. By incorporating the RM state into the RL state, the approach captures gait-level history and achieves improved sample efficiency across six gaits, including novel ones like Three-One and Half-Bound. Extensive simulation demonstrates energy and stability trade-offs across terrains, and real-world experiments on a Unitree A1 confirm sim-to-real transfer and dynamic gait-frequency adjustment. The framework offers a flexible, scalable path toward rapid gait customization and deployment in legged robots, with future work on gait transitions, additional parameters, and language-driven gait extraction.
Abstract
Quadruped animals are capable of exhibiting a diverse range of locomotion gaits. While progress has been made in demonstrating such gaits on robots, current methods rely on motion priors, dynamics models, or other forms of extensive manual efforts. People can use natural language to describe dance moves. Could one use a formal language to specify quadruped gaits? To this end, we aim to enable easy gait specification and efficient policy learning. Leveraging Reward Machines~(RMs) for high-level gait specification over foot contacts, our approach is called RM-based Locomotion Learning~(RMLL), and supports adjusting gait frequency at execution time. Gait specification is enabled through the use of a few logical rules per gait (e.g., alternate between moving front feet and back feet) and does not require labor-intensive motion priors. Experimental results in simulation highlight the diversity of learned gaits (including two novel gaits), their energy consumption and stability across different terrains, and the superior sample-efficiency when compared to baselines. We also demonstrate these learned policies with a real quadruped robot. Video and supplementary materials: https://sites.google.com/view/rm-locomotion-learning/home
