Abstract
In the context of deep learning for robotics, we show an effective method of training a real robot to grasp a tiny sphere (1.37cm of diameter), with an original combination of system design choices. We decompose the end-to-end system into a vision module and a closed-loop controller module. The two modules use target object segmentation as their common interface. The vision module extracts information from the robot end-effector camera, in the form of a binary segmentation mask of the target. We train it to achieve effective domain transfer by composing real background images with simulated images of the target. The controller module takes as input the binary segmentation mask, and thus is agnostic to visual discrepancies between simulated and real environments. We train our closed-loop controller in simulation using imitation learning and show it is robust with respect to discrepancies between the dynamic model of the simulated and real robot: when combined with eye-in-hand observations, we achieve a 90% success rate in grasping a tiny sphere with a real robot. The controller can generalize to unseen scenarios where the target is moving and even learns to recover from failures.
Introduction
Bridging the "Reality Gap" remains a significant hurdle in robotics. Policies trained in simulation often fail in the real world due to two primary discrepancies: the Visual Gap, where simulated environments lack the noise and complexity of reality, and the Dynamic Gap, where physical properties like friction and joint latency differ from simulation.
This work addresses these challenges by proposing a modular, closed-loop control system for high-precision grasping. By utilizing an "eye-in-hand" camera and a decoupled architecture, the system achieves a 90% success rate in grasping a 1.37cm sphere—a task requiring extreme accuracy.
Methods
The system is divided into two distinct components: a vision module and a controller module, linked by a simplified visual interface.
Modular Architecture
The core innovation is the use of a binary segmentation mask as the interface between vision and control. This abstraction layer effectively "firewalls" the controller from visual domain shifts.
- Vision Module: A Deep Neural Network (DNN) processes RGB images from the gripper-mounted camera to produce the binary mask. To bridge the visual gap, the module is trained using domain randomization, where simulated spheres are overlaid onto 800 real-world background images.
- Controller Module: This module takes the binary mask and the robot's current joint angles as input, outputting continuous joint updates. It is trained in simulation using the DAGGER imitation learning algorithm, guided by a scripted "expert" policy.
Eye-in-Hand Control
Unlike traditional third-person camera setups, the "eye-in-hand" configuration provides a first-person view that increases in resolution as the gripper approaches the target. This closed-loop feedback (running at 10 FPS) allows the robot to compensate for physical inaccuracies in real-time.
Results
The proposed framework demonstrated significant robustness and accuracy across several metrics:
- High Success Rate: The real Baxter robot successfully grasped the tiny sphere in 18 out of 20 trials (90%).
- Visual Robustness: The vision module achieved 98.3% recall on real-world data, significantly outperforming color-thresholding baselines, particularly in challenging lighting conditions.
- Dynamic Generalization: Despite being trained on static targets, the closed-loop controller successfully tracked and grasped moving objects.
- Emergent Recovery: Through DAGGER training, the robot learned to recover from failed grasp attempts—such as lifting the arm to re-locate the ball—without explicit programming.
Conclusion
This research proves that smart system decomposition and simple abstraction layers (like binary masks) can be more effective for Sim-to-Real transfer than end-to-end learning. By focusing on modularity and closed-loop feedback, the authors achieved high-precision control that is robust to both visual and dynamic discrepancies. Future work will explore multi-object segmentation and the use of Reinforcement Learning for hardware fine-tuning.
Summary updated