Fast Motion Retargeting Pipeline
for Scalable Humanoid Robot Learning

Daniel Marew*Sangjun Park*Nisal PereraDonghyun Kim

University of Massachusetts Amherst

* Equal contribution

Humanoids 2026

FRDV (Fast Retargeting with Dynamics Validation) maps human motion capture to diverse humanoid robots through constrained kinematic retargeting and optional dynamics validation.

Code availability. The current code release includes the kinematic retargeting pipeline only; dynamics validation is not included.

Abstract

Large-scale human motion capture datasets provide rich demonstrations for humanoid robot learning, but adapting these motions to different robots remains computationally expensive and prone to artifacts. We present FRDV, a framework combining rapid constrained kinematic retargeting with optional dynamics validation. A custom Sequential Quadratic Programming solver, Real-Time Iteration, and parallel chunk-based processing achieve up to 9,156 frames per second while incorporating robot-specific constraints to reduce ground penetration and self-collision. For motions requiring further verification, contact-implicit iLQR evaluates trackability under full rigid-body dynamics and actuator bounds, and refines contact artifacts such as foot floating and skating. We evaluate downstream utility through motion-tracking reinforcement learning and demonstrate zero-shot sim-to-real transfer on a Unitree G1 humanoid.

Method overview

The full research pipeline combines a CPU-based kinematic retargeting pipeline with optional dynamics validation before downstream policy learning.

Full FRDV pipeline: human motion capture, released kinematic retargeting, optional unreleased dynamics validation, and downstream policy learning and deployment
The full FRDV research pipeline. The released code covers kinematic retargeting; optional dynamics validation is described in the paper.
Human-to-robot morphology alignment and virtual tracking sites from the paper
Morphology matching and robot tracking sites.

Constrained kinematic retargeting

After morphology alignment, a specialized SQP solver tracks the human keypoints while respecting joint limits and collision constraints. Temporal warm starts enable a single SQP step per frame in Real-Time Iteration mode.

Parallel motion processing

Long sequences can be divided into chunks and solved in parallel. An optional boundary refinement step reduces discontinuities when independently optimized chunks are joined.

Optional dynamics validation

Contact-implicit iLQR tracks the reference under MuJoCo dynamics and actuator bounds, without a predefined contact schedule. This research stage assesses trackability and can refine contact artifacts before policy training.

Per-frame kinematic optimization

The solver constructs a Gauss–Newton quadratic approximation from tracking, posture, and smoothing residuals. It linearizes the active constraints, solves the QP, and updates the robot configuration; initial frames use additional iterations before switching to the default one-step RTI mode.

Aligned targets and the previous pose feed geometry evaluation, Gauss–Newton QP construction, and OSQP with an optional line search. The output pose warm-starts the next frame. The schematic lists the objective residuals and configurable geometric constraints.
Per-frame SQP and temporal warm starts. Schematic of the kinematic solver; collision constraints and line search follow the task configuration.

Chunk processing and trajectory refinement

Each worker solves an independent temporal chunk with context frames around its boundaries. Results are merged in frame order, with optional overlap blending. Optional refinement detects velocity and acceleration spikes and re-solves the affected groups of chunks.

A motion is divided into overlapping temporal chunks. Independent workers initialize each chunk and switch to one-step RTI. Results are merged in time order, optionally blended and refined, and saved as robot trajectories. Widths are schematic, not measured execution times.
Parallel temporal chunks. Hatched regions provide context around chunk boundaries. Bar widths illustrate motion-frame ranges, not measured execution time.

Kinematic retargeting results

On LAFAN1, FRDV achieves a mean throughput of 9,156 FPS with 20 CPU workers and boundary refinement disabled. A single worker achieves 677 FPS; enabling boundary refinement with 20 workers yields approximately 1,947 FPS.

LAFAN1 retargeting speed benchmark across 77 sequences, showing mean FPS on a logarithmic scale and interquartile ranges
Retargeting throughput. Mean FPS across 77 LAFAN1 sequences, with interquartile ranges. Click for the original PDF.
Per-frame SQP timing broken down into QP preparation, QP solve, and line search across three robot platforms
Solver timing. Per-frame computation across three platforms. Hatched bars include self-collision constraints.

