Back to Roadmap
Phase 1.2Week 2-4 · 12 days

LEGO Environment Creation

Build a MuJoCo LEGO assembly environment that is real-world-relevant for IHMC Alex, supports contact-rich press-fit behavior, is stable enough for large-scale dataset generation, and is engineered to production-grade standards.

Primary Goal

Deliver a complete LEGO simulation environment with procedural brick models, soft real press-fit physics, multi-view rendering, and a working MVP-3 multi-step assembly task.

Fixed Upstream Decisions (from Phase 1.1)

Sim Engine

MuJoCo (MJCF-first, code-first workflow)

Robot

Existing IHMC Alex model (upper-body fixed-base)

Action Space

17-D Δq (spine 1 + bimanual 14) + gripper (2) @ 20 Hz

State

Core (q, q̇, gripper) + EE pose/velocity

Views

2 cameras (robot camera, third-person)

Key Phase 1.2 Stance: Soft Press-Fit

We target Real press-fit as the long-term objective, but implement a Soft Press-Fit version now:

  • Geometrically accurate connectors (studs/tubes) and physically plausible contacts
  • Controlled compliance + tolerances to avoid solver instability
  • No "magic snap constraints" as the primary mechanism (diagnostic fallback only)

Environment Tasks

Seven critical components to build a production-ready LEGO simulation environment

00

Soft Real Press-Fit Definition

Implement a Soft Real Press-Fit LEGO connection model: studs and tubes with accurate geometry, but physics made robust via compliance, tolerances, and contact conditioning.

Why This Matters

True LEGO assembly is defined by insertion forces, alignment, and mechanical retention. A soft-real press-fit preserves these phenomena while keeping the simulator stable enough to generate high-quality datasets and support future sim-to-real transfer.

Checklist
  • Define press-fit realism targets (stud enters only if aligned, insertion requires force, connection stable under perturbations)
  • Design contact conditioning strategy using soft-contact parameters
  • Define tolerances and clearances explicitly (capture envelope, retention behavior)
  • Define measurable success criteria (insertion rate, jitter limits, retention tests)
Milestone

Standardized press-fit specification: connect only when aligned, requires insertion effort, stays connected under disturbances

01

Procedural LEGO Brick Models (2×2, 2×4, 2×6)

Create procedural (parametric) LEGO bricks that generate accurate visual meshes, connector metadata, and collision geometry for stable soft press-fit contacts.

Why This Matters

Procedural assets provide scale and extensibility, perfect consistency for dataset generation, and a strong engineering signal: engineered assets, not ad-hoc meshes.

Checklist
  • Define parameterization spec (stud pitch, brick height, stud/tube dimensions)
  • Generate procedural geometry (shell, studs, tubes/sockets)
  • Generate connector metadata with stable IDs (position, axis, radius for each stud/tube)
  • Define collision strategy (primitives for contacts, separate visual mesh)
  • Implement asset export & versioning for reproducibility
Milestone

Procedural generator produces 2×2, 2×4, 2×6 bricks with visually accurate studs, stable collision geoms, and complete connector metadata

02

Stud/Tube Contact Physics

Implement and tune contact physics to achieve press-fit behavior using physically plausible contacts, compliance, and stable solver conditioning.

Why This Matters

This is the core of LEGO assembly realism. If it fails, the environment either becomes unstable (no dataset) or unrealistic (no transfer).

Checklist
  • Define contact material model (friction coefficients, compliance, damping)
  • Implement connector interaction rules (physics-first, not snap-first)
  • Add stability-first conditioning (penetration caps, bounded forces, substep adjustments)
  • Create calibration tests (single-stud insertion, multi-stud insertion, pull-off retention)
  • Ensure dataset relevance (stability across brick sizes, multiple contacts, repeated cycles)
Milestone

Press-fit behavior is demonstrable and repeatable: succeeds when aligned, resists when misaligned, remains attached under disturbance

03

Baseplate & Workspace

Create a baseplate that is physically stable and press-fit compatible, prioritizing realism while keeping geometry and collisions solver-friendly.

