Spaces:
Running
Running
File size: 1,146 Bytes
c8b4583 b664dbe c8b4583 b664dbe c8b4583 b664dbe c8b4583 ec936d5 b664dbe ec936d5 b664dbe ec936d5 b664dbe c8b4583 ec936d5 b664dbe ec936d5 b664dbe c8b4583 b664dbe c8b4583 b664dbe c8b4583 b664dbe c8b4583 b664dbe c8b4583 b664dbe c8b4583 b664dbe ec936d5 b664dbe ec936d5 b664dbe ec936d5 b664dbe ec936d5 b664dbe c8b4583 b664dbe c8b4583 b664dbe |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# 🤖 lerobot.js
JavaScript/TypeScript robotics library for Node.js and browsers. Control hardware directly without Python dependencies.
## Install
```bash
# CLI tools
npm install -g lerobot
# Web library
npm install @lerobot/web
```
## CLI Usage
```bash
# Find hardware
lerobot find-port
# Calibrate device
lerobot calibrate --robot.type=so100_follower --robot.port=COM4 --robot.id=my_robot
# Show help
lerobot --help
```
## Web Usage
```typescript
import { findPort, calibrate, teleoperate } from "@lerobot/web";
// Find and connect to hardware
const devices = await findPort();
const robot = devices[0];
// Calibrate
const calibration = await calibrate(robot);
await calibration.result;
// Control
const controller = await teleoperate(robot);
controller.start();
```
## Hardware Support
- **SO-100**: Follower/leader robot arms
- **WebSerial API**: Chrome/Edge 89+, HTTPS required
- **Node.js**: Cross-platform serial port access
## Demo
```bash
git clone https://github.com/timpietrusky/lerobot.js
cd lerobot.js && npm install && npm run dev
```
Visit `http://localhost:5173` for the web interface.
## License
Apache-2.0
|