浏览代码

update env controller

/develop/superpush/int
Ruo-Ping Dong 4 年前
当前提交
d12a5d59
共有 3 个文件被更改,包括 3 次插入4 次删除
  1. 4
      Project/Assets/ML-Agents/Examples/Hallway/Scripts/HallwayCollabAgent.cs
  2. 1
      Project/Assets/ML-Agents/Examples/Hallway/TFModels/HallwayCollab.onnx.meta
  3. 2
      Project/Assets/ML-Agents/Examples/PushBlock/Scripts/PushBlockEnvController.cs

4
Project/Assets/ML-Agents/Examples/Hallway/Scripts/HallwayCollabAgent.cs


if (isSpotter)
{
var teamManager = new HallwayTeamManager();
SetTeamManager(teamManager);
teammate.SetTeamManager(teamManager);
teamManager.RegisterAgent(this);
teamManager.RegisterAgent(teammate);
}
}
public override void OnEpisodeBegin()

1
Project/Assets/ML-Agents/Examples/Hallway/TFModels/HallwayCollab.onnx.meta


fileIDToRecycleName:
11400000: main obj
11400002: model data
2186277476908879412: ImportLogs
externalObjects: {}
userData:
assetBundleName:

2
Project/Assets/ML-Agents/Examples/PushBlock/Scripts/PushBlockEnvController.cs


item.StartingPos = item.Agent.transform.position;
item.StartingRot = item.Agent.transform.rotation;
item.Rb = item.Agent.GetComponent<Rigidbody>();
item.Agent.SetTeamManager(m_TeamManager);
m_TeamManager.RegisterAgent(item.Agent);
}
ResetScene();

正在加载...
取消
保存