浏览代码

An agent can now spawn an agent in AgentStep()

/develop-generalizationTraining-TrainerController
vincentpierre 7 年前
当前提交
56c8914f
共有 1 个文件被更改,包括 6 次插入3 次删除
  1. 9
      unity-environment/Assets/ML-Agents/Scripts/Brain.cs

9
unity-environment/Assets/ML-Agents/Scripts/Brain.cs


public enum StateType
{
discrete,
continuous}
continuous
}
;

}
public void CollectEverything() {
public void CollectEverything()
{
currentStates.Clear();
currentCameras.Clear();
currentRewards.Clear();

/// which are not done
public void Step()
{
foreach (Agent agent in agents.Values)
var agentsToIterate = agents.Values.ToList();
foreach (Agent agent in agentsToIterate)
{
if (!agent.done)
{

正在加载...
取消
保存