Introduction
Modern quadrupedal locomotion typically relies on computationally intensive Deep Neural Networks (DNNs) or complex Model Predictive Control (MPC) algorithms. While effective, these methods often require high-end hardware, precise torque control (e.g., BLDC motors), and significant domain expertise. This paper addresses the challenge of developing a minimal, computationally lightweight control framework capable of stable, robust walking on sloped terrains for low-cost, medium-sized quadruped robots. The authors demonstrate that a simple linear policy, trained via reinforcement learning, can achieve high performance on hardware built from 3D-printed parts and standard hobby servo motors.
Methodology
Trajectory-Based Control
Rather than learning joint torques from scratch, the framework utilizes a trajectory-based approach. A central generator produces standard 2D semi-elliptic foot trajectories. The role of the learned policy is to modulate these trajectories in real-time to maintain balance and adapt to terrain changes.
The Linear Policy Framework
The core of the controller is a linear policy, represented as a single matrix multiplication. This simplicity allows the controller to run on basic microcontrollers, such as an STM32.
- State Space: The input is an 11-dimensional vector containing a short history of the robot's base orientation (roll, pitch, and yaw at timesteps $t-2, t-1, t$) and the estimated terrain slope.
- Action Space: The output is a 20-dimensional vector that applies spatial transformations to the foot trajectories for all four legs, including X/Y/Z shifts, yaw rotations, and step length adjustments.
Training with Augmented Random Search (ARS)
The policy is trained using Augmented Random Search (ARS), a gradient-free, model-free reinforcement learning algorithm. To ensure robustness and efficiency, the authors employed several strategies:
- Warm Start: Initializing the matrix via supervised learning on hand-tuned heuristics.
- Curriculum Learning: Gradually increasing the steepness of simulated slopes (from 0° to 11°).
- Domain Randomization: Varying physical parameters like friction, mass, and motor strength during simulation to bridge the sim-to-real gap.
Key Insights
- Simplicity and Expressiveness: A single linear matrix proved sufficient for complex slope adaptation and disturbance rejection, provided the action space is well-structured (modulating trajectories rather than raw torques).
- Temporal History as State Estimation: Including a short history of orientation was critical. It allowed the linear policy to act as an implicit state estimator, filtering sensor noise and detecting foot slips despite its limited representational capacity.
- Emergent Strategies: The learned policy naturally developed behaviors similar to human-designed "telescopic strut" strategies, such as shifting the foot position to keep the torso aligned with the slope during uphill climbs.
Results and Discussion
In simulation, the "Stoch 2" robot successfully navigated slopes up to 11°, which is the physical kinematic limit of the hardware. The ARS algorithm converged rapidly, reaching high performance in just 72 iterations.
The controller also demonstrated significant disturbance rejection, recovering from 100N lateral external forces within 0.5 seconds by dynamically adjusting step length and steering. Furthermore, the framework showed high transferability; when scaled to larger simulated robots like the HyQ and Unitree-Laikago, the policy successfully navigated inclines up to 15° without retraining.
Conclusion
This research highlights that robust quadrupedal locomotion does not strictly require deep learning or expensive compute. By combining a structured trajectory-based action space with a simple linear policy, the authors achieved robust performance on sloped terrains. Future work will focus on validating these simulated results on physical hardware to further demonstrate the controller's efficacy on low-cost microcontrollers and servo motors.
Summary updated