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_rs.

uv pip install dexi-rs

Quickstart

import dexi_rs

cfg = dexi_rs.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_rs

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

Retargeting API

  • RetargetingConfig.from_file(path) loads an external YAML config.
  • dexi_rs.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.2.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.2.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.2.0.tar.gz.

File metadata

  • Download URL: dexi_rs-0.2.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.2.0.tar.gz
Algorithm Hash digest
SHA256 679c2724052ba5750c91115266d8daa32c5c59a109f99eb71f99ba2092912af7
MD5 c4269e76fc417dd918eea6cd011b7323
BLAKE2b-256 3ae0b0a3073edbe92d5ccb74194647a98bd7f1ba329f4f2749c28fb72e27e320

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dexi_rs-0.2.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4fbeba15ab5ac9b7b5de5752de0f44cfc30620696cd22861ae6add01266cacb9
MD5 f8278fd7620b20255661dd710fee6561
BLAKE2b-256 f969893f0c807321ea11e701059a9e488d9d603d446a7047ae5113ec3bc5e1d2

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