Skip to main content

Fast Rust hand retargeting with Python bindings

Project description

dexi-rs

dexi-rs is a fast hand-retargeting package backed by a Rust engine. It loads YAML config files and bundled robot-hand URDF assets, then maps 3D human-hand targets to robot-hand joint positions.

Install distribution dexi-rs; import module dexi_rs.

uv pip install dexi-rs

Quickstart

import dexi_rs

cfg = dexi_rs.load_config("configs/teleop/allegro_hand_right.yml")
retargeting = cfg.build()

# Four wrist-to-fingertip vectors for this Allegro vector config.
target = [
    0.03, -0.02, 0.08,
    0.04, 0.00, 0.09,
    0.03, 0.02, 0.085,
    0.02, 0.04, 0.07,
]
qpos = retargeting.retarget(target)
print(dict(zip(retargeting.joint_names, qpos)))

Resource helpers

import dexi_rs

print(dexi_rs.available_configs("configs"))
config_path = dexi_rs.config_path("configs/teleop/allegro_hand_right.yml")
asset_root = dexi_rs.asset_path("robots/hands")

Retargeting API

  • RetargetingConfig.from_file(path) loads a YAML config.
  • dexi_rs.load_config(path) loads a config file from a filesystem path.
  • config.build() creates a stateful SeqRetargeting instance.
  • retargeting.retarget(ref_value, fixed_qpos=None) returns full robot qpos in retargeting.joint_names order.
  • retargeting.reset(), set_qpos(), and get_qpos() control sequence state.
  • retargeting.link_positions(qpos, link_names) returns world-frame 3D points for visualization.

Repository config families cover Allegro, Shadow, Schunk SVH, LEAP, Ability, Inspire, Fourier, and Panda gripper hands for position, vector, and DexPilot-style retargeting where available.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dexi_rs-0.3.1.tar.gz (15.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dexi_rs-0.3.1-cp314-cp314-macosx_11_0_arm64.whl (15.9 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

File details

Details for the file dexi_rs-0.3.1.tar.gz.

File metadata

  • Download URL: dexi_rs-0.3.1.tar.gz
  • Upload date:
  • Size: 15.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for dexi_rs-0.3.1.tar.gz
Algorithm Hash digest
SHA256 66bb6b1bb33abd4ea37b3a09c879d527d72b24677bc8efb3c4f995b274a798fa
MD5 63983e6478cf8ac333df13e455b2339c
BLAKE2b-256 a9514791ba74dcebc80ecc15b1cd75989ba5a0f3d562de5b0c72a38dced41e10

See more details on using hashes here.

File details

Details for the file dexi_rs-0.3.1-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for dexi_rs-0.3.1-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3285b0c54e090c31203974eb5a902ca164f639222c3149396ae73579aa051647
MD5 3d7aac97c7c45dd3f0f5efaf97a7d507
BLAKE2b-256 157095af5efba770b053938eb9481533e43ff23ac11a72b81a1c9b04084e474b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page