Metadata-Version: 2.4
Name: strands-robots
Version: 0.6.0
Summary: A Simulation is a world, a Robot is a body in a world (or on a bus), a Policy turns an observation into an action.
License-Expression: Apache-2.0
License-File: LICENSE
License-File: NOTICE
Requires-Python: >=3.10
Requires-Dist: numpy>=1.26
Requires-Dist: robot-descriptions>=1.12
Provides-Extra: all
Requires-Dist: awsiotsdk>=1.31; extra == 'all'
Requires-Dist: boto3>=1.43.17; extra == 'all'
Requires-Dist: cryptography>=42; extra == 'all'
Requires-Dist: eclipse-zenoh<1.11.0,>=1.9.0; extra == 'all'
Requires-Dist: eclipse-zenoh<1.11.0,>=1.9.0; (python_version >= '3.12') and extra == 'all'
Requires-Dist: fastapi>=0.115; extra == 'all'
Requires-Dist: huggingface-hub>=0.24; extra == 'all'
Requires-Dist: lerobot[dataset,feetech,remote]<0.8.0,>=0.7.0; (python_version >= '3.12') and extra == 'all'
Requires-Dist: mujoco<4,>=3.3.4; extra == 'all'
Requires-Dist: onnxruntime>=1.18; extra == 'all'
Requires-Dist: pillow>=10; extra == 'all'
Requires-Dist: pyserial>=3.5; extra == 'all'
Requires-Dist: strands-agents>=1.0; extra == 'all'
Requires-Dist: strands-agents>=1.62; extra == 'all'
Requires-Dist: uvicorn>=0.35; extra == 'all'
Requires-Dist: webauthn>=2.0; extra == 'all'
Requires-Dist: websockets>=13; extra == 'all'
Provides-Extra: dashboard
Requires-Dist: fastapi>=0.115; extra == 'dashboard'
Requires-Dist: uvicorn>=0.35; extra == 'dashboard'
Requires-Dist: webauthn>=2.0; extra == 'dashboard'
Requires-Dist: websockets>=13; extra == 'dashboard'
Provides-Extra: dev
Requires-Dist: import-linter>=2.1; extra == 'dev'
Requires-Dist: moto[iot]>=5; extra == 'dev'
Requires-Dist: mypy>=1.10; extra == 'dev'
Requires-Dist: onnx>=1.16; extra == 'dev'
Requires-Dist: pytest-timeout; extra == 'dev'
Requires-Dist: pytest>=8; extra == 'dev'
Requires-Dist: ruff>=0.6; extra == 'dev'
Provides-Extra: feetech
Requires-Dist: pyserial>=3.5; extra == 'feetech'
Provides-Extra: iot
Requires-Dist: awsiotsdk>=1.31; extra == 'iot'
Requires-Dist: boto3>=1.43.17; extra == 'iot'
Requires-Dist: cryptography>=42; extra == 'iot'
Provides-Extra: isaac
Requires-Dist: isaacsim[all,extscache]<6.2,>=6.1; (python_version >= '3.12') and extra == 'isaac'
Provides-Extra: lerobot
Requires-Dist: cryptography>=42; extra == 'lerobot'
Requires-Dist: eclipse-zenoh<1.11.0,>=1.9.0; (python_version >= '3.12') and extra == 'lerobot'
Requires-Dist: lerobot[dataset,feetech,remote]<0.8.0,>=0.7.0; (python_version >= '3.12') and extra == 'lerobot'
Provides-Extra: mesh
Requires-Dist: cryptography>=42; extra == 'mesh'
Requires-Dist: eclipse-zenoh<1.11.0,>=1.9.0; extra == 'mesh'
Provides-Extra: mujoco
Requires-Dist: mujoco<4,>=3.3.4; extra == 'mujoco'
Provides-Extra: newton
Requires-Dist: mujoco-warp>=3.11; extra == 'newton'
Requires-Dist: warp-lang>=1.10; extra == 'newton'
Provides-Extra: onnx
Requires-Dist: huggingface-hub>=0.24; extra == 'onnx'
Requires-Dist: onnxruntime>=1.18; extra == 'onnx'
Provides-Extra: ros
Provides-Extra: tools
Requires-Dist: pillow>=10; extra == 'tools'
Requires-Dist: strands-agents>=1.0; extra == 'tools'
Provides-Extra: voice
Requires-Dist: strands-agents>=1.62; extra == 'voice'
Requires-Dist: websockets>=13; extra == 'voice'
Description-Content-Type: text/markdown

<p align="center"><img src="docs/assets/img/mark.svg" width="56" alt="Strands logo"></p>

<h1 align="center">strands-robots</h1>

<p align="center">A Python library for building robots.</p>

<p align="center"><img src="docs/assets/media/agent_duck.gif" width="520" alt="An agent walks, turns and rolls the microduck"></p>

strands-robots runs the same code on a simulated robot and a real one. It has three main classes:

| Class | Is |
|---|---|
| `Simulation` | A world. MuJoCo on CPU, Isaac Sim and Newton on GPU. |
| `Robot` | A body in a world, or a real robot |
| `Policy` | Turns an observation into an action |

<!-- test: network -->
```python
from strands_robots import Policy, Robot

duck = Robot("microduck")
duck.run(Policy("microduck?vx=0.3"), seconds=10)  # walks about 1.3 m
```

## Features

| Area | Provides |
|---|---|
| Robots | 76 robots by name, or your own MJCF or URDF |
| Hardware | SO-100 and SO-101 arms, Unitree robots, with a digital twin |
| Policies | Python functions, ONNX skills, LeRobot checkpoints, local or remote |
| Recording | LeRobot v3 datasets |
| Safety | A manifest, one safety chain and an e-stop for every robot |
| ROS 2 | ros2_control robots and the Unitree G1 as a `Robot`, plus the `use_ros` agent tool |
| Mesh | Robots on other machines, over Zenoh or AWS IoT Core |
| Agent tools | `robot.tool`, `sim.tool` and `mesh.tool` for Strands agents |
| Dashboard | A 3D view, controls, cameras, chat, voice and e-stops in the browser |

## Agents

```python
from strands import Agent

Agent(tools=[duck.tool])("walk forward a bit, turn left, do a roll, then stand still")
```

The agent picks skills. The skills move the motors, and the safety chain checks each step.

## Installation

```bash
uv venv -p 3.12 && source .venv/bin/activate
uv pip install "strands-robots[all] @ git+https://github.com/strands-labs/robots@main"
```

To work on the library itself, clone it and install it editable: `uv pip install -e ".[all,dev]"`, then
`pytest -q tests`.

## Documentation

- Docs: [`docs/`](docs/). Run `pip install -r docs/requirements.txt && mkdocs serve`, then open
  http://127.0.0.1:8000.
- Notebooks: [`notebooks/`](notebooks/), saved with their outputs.

## Contributing

Open one pull request per change. Include a test that fails before the change, and a `changelog.d/` fragment
([how](changelog.d/README.md)). Before you push:

```bash
pip install hatch
hatch run lint
hatch run test
```

Apache-2.0. See [LICENSE](LICENSE).
