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.1.tar.gz (71.2 kB 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.1-cp314-cp314-macosx_11_0_arm64.whl (604.3 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: dexi_rs-0.1.1.tar.gz
  • Upload date:
  • Size: 71.2 kB
  • 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.1.tar.gz
Algorithm Hash digest
SHA256 68cc3ce8045b42113110652f039d17c8aded2a7f89dfa43fc975edbaff073476
MD5 8150e0c024db5c9a4b1398141d461417
BLAKE2b-256 f43e90ab74a2c49b879c95efc8d5c59a5da92e27eb8213986a23708eef2a8c78

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dexi_rs-0.1.1-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 584117f61a7530a83fe642d1d4e7ba069924e1781b339576c21c8afde2af4243
MD5 1013b2098750bce10de7e283cc5980d7
BLAKE2b-256 6567d82e26f43e3e7a323ac0b0a618ebaa127c0b4b402b71b1c99672d16d69a1

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