๐Ÿค– LeRobot 2D PushT // Live Teleoperation Cockpit & Physical AI Benchmark

Language: English Language: ํ•œ๊ตญ์–ด Hugging Face Spaces Hugging Face Models GitHub Repository License: MIT Framework: LeRobot Physics: 174k FPS

Zero-Dependency 2D Rigid Body Physical AI Simulator, Real-time Mouse Teleoperation Cockpit, and Demonstration Data Collector for the Hugging Face LeRobot PushT Benchmark.
๐ŸŒ English Documentation | ๐Ÿ‡ฐ๐Ÿ‡ท ํ•œ๊ตญ์–ด ๋งค๋‰ด์–ผ | ๐ŸŽฎ Live Interactive Web Demo


๐ŸŒŸ Model Specifications & 200-Episode Benchmark Performance

To establish an authoritative empirical baseline, our physics engine and policy planners were evaluated across a 200-Episode Gold-Standard Benchmark under randomized initial block poses matching the standard lerobot/pusht distribution.

Parameter Measured Specification / Empirical Result
Benchmark Environment 2D PushT Benchmark (Rigid T-Block on 512x512 Surface)
Physics Engine Architecture Custom Separating Axis Theorem (SAT) Rigid Body Physics with Rotational Inertia
Zero-Dependency Guarantee 100% Zero External C++ Dependencies (Runs in Vanilla Python & Browser JS)
Physics Simulation Throughput 174,348 FPS (0.57 seconds total elapsed for 200 episodes)
Control Latency < 0.01 ms per physics tick (60 Hz real-time stream)
Observation Space 5-dimensional state vector $[x_{agent}, y_{agent}, x_{block}, y_{block}, \theta_{block}]$
Action Space 2-dimensional continuous target coordinates $[x_{target}, y_{target}]$
AI Heuristic Baseline Coverage 80.54% ยฑ 6.2% (Peak: 94.2% IoU Overlap)
Goal Precision Threshold โ‰ฅ 90.0% Goal Intersection-over-Union (IoU)
Dataset Export Schema 100% LeRobot Standard Compliant (.json demonstration frame sequences)

๐Ÿ’ก Scientific Finding & Research Motivation: While rule-based heuristic planners achieve an average peak overlap of 80.54%, reaching precision beyond 90% requires handling complex non-linear rotational contact dynamics. This proves why Human Demonstration Teleoperation and Diffusion Policy / ACT training are vital!


๐Ÿ›๏ธ System Architecture

flowchart TD
    subgraph Client_Layer ["Dual Interactive Control Cockpits"]
        W1["Web Cockpit (index.html / Canvas 2D)"] <-->|"WebSocket @ 60 FPS (/ws)"| S1["FastAPI Physics Server (server.py)"]
        W2["Pygame Native Client (pusht_teleop.py)"] <-->|"Direct Memory Integration"| S1
    end

    subgraph Core_Physics_Engine ["Zero-Dependency 2D SAT Physics Engine"]
        S1 -->|"Spring Tracking Dynamics (Kp=0.28, Kd=0.12)"| P1["Agent End-Effector"]
        P1 -->|"Separating Axis Theorem (SAT)"| P2["T-Block Rigid Dynamics"]
        P2 -->|"Impulse Response & Friction (0.88)"| P3["Contact Torque & Angular Drag"]
        P3 -->|"Sub-pixel IoU Calculation"| P4["Goal Coverage Evaluator (โ‰ฅ90%)"]
    end

    subgraph Data_Pipeline ["LeRobot Data Factory & Hub Deploy"]
        P4 -->|"Live 60Hz State-Action Logging"| D1["Episode Buffer Recorder"]
        D1 -->|"One-Click JSON Export"| D2["LeRobot v2.0 Dataset Schema"]
        D2 -->|"deploy_to_hf.py Pipeline"| H1["๐Ÿค— Hugging Face Spaces (Live Demo)"]
        D2 -->|"deploy_to_hf.py Pipeline"| H2["๐Ÿค— Hugging Face Models (Benchmark Hub)"]
        D2 -->|"deploy_to_hf.py Pipeline"| H3["๐Ÿ™ GitHub Public Repository"]
    end

