浏览代码

increase max speed to 15

/hh-32-observation-crawler
HH 5 年前
当前提交
5e2d40f1
共有 2 个文件被更改,包括 54 次插入3 次删除
  1. 50
      Project/Assets/ML-Agents/Examples/Crawler/Scenes/CrawlerDynamicTarget.unity
  2. 7
      Project/Assets/ML-Agents/Examples/Crawler/Scripts/CrawlerAgent.cs

50
Project/Assets/ML-Agents/Examples/Crawler/Scenes/CrawlerDynamicTarget.unity


value:
objectReference: {fileID: 3839136118347789758, guid: 46734abd0de454192b407379c6a4ab8d,
type: 3}
- target: {fileID: 3421283062001101770, guid: 0058b366f9d6d44a3ba35beb06b0174b,
type: 3}
propertyPath: m_TargetWalkingSpeed
value: 15
objectReference: {fileID: 0}
- target: {fileID: 3421283062001101771, guid: 0058b366f9d6d44a3ba35beb06b0174b,
type: 3}
propertyPath: m_Model

value:
objectReference: {fileID: 3839136118347789758, guid: 46734abd0de454192b407379c6a4ab8d,
type: 3}
- target: {fileID: 3421283062001101770, guid: 0058b366f9d6d44a3ba35beb06b0174b,
type: 3}
propertyPath: m_TargetWalkingSpeed
value: 15
objectReference: {fileID: 0}
- target: {fileID: 3421283062001101771, guid: 0058b366f9d6d44a3ba35beb06b0174b,
type: 3}
propertyPath: m_Model

value:
objectReference: {fileID: 3839136118347789758, guid: 46734abd0de454192b407379c6a4ab8d,
type: 3}
- target: {fileID: 3421283062001101770, guid: 0058b366f9d6d44a3ba35beb06b0174b,
type: 3}
propertyPath: m_TargetWalkingSpeed
value: 15
objectReference: {fileID: 0}
- target: {fileID: 3421283062001101771, guid: 0058b366f9d6d44a3ba35beb06b0174b,
type: 3}
propertyPath: m_Model

value:
objectReference: {fileID: 3839136118347789758, guid: 46734abd0de454192b407379c6a4ab8d,
type: 3}
- target: {fileID: 3421283062001101770, guid: 0058b366f9d6d44a3ba35beb06b0174b,
type: 3}
propertyPath: m_TargetWalkingSpeed
value: 15
objectReference: {fileID: 0}
- target: {fileID: 3421283062001101771, guid: 0058b366f9d6d44a3ba35beb06b0174b,
type: 3}
propertyPath: m_Model

value:
objectReference: {fileID: 3839136118347789758, guid: 46734abd0de454192b407379c6a4ab8d,
type: 3}
- target: {fileID: 3421283062001101770, guid: 0058b366f9d6d44a3ba35beb06b0174b,
type: 3}
propertyPath: m_TargetWalkingSpeed
value: 15
objectReference: {fileID: 0}
- target: {fileID: 3421283062001101771, guid: 0058b366f9d6d44a3ba35beb06b0174b,
type: 3}
propertyPath: m_Model

value:
objectReference: {fileID: 3839136118347789758, guid: 46734abd0de454192b407379c6a4ab8d,
type: 3}
- target: {fileID: 3421283062001101770, guid: 0058b366f9d6d44a3ba35beb06b0174b,
type: 3}
propertyPath: m_TargetWalkingSpeed
value: 15
objectReference: {fileID: 0}
- target: {fileID: 3421283062001101771, guid: 0058b366f9d6d44a3ba35beb06b0174b,
type: 3}
propertyPath: m_Model

value:
objectReference: {fileID: 3839136118347789758, guid: 46734abd0de454192b407379c6a4ab8d,
type: 3}
- target: {fileID: 3421283062001101770, guid: 0058b366f9d6d44a3ba35beb06b0174b,
type: 3}
propertyPath: m_TargetWalkingSpeed
value: 15
objectReference: {fileID: 0}
- target: {fileID: 3421283062001101771, guid: 0058b366f9d6d44a3ba35beb06b0174b,
type: 3}
propertyPath: m_Model

value:
objectReference: {fileID: 3839136118347789758, guid: 46734abd0de454192b407379c6a4ab8d,
type: 3}
- target: {fileID: 3421283062001101770, guid: 0058b366f9d6d44a3ba35beb06b0174b,
type: 3}
propertyPath: m_TargetWalkingSpeed
value: 15
objectReference: {fileID: 0}
- target: {fileID: 3421283062001101771, guid: 0058b366f9d6d44a3ba35beb06b0174b,
type: 3}
propertyPath: m_Model

value:
objectReference: {fileID: 3839136118347789758, guid: 46734abd0de454192b407379c6a4ab8d,
type: 3}
- target: {fileID: 3421283062001101770, guid: 0058b366f9d6d44a3ba35beb06b0174b,
type: 3}
propertyPath: m_TargetWalkingSpeed
value: 15
objectReference: {fileID: 0}
- target: {fileID: 3421283062001101771, guid: 0058b366f9d6d44a3ba35beb06b0174b,
type: 3}
propertyPath: m_Model

type: 3}
propertyPath: target
value:
objectReference: {fileID: 0}
- target: {fileID: 3421283062001101770, guid: 0058b366f9d6d44a3ba35beb06b0174b,
type: 3}
propertyPath: m_TargetWalkingSpeed
value: 15
objectReference: {fileID: 0}
- target: {fileID: 3421283062001101771, guid: 0058b366f9d6d44a3ba35beb06b0174b,
type: 3}

7
Project/Assets/ML-Agents/Examples/Crawler/Scripts/CrawlerAgent.cs


public CrawlerAgentBehaviorType typeOfCrawler;
const float m_maxWalkingSpeed = 15; //The max walking speed
//Crawler Brains
//A different brain will be used depending on the CrawlerAgentBehaviorType selected
[Header("NN Models")]

public NNModel crawlerStVSBrain;
[Header("Walk Speed")]
[Range(0.1f, 10)]
[Range(0.1f, m_maxWalkingSpeed)]
private float m_TargetWalkingSpeed = 10;
private float m_TargetWalkingSpeed = m_maxWalkingSpeed;
public float TargetWalkingSpeed // property

}
const float m_maxWalkingSpeed = 10; //The max walking speed
//Should the agent sample a new goal velocity each episode?
//If true, walkSpeed will be randomly set between zero and m_maxWalkingSpeed in OnEpisodeBegin()

正在加载...
取消
保存