Abstract
LEGO is a versatile platform for prototyping pixelized objects, yet robotic manipulation remains challenging due to tight tolerances and high precision requirements. This paper presents a hardware-software co-design for safe and efficient robotic LEGO manipulation. We introduce a passive "insert-and-twist" end-of-arm tool (EOAT) that reduces problem dimensionality and a learning framework based on evolution strategies (CMA-ES) to optimize robot motion. Our approach achieves a 100% success rate in both assembly and disassembly across different industrial robot platforms, including the FANUC LR-mate 200id/7L and Yaskawa GP4, enabling sustainable and repeatable robotic prototyping.
The Challenge of LEGO Manipulation
LEGO bricks present a unique "Goldilocks" problem for robotics: connections are tight enough to require significant force, yet the bricks are small enough to demand extreme precision. Traditional robotic approaches often struggle with the "sim-to-real" gap, where complex friction and contact physics in the real world differ from simulations. Furthermore, while most research focuses on assembly, disassembly is equally critical for sustainable, repeatable prototyping but is often overlooked.
Hardware-Software Co-Design
The proposed solution addresses these hurdles through a dual approach:
- The EOAT (Hardware): Instead of complex, motorized grippers, we designed a lightweight, passive tool inspired by the official LEGO brick separator. This tool uses an "insert-and-twist" mechanism. By securing the brick within a precisely machined tool, "in-hand" pose uncertainty is eliminated, transforming a high-dimensional grasping problem into a simpler 1D twisting task.
- Safe Robot Learning (Software): We utilize Covariance Matrix Adaptation Evolution Strategy (CMA-ES) to optimize four critical parameters: twisting angle ($\theta$), axis offsets ($d_x, d_z$), and task horizon ($T$). Unlike standard Reinforcement Learning, this framework incorporates prior knowledge to bound the search space and uses real-time force-torque sensor (FTS) feedback to ensure safety during physical exploration.
Key Results and Insights
The co-design approach yielded several significant findings:
- 100% Success Rate: Following optimization via CMA-ES, the system achieved a perfect success rate for both assembly and disassembly across various brick types (1x2, 1x4, 2x2, 2x4) and stack heights.
- Efficiency and Robustness: Learning significantly reduced execution time—for instance, assembly time on a FANUC robot dropped from 2.0s to just 0.4s. The system successfully constructed and deconstructed complex 3D prototypes, such as chairs, hearts, and stairs.
- Transferability: The solution is controller-independent. We demonstrated its generalizability by deploying it on both FANUC and Yaskawa robots with zero additional tuning, proving the robustness of the learned parameters.
Conclusion and Future Work
This research demonstrates that well-designed hardware can drastically reduce software complexity in robotic manipulation. While the current system achieves high reliability, future work will focus on integrating computer vision to automate success detection and environment resetting, further reducing the need for human-in-the-loop supervision. We aim to open-source the EOAT design to provide a standard platform for the robotics research community.
Summary updated