Abstract
Deep reinforcement learning (deep RL) has emerged as an effective tool for developing controllers for legged robots. However, vanilla deep RL often requires a tremendous amount of training samples and is not feasible for achieving robust behaviors. Instead, researchers have investigated a novel policy architecture by incorporating human experts' knowledge, such as Policies Modulating Trajectory Generators (PMTG). This architecture builds a recurrent control loop by combining a parametric trajectory generator (TG) and a feedback policy network to achieve more robust behaviors. In this work, we propose Policies Modulating Finite State Machine (PM-FSM) by replacing TGs with contact-aware finite state machines (FSM), which offer more flexible control of each leg. Compared with the TGs, FSMs offer high-level management on each leg motion generator and enable a flexible state arrangement, which makes the learned behavior less vulnerable to unseen perturbations or challenging terrains. This invention offers an explicit notion of contact events to the policy to negotiate unexpected perturbations. We demonstrated that the proposed architecture could achieve more robust behaviors in various scenarios, such as challenging terrains or external perturbations, on both simulated and real robots.
Introduction
Developing controllers for legged robots requires balancing model-based control's reliability with the adaptability of deep reinforcement learning (RL). While model-based approaches are robust, they often require extensive manual tuning. Conversely, "vanilla" deep RL can learn complex behaviors but frequently lacks robustness due to the inherent smoothness of neural networks, which struggles with the discrete, "sharp" nature of foot-to-ground contact events.
Previous architectures like Policies Modulating Trajectory Generators (PMTG) attempted to bridge this gap by using a neural network to modulate periodic motions. However, these trajectory generators are typically "blind" to the environment, relying on a clock-based path that fails when encountering unexpected obstacles. The proposed Policies Modulating Finite State Machine (PM-FSM) addresses this by making the system explicitly aware of its locomotion context through real-time contact sensing.
Methods: The PM-FSM Architecture
The core of PM-FSM is a hybrid architecture that integrates the structural reliability of finite state machines with the flexibility of deep RL.
The system consists of three primary components:
- Finite State Machine (FSM): Unlike time-based generators, this FSM uses states representing gait phases (e.g., extension, retraction, support). Transitions are triggered by real-time sensor data, including foot contact flags and joint angles.
- Feedback Policy: A neural network trained via Proximal Policy Optimization (PPO) observes the robot's state and the current FSM state. It outputs modulation parameters ($\rho$) to adjust FSM frequency and amplitude, alongside a direct feedback term ($u_{fb}$) for fine-tuning joint commands.
- Heuristic Reflexes: To handle challenging terrains, the authors integrated "Upstairs" and "Downstairs" reflexes. If a leg encounters an obstacle prematurely during extension, the FSM triggers a reflex to lift the leg higher and retry the step.
To ensure smooth motion, an exponential interpolation model is used to transition between target joint poses, preventing the jerky movements often associated with discrete state machines.
Experimental Results
The researchers evaluated PM-FSM using the RaiSim physics engine across three benchmarks: Velocity Tracking (VEL), Perturbations (PER), and Stairs (STR).
- Robustness to Perturbations: In tests involving external forces (up to 10N horizontal, 30N vertical), PM-FSM with reflexes achieved an average travel distance of 10.25m, significantly outperforming the PMTG baseline of 7.38m.
- Stair Navigation: PM-FSM was the only architecture capable of navigating randomized stairs (up to 5cm height) consistently, reaching a distance of 5.34m while other baselines failed almost immediately.
- Precision: For velocity tracking, PM-FSM reduced average velocity error to 0.055 m/s, compared to 0.254 m/s for PMTG.
Real-world validation on a Unitree A1 quadruped confirmed that PM-FSM transfers more effectively from simulation to reality. The contact-driven nature of the FSM makes it naturally resilient to mechanical latencies and sensor noise.
Conclusion
The PM-FSM architecture demonstrates that explicit awareness of contact events is a critical factor in robotic robustness. By allowing reinforcement learning to modulate a structured state machine, the system achieves a balance of safety and adaptability. Future work will explore more sophisticated FSM designs for non-periodic behaviors and the integration of advanced model-based controllers.
Summary updated