Skip to content

About

Zero-install MuJoCo WASM + ONNX ACT robotics playground — 8 interactive levels from pick-and-place to 14-DOF bimanual manipulation, simulate in browser and deploy to real arms.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

reBot Cyclops (rebot-playground)

Zero-install MuJoCo WASM + ONNX ACT robotics playground — 8 interactive levels from pick-and-place to 14-DOF bimanual manipulation, simulate in browser and deploy to real arms.

English · 简体中文 · Live Demo

License: MIT MuJoCo WASM ONNX Runtime Web TypeScript Three.js

reBot Cyclops 3D Playground Overview

What Is reBot Cyclops?

reBot Cyclops is a browser-native 3D robotics simulator and deployment configurator running MuJoCo WASM, Three.js, and ONNX Runtime Web 100% locally in your browser — with zero Python/CUDA setup and zero backend server required.

Start with an 8-level interactive campaign covering end-effector selection, vision pipelines, and closed-loop ACT policies (up to 14-DOF bimanual flexible harness mating), then switch to Sandbox Mode to perturb scenes, drive the simulated arm via 17 AI Agent RPCs, and export ready-to-run Python 3.8 scripts for real Seeed reBot B601-DM / SO-101 arms powered by reCamera and rebot-armd.


Key Features

  • 100% Browser-Native Physics & Kinematics — Real MuJoCo rigid-body & multi-segment flexible cable dynamics in a Web Worker, paired with armd_core.wasm (the exact Rust IK, swept workspace, and keep-out safety engine from rebot-armd).
  • 8 Progressive Campaign Levels (L1–L8) — From blind pick-and-place and high-speed cup sorting to AprilTag PCB suction, YOLO defect inspection, overhead visual servoing, motorized screwdriving, 7-DOF curved-shell ACT assembly, and 14-DOF bimanual mid-air flexible cable mating.
  • In-Browser ONNX ACT-Lite Visual Servoing — Runs quantized MobileNetV3-Small + SpatialSoftmax Action-Chunking policies at 20 Hz directly in WebAssembly with authentic 38° nose-down reCamera v8 wrist views and live PiP feeds.
  • Live Wrist Camera PiP & Detection Overlay — Every level renders real-time wrist camera feeds with projected YOLO / AprilTag bounding boxes (L1–L4, L6), 224×224 ACT frames (L7), or synchronized L | R dual-wrist split view (L8).
  • Open Sandbox & Custom Assets — Perturb obstacle dividers, station fixtures, pose jitter, and NG defect ratios; import custom obstacles and keep-out zones via JSON (CustomSandboxAssetV1).
  • AI Agent Page Bridge (17 RPCs) — Control the simulator from Claude Code, Codex, or @seeed-studio/solution-cli via window.__REBOT_SANDBOX__ or WebSocket Page Bridge (sensecraft-page/v1).
  • Sim-to-Real Deployment Wizard — Export self-contained Python 3.8 programs (main.py + deploy_profile.json) or connect directly to a live rebot-armd controller with operator PIN auth and two-phase pose preflight.

Visual Tour

L7: 38° Wrist reCamera · Single-Arm ACT Assembly L8: 14-DOF Bimanual Flexible Harness Mating
L7 Single-Arm ACT with 38-deg Wrist PiP L8 Dual-Arm ACT Flexible Harness Mating
Sandbox Mode · Perturbations, Agent RPCs & Real-Arm Deploy
Sandbox Mode and Agent Bridge

8-Level Campaign & Sandbox Templates

Level Task Robot End-Effector Perception / Policy
L1 Coffee Pod Pick & Brew B601-DM (6-DOF) Cup-Ring / Parallel Jaw Wrist reCamera + YOLO
L2 High-Speed Cup Cycle B601-DM (6-DOF) Cup-Ring Jaw Wrist reCamera + YOLO
L3 PCB Suction & Placement B601-DM (6-DOF) Vacuum Suction AprilTag + Wrist reCamera
L4 OK/NG Defect Inspection B601-DM (6-DOF) Vacuum Suction YOLO + NG Branching
L5 Overhead Visual Servoing B601-DM (6-DOF) Parallel Jaw 64×64 Overhead ONNX Policy
L6 Motorized Screwdriving B601-DM (6-DOF) Electric Screwdriver Wrist reCamera + Torque Control
L7 Curved Shell Assembly B601-DM (6-DOF) Thin Compliant Tips 224² 38° Wrist ACT-Lite (ONNX)
L8 Mid-Air Flexible Harness Mating Dual B601-DM (14-DOF) Dual Thin Compliant Tips Dual 224² 38° Wrist ACT-Lite (ONNX)
Sandbox Coffee / PCB / Screw / SO-101 / L7 / L8 B601-DM / SO-101 Configurable YOLO / AprilTag / ACT + 17 Agent RPCs

