feat: add 26-DoF Unitree R1 motion retargeting adapter - #1
Open
Zarato2122 wants to merge 2 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
本阶段目标
基于 ASAP 官方 HumanoidVerse 新机器人迁移流程,为不带灵巧手的 Unitree R1 EDU 增加完整 26-DoF 机器人识别与 motion retargeting 配置;不修改 ASAP 核心代码,本阶段不包含训练、delta-action 或真机部署。
改动文件
humanoidverse/config/robot/r1/r1.yaml:26-DoF joint/body order、限位、默认姿态、PD、action/observation 维度、三个扩展 tracking points 和 SMPL correspondence。humanoidverse/data/robots/r1/r1_fitmotionONLY.xml:以官方 MJLab 24-DoF R1 模型为基础,恢复官方 URDF 的 head pitch/yaw 关节、link、mesh、惯量与碰撞,并增加 ASAP 所需的 26 个 motor actuator。docs/r1_motion_retargeting_adapter.md:字段说明、与 G1 的差异、官方来源版本和运行前检查。测试命令
xmllint --noout humanoidverse/data/robots/r1/r1_fitmotionONLY.xml+robot=r1/r1MjModel.from_xml_path(...)。Humanoid_Batch两帧零姿态 FK。测试结果
nq=33 nv=32 nu=26 nbody=28 njnt=27。本地输出路径
/tmp/asap-r1-adapter-validation/src/assets/robots/unitree_r1/xmls/assets/。/tmp/asap-r1-adapter-validation/src/assets/robots/unitree_r1/xmls/r1_fitmotionONLY.xml。未提交的大文件路径
/tmp目录中的 STL 仅用于验证,未加入 Git。当前限制和下一步
humanoidverse/data/robots/r1/assets/。smpl_sim、Pythonmujoco和授权 SMPL 模型文件。fit_smpl_shape.py或生成 R1 motion PKL;下一阶段先对单条低动态动作进行 shape fitting、26-DoF retarget 和可视化 QA,然后在独立分支接入 26-DoF motion-tracking 训练配置。