浏览代码

add hh

/active-variablespeed
HH 4 年前
当前提交
60916d58
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 7
      Project/Assets/ML-Agents/Examples/Walker/Scripts/WalkerAgent.cs

7
Project/Assets/ML-Agents/Examples/Walker/Scripts/WalkerAgent.cs


$" head.forward: {head.forward}"
);
}
// c. Encourage head height.
var headHeightOverFeetReward =
Mathf.Clamp01(((head.position.y - footL.position.y) + (head.position.y - footR.position.y))/ 10); //Should normalize to ~1
AddReward(matchSpeedReward * lookAtTargetReward);
AddReward(matchSpeedReward * lookAtTargetReward * headHeightOverFeetReward);
// AddReward(matchSpeedReward * lookAtTargetReward);
}
//Returns the average velocity of all of the body parts

正在加载...
取消
保存