算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
motion-retargeting【设计与创意】Prepare SMPL and AMASS assets, fit ASAP humanoid shapes and motions, validate robot motion assets, and visualize retargeted motion in MuJoCo.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
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.
humanoidverse/data/smpl/..npz motion files for the ASAP retargeting scripts.robot.motion config fields, MuJoCo XML, URDF, and mesh layout for a robot such as g1/g1_29dof_anneal_23dof.fit_smpl_shape.py to create humanoidverse/data/shape/<humanoid_type>/shape_optimized_v1.pkl.fit_smpl_motion.py to create per-motion joblib files under humanoidverse/data/motions/<humanoid_type>/TairanTestbed/singles/.vis_q_mj.py with +visualize_motion_file=... to inspect the retargeted motion in MuJoCo.../training-and-evaluation/SKILL.md.../sim2real-deployment/SKILL.md.../../SKILL.md and ../../references/install-and-backends.md.references/workflows.md for the five-step retargeting flow and exact commands.references/data-formats.md before changing file names, joblib keys, or robot config values.python sub-skills/motion-retargeting/scripts/validate_motion_assets.py \
--repo-root <asap-checkout> \
--robot g1/g1_29dof_anneal_23dof \
--check-raw
references/troubleshooting.md, then the root troubleshooting page ../../references/troubleshooting.md for shared install, Hydra, and backend issues.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"
smpl_sim. ASAP's package metadata includes hydra-core, lxml, joblib, numpy-stl, open3d, and other scientific dependencies, but smpl_sim is a separate required dependency for shape and motion fitting.fit_smpl_shape.py and fit_smpl_motion.py import smpl_sim.smpllib.smpl_parser, smpl_sim.smpllib.smpl_joint_names, and, for motion fitting, smpl_sim.utils.smoothing_utils.smpl_sim; it validates file layout and joblib structure without running optimization.humanoidverse/data/shape/g1_29dof_anneal_23dof/shape_optimized_v1.pkl.humanoidverse/data/motions/g1_29dof_anneal_23dof/TairanTestbed/singles/<motion-key>.pkl..pkl is a joblib-loaded dictionary. For directory-mode consumers, each file's top-level key should match the file stem. See references/data-formats.md.../../SKILL.md.../../references/install-and-backends.md.../../references/troubleshooting.md.../training-and-evaluation/SKILL.md for consuming generated motion files in policy training.../sim2real-deployment/SKILL.md for MuJoCo/ROS2/Unitree runtime control after a policy exists.