Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 20 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<p align="center">
<a href="https://openrobokit.com/retargetingkit"><img src="https://raw.githubusercontent.com/openrobokit/retargetingkit/main/docs/assets/retargetingkit-banner.webp" alt="RetargetingKit" width="100%"></a>
<a href="https://github.com/openrobokit/retargetingkit"><img src="https://raw.githubusercontent.com/openrobokit/retargetingkit/main/docs/assets/retargetingkit-banner.webp" alt="RetargetingKit" width="100%"></a>
</p>

<p align="center">
<a href="pyproject.toml"><img src="https://img.shields.io/badge/python-3.10%2B-blue" alt="Python 3.10+"></a>
<a href="https://github.com/openrobokit/retargetingkit/actions/workflows/build.yml"><img src="https://img.shields.io/badge/CI-GitHub_Actions-blue" alt="GitHub Actions"></a>
</p>

RetargetingKit maps live or recorded human motion to robot hands, arms, and humanoids using [RoboKit](https://openrobokit.com/robokit) optimization and neural hand models.
RetargetingKit maps live or recorded human motion to robot hands, arms, and humanoids using [RoboKit](https://github.com/openrobokit/robokit) optimization and neural hand models.

The two main applications are:

Expand All @@ -16,10 +16,10 @@ The two main applications are:

## Quick links

- [Docs](https://openrobokit.com/docs/retargetingkit/overview/)
- [Quickstart](https://openrobokit.com/docs/retargetingkit/quickstart/)
- [Installation](https://openrobokit.com/docs/retargetingkit/install/)
- [Development](https://openrobokit.com/docs/retargetingkit/development/)
- [Docs](https://github.com/openrobokit/retargetingkit/blob/main/docs/guide/overview.md)
- [Quickstart](https://github.com/openrobokit/retargetingkit/blob/main/docs/guide/quickstart.md)
- [Installation](https://github.com/openrobokit/retargetingkit/blob/main/docs/guide/installation.md)
- [Development](https://github.com/openrobokit/retargetingkit/blob/main/docs/dev.md)

## Installation

Expand All @@ -36,8 +36,8 @@ See [Installation](https://github.com/openrobokit/retargetingkit/blob/main/docs/
<table width="100%">
<tr>
<td width="50%" align="center" valign="top">
<a href="https://openrobokit.com/docs/retargetingkit/hand-optimization/#work-with-trajectories"><img src="https://raw.githubusercontent.com/openrobokit/retargetingkit/main/docs/assets/built-in-tasks/hand-retargeting.webp" alt="Tracked hand skeleton and retargeted robot hand side by side" width="300"></a><br>
<strong><a href="https://openrobokit.com/docs/retargetingkit/hand-optimization/#work-with-trajectories">Hand<br>retargeting</a></strong>
<a href="https://github.com/openrobokit/retargetingkit/blob/main/docs/guide/hand_retargeting.md#work-with-trajectories"><img src="https://raw.githubusercontent.com/openrobokit/retargetingkit/main/docs/assets/built-in-tasks/hand-retargeting.webp" alt="Tracked hand skeleton and retargeted robot hand side by side" width="300"></a><br>
<strong><a href="https://github.com/openrobokit/retargetingkit/blob/main/docs/guide/hand_retargeting.md#work-with-trajectories">Hand<br>retargeting</a></strong>
</td>
<td width="50%" align="center" valign="top">
<a href="src/retargetingkit/gallery/hand_contact.py"><img src="https://raw.githubusercontent.com/openrobokit/retargetingkit/main/docs/assets/built-in-tasks/hand-geometry-sim.webp" alt="Robot hand grasping a sage cylinder in a white studio" width="300"></a><br>
Expand All @@ -46,8 +46,8 @@ See [Installation](https://github.com/openrobokit/retargetingkit/blob/main/docs/
</tr>
<tr>
<td width="50%" align="center" valign="top">
<a href="https://openrobokit.com/docs/retargetingkit/humanoid-retargeting/"><img src="https://raw.githubusercontent.com/openrobokit/retargetingkit/main/docs/assets/built-in-tasks/humanoid-retargeting.webp" alt="Human body skeleton and retargeted humanoid side by side" width="300"></a><br>
<strong><a href="https://openrobokit.com/docs/retargetingkit/humanoid-retargeting/">Humanoid<br>retargeting</a></strong>
<a href="https://github.com/openrobokit/retargetingkit/blob/main/docs/guide/humanoid_retargeting.md"><img src="https://raw.githubusercontent.com/openrobokit/retargetingkit/main/docs/assets/built-in-tasks/humanoid-retargeting.webp" alt="Human body skeleton and retargeted humanoid side by side" width="300"></a><br>
<strong><a href="https://github.com/openrobokit/retargetingkit/blob/main/docs/guide/humanoid_retargeting.md">Humanoid<br>retargeting</a></strong>
</td>
<td width="50%" align="center" valign="top">
<a href="src/retargetingkit/gallery/humanoid_terrain.py"><img src="https://raw.githubusercontent.com/openrobokit/retargetingkit/main/docs/assets/built-in-tasks/humanoid-geometry.webp" alt="Rendered humanoid crouching and climbing on stepped terrain" width="300"></a><br>
Expand All @@ -56,12 +56,12 @@ See [Installation](https://github.com/openrobokit/retargetingkit/blob/main/docs/
</tr>
<tr>
<td width="50%" align="center" valign="top">
<a href="https://openrobokit.com/docs/retargetingkit/full-body/"><img src="https://raw.githubusercontent.com/openrobokit/retargetingkit/main/docs/assets/built-in-tasks/full-body-retargeting.webp" alt="Standing humanoid turning and taking small steps on a white background" width="300"></a><br>
<strong><a href="https://openrobokit.com/docs/retargetingkit/full-body/">Full-body<br>retargeting</a></strong>
<a href="https://github.com/openrobokit/retargetingkit/blob/main/docs/guide/full_body_retargeting.md"><img src="https://raw.githubusercontent.com/openrobokit/retargetingkit/main/docs/assets/built-in-tasks/full-body-retargeting.webp" alt="Standing humanoid turning and taking small steps on a white background" width="300"></a><br>
<strong><a href="https://github.com/openrobokit/retargetingkit/blob/main/docs/guide/full_body_retargeting.md">Full-body<br>retargeting</a></strong>
</td>
<td width="50%" align="center" valign="top">
<a href="https://openrobokit.com/docs/retargetingkit/full-body/#retarget-an-indoor-interaction"><img src="https://raw.githubusercontent.com/openrobokit/retargetingkit/main/docs/assets/built-in-tasks/full-body-geometry.webp" alt="Rendered humanoid interacting with objects and furniture in a kitchen on a white background" width="300"></a><br>
<strong><a href="https://openrobokit.com/docs/retargetingkit/full-body/#retarget-an-indoor-interaction">Geometry-aware full-body<br>retargeting</a></strong>
<a href="https://github.com/openrobokit/retargetingkit/blob/main/docs/guide/full_body_retargeting.md#retarget-an-indoor-interaction"><img src="https://raw.githubusercontent.com/openrobokit/retargetingkit/main/docs/assets/built-in-tasks/full-body-geometry.webp" alt="Rendered humanoid interacting with objects and furniture in a kitchen on a white background" width="300"></a><br>
<strong><a href="https://github.com/openrobokit/retargetingkit/blob/main/docs/guide/full_body_retargeting.md#retarget-an-indoor-interaction">Geometry-aware full-body<br>retargeting</a></strong>
</td>
</tr>
</table>
Expand All @@ -88,11 +88,11 @@ flowchart LR

| Component | Role | Read more |
| --- | --- | --- |
| Source | Read a device or recording and produce a canonical frame. | [Sources](https://openrobokit.com/docs/retargetingkit/pipeline/#three-stages) |
| Frame | Represent human hand, arm, or body motion. | [Frames](https://openrobokit.com/docs/retargetingkit/frames/) |
| Retargeter | Solve hand, arm, or body motion using RoboKit. | [Interfaces](https://openrobokit.com/docs/retargetingkit/protocols/) |
| Command | Carry robot joint positions and an optional base pose. | [Commands](https://openrobokit.com/docs/retargetingkit/ref-targets/) |
| Target | Preview commands or send them to a robot. | [Targets](https://openrobokit.com/docs/retargetingkit/ref-targets/) |
| Source | Read a device or recording and produce a canonical frame. | [Sources](https://github.com/openrobokit/retargetingkit/blob/main/docs/concepts/pipeline.md#three-stages) |
| Frame | Represent human hand, arm, or body motion. | [Frames](https://github.com/openrobokit/retargetingkit/blob/main/docs/concepts/frames.md) |
| Retargeter | Solve hand, arm, or body motion using RoboKit. | [Interfaces](https://github.com/openrobokit/retargetingkit/blob/main/docs/concepts/interfaces.md) |
| Command | Carry robot joint positions and an optional base pose. | [Commands](https://github.com/openrobokit/retargetingkit/blob/main/docs/reference/api/targets.md) |
| Target | Preview commands or send them to a robot. | [Targets](https://github.com/openrobokit/retargetingkit/blob/main/docs/reference/api/targets.md) |

See the [framework overview](https://openrobokit.com/docs/retargetingkit/pipeline/) for frames, commands,
See the [framework overview](https://github.com/openrobokit/retargetingkit/blob/main/docs/concepts/pipeline.md) for frames, commands,
and named rigs.
2 changes: 1 addition & 1 deletion docs/concepts/pipeline.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ if frame is not None:

Humanoid runtimes call `target.set_command(command)` so the target receives the base pose together with the joints. The runtime also owns startup and cleanup; the snippet shows only one update.

See [Interfaces](interfaces.md) to build a custom pipeline, or [RoboKit's robot model](https://openrobokit.com/docs/robokit/robot/) for the underlying kinematics.
See [Interfaces](interfaces.md) to build a custom pipeline, or [RoboKit's robot model](https://github.com/openrobokit/robokit/blob/main/docs/concepts/robot.md) for the underlying kinematics.
2 changes: 0 additions & 2 deletions docs/guide/arm_retargeting.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Arm Retargeting

![An xArm7 carrying an XHand in the interactive retargeting gallery](https://openrobokit.com/assets/docs/retargetingkit/assets/gallery/hand_retargeting.webp)

Map a tracked wrist to an xArm6 or xArm7 end effector. The arm solver uses RoboKit inverse kinematics with position, orientation, joint-limit, and smoothness terms.

## How Retargeting Works
Expand Down
3 changes: 1 addition & 2 deletions docs/guide/full_body_retargeting.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Full-Body Retargeting

| ![SAGA body and hand interaction retargeted in Viser](https://openrobokit.com/assets/docs/retargetingkit/assets/gallery/full_body_hoi.webp) | ![ParaHome body and scene interaction retargeted in Viser](https://openrobokit.com/assets/docs/retargetingkit/assets/gallery/full_body_hsi.webp) |
| --- | --- |
| Body, hand, and object interaction. | Body and hand motion in a furnished scene. |
| --- | --- |

Retarget body motion, articulated fingers, and object interaction together to a G1 with Inspire hands. RetargetingKit loads SAGA or ParaHome clips; RoboKit solves the robot motion and object poses.

Expand Down
3 changes: 1 addition & 2 deletions docs/guide/hand_retargeting.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Hand Retargeting

| ![Tracked hand retargeted to an xArm7 and XHand](https://openrobokit.com/assets/docs/retargetingkit/assets/gallery/hand_retargeting.webp) | ![Hand-object contact refinement in Viser](https://openrobokit.com/assets/docs/retargetingkit/assets/gallery/hand_contact.webp) |
| --- | --- |
| Hand motion on a robot assembly. | Hand-object contact refinement. |
| --- | --- |

Map human hand motion to robot joint positions with RoboKit's online or offline optimization. Start with a recorded example, then connect a [Manus glove](../reference/sources/manus.md) or [Apple Vision Pro](../reference/sources/vision_pro.md).

Expand Down
3 changes: 1 addition & 2 deletions docs/guide/humanoid_retargeting.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Humanoid Retargeting

| ![Human motion retargeted to a G1 in Viser](https://openrobokit.com/assets/docs/retargetingkit/assets/gallery/humanoid.webp) | ![Humanoid adapting motion to terrain in Viser](https://openrobokit.com/assets/docs/retargetingkit/assets/gallery/humanoid_terrain.webp) |
| --- | --- |
| Human motion mapped to a humanoid. | Humanoid motion on terrain. |
| --- | --- |

Map recorded or live body motion to G1 at 50 Hz. The runtime sends robot root pose and joint positions to its configured targets; the SONIC target derives joint velocities for whole-body control.

Expand Down
2 changes: 0 additions & 2 deletions docs/guide/neural_hand_retargeting.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Neural Hand Retargeting

![Neural hand inference in the interactive gallery](https://openrobokit.com/assets/docs/retargetingkit/assets/gallery/hand_neural.webp)

Train a model for one robot hand, then map wrist-local MANO-21 keypoints to joint positions in URDF order. Curated checkpoints support Allegro, Sharpa Wave, and XHand.

## How Inference Works
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/overview.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![RetargetingKit](../assets/retargetingkit-banner.webp)](https://openrobokit.com/retargetingkit)
![RetargetingKit](../assets/retargetingkit-banner.webp)

RetargetingKit maps human motion to robot hands, arms, and humanoids. It combines RoboKit optimization with neural hand models for recorded motion and real-time teleoperation.

Expand Down
12 changes: 4 additions & 8 deletions docs/guide/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,17 @@ uvx --from 'retargetingkit[vis]' \

Open the Viser URL printed in the terminal. Select a robot and motion, then play or scrub the result. Replace `hand_retargeting` with any gallery below. Each preview records that gallery's Viser scene.

| ![Hand retargeting in Viser](https://openrobokit.com/assets/docs/retargetingkit/assets/gallery/hand_retargeting.webp) | ![Neural hand retargeting in Viser](https://openrobokit.com/assets/docs/retargetingkit/assets/gallery/hand_neural.webp) | ![Hand contact retargeting in Viser](https://openrobokit.com/assets/docs/retargetingkit/assets/gallery/hand_contact.webp) |
| --- | --- | --- |
| **`hand_retargeting`** Retarget tracked hands. | **`hand_neural`** Compare neural hand models. | **`hand_contact`** Refine hand-object contact. |

| ![DexMachina hand-object retargeting in Viser](https://openrobokit.com/assets/docs/retargetingkit/assets/gallery/hand_object_dexmachina.webp) | ![GigaHands hand-object retargeting in Viser](https://openrobokit.com/assets/docs/retargetingkit/assets/gallery/hand_object_gigahands.webp) | ![OakInk2 hand-object retargeting in Viser](https://openrobokit.com/assets/docs/retargetingkit/assets/gallery/hand_object_oakink2.webp) |
| --- | --- | --- |
| **`hand_object_dexmachina`** Explore DexMachina interactions. | **`hand_object_gigahands`** Explore GigaHands interactions. | **`hand_object_oakink2`** Explore OakInk2 interactions. |

| ![Humanoid retargeting in Viser](https://openrobokit.com/assets/docs/retargetingkit/assets/gallery/humanoid.webp) | ![Humanoid contact retargeting in Viser](https://openrobokit.com/assets/docs/retargetingkit/assets/gallery/humanoid_contact.webp) | ![Humanoid terrain retargeting in Viser](https://openrobokit.com/assets/docs/retargetingkit/assets/gallery/humanoid_terrain.webp) |
| **`hand_object_dexmachina`** Explore DexMachina interactions. | **`hand_object_gigahands`** Explore GigaHands interactions. | **`hand_object_oakink2`** Explore OakInk2 interactions. |
| --- | --- | --- |

| **`humanoid`** Browse motions and robot presets. | **`humanoid_contact`** Retarget object interactions. | **`humanoid_terrain`** Adapt motion to terrain. |
| --- | --- | --- |

| ![Full-body object interaction in Viser](https://openrobokit.com/assets/docs/retargetingkit/assets/gallery/full_body_hoi.webp) | ![Full-body scene interaction in Viser](https://openrobokit.com/assets/docs/retargetingkit/assets/gallery/full_body_hsi.webp) |
| --- | --- |
| **`full_body_hoi`** Retarget body and hand interactions. | **`full_body_hsi`** Retarget body motion in furnished scenes. |
| --- | --- |

To list gallery module names from an installed checkout, run `uv run python -m retargetingkit.gallery`. Gallery data, robot models, and checkpoints download on first use; complete [asset setup](assets.md) first.

Expand Down
Loading