Ark: An Open-source Python-based Framework for Robot Learning

Magnus Dierking, Christopher E. Mower, Sarthak Das, Helong Huang, Jiacheng Qiu, Cody Reading, Wei Chen, Huidong Liang, Guowei Huang, Jan Peters, Xingyue Quan, Jun Wang, Haitham Bou-AmmararXiv 2025 · DOI

Abstract

Ark is an open-source, Python-first framework designed to bridge the gap between modern machine learning workflows and complex robotics hardware. By providing a "Gym-style" interface and a seamless one-flag switch between simulation and reality, Ark allows researchers to train and deploy state-of-the-art robot learning policies with the same ease expected from standard AI libraries. This paper details the architecture of Ark, its lightweight communication backend, and its efficacy in deploying complex imitation learning and LLM-based reasoning on physical hardware.

Introduction

Despite massive strides in artificial intelligence, robotics remains notoriously difficult to access for many researchers. The "robotics software tax" is high: researchers often face steep learning curves involving low-level C++ programming, fragmented tooling, and the persistent "sim-to-real" gap—where code that works in a simulator fails on a physical robot. While the AI community has flourished thanks to Python-centric, well-documented ecosystems like PyTorch and Gymnasium, robotics has largely remained siloed in complex middlewares like ROS. Ark addresses this by providing a unified framework that speaks the language of AI researchers while handling the complexities of hardware drivers and real-time communication.

Methods

Ark is built on a distributed, node-based architecture centered on three core design philosophies:

  1. ML-Aligned Interface: It adopts the familiar reset() and step() API from OpenAI Gym, making it immediately intuitive for researchers with reinforcement learning (RL) or imitation learning backgrounds.
  2. Seamless Sim-to-Real: The framework uses a unified YAML configuration file. By toggling a single sim flag, the system automatically reroutes data between simulated backends (such as MuJoCo or PyBullet) and physical hardware drivers without requiring code changes in the policy.
  3. Lightweight Communication: Instead of the overhead of full ROS, Ark utilizes Lightweight Communications and Marshalling (LCM) for its publisher-subscriber backend. This ensures low-latency, asynchronous message passing that is easy to debug and highly modular.
Overview of the Ark architecture, illustrating the node network and the seamless transition between real-world hardware and simulation environments.

The framework also includes a ROS-Ark bridge for legacy support, C++ bindings via pybind11 for performance-critical tasks, and a suite of graphical debugging tools including Ark Graph and Ark Viewer.

Data Collection and Embodiments

Ark provides a standardized data collection pipeline for imitation learning, supporting input modalities such as kinesthetic teaching, VR teleoperation, and gamepad input. Demonstrations are saved as synchronized logs that feed directly into imitation learning models. The framework has been validated across several robot embodiments, including the ViperX 300s robotic arm, the OpenPyro-A1 humanoid, and the Husky mobile platform.

Key Results

The utility of Ark was demonstrated through several key benchmarks:

  • Zero-Code Sim-to-Real: A pick-and-place policy trained in simulation was successfully deployed to a real ViperX arm by changing only a single configuration flag.
  • Complex Manipulation: Ark enabled the deployment of Action Chunking with Transformers (ACT) and Diffusion Policy on a humanoid robot for contact-rich tasks like folding cloth.
  • End-to-End Navigation: A Husky robot performed autonomous SLAM and A* path planning in a simulated environment using integrated Ark modules.
  • LLM Integration: The service-based architecture allowed for the integration of DeepSeek-R1 as a high-level reasoning engine. In a board game reasoning tournament, the Ark-integrated DeepSeek-R1 outperformed Qwen 2.5 and Llama 3 with a 43.3% win rate.

Discussion and Future Work

While Ark successfully lowers the barrier to entry for robot learning, several areas for improvement remain. Currently, the framework lacks native parallelization for high-throughput RL training, a feature planned for future integration with StableBaselines3. Additionally, while it supports PyBullet and MuJoCo, future releases aim to include IsaacSim for advanced features like domain randomization. As the industry transitions, the authors also plan to update the ROS bridge to support ROS 2 and implement more robust security protocols for networked communication.

Summary updated

BibTeX
@misc{dierking2025ark,
  author = {Magnus Dierking and Christopher E. Mower and Sarthak Das and Helong Huang and Jiacheng Qiu and Cody Reading and Wei Chen and Huidong Liang and Guowei Huang and Jan Peters and Xingyue Quan and Jun Wang and Haitham Bou-Ammar},
  title = {{Ark: An Open-source Python-based Framework for Robot Learning}},
  year = {2025},
  eprint = {2506.21628},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.21628},
}
Figure