diff --git a/README.md b/README.md index 1662444..5aaeb06 100644 --- a/README.md +++ b/README.md @@ -1,255 +1,138 @@
- A unified robot learning framework powered by LuckyEngine + RL and IL training framework for LuckyEngine
+ -LuckyLab is a modular, config-driven framework that brings reinforcement learning, imitation learning, and real-time visualization together in one place. It communicates with LuckyEngine through [luckyrobots](https://github.com/luckyrobots/luckyrobots) and runs on both CPU and GPU. - -The framework ships with locomotion and manipulation tasks but is easily extensible to any robot or task. It supports all imitation learning algorithms in [LeRobot](https://github.com/huggingface/lerobot) and multiple RL algorithms via [skrl](https://github.com/Toni-SM/skrl) and [Stable Baselines3](https://github.com/DLR-RM/stable-baselines3). Live inspection is available through [Rerun](https://rerun.io) and [Viser](https://github.com/nerfstudio-project/viser). - -| Robot | Task | Learning | -|-------|------|----------| -| Unitree Go2 | Velocity tracking | RL (PPO, SAC, TD3, DDPG) | -| Piper | Pick-and-place | IL (via LeRobot) | +LuckyLab is the training and inference layer for robots simulated in [LuckyEngine](https://github.com/luckyrobots/LuckyEngine). It connects to LuckyEngine over gRPC (via the [luckyrobots](https://github.com/luckyrobots/luckyrobots) client), sends joint-level actions, and receives observations each step — all physics and rendering runs in LuckyEngine. --- - -## Requirements - -- Python 3.10+ -- [LuckyEngine](https://luckyrobots.com) executable -- [luckyrobots](https://github.com/luckyrobots/luckyrobots) >= 0.1.81 -- PyTorch >= 2.0 - -## Installation +## Quick Start +### 1. Installation ```bash -git clone https://github.com/luckyrobots/luckylab.git +git clone -b mick/release-2026-1 --single-branch https://github.com/luckyrobots/luckylab.git cd luckylab -# Core + RL -uv sync --group rl - -# Core + IL (LeRobot) -uv sync --group il - -# Everything (RL + IL + Rerun + dev tools) -uv sync --all-groups +# Run the setup script for your OS +./setup.bat # Windows +./setup.sh # Linux ``` +### 2. Prepare LuckyEngine ---- - -## Quick Start - -### Train +1. Launch LuckyEngine +2. Download the Piper Block Stacking project +3. Open the Piper Block Stacking scene +4. Open the gRPC Panel +| -```bash -# RL — train SAC on the Go2 -python -m luckylab.scripts.train go2_velocity_flat \ - --agent.algorithm sac --agent.backend skrl --device cuda - -# IL — train ACT on a local dataset -python -m luckylab.scripts.train piper_pickandplace \ - --il.policy act --il.dataset-repo-id piper/pickandplace --device cuda -``` +5. Follow the prompts to ensure: + - Action Gate is **Enabled** + - Server is **Running** + - Scene is **Playing** -### Evaluate + |
-```bash
-# RL — with keyboard control
-python -m luckylab.scripts.play go2_velocity_flat \
- --algorithm sac --checkpoint runs/go2_velocity_sac/checkpoints/best_agent.pt \
- --keyboard
-
-# IL
-python -m luckylab.scripts.play piper_pickandplace \
- --policy act --checkpoint runs/luckylab_il/final
-```
+ |