浏览代码

feet now alternate but runs backwards

/hh-develop-ragdoll-testing
HH 4 年前
当前提交
cd9a943b
共有 1 个文件被更改,包括 9 次插入2 次删除
  1. 11
      Project/Assets/ML-Agents/Examples/Walker/Scripts/WalkerAgentDynamic.cs

11
Project/Assets/ML-Agents/Examples/Walker/Scripts/WalkerAgentDynamic.cs


// d. Discourage head movement.
AddReward(
+0.02f * Vector3.Dot(m_WalkDir.normalized, m_JdController.bodyPartsDict[hips].rb.velocity)
+ 0.01f * Quaternion.Dot(m_OrientationCube.transform.rotation, hips.rotation)
+ 0.01f * Quaternion.Dot(m_OrientationCube.transform.rotation, head.rotation)
// + 0.01f * Quaternion.Dot(m_OrientationCube.transform.rotation, hips.rotation) //reward looking at
// + 0.01f * Quaternion.Dot(m_OrientationCube.transform.rotation, head.rotation) //reward looking at
+ 0.01f * (Quaternion.Dot(m_OrientationCube.transform.rotation, hips.rotation) - 1) * .5f //penalize not looking at
+ 0.01f * (Quaternion.Dot(m_OrientationCube.transform.rotation, head.rotation) - 1) * .5f //penalize not looking at
// // Set reward for this step according to mixture of the following elements.
// // a. Velocity alignment with goal direction.
// // b. Rotation alignment with goal direction.

正在加载...
取消
保存