AR2-D2: Training a Robot Without a Robot

Jiafei Duan, Yi Ru Wang, Mohit Shridhar, Dieter Fox, Ranjay Krishna

Abstract

Diligently gathered human demonstrations serve as the unsung heroes empowering the progression of robot learning. Today, demonstrations are collected by training people to use specialized controllers, which (tele-)operate robots to manipulate a small number of objects. By contrast, we introduce AR2-D2: a system for collecting demonstrations which (1) does not require people with specialized training, (2) does not require any real robots during data collection, and therefore, (3) enables manipulation of diverse objects with a real robot. AR2-D2 is a framework in the form of an iOS app that people can use to record a video of themselves manipulating any object while simultaneously capturing essential data modalities for training a real robot. We show that data collected via our system enables the training of behavior cloning agents in manipulating real objects. Our experiments further show that training with our AR data is as effective as training with real-world robot demonstrations. Moreover, our user study indicates that users find AR2-D2 intuitive to use and require no training in contrast to four other frequently employed methods for collecting robot demonstrations.

Introduction

In the field of robot learning, data is the primary bottleneck. Teaching a robot a new task via imitation learning typically requires hundreds or thousands of high-quality demonstrations. Currently, these are collected through kinesthetic teaching, teleoperation, or simulation—each with significant drawbacks. Kinesthetic teaching requires a physical robot on-site; teleoperation requires specialized training and expensive hardware; and simulation often suffers from the "sim-to-real" gap.

AR2-D2 addresses these challenges by improving the accessibility and scalability of data collection. It removes the need for a physical robot during the data-gathering phase, allowing anyone with a smartphone to contribute data from any environment, effectively democratizing robot training.

The AR2-D2 System

The AR2-D2 system utilizes a "record-then-replace" pipeline to generate robot-ready training data from human demonstrations.

The AR2-D2 pipeline: from AR data collection to real-world deployment.

AR Projection and Tracking

Using an iPhone’s LiDAR and the AR Foundation kit, the app projects a virtual version (URDF) of a Franka Panda robot into the user's physical space. The system tracks the user's 3D hand pose in real-time and mirrors it with the AR robot's end-effector. This "ghost" robot provides immediate visual feedback, ensuring the user stays within the robot's kinematic limits and avoids collisions.

A user collecting data using the AR2-D2 iOS app, which overlays a virtual robot on the physical scene.

Data Processing and Training

The app captures RGB video, depth maps, and the 6D pose of the hand/robot. To make the data usable for training, the system employs the Segment Anything Model (SAM) to identify and remove the human hand from the video. A video in-painting technique (E2FGVI) then fills in the background. The resulting processed video appears as if the robot itself performed the task. This data is used to train a Perceiver-Actor (PERACT) agent or a standard image-conditioned Behavior Cloning (BC) agent.

Experimental Evaluation

The researchers evaluated AR2-D2 using a user study with 300 demonstrations across tasks like pick-and-place and stacking. They also tested a personalized object set featuring nine unique real-world objects (e.g., a LEGO train, a computer mouse) to evaluate manipulation primitives like pressing, pushing, and picking up.

Key Results

  • Efficiency: AR2-D2 is significantly faster than traditional methods, with users taking an average of 22.1 seconds per demonstration, compared to 41.6 seconds for kinesthetic teaching.
  • Performance: Robots trained with AR2-D2 data achieved success rates comparable to those trained with real-world VR teleoperation. In some tasks, such as pushing a LEGO train, AR2-D2 data even outperformed teleoperation data.
  • Robustness: The study confirmed that 3D voxel-based training (PerAct) is more robust for these tasks than 2D image-based behavior cloning when handling the noise of AR-generated data.

Insights and Future Work

AR2-D2 leverages natural human dexterity, bypassing the steep learning curve of joysticks or 3D mice. By shifting robot training from expert-only to crowd-sourced, it has the potential to scale robot learning significantly.

However, limitations remain. The difference between iPhone LiDAR and robot-mounted depth cameras necessitates a small amount of real-world fine-tuning (approximately 10 minutes). Future work will focus on using better data augmentation to eliminate this step and porting the system to other AR platforms like Vision Pro.

Summary updated

BibTeX
@inproceedings{duan2023ar,
  author = {Jiafei Duan and Yi Ru Wang and Mohit Shridhar and Dieter Fox and Ranjay Krishna},
  title = {{AR2-D2: Training a Robot Without a Robot}},
  booktitle = {Conference on Robot Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=NQXpY3iSKz},
}
Figure