Back in September, I had the chance to collaborate with Rokoko on scaling some of their glove techomlogy to the LEAP hand! We had the chance to demo our work at IROS back in September and so I wanted to write up a little more about how we retarget from glove -> LEAP hand and retargeting in general.

Retargeting with Inverse Kinematics

Retargeting is one of the most complicated problems in robotics today. Unlike grippers, collecting data with hands and being able to replay this data on robot hands is much more complicated. What makes motion gloves an interesting approach to this problem is the fact that you have direct joint angle sensing and IMU information, which really helps simplify the problem of retargeting (compared to trying to do it end to end from vision/video).

The traditional approach to retargeting is using some form of Inverse Kinematics (IK) to maps the fingertips of the glove onto the fingertips of hte hand we’re working with. Similar to prior works [1] [2], we also use IK to find robot joint angles that fit targets derived from the human hand. We essentially can compute the forward kinematics to get where the robot’s fingertips will be for a given set of joint angles. From there, IK searches for joint angles that bring those fingertips close to the positions we want them to reach.

Start with the fingertips

Usually, most retargeting appraoches use the human fingertip positions from the glove to construct four robot fingertip targets. Let $q\in\mathbb{R}^{16}$ contain the LEAP joint angles, $p_f(q)$ be the robot fingertip position from forward kinematics, and $\widehat p_f$ be the target for finger $f$. We can write the optimization as

$$ \min_{q_{\min}\leq q\leq q_{\max}} \sum_{f=1}^{4}\|p_f(q)-\widehat p_f\|_2^2. $$

Each term measures the squared distance between a robot fingertip and its target. We sum over the four LEAP fingers and search for the 16 joint angles that minimize the total error. The bounds $q_{\min}$ and $q_{\max}$ keep each angle within the robot’s joint limits. Depending on the target, several finger shapes can give a similar fingertip error.

Prior approaches like BiDex [1] track two positions on each finger, giving eight targets in total. We can summarize the position-fitting objective as

$$L_{\mathrm{BiDex}}(q)=\sum_{f=1}^{4}\left[\|p_{f,\mathrm{tip}}(q)-\widehat p_{f,\mathrm{tip}}\|_2^2+\|p_{f,\mathrm{mid}}(q)-\widehat p_{f,\mathrm{mid}}\|_2^2\right].$$

Here, $p_{f,\mathrm{tip}}(q)$ and $p_{f,\mathrm{mid}}(q)$ are the robot’s fingertip and intermediate-point positions. The optimizer chooses 16 joint angles to reduce both errors across all four fingers.

The intermediate point helps distinguish finger shapes that put the tip in approximately the same place. Matching both points also constrains the direction of the segment joining them. Damped least-squares IK regularizes the local joint update to control its size as the solver fits these targets.

DexCap [2] also collects glove motion and retargets it to the robot as part of its imitation-learning pipeline. Its hand retargeting aligns the robot’s four fingertips with human-derived targets, where they define their loss as

$$ L_{\mathrm{DexCap}}(q)= \sum_{f=1}^{4}\|p_{f,\mathrm{tip}}(q)-\widehat p_{f,\mathrm{tip}}\|_2^2. $$

Each fingertip supplies three position coordinates (xyz) to match. A LEAP finger has four joints, so reaching a fingertip position can leave freedom in how those joints bend [2].

One of the issues with these position objectives in general s the potential ambiguity about the surfaces of the fingers. During a pinch, the thumb and index can get close to their target points with the pads facing past each other. A small point error can also leave the finger links too close together.

Adding more targets

One way we can solve this issue is by adding a lot more targets (16), where consisting of four fingertip positions and twelve directions (like directional vectors). These direction vectors describe how each finger bends along its length. We also add terms for the gap between fingertip surfaces, pad alignment, and clearance between fingers.

We calibrate the mapping to the person using the gloves, which allow us to calibrate the target construction to that user before retargeting their motion to LEAP. For two points $h_{f,s}$ and $h_{f,s+1}$ on a finger, we get their unit vector i.e.

$$ d_{f,s}=\frac{h_{f,s+1}-h_{f,s}}{\|h_{f,s+1}-h_{f,s}\|_2}. $$

The calibration aligns these directions with the robot’s finger segments. If $\widetilde d_{f,s}$ is an aligned direction, $\ell_{f,s}$ the corresponding LEAP segment length, and $b_f$ the base of the robot finger, the reconstructed fingertip target is

$$ \widehat p_f=b_f+\sum_s\ell_{f,s}\widetilde d_{f,s}. $$

This basically allows us to then build a finger that follows the bends I make in the glove using the lengths the robot actually has.. For the thumb, we estimate sweep across the palm from the base segment. That separates moving the thumb across the hand from curling its tip.

How do we optimize for pinch grasps?

The position fit still matters, but we want the shape of the links and their surfaces to affect the answer. We can define this objective as

