Motion retargeting

From VectorSpaceLab/AREX-Skill · View interactive version

Motion retargeting is an AI agent skill from the GitHub repository VectorSpaceLab/AREX-Skill. Prepare SMPL and AMASS assets, fit ASAP humanoid shapes and motions, validate robot motion assets, and visualize retargeted motion in MuJoCo.

How to use this skill

Skill file

motion-retargeting

Use this sub-skill when an ASAP task is about turning SMPL or AMASS motion into robot motion .pkl files, checking robot XML/motion config assets, fitting a humanoid shape, retargeting motion, or visualizing retargeted motion with MuJoCo.

Run ASAP retargeting entry points from the repository checkout root. Run bundled validation helpers from the generated ASAP skill root with --repo-root <asap-checkout>. If the request is about policy training, checkpoint evaluation, or deployment/control rather than motion file preparation, route to the sibling skills instead.

When to use this sub-skill

Do not use this sub-skill for

Required reading order

  1. Read the root ASAP router and install guidance first: CODE0 and CODE1.
  2. Read CODE0 for the five-step retargeting flow and exact commands.
  3. Read CODE0 before changing file names, joblib keys, or robot config values.
  4. Run the bundled safe checker before expensive fitting:
python sub-skills/motion-retargeting/scripts/validate_motion_assets.py \
  --repo-root <asap-checkout> \
  --robot g1/g1_29dof_anneal_23dof \
  --check-raw
  1. If an error occurs, read CODE0, then the root troubleshooting page CODE1 for shared install, Hydra, and backend issues.

Fast command map

Preflight current G1 assets and a known retargeted motion file:

python sub-skills/motion-retargeting/scripts/validate_motion_assets.py \
  --repo-root <asap-checkout> \
  --robot g1/g1_29dof_anneal_23dof \
  --motion-file humanoidverse/data/motions/g1_29dof_anneal_23dof/TairanTestbed/singles/0-motions_raw_tairantestbed_smpl_video_side_jump_level4_filter_amass.pkl \
  --check-raw

Fit robot shape after SMPL files are present:

python scripts/data_process/fit_smpl_shape.py +robot=g1/g1_29dof_anneal_23dof

Fit motions after the shape file and raw .npz motion files are present:

python scripts/data_process/fit_smpl_motion.py +robot=g1/g1_29dof_anneal_23dof

Visualize one retargeted output:

python scripts/vis/vis_q_mj.py \
  +robot=g1/g1_29dof_anneal_23dof \
  +visualize_motion_file="humanoidverse/data/motions/g1_29dof_anneal_23dof/TairanTestbed/singles/0-motions_raw_tairantestbed_smpl_video_side_jump_level4_filter_amass.pkl"

Dependency and asset gates

Expected outputs

Cross-links

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.