# Piper臂MIT模式前3关节刚度异常致Sim2Real失败

> 原文链接：https://robotics.hellobike.com/pitfalls/2026-09-16-pyagxarm-52
> 频道：pitfalls | 更新日期：2026-09-16 | 标签：auto, github-issue, pyagxarm
> 核心摘要：Piper臂MIT模式下前3关节实际刚度远高于设定值导致仿真失效，通过将Kp/Kd增益乘以4倍可对齐真机行为。

# Piper臂MIT模式前3关节刚度异常致Sim2Real失败

::: v-pre
> 本文由 AI 根据公开内容整理，可能有误，请以原文为准：[Question about possible internal Kp/Kd scaling in MIT mode for the first three joints of Piper arm](https://github.com/agilexrobotics/pyAgxArm/issues/52)（GitHub agilexrobotics/pyagxarm #52）

**状态**：有绕过办法

## 问题

在Piper机械臂MIT控制模式下，使用推荐增益（Kp=10.0, Kd=0.8）时，前三个关节实际表现远比预期僵硬，与MuJoCo/IsaacSim仿真行为严重不符。Joint 3在仿真中因重力坍塌而真机不会，表明底层控制器可能存在未文档化的内部增益缩放或模型参数偏差，导致RL策略无法直接迁移。

## 环境

AgileX Piper机械臂，MIT控制模式，MuJoCo/IsaacSim仿真环境，pyagxarm SDK。

## 解决办法

1. 采集真机MIT模式轨迹（设置前馈力矩为0），用于系统辨识基准。
2. 在MuJoCo中使用相同名义增益进行拟合，确认Joint 2和3存在显著响应差异。
3. 将仿真模型中Joint 1-3的PD增益手动乘以4倍以补偿底层缩放效应。
4. 验证调整后的参数：推荐使用Kp=30、Kd=25作为Joint 1-3的仿真设定值，使仿真动态与真机一致。
5. 若需更高精度，可参考iit-DLSLab/sim2real-robot-identification仓库的fix_piper分支进行自动化参数辨识。

讨论原作者：@skywoodsz 等，版权归原作者所有。
:::

## 原始参考来源 (Sources)

- [GitHub agilexrobotics/pyagxarm #52：Question about possible internal Kp/Kd scaling in MIT mode for the first three joints of Piper arm](https://github.com/agilexrobotics/pyAgxArm/issues/52)