Spaces:
Running
Running
metadata
title: LeRobot.js
short_description: interact with your robot in JS, inspired by LeRobot
emoji: 🤖
colorFrom: purple
colorTo: pink
sdk: static
license: apache-2.0
app_build_command: >-
npm install --legacy-peer-deps --prefix examples/cyberpunk-standalone && npm
run build --prefix examples/cyberpunk-standalone
app_file: examples/cyberpunk-standalone/dist/index.html
pinned: true
suggested_hardware: cpu-basic
LeRobot.js
interact with your robot in JS, inspired by LeRobot
Install
# Web library
npm install @lerobot/web
# Node.js library
npm install @lerobot/node
# CLI / terminal
npm install -g lerobot
CLI Usage
npx lerobot@latest --help
->
Usage: lerobot [options] [command]
Control your robot with Node.js (inspired by LeRobot in Python)
Options:
-V, --version output the version number
-h, --help display help for command
Commands:
find-port Find robot port with interactive cable detection
calibrate [options] Calibrate robot motors
teleoperate|teleop [options] Control robot through teleoperation
release-motors [options] Release robot motors for manual movement
help [command] display help for command
Resources
- LeRobot.js: Introduction post on Hugging Face
- Documentation:
@lerobot/web- Browser (WebSerial + WebUSB)@lerobot/node- Node.js (Serialport)lerobot- CLI / terminal (using@lerobot/node)
- Live Demo: Try it online at huggingface.co/spaces/NERDDISCO/LeRobot.js