Simulation-aided Learning from Demonstration for Robotic LEGO Construction

Ruixuan Liu, Alan Chen, Xusheng Luo, Changliu LiuarXiv 2023 · DOI

Abstract

Automating the assembly of complex 3D structures like LEGOs presents significant challenges in perception, planning, and execution. We present the Simulation-aided Learning from Demonstration (SaLfD) framework, which enables robots to learn assembly tasks directly from human video demonstrations. By integrating a simulation-based verification loop, the system overcomes perceptual noise and depth ambiguity, achieving near-perfect success rates on complex structures. This approach bridges the gap between intuitive human creativity and precise robotic execution without requiring expert programming.

Introduction

Robotic assembly of modular components, such as LEGO bricks, serves as a benchmark for precision and structural reasoning. While LEGOs offer a constrained environment, they introduce significant hurdles for automation: the "Expert Barrier" of programming complex plans, the "Constraint Complexity" of structural stability, and "Perceptual Noise" caused by small, reflective surfaces. Standard vision-only methods often fail to distinguish between similar bricks or accurately estimate depth for stud-and-tube connections.

Methodology

The SaLfD pipeline facilitates the transition from a raw human video to a verified robotic construction plan through three distinct stages.

The SaLfD framework pipeline: from human demonstration to simulation verification and final robotic construction.

Keyframe Detection and Task Extraction

A Convolutional Neural Network (CNN) first processes the human demonstration video to identify keyframes, filtering out occlusions such as the human hand. For each pair of keyframes, a second CNN predicts "Node Candidates"—potential brick types, 3D positions $(x, y, z)$, and orientations. Rather than relying on a single prediction, the system generates a ranked list of candidates based on confidence scores.

Simulation Verification

The core innovation of this framework is the simulation-based verification loop. Before physical execution, the robot "rehearses" the construction sequence in a ROS Gazebo environment. The system compares the simulated state with the visual observations from the demonstration. If a discrepancy is detected—indicating a misidentified brick or incorrect placement—the system automatically tests the next best candidate from the ranked list. This closed-loop verification ensures that only structurally valid and visually consistent plans are sent to the physical robot.

Experimental Evaluation

The system was evaluated using a FANUC LR-mate 200id/7L robot and a RealSense L515 RGB-D camera. Training data consisted of both real-world demonstrations and synthetic simulation data to provide clean ground-truth measurements.

Close-up of the robotic arm performing a precise LEGO brick placement during the construction phase.

Results

The SaLfD framework demonstrated superior performance compared to traditional Learning from Demonstration (LfD) and rule-based baselines:

  • Success Rates: For complex 3D structures (e.g., temples or pyramids), SaLfD achieved success rates between 95.2% and 100%, whereas standard LfD methods struggled, peaking at approximately 76%.
  • Operational Efficiency: The automated generation of construction plans was 3x faster than manual simulation modeling and 2x faster than hand-coding machine-readable plans.
  • Robustness: The system effectively handled various brick dimensions (1x2 to 2x6) and colors, successfully managing vertical stacking and orientation constraints that typically cause sensor "hallucinations."

Discussion and Conclusion

The SaLfD framework demonstrates that simulation can serve as a powerful "sanity check" for noisy robotic vision. By accepting perceptual uncertainty and using a verification loop, the system allows non-experts to program robots through simple physical demonstrations. Furthermore, the system inherently supports automatic disassembly by reversing the learned construction sequence.

Future work will address current limitations, such as the single-arm constraint and sensitivity to lighting conditions. Expanding the framework to multi-robot systems will enable the construction of even more complex, large-scale architectures requiring collaborative manipulation.

Summary updated

BibTeX
@misc{liu2023simulation,
  author = {Ruixuan Liu and Alan Chen and Xusheng Luo and Changliu Liu},
  title = {{Simulation-aided Learning from Demonstration for Robotic LEGO Construction}},
  year = {2023},
  eprint = {2309.11010},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.11010},
}
Figure