Abstract
In this paper, with a view toward fast deployment of locomotion gaits in low-cost hardware, we use a linear policy for realizing end-foot trajectories in the quadruped robot, Stoch 2. In particular, the parameters of the end-foot trajectories are shaped via a linear feedback policy that takes the torso orientation and the terrain slope as inputs. The corresponding desired joint angles are obtained via an inverse kinematics solver and tracked via a PID control law. Augmented Random Search, a model-free and a gradient-free learning algorithm is used to train this linear policy. Simulation results show that the resulting walking is robust to terrain slope variations and external pushes. This methodology is not only computationally light-weight but also uses minimal sensing and actuation capabilities in the robot, thereby justifying the approach.
Introduction
State-of-the-art quadrupedal robots often rely on Model Predictive Control (MPC) or Deep Reinforcement Learning (DRL) with large neural networks. While effective, these methods are computationally expensive and typically require high-end actuators and powerful CPUs/GPUs. This research addresses the challenge of creating a stable locomotion framework for low-cost, medium-sized quadrupeds that use hobby servos and simple microcontrollers. The goal is a controller lightweight enough for embedded systems yet robust enough for sloped and uneven terrain.
Methodology
The researchers utilized Stoch 2, a custom-built, low-cost quadruped. The control architecture centers on a Linear Policy, defined as a $20 \times 11$ matrix ($M$) that maps an observation vector ($s$) to an action vector ($a$) via the calculation $a = Ms$.
Observations and Actions
The input vector includes the robot's current roll, pitch, and yaw, along with a history of these orientations ($t, t-1, t-2$) to filter noise and detect slips. It also incorporates an estimated terrain slope. Instead of raw joint torques, the policy outputs five parameters per leg to shape a semi-elliptical foot trajectory, adjusting position, rotation, and step length in real-time. The Stoch 2 robot features a five-bar leg architecture, which provides a well-defined workspace for these trajectories.
Training and Simulation
The policy was trained using Augmented Random Search (ARS), a gradient-free optimization method. To enhance learning, the team employed Curriculum Learning (gradually increasing slope difficulty) and a Guided Initial Policy (starting with heuristics like the "telescopic strut" strategy). Training and evaluation were conducted in the PyBullet physics engine across 29 combinations of slope angles ($0^\circ$ to $11^\circ$) and orientations (uphill, downhill, and side-hill).
Results and Discussion
The linear policy proved sufficient for capturing complex recovery behaviors. The inclusion of orientation history acted as a temporal filter, significantly improving stability and representational capacity. The learned linear policy can be visualized as a heatmap, showing how specific orientation inputs influence the trajectory parameters for each leg.
Performance and Robustness
The optimal policy was learned in just 72 iterations. The robot successfully traversed slopes up to $11^\circ$ and demonstrated impressive disturbance rejection, recovering from a 100N lateral push within 0.5 seconds. Furthermore, the policy generalized well to larger robots like HyQ and Unitree-Laikago without retraining, proving the approach is robot-agnostic.
Conclusion
This work demonstrates that robust locomotion on sloped terrain can be achieved with minimal computation. By parameterizing the action space as foot trajectories, a simple linear policy can replace complex neural networks. While limited by the physical kinematics of the Stoch 2 leg design (max $13^\circ$ slope), the approach is highly efficient for real-world deployment on inexpensive hardware. Future work will focus on physical validation on the Stoch 2 hardware.
Summary updated