TL;DR
This paper tackles the challenging problem of in-hand pen spinning, a fundamental manipulation skill. They introduce a novel sim-to-real approach that leverages a privileged "oracle" policy in simulation to generate high-quality trajectories, which are then used to pre-train and fine-tune a real-world sensorimotor policy, achieving continuous pen spinning with minimal real-world data.
What Problem Does This Paper Address?
In-hand manipulation, particularly reorienting objects like pens, is crucial for many everyday tasks and robotic applications. However, learning to perform dynamic manipulations like spinning a pen is exceptionally difficult. Existing learning-based methods struggle due to two main issues: the scarcity of high-quality demonstrations for such complex, dynamic actions, and the significant "sim-to-real" gap, where policies trained in simulation fail to perform reliably in the real world due to differences in physics and sensing. This paper specifically targets the challenge of achieving continuous pen spinning with a robotic hand, a task that requires precise dynamic balancing and sophisticated finger coordination.
Methods
The authors propose a three-step approach:
- Oracle Policy Training (Simulation): They first train a reinforcement learning (RL) "oracle" policy in simulation. This policy has access to "privileged information" (e.g., ground truth object pose, physical properties) that is not available to the real-world policy. The goal here is to generate highly realistic and dynamic pen-spinning trajectories. Key to this step is a carefully designed reward function that encourages stable, horizontal rotation and a well-designed initial state distribution that mimics human grasping patterns.
- Sensorimotor Policy Pre-training (Simulation): The oracle policy's trajectories are then used to pre-train a "student" sensorimotor policy. This policy only uses proprioceptive feedback (joint positions and velocities), which is available in both simulation and the real world. This pre-training step aims to provide the student policy with a strong "motion prior" and expose it to diverse dynamics, making it more amenable to fine-tuning later. The authors found that direct distillation (like DAgger) from the oracle policy to the student policy didn't work well for this dynamic task.
- Fine-tuning with Real-World Trajectories: The pre-trained sensorimotor policy is then fine-tuned using a small dataset of real-world trajectories. These real-world trajectories are generated by using the oracle policy's actions as an open-loop controller on the real robot. If these open-loop replays successfully spin the object for a certain duration, the trajectory is saved as a demonstration. This fine-tuning step bridges the sim-to-real gap, allowing the policy to adapt to the actual physics of the real robot and objects.
Datasets
- Simulated Trajectory Dataset: Generated by the trained oracle policy in simulation. This dataset is used for pre-training the sensorimotor policy.
- Real-World Trajectory Dataset: Collected by replaying the oracle policy's actions on the real robot. Successful replays are saved as demonstrations for fine-tuning. This dataset consists of approximately 15 trajectories per object, totaling around 45 trajectories for training objects.
The paper also uses a set of 3 training objects and 7 unseen objects for evaluation.
Key Insights and Ideas
- The "Oracle" Approach for High-Quality Demonstrations: For highly dynamic tasks like pen spinning, directly collecting human demonstrations is difficult. Training a privileged oracle policy in simulation is a powerful way to generate realistic and informative trajectories that can serve as high-quality training data.
- Pre-training is Crucial for Sim-to-Real: While direct sim-to-real transfer is challenging for this task, pre-training a sensorimotor policy with simulated data (even if the dynamics aren't perfect) provides a vital motion prior. This makes the policy much more efficient to fine-tune with limited real-world data.
- Open-Loop Replay as a Data Collection Strategy: Using a simulated oracle policy as an open-loop controller in the real world is an effective method for collecting successful real-world demonstrations, especially when teleoperation is not feasible for dynamic tasks.
- Importance of Initial State Design: For dynamic manipulation tasks, a well-designed initial state distribution is critical for successful exploration and learning, going beyond simply sampling random poses.
- Limitations of Vision/Touch for Dynamic Tasks: The authors found that while vision and touch are useful, the sim-to-real gap for dynamic, contact-rich tasks remains significant, making pure vision/touch-based sim-to-real difficult without additional strategies.
Key Results
- The proposed method successfully achieves continuous pen spinning for multiple revolutions on over ten pen-like objects with varying physical properties.
- The fine-tuning process requires very few real-world trajectories (less than 50), demonstrating the effectiveness of the simulation pre-training.
- The oracle policy, with a well-designed initial state distribution and a specific reward term (rz) for maintaining horizontal orientation, significantly improves stability and data collection quality.
- The method outperforms baselines like "Oracle Replay" (direct deployment of simulated oracle policy) and distillation-based approaches, achieving higher rotation radii and success rates, especially on unseen objects. For instance, on unseen objects, their method achieves 10% higher success rates compared to vision distillation.
Limitations and Future Work
- Limited to Z-axis Rotation: The current system is primarily designed for rotation around the z-axis. Extending this to general multi-axis rotation is a promising future direction.
- Assumes Stable Grasp: The work assumes the object is initially placed in a stable grasp. Incorporating more advanced grasping techniques or chaining skills could lead to more general manipulation capabilities.
- Further Exploration of Sensing: While the current approach relies on proprioception, the authors acknowledge that humans use vision for pen spinning and suggest exploring how vision and touch can be further integrated to improve performance.
- Sim-to-Real Gap for Dynamic Tasks: The paper highlights the persistent challenge of the sim-to-real gap for dynamic, contact-rich tasks, suggesting that further research into bridging this gap is needed.
Summary updated