浏览代码

walker no oc

/hh-develop-ragdoll-testing
HH 5 年前
当前提交
9d8c4aa2
共有 6 个文件被更改,包括 1027 次插入5 次删除
  1. 6
      Project/Assets/ML-Agents/Examples/Crawler/Scenes/CrawlerDynamicTarget.unity
  2. 14
      Project/Assets/ML-Agents/Examples/Walker/Scripts/WalkerAgent.cs
  3. 1001
      Project/Assets/ML-Agents/Examples/Crawler/TFModels/CrawlerDynamic no oc local pos.nn
  4. 11
      Project/Assets/ML-Agents/Examples/Crawler/TFModels/CrawlerDynamic no oc local pos.nn.meta
  5. 0
      /Project/Assets/ML-Agents/Examples/Crawler/TFModels/CrawlerDynamic no oc.nn
  6. 0
      /Project/Assets/ML-Agents/Examples/Crawler/TFModels/CrawlerDynamic no oc.nn.meta

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


propertyPath: m_Name
value: DynamicPlatform
objectReference: {fileID: 0}
- target: {fileID: 8951412967461282416, guid: 0058b366f9d6d44a3ba35beb06b0174b,
type: 3}
propertyPath: m_Model
value:
objectReference: {fileID: 11400000, guid: 4f0c156b97442492daa7673825318d7d,
type: 3}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 0058b366f9d6d44a3ba35beb06b0174b, type: 3}

14
Project/Assets/ML-Agents/Examples/Walker/Scripts/WalkerAgent.cs


//Get velocities in the context of our orientation cube's space
//Note: You can get these velocities in world space as well but it may not train as well.
sensor.AddObservation(orientationCube.transform.InverseTransformDirection(bp.rb.velocity));
sensor.AddObservation(orientationCube.transform.InverseTransformDirection(bp.rb.angularVelocity));
// sensor.AddObservation(orientationCube.transform.InverseTransformDirection(bp.rb.velocity));
// sensor.AddObservation(orientationCube.transform.InverseTransformDirection(bp.rb.angularVelocity));
sensor.AddObservation(bp.rb.velocity);
sensor.AddObservation(bp.rb.angularVelocity);
sensor.AddObservation(orientationCube.transform.InverseTransformDirection(bp.rb.position - hips.position));
// sensor.AddObservation(orientationCube.transform.InverseTransformDirection(bp.rb.position - hips.position));
sensor.AddObservation(bp.rb.transform.localPosition);
if (bp.rb.transform != hips && bp.rb.transform != handL && bp.rb.transform != handR)
{

sensor.AddObservation(Quaternion.FromToRotation(hips.forward, orientationCube.transform.forward));
sensor.AddObservation(Quaternion.FromToRotation(head.forward, orientationCube.transform.forward));
sensor.AddObservation(orientationCube.transform.InverseTransformPoint(target.position));
sensor.AddObservation(hips.InverseTransformPoint(target.position));
// sensor.AddObservation(orientationCube.transform.InverseTransformPoint(target.position));
foreach (var bodyPart in m_JdController.bodyPartsList)
{

1001
Project/Assets/ML-Agents/Examples/Crawler/TFModels/CrawlerDynamic no oc local pos.nn
文件差异内容过多而无法显示
查看文件

11
Project/Assets/ML-Agents/Examples/Crawler/TFModels/CrawlerDynamic no oc local pos.nn.meta


fileFormatVersion: 2
guid: 4f0c156b97442492daa7673825318d7d
ScriptedImporter:
fileIDToRecycleName:
11400000: main obj
11400002: model data
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 19ed1486aa27d4903b34839f37b8f69f, type: 3}

/Project/Assets/ML-Agents/Examples/Crawler/TFModels/CrawlerDynamic 1.nn → /Project/Assets/ML-Agents/Examples/Crawler/TFModels/CrawlerDynamic no oc.nn

/Project/Assets/ML-Agents/Examples/Crawler/TFModels/CrawlerDynamic 1.nn.meta → /Project/Assets/ML-Agents/Examples/Crawler/TFModels/CrawlerDynamic no oc.nn.meta

正在加载...
取消
保存