Scaling to AMASS

FRDV retargets 13,662 AMASS motion clips in approximately one hour with 20 workers.

AMASS dataset runtime reported in the paper.
Method Mean FPS per motion Wall-clock time Frames processed
ProtoMotions (PyRoki) 57.8 45.06 h 6,147,900
FRDV (1 worker) 709.3 7.43 h 19,696,008
FRDV (20 workers) 4,324.4 1.08 h 19,696,008

FRDV timing covers kinematic retargeting only. The 20-worker AMASS result excludes boundary refinement. ProtoMotions trims or pads each motion to 450 frames, explaining its lower frame count. Experiments use an AMD Ryzen Threadripper 9960X CPU and an NVIDIA RTX PRO 6000 Blackwell Max-Q GPU; FRDV kinematics run on CPU.

Dynamics validation

For challenging motions, contact-implicit iLQR evaluates the kinematic reference under full rigid-body dynamics. The paper demonstrates single-leg hopping on both G1 and Dash and correction of foot-skating artifacts.

A contact-implicit iLQR controller follows the kinematic reference using bounded controls. MuJoCo computes the dynamics and contacts, and returns state rollouts to the optimizer for trackability assessment. This optional research stage is not included in the current code release.
Optional dynamics-validation loop. Conceptual schematic of the research stage described in the paper; it is not included in the current code release.
Comparison of foot-skating artifacts in kinematic retargeting with corrected contact using contact-implicit iLQR
Contact refinement on Unitree G1. Kinematic retargeting produces sliding contact; contact-implicit iLQR corrects the contact behavior.
Contact-implicit iLQR verification on G1 and Dash with single-leg hopping snapshots and left-leg joint torque plots
Dynamic motion verification. Single-leg hopping on G1 and Dash, with left-leg joint torques.

On the first 26 s of Dance1-S1, policies trained on CI-iLQR-corrected references reduce mean global body-position tracking error from 103.12 to 86.58 mm. Mean anchor-relative error increases slightly, from 29.26 to 30.57 mm. Dynamics validation adds substantial processing time and is applied selectively.

Sim-to-real transfer

We train a motion-tracking policy in simulation using FRDV-retargeted motions and deploy it zero-shot on a physical Unitree G1, without hardware-specific fine-tuning.

Six successive poses of Unitree G1 executing the retargeted dance on real hardware in the lab
Unitree G1 executing the retargeted motion on hardware.

Getting started

The released kinematic retargeting code includes preprocessing, interactive visualization, headless retargeting, and trajectory playback. These examples use the bundled BVH sample and the Unitree G1 configuration.

Installation

git clone https://github.com/DARoSLab/mocap_retargeting.git
cd mocap_retargeting
pixi install
pixi run pip install -e .

Retarget a motion

# Align and preview the included motion
pixi run process task=unitree_g1/lafan \
  mocap_src_path=assets/mocap/sample/walk3_subject5.bvh

# Run kinematic retargeting
pixi run retarget task=unitree_g1/lafan \
  mocap_src_path=assets/mocap/sample/walk3_subject5.bvh \
  n_motion_chunk_workers=1 jit_compile=True

# Play back the generated trajectories
pixi run play --robot unitree_g1 \
  --path log/kin_trajectories/unitree_g1/

Run commands from the repository root. Preprocessing opens an interactive Viser UI. Output trajectories are saved as .npy files. For the highest trajectory consistency, use one worker per motion and parallelize across independent motion files. RL policy training uses the separate frameworks described in the paper.

BibTeX

@inproceedings{marew2026frdv,
  title = {Fast Motion Retargeting Pipeline for Scalable Humanoid Robot Learning},
  author = {Marew, Daniel and Park, Sangjun and Perera, Nisal and Kim, Donghyun},
  booktitle = {2026 IEEE-RAS International Conference on Humanoid Robots (Humanoids)},
  year = {2026}
}