$$q^\star=\underset{q_{\min}\leq q\leq q_{\max}}{\operatorname{argmin}}\left[\sum_k w_k E_k(q)+w_t\|q-q_{\mathrm{prev}}\|_2^2+w_r\|q-q_{\mathrm{ref}}\|_2^2\right].$$

Here, $k$ runs over the five geometry errors: fingertip position, segment direction, pinch gap, pad alignment, and clearance. Each weight $w_k$ controls how much its error matters. The last two terms encourage smooth motion and a preferred posture.

  • Fingertips and directions. Fit the reconstructed tips and match the directions of the joints. This gives the solver information about both the endpoint and the shape of the finger.
  • Pinch gap and pad alignment. Help match the desired surface gap between the thumb and the opposing finger. If $n_T(q)$ and $n_f(q)$ are their modeled pad directions, penalizing $\|n_T(q)+n_f(q)\|_2^2$ encourages the pads to face each other.
  • Clearance. Penalize selected pairs of finger surfaces that come closer than a margin.

When you bring your thumb and a finger together, the robot focuses more on making the same pinch. It can move its fingertips a little away from their original targets so the finger pads can face each other and come together. This helps the robot get its fingers into position. Whether it can hold an object also depends on how hard it squeezes and how slippery the object is.

From glove pose to robot pose

Recorded hand poses
Loading the saved poses…

Solve it at each frame

For each new glove frame, we start with the robot’s last set of joint angles and make small changes from there.

Gauss–Newton helps us choose those changes. It looks at what the robot is getting wrong, then predicts how a small turn of each joint would change those errors. It uses that prediction to choose a move that should bring the robot closer to the hand pose we want.

In the math below, $q$ is the current set of joint angles. The list $r(q)$ contains our errors, scaled by how much we care about each one. The Jacobian $J(q)$ tells us how small joint movements would change those errors:

$$ \begin{aligned} \Delta q &= \underset{\ell\leq\delta\leq u}{\operatorname{argmin}}\; M(\delta),\\ M(\delta) &= \tfrac12\|r(q)+J(q)\delta\|_2^2 +\tfrac{\mu}{2}\delta^\top D\delta. \end{aligned} $$

The solver compares possible small changes $\delta$ and picks one, $\Delta q$, with the lowest score $M(\delta)$. There are three things happening here:

  • Predict the errors after moving. The expression $r(q)+J(q)\delta$ estimates what the errors would be after that joint change. The first term rewards making those errors smaller.
  • Avoid big jumps. The second term adds a penalty for large joint changes. This is called damping. The number $\mu$ controls its overall strength, and $D$ adjusts it for each joint.
  • Stay within limits. The bounds $\ell$ and $u$ keep the joints within their allowed angles and limit how far they can move in one step.

We then try the new angles, $q+\Delta q$, and check the actual errors. If the full objective improves, we keep the change and repeat from the new pose. These small steps let us improve the answer without needing to guess the final joint angles all at once.

Results

In this close-up of the physical LEAP hands, watch how the thumb moves across the palm and how the fingers curl and reopen.

The mounted LEAP hands following finger motion from two Rokoko Smartgloves.

My Experience with the Rokoko Gloves

The Rokoko gloves felt comfortable to wear, especially around the fingertips. Some of the other gloves I’ve used in the past have felt a little uncomfortable there, so I appreciated the fit of these gloves (which is very important when it comes to data collection).

The Rokoko team has been working on creating an SDK for finger retargeting and 3d position tracking (via the coil pro) which has been really helpful when it comes to inspecting and debugging data. I’ve enjoyed using them to teleoperate and collect data to train policies.

Acknowledgements

Thanks to Ray Liu and Kenny Shaw for discussions about retargeting, and to the Rokoko team for working on the glove setup and demo with me.

Citation

If you found this post helpful, you can cite it as:

@article{anumakonda2026leapretargeting,
  title   = {Retargeting Rokoko Smartgloves to the LEAP Hand},
  author  = {Anumakonda, Sri},
  journal = {srianumakonda.com},
  year    = {2026},
  month   = {October},
  url     = {https://srianumakonda.com/blog/posts/rokoko-leap-retargeting/}
}

References

  1. Shaw, K., Li, Y., Yang, J., Srirama, M. K., Liu, R., Xiong, H., Mendonca, R., & Pathak, D. (2024). Bimanual Dexterity for Complex Tasks. Proceedings of the Conference on Robot Learning (CoRL). https://arxiv.org/abs/2411.13677
  2. Wang, C., Shi, H., Wang, W., Zhang, R., Fei-Fei, L., & Liu, C. K. (2024). DexCap: Scalable and Portable Mocap Data Collection System for Dexterous Manipulation. Robotics: Science and Systems (RSS). https://arxiv.org/abs/2403.07788