Quickstart

1. Play Instantly Online (Zero Install)

Open the live CDN build directly in Chrome, Edge, or Safari — no Python, Docker, or backend required:

2. Run Locally from Source

git clone https://github.com/Seeed-Solution/rebot-playground.git
cd rebot-playground
npm install
npm run dev

Open http://localhost:5173.

Build & Test

npm run build       # TypeScript check + Vite production bundle (dist/)
npm run test:fast   # 200 unit & integration tests (Vitest)
npm run test        # Full suite including MuJoCo physics level tests

Architecture

flowchart LR
  UI["Three.js Viewport3D + HUD<br/>(SceneVisuals, PolicyPip, SandboxWorkbench)"]
  Worker["PhysicsEngineWorker (Web Worker)<br/>MuJoCo WASM + armd_core.wasm"]
  ORT["ONNX Runtime Web (WASM)<br/>ACT-Lite 20 Hz Policy"]
  Bridge["SenseCraft CLI Local Proxy<br/>(solution-cli · 17 Agent RPCs)"]
  RealArm["Real-Arm Backend (rebot-armd)<br/>B601-DM / SO-101 + reCamera"]

  UI <-->|"Snapshots & 38° Wrist Frames"| Worker
  Worker <-->|"224×224 RGB + Proprioception"| ORT
  Bridge <-->|"Auto-Pair Page Bridge / WS"| UI
  UI -->|"Python 3.8 Export / Live WS"| RealArm
Loading

One-Click Agent Proxy & Real-Arm Backend Deployment

The simulator runs 100% client-side by default. When you need AI Agent automation or real-arm hardware control, choose whichever setup fits you best:

Option 1 (Recommended): One-Click Local Proxy via SenseCraft CLI (@seeed-studio/solution-cli)

No need to clone the repo or set up a local backend environment. SenseCraft CLI (solution-cli) ships a built-in local proxy & Page Bridge gateway (sensecraft-page/v1) that automatically opens the live CDN page, auto-pairs (bypassing browser local-network / mixed-content restrictions), and exposes all 17 typed RPCs (getState, applyPatch, moveTo, moveJoints, gripper, detect, captureCamera, executeSteps, runTest, runBatch, importCustomAsset, exportArtifact, etc.) for one-click control:

# Install SenseCraft CLI (bundles the local proxy & Page Bridge gateway)
npx @seeed-studio/solution-cli install

# Launch & auto-pair the live CDN sandbox in one command
solution-cli page open "https://sensecraft-statics.seeed.cc/solution-app/rebot-cyclops/index.html?mode=sandbox" --wait

Option 2 (Without CLI): Self-Hosted Local Frontend + rebot-armd Backend

If you prefer not to install solution-cli, you can run your own local stack instead (requires installing Node.js and rebot-armd manually):

  1. Start the local frontend (http://localhost:5173, avoids HTTPS→HTTP mixed-content blocks when talking to a LAN controller):
    npm install && npm run dev
  2. Start the rebot-armd backend: run rebot-armd on the Seeed reCamera / Jetson / Linux host (default http://192.168.42.1:8765), or run armd --follower mock locally on your PC for hardware-free testing.
  3. Connect or Export:
    • Live connection: open Deploy to Real Arm in Sandbox mode, point it at your rebot-armd endpoint (plus operator PIN if enabled), run the two-phase pose preflight at ≤ 0.30× speed, and execute live.
    • Standalone Python 3.8 export: click View / Export Python to download a zero-dependency main.py + deploy_profile.json and run directly:
      REBOT_HOST=192.168.42.1 python3 main.py

Project Structure

rebot-playground/
├── public/
│   ├── bundles/          # Level & sandbox MJCF bundles + browser ONNX policies
│   ├── models/           # B601-DM & SO-101 URDFs and simplified visual meshes
│   └── wasm/             # mujoco_wasm, armd_core.wasm, onnxruntime-web
├── src/
│   ├── adapters/         # StaticWasmAdapter, ArmdLiveAdapter, PageBridge, toolDigest
│   ├── engine/           # physics.worker.ts, levels, realArmDeploy, safety guards
│   ├── exporter/         # Self-contained Python 3.8 + deploy_profile.json exporter
│   └── ui/               # Viewport3D, SceneVisuals, RobotVisual, PolicyPip, SandboxWorkbench
├── tests/                # Vitest unit, contract, bridge, and physics tests
└── scripts/              # Asset sync, mesh build, and static gzip publisher

Acknowledgements

License

Released under the MIT License.

About

Zero-install MuJoCo WASM + ONNX ACT robotics playground — 8 interactive levels from pick-and-place to 14-DOF bimanual manipulation, simulate in browser and deploy to real arms.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages