Skip to main content

a2a-robots-lerobot

Hugging Face LeRobot backend for a2a-robots.

Install from PyPI: pip install a2a-robots-lerobot.

LeRobot backend

LeRobotArmBackend adapts single-arm and bimanual manipulators managed by lerobot.robots.Robot (for example SO100Follower, SO101Follower, BiSOFollower, and KochFollower) to a2a_robots.RobotBackend and a2a_robots.RobotAdapter.

  • URDF kinematics in radians: LeRobotKinematicsPlanner wraps lerobot.model.kinematics.RobotKinematics (Placo/Pinocchio) via PlacoKinematics, converting between LeRobot's degree-based joint space and a2a_robots's metre/radian pose contract. Pass base_transform in ArmSpec (or use bi_so_arms) to position bimanual arms in a shared "world" frame.
  • 5-DoF arms vs. 6-DoF poses: 5-DoF arms such as SO-100, SO-101, and Koch cannot independently match arbitrary 6-DoF end-effector orientations at every position. The so101_arms, bi_so_arms, and koch_arms presets set orientation_weight=0.01 and check_orientation=False so move_to reaches position accurately while aligning orientation best-effort; set check_orientation=True for 6-DoF/7-DoF arms.
  • Safety guards:
    • connect=True always connects with calibrate=False so missing calibration never blocks a headless server on interactive terminal prompts; uncalibrated robots fail fast at startup.
    • Robots with use_degrees=False (normalized [-100, 100] joint space) are rejected by default (require_use_degrees=True) unless explicitly configured with joint_unit="rad".
    • Every send_action() sends the complete robot.action_features dictionary so non-target arms, grippers, and extra actuators stay held.
    • Set disable_torque_on_disconnect=False on your LeRobot config if disconnecting on shutdown should not drop a raised arm under gravity.

Usage

a2a-robots-lerobot is an independent uv project with its own uv.lock and optional extras for lerobot (kinematics, serial). Offline tests and FakeLeRobot work out of the box without installing lerobot or PyTorch.

Live hardware and PlacoKinematics require Python >=3.12:

# Offline with FakeLeRobot (no lerobot install needed):
LEROBOT_FAKE=1 uv run --directory packages/a2a-robots-lerobot python examples/serve_so101.py

# Live SO-101 hardware (installs the `serial` extra: lerobot[kinematics,serial-motors]):
uv run --directory packages/a2a-robots-lerobot --python 3.12 --extra serial \
  python examples/serve_so101.py --serial-port /dev/ttyACM0 --urdf /path/to/so101_new_calib.urdf

Or in Python:

from a2a_robots import RobotAdapter, SafetyLimits, Workspace, serve_robot
from a2a_robots_lerobot import LeRobotArmBackend, so101_arms
from lerobot.robots.so_follower import SO101Follower, SO101FollowerConfig

robot = SO101Follower(
    SO101FollowerConfig(
        port="/dev/ttyACM0", id="my_arm", use_degrees=True, disable_torque_on_disconnect=False
    )
)
backend = LeRobotArmBackend(robot, so101_arms("/path/to/so101_new_calib.urdf"), connect=True)
limits = SafetyLimits(workspace=Workspace("world", (-0.5, -0.5, -0.1), (0.6, 0.5, 0.6)))
serve_robot(RobotAdapter(backend, limits, name="LeRobot SO-101"), port=9100)

Tests

# Offline unit, contract, and adapter tests against FakeLeRobot
uv run --directory packages/a2a-robots-lerobot --extra dev pytest

# Integration tests against real lerobot and PlacoKinematics (Python >=3.12)
A2A_ROBOTS_REQUIRE_LEROBOT=1 uv run --directory packages/a2a-robots-lerobot --python 3.12 \
  --extra serial --extra dev pytest tests/test_lerobot_integration.py

Metadata

Release files for a2a-robots-lerobot 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for a2a-robots-lerobot 0.1.2
File Size Uploaded Provenance Actions
a2a_robots_lerobot-0.1.2.tar.gz 181.2 kB With provenance Details for a2a_robots_lerobot-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for a2a-robots-lerobot 0.1.2
File Interpreter ABI Platform Actions
a2a_robots_lerobot-0.1.2-py3-none-any.whl Python 3 none any Details for a2a_robots_lerobot-0.1.2-py3-none-any.whl

Total release size: 198.5 kB

Release files / a2a_robots_lerobot-0.1.2.tar.gz

Download URL a2a_robots_lerobot-0.1.2.tar.gz
Size 181.2 kB
Tags Source
SHA-256 checksum
How to use checksums
1ff95bef6f78a1e0a27464a8cef5962bec6040f7f3a6cc6b709376b36650dd63
BLAKE2b-256 checksum
How to use checksums
3b6b3be6663db4aa96c79f82d4fcdf58e346a19373be12c1fe6789a0d21b8998
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Release files / a2a_robots_lerobot-0.1.2-py3-none-any.whl

Download URL a2a_robots_lerobot-0.1.2-py3-none-any.whl
Size 17.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b47933c0499d6b37b2a74e65877eee00df048ec579ec3c727b0559d07a062f7c
BLAKE2b-256 checksum
How to use checksums
885d6c1057f38206039878b540b7b48c6f02ba42c129dbb59dfbef815da34df0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Security for a2a-robots-lerobot 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for a2a_robots_lerobot-0.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page