NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

RPC: A Modular Framework for Robot Planning, Control, and Deployment

Seung Hyeon Bang, Carlos Gonzalez, Gabriel Moore, Dong Ho Kang, Mingyo Seo, Luis SentisarXiv 2024

TL;DR

RPC (Robot Planning, Control, and Deployment) is an open-source, lightweight, C++ framework designed to bridge the gap between robot simulation and real-world hardware deployment. By modularizing planning, feedback control, and visualization, RPC allows researchers to seamlessly swap physics engines (like MuJoCo and PyBullet) and transition algorithms directly to complex platforms like humanoid robots without rewriting core control loops.

What Problem Does This Paper Address?

Developing and deploying model-based planning and control algorithms (such as Model Predictive Control and Whole-Body Control) for complex robots remains highly fragmented. While learning-based methods are popular, model-based approaches are still essential for systematic analysis and safe generalization without massive data collection.

However, existing software solutions suffer from several distinct drawbacks:

  • Middleware and Language Lock-in: Some frameworks are heavily reliant on specific middleware like ROS (e.g., OCS2) or written in languages less optimized for real-time control (e.g., Java-based open-robotics-software).
  • Monolithic or Proprietary Designs: Many state-of-the-art locomotion and manipulation libraries are proprietary, difficult to customize, or lack versatile simulation and debugging interfaces.
  • Sim-to-Real Friction: Moving an algorithm from a simulator to real hardware often requires rewriting cumbersome low-level interface functions due to differing APIs.

The authors introduce RPC to eliminate these bottlenecks by providing a ROS-independent, real-time capable, and highly versatile framework that standardizes interfaces across multiple simulators and physical hardware.

Methods

The RPC framework is organized into a clean, four-layer architecture:

  1. Test Environment: Supports both MuJoCo and PyBullet simulators out of the box, alongside physical hardware.
  2. Interface Layer: Acts as the translator. The Interface module handles reading sensor data and sending joint commands (positions, velocities, torques) regardless of whether the target is a simulator API or a real robot actuator.
  3. Planning and Control Layer: The core mathematical engine. It wraps Pinocchio for rigid-body dynamics computations and includes:
  4. Planners: Locomotion planners like Divergent Component of Motion (DCM) for quasi-static walking and convex MPC (including a Variable Inertia variant) for dynamic walking.
  5. State Machines: Manages distinct contact modes and tasks.
  6. Whole-Body Controllers (WBC): Offers both Implicit Hierarchical WBC (IHWBC) for smooth task/contact transitions and Whole-Body Impulse Control (WBIC) for strict task prioritization.
  7. Visualization / User Interface Layer: Integrates Meshcat for lightweight 3D browser-based rendering and Foxglove for live plotting, logging (via MCAP files), and real-time parameter tuning.
The modular architecture of the RPC framework, detailing the flow from the Test Environment through to the Visualization Layer.

Datasets

Traditional machine learning datasets were not used in this work, as the paper focuses on a model-based control framework. Instead, the framework was evaluated using simulation models and physical hardware configurations of the DRACO 3 humanoid robot, a 25-Degree-of-Freedom (DOF) platform.

Key Insights and Ideas

  • Decoupled Locomotion and Manipulation: Unlike traditional rigid finite state machines where manipulation is tightly bound to walking phases, RPC utilizes independent StateMachine instances. This allows a humanoid robot to manipulate objects freely and continuously, completely decoupled from its current locomotion state.
  • Middleware Independence for Real-Time Performance: By keeping the core planning and control layer in pure C++ and independent of ROS, the framework guarantees the low-latency execution required for high-frequency whole-body control loops. When hardware deployment requires ROS (as with DRACO 3), RPC integrates cleanly via a ROS nodelet using shared memory.
  • Unified Parameter Tuning: Through the Foxglove WebSocket protocol, users can tune gains and control parameters via a web GUI on the fly, which drastically speeds up the tedious process of hardware stabilization.
The Foxglove UI interface showing live simulation tracking, parameter tuning sliders, and real-time data plotting.

Key Results

The authors validated RPC on the complex 25-DOF DRACO 3 humanoid robot across both simulation and physical hardware:

Simulation

  • Cup Shelving (MuJoCo): An operator successfully teleoperated the robot's upper body using a RealSense T265 tracking camera while the DCM planner handled walking footsteps.
  • Omnidirectional Walking (PyBullet): Utilizing the convex MPC planner and WBIC, the robot successfully executed dynamic walking commands (including clockwise and counter-clockwise turning) driven by simple operator keyboard inputs.
Snapshots of DRACO 3 performing teleoperated cup shelving in MuJoCo and omnidirectional walking in PyBullet.

Hardware Deployment

  • Bimanual Spray Cap Removal: Using a VR device (Meta Oculus Quest 2) for teleoperation, the real DRACO 3 robot successfully coordinated balancing on its feet while simultaneously grasping a spray can with one hand and removing its cap with the other.
  • Quasi-Static Stepping: The framework successfully deployed a DCM-based stepping-in-place task on the physical hardware using the IHWBC controller to maintain body posture and track swing foot trajectories.
Physical hardware experiments showing DRACO 3 performing a bimanual spray cap removal task and quasi-static stepping.

Limitations and Future Work

While RPC demonstrates high versatility, the paper notes that expanding the framework to support additional physics simulators, distinct robot topologies (beyond manipulators and humanoids), and alternative control strategies remains an ongoing effort. Additionally, while the core control loop is ROS-independent, incorporating advanced perception stacks or learning-based vision policies into this pipeline without introducing latency bottlenecks represents an open area for development.

Summary updated

BibTeX
@misc{bang2024rpc,
  author = {Seung Hyeon Bang and Carlos Gonzalez and Gabriel Moore and Dong Ho Kang and Mingyo Seo and Luis Sentis},
  title = {{RPC: A Modular Framework for Robot Planning, Control, and Deployment}},
  year = {2024},
  eprint = {2409.10015},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.10015},
}

Loading related content...

Figure