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 bundled robot-hand YAML configs and URDFs, then maps 3D human-hand targets to robot-hand joint positions.

Install distribution dexi-rs; import module dexi_py.

uv pip install dexi-rs

Quickstart

import dexi_py

cfg = dexi_py.load_config("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_py

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

Retargeting API

  • RetargetingConfig.from_file(path) loads an external YAML config.
  • dexi_py.load_config(name) loads a bundled config.
  • 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.

Bundled config families cover Allegro, Shadow, Schunk SVH, LEAP, Ability, Inspire, 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.1.2.tar.gz (1.1 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.1.2-cp314-cp314-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: dexi_rs-0.1.2.tar.gz
  • Upload date:
  • Size: 1.1 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.1.2.tar.gz
Algorithm Hash digest
SHA256 dbfc3515ff4bef35423ff237d306707cfe7b03fcd4144e2f43f92724c4b68a9e
MD5 050c175b3a7b8c753ed086b99fd6bd63
BLAKE2b-256 da5a1923419b9ccf9fdadb55dd2fc06b8d5d78f4a633508f03cda7f5e1a7ddd3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dexi_rs-0.1.2-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 89f64b6ee413a14cb279cdf02c5358f41b27edb05c9f90c3d603263a756681fc
MD5 3c9bb8b91404f7a3d66bc86a4847571a
BLAKE2b-256 a80634c29887724dfc6615e9f2bf87b6ae6f5cbc00a8688453aa7388f73363f8

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