Skip to main content

a2a-robots-sharpa

Sharpa Wave hands for a2a-robots. This release has the MuJoCo backend; the Sharpa SDK backend for the real hands will be added here once the SDK is available.

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

MuJoCo backend

SharpaMujocoBackend runs dual_sharpa_wave.xml from sharpa-robotics/sharpa-urdf-usd-xml (Apache-2.0): two hands, each on a 6-DoF floating base, with no arm or body model.

  • The hand pose is the palm frame (<hand>_hand_C_MC) in world. move_to asks the planner for a joint trajectory for the base joints and streams it to the model's position actuators, one target per control step, the way a real arm takes joint targets from a host-side planner.
  • The default planner is MujocoPlanner on the same model. It solves inverse kinematics, interpolates the joints at up to 5 cm/s and 0.5 rad/s with smooth start and stop, and checks every point against the current scene. A path into an object or the other hand returns unreachable with the object's name, before anything moves. Objects the hand already touches, such as one it holds, are not treated as obstacles. Pass planner= to use another a2a_robots.planning.Planner.
  • A target outside the base joint range, or one the hand does not settle at, returns unreachable.
  • close bends the flexion joints to grasp_closure (default 0.6) of their range and keeps abduction at zero; open straightens the fingers. contact is the normal force in newtons on each finger (and palm) from anything outside the hand. held means the thumb and another finger are both in contact. A close that touches something but ends without holding it returns slipped.
  • The hand bodies have gravity compensation, as if mounted on an arm, so the base does not sag. Objects in the scene still fall.
  • The simulation advances only while a skill runs, paced to wall-clock time unless realtime=False. Every control step (20 ms) checks the stop flag.

The meshes are about 24 MB, so they are not committed here. fetch_model() downloads the model at a pinned commit on first use, checks its digest, and caches it under ~/.cache/a2a-robots/.

uv run --directory packages/a2a-robots-sharpa python examples/serve_mujoco.py   # http://127.0.0.1:9100/

To add objects, edit the spec before compiling, as the example does:

spec = mujoco.MjSpec.from_file(str(fetch_model()))
# spec.worldbody.add_geom(...) or add_body(...)
backend = SharpaMujocoBackend(load_model(spec))

Tests

The unit tests use tests/mini_dual_hand.xml, a mesh-free model with the same joint and body names, so they need no download. test_real_sharpa_model_moves_and_grasps runs against the real model when SHARPA_MODEL_DIR is set:

uv run --directory packages/a2a-robots-sharpa python -m a2a_robots_sharpa ~/.cache/a2a-robots/sharpa-wave
SHARPA_MODEL_DIR=~/.cache/a2a-robots/sharpa-wave uv run --directory packages/a2a-robots-sharpa --extra dev pytest

Metadata

Release files for a2a-robots-sharpa 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-sharpa 0.1.2
File Size Uploaded Provenance Actions
a2a_robots_sharpa-0.1.2.tar.gz 114.9 kB With provenance Details for a2a_robots_sharpa-0.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 126.6 kB

Release files / a2a_robots_sharpa-0.1.2.tar.gz

Download URL a2a_robots_sharpa-0.1.2.tar.gz
Size 114.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3fdfae154c90b88c028ada0a6c76fec67ec62af50929694638b621d3789070d7
BLAKE2b-256 checksum
How to use checksums
da19524dc1962d07f72f639f0a595e81d965e6bc8ecf1314e033837b1b002b0e
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_sharpa-0.1.2-py3-none-any.whl

Download URL a2a_robots_sharpa-0.1.2-py3-none-any.whl
Size 11.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2609587416b9f49ce46b025d252199bda79454cc9b204d85c5a3c3bc06d71da1
BLAKE2b-256 checksum
How to use checksums
a8408c6d9b248f524299688ffe84d0d040be328a82d24d3a9820c953b8b8b618
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-sharpa 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_sharpa-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