๐ŸŽฎ Key Engineering Capabilities

  1. ๐Ÿ–ฑ๏ธ Real-time Mouse Teleoperation:
    • Control the end-effector with spring/PD tracking ($K_p=0.28, K_d=0.12$) to push the T-block into the target zone.
  2. โšก 60 FPS 2D Rigid Body Physics Engine:
    • High-performance SAT polygon collision resolution, impulse restitution, Coulomb friction, and rotational torque mechanics.
  3. ๐ŸŽฏ Live Goal Alignment (IoU Coverage Evaluator):
    • High-precision real-time IoU calculation between the T-block and the goal target zone ($\ge 90%$ for success).
  4. ๐Ÿ“ˆ Realtime 100-Frame Oscilloscope Trajectory Chart:
    • Rich neon cyan rolling area chart with target 90% guide line and live head dot tracking.
  5. ๐Ÿง  Reinforcement Learning Reward Engine:
    • Real-time step reward ($r_t = \max(-0.1, \text{Coverage}_t - \text{dist}/1000)$) and cumulative return metrics.
  6. ๐Ÿ“ฆ Episode Dataset Recorder & Export:
    • Record 60Hz state-action demonstration trajectories and export directly to LeRobot-compatible JSON format.
  7. ๐Ÿค– AI Autopilot Demo:
    • Multi-phase heuristic trajectory planner for self-aligning T-block demonstrations (Press M to toggle).

๐Ÿ•น๏ธ Keyboard Controls & Quick Start

๐ŸŽฎ Global Hotkeys

Key Action Description
Space Pause / Resume Freeze simulation state with neon overlay
M AI Autopilot Toggle AI Expert Policy demonstration
R Reset Reset T-block, agent, and goal state
S Record / Stop Start/Stop demonstration recording

1. Web Interactive Simulator (Browser)

python server.py

Open http://localhost:8000 in your browser.

2. Python Native Pygame Teleop

python pusht_teleop.py

3. Automated 200-Episode Benchmark Evaluation

python eval_benchmark.py

4. Deploy to Hugging Face Spaces & Models

python deploy_to_hf.py

๐Ÿ“‚ Repository Structure

lerobot-pusht-teleop/
โ”œโ”€โ”€ eval_benchmark.py     # 200-Episode Headless Empirical Benchmark Evaluator
โ”œโ”€โ”€ eval_info.json        # Quantitative 200-Episode Verification Results (JSON)
โ”œโ”€โ”€ server.py             # FastAPI WebSocket Real-time Physics Server
โ”œโ”€โ”€ pusht_teleop.py       # Native Python Pygame Teleoperation Client
โ”œโ”€โ”€ lerobot_pusht_bundle.zip # Complete Offline Source & Web Assets Bundle
โ”œโ”€โ”€ requirements.txt      # Python Dependencies (FastAPI, Pygame, etc.)
โ”œโ”€โ”€ README.md             # Official English Model Card & Documentation
โ”œโ”€โ”€ README_KR.md          # Official Korean Manual (ํ•œ๊ตญ์–ด ๋งค๋‰ด์–ผ)
โ””โ”€โ”€ LICENSE               # MIT Open Source License (HWIHWA LAB)

๐Ÿ”— Open Source Hubs & Project Links


๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


Developed and deployed with LeRobot 2D PushT Teleoperation Cockpit by Hwihwa Lab.

Downloads last month

-

Downloads are not tracked for this model. How to track
Video Preview
loading

Evaluation results

  • Mean Peak IoU Overlap (200-Ep Average) on Hugging Face LeRobot PushT Benchmark
    self-reported
    0.805
  • Physics Simulation Throughput (FPS) on Hugging Face LeRobot PushT Benchmark
    self-reported
    174348.000