Abstract
Sampling-based Model Predictive Control (MPC) has emerged as a powerful technique for handling contact-rich robotic tasks. However, the lack of unified, accessible software tools often hinders research velocity and sim-to-real transitions. We introduce Judo, an open-source Python package that combines a user-friendly API and interactive GUI with a high-performance MuJoCo backend. By leveraging asynchronous middleware, Judo enables seamless scaling from simulation to physical hardware, providing a robust platform for both rapid prototyping and real-world deployment.
Introduction
Sampling-based MPC algorithms, such as Model Predictive Path Integral (MPPI) and the Cross-Entropy Method (CEM), are particularly effective for robotic tasks involving non-smooth dynamics, such as multi-fingered manipulation and quadrupedal locomotion. Unlike traditional gradient-based methods, these controllers "sample" numerous potential future trajectories to identify optimal control sequences.
Despite their success, the robotics community lacks a standardized toolset for these methods. Existing libraries are frequently implemented in complex C++ codebases, lack interactive debugging tools, or are tightly coupled to specific simulators. This creates a high barrier to entry and makes the transition from simulation to real hardware notoriously difficult. Judo addresses these challenges by providing a modular, performant, and interactive framework designed for modern robotics research.
The Judo Framework
Judo is designed around four core pillars to maximize research efficiency and performance:
- Python-First API: To accelerate development, the core logic is implemented in Python, allowing researchers to define new tasks and reward functions with minimal boilerplate code.
- MuJoCo Backend: High performance is maintained by utilizing MuJoCo’s optimized C-based physics engine for fast, multi-threaded rollouts, ensuring that the sampling process remains real-time despite the Python-driven interface.
- Asynchronous Architecture: Utilizing the dora Rust-based middleware, Judo runs the controller, simulator, and GUI in separate asynchronous nodes. This zero-copy data transfer architecture mimics real-world hardware communication, facilitating easier sim-to-real transitions.
- Interactive Visualization: A browser-based GUI, built on viser, provides real-time hyperparameter tuning and trajectory visualization.
The interactive GUI (Figure 1) is specifically designed to address the "tuning bottleneck." Sampling-based MPC is highly sensitive to parameters such as the planning horizon and sample count. Judo allows researchers to adjust these values via sliders while the simulation is active, providing immediate visual feedback on how parameter changes affect the "traces" of the best-performing sampled trajectories.
Performance Evaluation
We evaluated Judo across three benchmark tasks: Cartpole, Cylinder Push, and the high-dimensional Leap Cube manipulation task. Benchmarks were conducted on both a consumer-grade laptop (ThinkPad i7) and a server-grade workstation (Threadripper).
The results demonstrate that Judo achieves real-time performance even on consumer hardware. For the complex Leap Cube task, update times were approximately 50ms on the laptop and improved to ~15ms on the 128-thread workstation. This scaling behavior confirms Judo's ability to effectively leverage high-performance computing resources to handle more samples or more complex robotic models. Furthermore, the benchmarks showed consistent performance across three different optimizers: Predictive Sampling (PS), CEM, and MPPI.
Conclusion and Future Work
Judo provides a unified, open-source toolset that lowers the barrier to entry for sampling-based MPC. By decoupling control logic from simulation and providing interactive debugging tools, it streamlines the iterative research cycle. Future work includes the integration of learned neural network controllers and expanding the library's support for a wider range of out-of-the-box hardware interfaces.
The code is open-source and available at: https://github.com/bdaiinstitute/judo
Summary updated