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, 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.0.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.3.0-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.3.0.tar.gz.

File metadata

  • Download URL: dexi_rs-0.3.0.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.3.0.tar.gz
Algorithm Hash digest
SHA256 a45b3776a0ddbd855339223c2608d0c07487ef242337e53625a77103f94bb86e
MD5 84145071529d986368ebd19b06b23160
BLAKE2b-256 b9878b09b906c55c3bafe9282a1029cd0246235b02090d8bcb25e1e9793a7ae9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dexi_rs-0.3.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d9da00e00ec89d92211c6d274578b07da6d3e9b1d084bffbd7b931fb3c272a82
MD5 e684c1035d42f26165a697c330e426a6
BLAKE2b-256 e77a3dffe8d87865c28cf15ed9dc725736e8b943d70bcbe1d3823bf691d5c111

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