浏览代码

remove opp obs

/asymm-envs
Andrew Cohen 5 年前
当前提交
c8ecf7ea
共有 2 个文件被更改,包括 6 次插入6 次删除
  1. 4
      Project/Assets/ML-Agents/Examples/Tennis/Prefabs/TennisArea.prefab
  2. 8
      Project/Assets/ML-Agents/Examples/Tennis/Scripts/TennisAgent.cs

4
Project/Assets/ML-Agents/Examples/Tennis/Prefabs/TennisArea.prefab


m_Name:
m_EditorClassIdentifier:
m_BrainParameters:
VectorObservationSize: 14
VectorObservationSize: 10
NumStackedVectorObservations: 3
VectorActionSize: 03000000
VectorActionDescriptions: []

m_Name:
m_EditorClassIdentifier:
m_BrainParameters:
VectorObservationSize: 14
VectorObservationSize: 10
NumStackedVectorObservations: 3
VectorActionSize: 03000000
VectorActionDescriptions: []

8
Project/Assets/ML-Agents/Examples/Tennis/Scripts/TennisAgent.cs


sensor.AddObservation(m_InvertMult * m_BallRb.velocity.x);
sensor.AddObservation(m_BallRb.velocity.y);
sensor.AddObservation(m_InvertMult * (OpponentRb.position.x - myArea.transform.position.x));
sensor.AddObservation(OpponentRb.position.y - myArea.transform.position.y);
sensor.AddObservation(m_InvertMult * OpponentRb.velocity.x);
sensor.AddObservation(OpponentRb.velocity.y);
//sensor.AddObservation(m_InvertMult * (OpponentRb.position.x - myArea.transform.position.x));
//sensor.AddObservation(OpponentRb.position.y - myArea.transform.position.y);
//sensor.AddObservation(m_InvertMult * OpponentRb.velocity.x);
//sensor.AddObservation(OpponentRb.velocity.y);
sensor.AddObservation(m_InvertMult * gameObject.transform.rotation.z);
//sensor.AddObservation((m_InvertMult * (gameObject.transform.rotation.eulerAngles.z - (1f - m_InvertMult) * 180f) - 35f) / 125f);

正在加载...
取消
保存