Why This Matters

The baseplate anchors the entire assembly task. It defines the reference frame for "correct placement" and enables scalable multi-step builds.

Checklist
  • Implement baseplate with visually accurate surface and press-fit compatible studs
  • Define workspace layout relative to Alex torso (baseplate pose, spawn regions, safety margins)
  • Tune surface/contact parameters to prevent "ice skating"
  • Create validation tests (resting stability, controlled insertion, retention/detach)
Milestone

Baseplate supports soft-real press-fit connections: bricks connect and remain stable, environment numerically stable across episodes

04

Multi-View Rendering & Data Logging

Implement camera and data logging setup that maximizes learning signal, debugging capability, and dataset utility for future methods.

Why This Matters

Capturing richer modalities early enables faster iteration, stronger results, and cleaner evaluation.

Checklist
  • Implement 2 camera mounts (robot camera, third-person) with correct tracking
  • Capture RGB + depth + segmentation per camera
  • Set resolution (320×320 or 384×384) at 20 Hz synchronized with state/action
  • Implement deterministic alignment with metadata (intrinsics, extrinsics, sim time, episode ID)
  • Add dataset sanity viewer for validation
Milestone

Two-view synchronized recording works reliably headless, RGB/depth/segmentation aligned with state/action

05

Block Spawning & Reset

Implement a high-reliability episode manager: deterministic spawns, collision-free initialization, settle phase, curriculum hooks, and full reproducibility.

Why This Matters

Scalable, reproducible, automated data generation pipelines are essential for training robust policies.

Checklist
  • Implement deterministic reset (seed-based, versioned config)
  • Add constraint-based spawn sampling (min-distance, orientation, no intersections)
  • Implement settle phase after spawning
  • Add curriculum scaffolding (single brick → single connection → multi-step assembly)
  • Track reset reliability metrics (success rate, settle time, failure reasons)
Milestone

Reset success rate ≥95%, episodes reproducible by seed, multi-brick scenes without frequent invalid starts

06

MVP-3 Task (Multi-Step Assembly)

Implement an MVP demonstrating true assembly: multi-step stacking of multiple bricks with real soft press-fit connections.

Why This Matters

MVP-3 is the strongest showcase: perception, precision, bimanual control, and contact-rich manipulation in a single integrated demonstration.

Checklist
  • Define brick set (2×2, 2×4, 2×6) and assembly goal (2-4 brick structure)
  • Implement objective specification (per-step subgoals, success detection via connector engagement)
  • Implement failure detection (dropped brick, oscillations, misaligned insertion)
  • Validate end-to-end scripted "gold" trajectories
  • Define success criteria (connection formed via press-fit, structure stable for N seconds)
Milestone

Scripted controller completes MVP-3 reliably, connections form via soft press-fit, success detection accurate and reproducible

Key Deliverables

Expected outputs by end of Phase 1.2:

  • Procedural LEGO asset generator (2×2/2×4/2×6) with connector metadata
  • Soft Real Press-Fit model (documented parameters + calibration tests)
  • Baseplate + workspace with reliable press-fit behavior
  • Two-view dataset logging (RGB + depth + segmentation) synchronized with state/action
  • Episode manager with deterministic seeding and reset reliability metrics
  • MVP-3 multi-step assembly scenario + scripted feasibility rollouts
  • Validation report: press-fit calibration, reset reliability, example MVP-3 rollouts

Definition of Done

Brick Assets

Procedural bricks (2×2/2×4/2×6) and baseplate exist with connector metadata.

Press-Fit Physics

Soft-real press-fit contacts are stable and validated via repeatable tests.

Multi-View Recording

Two cameras record RGB+depth+segmentation in sync with state/action.

Episode Management

Spawning/reset is deterministic and reliable (high success rate).

MVP-3 Assembly

Multi-step assembly feasible via scripted rollouts with measurable success metrics.

Validation

Short validation report with press-fit calibration, reset stats, example rollouts.

Estimated Duration

12 days

Back to Roadmap