TL;DR
This paper introduces a real-time gait planning framework for legged robots that combines the structural advantages of Monte-Carlo Tree Search (MCTS) with the speed of supervised learning. By bootstrapping MCTS with a learned value function and a small number of model-based simulations, the system achieves dynamic, non-gaited locomotion capable of adapting to external disturbances online. The authors demonstrate this approach on a physical 22 kg quadruped robot, marking a successful hardware deployment of a sampling-based method for non-gaited locomotion.
What Problem Does This Paper Address?
When legged robots navigate complex or unpredictable environments, they must constantly decide when and where to place their feet. This problem is inherently hybrid, combining discrete choices (which foot to move next) with continuous variables (forces and timings).
Traditional approaches like Nonlinear Programming (NLP) often get stuck in poor local minima, while Mixed-Integer Programming (MIP) is computationally heavy (NP-hard) and struggles to run in real-time. On the other end of the spectrum, Reinforcement Learning (RL) can discover complex behaviors but typically requires extensive reward engineering, ignores the underlying physics structure, and suffers from sim-to-real generalization gaps.
While Monte-Carlo Tree Search (MCTS) has shown promise in balancing discrete and continuous optimization, vanilla implementations are far too slow to reactively adapt a robot's gait on real hardware in real-time. This paper tackles the challenge of making MCTS fast enough for online, non-gaited locomotion control.
Methods
The authors formulate the contact planning problem as a Markov Decision Process (MDP) and solve it using an augmented MCTS framework. The overall control architecture operates at three distinct frequencies to bridge high-level planning with low-level torque control:
To overcome the computational bottleneck of vanilla MCTS—which relies on solving numerous Quadratic Programs (QPs) to evaluate potential future states—the authors introduce a Value Function (VF) network. This Multi-Layer Perceptron (MLP) is trained offline to predict the expected "cost-to-go" for a given contact sequence and robot state.
Crucially, rather than relying solely on the neural network (which can fail when encountering unfamiliar states), the authors propose a Hybrid Approach. During the MCTS simulation step, a node's cost is calculated using a weighted combination of just 5 model-based MPC rollouts (QP simulations) and the learned value function:
$$P_n = \alpha \bar{P}_n + (1 - \alpha)P_{vf}$$
This bootstrapping technique allows the search tree to explore deeper and faster while maintaining physical plausibility and robustness.
Datasets
The Value Function network was trained on a dataset generated entirely in simulation using the RaiSim physics engine.
- Data Generation: The authors ran a high-fidelity vanilla MCTS (using 120 QP simulations per node expansion) across flat and rough terrains.
- Randomization: To ensure robustness, they randomized velocity commands, step heights, robot mass, controller gains, and base height, while also applying random external force perturbations.
- Size: The final dataset consisted of 26,563 MCTS trees, logging the inputs and corresponding optimal cost estimates for training the MLP.
Key Insights and Ideas
- The Out-of-Distribution (OOD) Vulnerability: Purely learning-based methods (like an Action Policy or pure Value Function) perform excellently within their training distribution but degrade severely when exposed to extreme out-of-distribution scenarios (e.g., steeper slopes or higher speeds than trained on).
- The Power of the Hybrid Blend: Combining just a few physics-based QP rollouts (5 instead of 120) with the learned value function acts as a regularizer. It anchors the neural network's predictions in real-world physics, restoring baseline-level performance even in unfamiliar environments.
- More Simulations $\neq$ Better Real-Time Performance: Under a strict real-time execution budget (80 ms), increasing the number of QP rollouts per node actually degrades overall performance. This happens because the algorithm spends too much time precisely evaluating a few nodes rather than exploring a broader variety of gait options across the tree.
Key Results
- Computation Speedup: Evaluating a node with the learned Value Function takes less than 1 ms, compared to approximately 20 ms for a parallelized 120-QP simulation baseline.
- OOD Resilience: In out-of-distribution testing, the hybrid approach (5 QP + VF) kept the mean MPC tracking cost within 7% of the computationally heavy vanilla MCTS baseline. In contrast, a pure VF approach saw a 195% cost increase, and a pure Action Policy shot up by 484%.
- Hardware Validation: The pipeline was successfully deployed on a real Unitree Aliengo quadruped. When struck by a 27 kg punching bag, the MCTS planner reactively adapted the robot's gait online—keeping both left feet planted longer to counteract the impact—significantly outperforming standard periodic trotting gaits.
Limitations and Future Work
While the framework achieves real-time non-gaited locomotion, it currently relies on a simplified Single Rigid Body (SRB) model, which ignores leg dynamics. To prevent unrealistically fast leg movements, the authors had to implement heuristic swing and stance time constraints during tree expansion.
Future work will focus on incorporating more complex and accurate robot dynamics models to extend this approach to humanoids. Additionally, the authors plan to integrate visual feedback directly into the MCTS framework to enable simultaneous gait adaptation and terrain-aware footstep surface selection.
Summary updated