Introduction
In robotics research, a significant "implementation gap" exists between simulation and real-world deployment. While training agents in simulators like MuJoCo is streamlined, transitioning to physical hardware—such as Kuka or Franka arms—often involves navigating vendor-specific APIs, complex middleware like ROS (Robot Operating System), and intricate calibration. This complexity hinders researchers in Machine Learning (ML) and Computer Vision (CV) who may lack deep robotics backgrounds, leading to non-portable code and redundant effort across labs.
RobotIO is a lightweight Python library designed to bridge this gap by providing standardized, "Gym-like" interfaces for diverse robot arms, grippers, and cameras. It enables the development of portable code that functions across different hardware setups with minimal friction.
System Architecture
RobotIO employs a modular, toolbox-style architecture that decouples high-level logic from low-level hardware drivers. This separation allows researchers to focus on policy development without worrying about the underlying communication protocols.
Key Technical Features
- Standardized Interfaces: Abstract Python classes for Robots, Grippers, and Cameras ensure that commands (e.g., moving an arm) remain consistent across different hardware, such as the Kuka iiwa or Universal Robots UR3.
- Gym-like Environment: The library wraps hardware in a structure familiar to Reinforcement Learning (RL) researchers, utilizing standard
step()andreset()functions. - Dictionary-Based Actions: Unlike standard RL environments using raw vectors, RobotIO uses dictionaries to define actions. This allows for clearer specification of movement types (relative vs. absolute) and pathing (e.g., linear paths), enhancing code readability.
- Asynchronous Processing: To maintain high-frequency robot control while handling high-latency tasks like image acquisition, RobotIO utilizes multi-threading and non-blocking calls.
- Safety and Utilities: The library includes AprilTag-based camera calibration and safety "workspaces" that automatically clip robot motions to stay within a safe bounding box, preventing hardware damage during testing.
Data Collection Infrastructure
Rather than providing a static dataset, RobotIO offers the infrastructure necessary to generate them. A specialized Data Recorder is optimized for collecting imitation learning datasets via VR controllers or 3D mice. This functionality has already supported the collection of data for benchmarks like CALVIN, which emphasizes learning from "play" data. By integrating with SteamVR, RobotIO treats VR headsets as first-class input devices, enabling natural teleoperation for high-quality AI training demonstrations.
Hardware Support and Results
The utility of RobotIO has been validated through several real-world use cases and broad hardware support:
- Robots: Out-of-the-box support for the Kuka iiwa, UR3, and Franka-Emika Panda.
- Sensors: Seamless integration with Intel RealSense, Microsoft Azure Kinect, and high-resolution Digit tactile sensors.
- Research Impact: The library has powered research in reinforcement learning, physics-based tasks (e.g., door opening), and visual servoing.
Discussion and Future Work
While RobotIO simplifies real-world experimentation, some limitations remain. Safety workspaces are currently restricted to axis-aligned boxes; future iterations could support more complex, non-convex volumes. Additionally, while the library focuses on physical hardware, tighter integration with simulators would further streamline the sim-to-real pipeline. As an open-source project, the authors encourage community contributions to expand the library's support for new sensors and robotic platforms.
Summary updated