浏览代码

add relPos clamped to 100m models

/active-variablespeed
HH 4 年前
当前提交
d384a902
共有 16 个文件被更改,包括 4119 次插入53 次删除
  1. 16
      Project/Assets/ML-Agents/Examples/Walker/Prefabs/Platforms/PlatformWalkerDynamicSingleSpeed.prefab
  2. 38
      Project/Assets/ML-Agents/Examples/Walker/Scenes/WalkerDynamic.unity
  3. 20
      Project/Assets/ML-Agents/Examples/Walker/Scenes/WalkerDynamicVariableSpeed.unity
  4. 20
      Project/Assets/ML-Agents/Examples/Walker/Scenes/WalkerStatic.unity
  5. 20
      Project/Assets/ML-Agents/Examples/Walker/Scenes/WalkerStaticVariableSpeed.unity
  6. 2
      Project/Assets/ML-Agents/Examples/Walker/Scripts/WalkerAgent.cs
  7. 8
      Project/Assets/ML-Agents/Examples/Walker/TFModels/20kAllBPVelRelPosClampedTo100.meta
  8. 1001
      Project/Assets/ML-Agents/Examples/Walker/TFModels/20kAllBPVelRelPosClampedTo100/WalkerDynamic.nn
  9. 11
      Project/Assets/ML-Agents/Examples/Walker/TFModels/20kAllBPVelRelPosClampedTo100/WalkerDynamic.nn.meta
  10. 1001
      Project/Assets/ML-Agents/Examples/Walker/TFModels/20kAllBPVelRelPosClampedTo100/WalkerDynamicVariableSpeed.nn
  11. 11
      Project/Assets/ML-Agents/Examples/Walker/TFModels/20kAllBPVelRelPosClampedTo100/WalkerDynamicVariableSpeed.nn.meta
  12. 1001
      Project/Assets/ML-Agents/Examples/Walker/TFModels/20kAllBPVelRelPosClampedTo100/WalkerStatic.nn
  13. 11
      Project/Assets/ML-Agents/Examples/Walker/TFModels/20kAllBPVelRelPosClampedTo100/WalkerStatic.nn.meta
  14. 1001
      Project/Assets/ML-Agents/Examples/Walker/TFModels/20kAllBPVelRelPosClampedTo100/WalkerStaticVariableSpeed.nn
  15. 11
      Project/Assets/ML-Agents/Examples/Walker/TFModels/20kAllBPVelRelPosClampedTo100/WalkerStaticVariableSpeed.nn.meta

16
Project/Assets/ML-Agents/Examples/Walker/Prefabs/Platforms/PlatformWalkerDynamicSingleSpeed.prefab


m_Modification:
m_TransformParent: {fileID: 1988560127670737702}
m_Modifications:
- target: {fileID: 1077752704035527913, guid: 90f3321ab5beb43e28bc651909d99e39,
type: 3}
propertyPath: m_Model
value:
objectReference: {fileID: 11400000, guid: 1a6e4a4e15a5d49a7acac1f78bc1f514,
type: 3}
- target: {fileID: 1077752704035527914, guid: 90f3321ab5beb43e28bc651909d99e39,
type: 3}
propertyPath: m_LocalPosition.x

- target: {fileID: 1077752704035527914, guid: 90f3321ab5beb43e28bc651909d99e39,
type: 3}
propertyPath: m_RootOrder
value: 4
value: 3
objectReference: {fileID: 0}
- target: {fileID: 1077752704035527914, guid: 90f3321ab5beb43e28bc651909d99e39,
type: 3}

- target: {fileID: 8228205183255162976, guid: 095e843732bad4a02b273c01eaff4b26,
type: 3}
propertyPath: m_RootOrder
value: 3
value: 2
objectReference: {fileID: 0}
- target: {fileID: 8228205183255162976, guid: 095e843732bad4a02b273c01eaff4b26,
type: 3}

propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8228205183255162979, guid: 095e843732bad4a02b273c01eaff4b26,
type: 3}
propertyPath: m_Model
value:
objectReference: {fileID: 11400000, guid: 2c37bf93cad864ba5a91689aa40eba6d,
type: 3}
- target: {fileID: 8228205183255163001, guid: 095e843732bad4a02b273c01eaff4b26,
type: 3}
propertyPath: m_Name

38
Project/Assets/ML-Agents/Examples/Walker/Scenes/WalkerDynamic.unity


type: 3}
propertyPath: m_Model
value:
objectReference: {fileID: 11400000, guid: 6fa638926d5204c779388e48e6255ad8,
objectReference: {fileID: 11400000, guid: 2c37bf93cad864ba5a91689aa40eba6d,
type: 3}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 8daf438e1a41f4d06850cacc91aa175f, type: 3}

type: 3}
propertyPath: m_Model
value:
objectReference: {fileID: 11400000, guid: 6fa638926d5204c779388e48e6255ad8,
objectReference: {fileID: 11400000, guid: 2c37bf93cad864ba5a91689aa40eba6d,
type: 3}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 8daf438e1a41f4d06850cacc91aa175f, type: 3}

type: 3}
propertyPath: m_Model
value:
objectReference: {fileID: 11400000, guid: 6fa638926d5204c779388e48e6255ad8,
objectReference: {fileID: 11400000, guid: 2c37bf93cad864ba5a91689aa40eba6d,
type: 3}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 8daf438e1a41f4d06850cacc91aa175f, type: 3}

type: 3}
propertyPath: m_Model
value:
objectReference: {fileID: 11400000, guid: 6fa638926d5204c779388e48e6255ad8,
objectReference: {fileID: 11400000, guid: 2c37bf93cad864ba5a91689aa40eba6d,
type: 3}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 8daf438e1a41f4d06850cacc91aa175f, type: 3}

type: 3}
propertyPath: m_Model
value:
objectReference: {fileID: 11400000, guid: 6fa638926d5204c779388e48e6255ad8,
objectReference: {fileID: 11400000, guid: 2c37bf93cad864ba5a91689aa40eba6d,
type: 3}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 8daf438e1a41f4d06850cacc91aa175f, type: 3}

type: 3}
propertyPath: m_Model
value:
objectReference: {fileID: 11400000, guid: 6fa638926d5204c779388e48e6255ad8,
objectReference: {fileID: 11400000, guid: 2c37bf93cad864ba5a91689aa40eba6d,
type: 3}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 8daf438e1a41f4d06850cacc91aa175f, type: 3}

type: 3}
propertyPath: m_Model
value:
objectReference: {fileID: 11400000, guid: 6fa638926d5204c779388e48e6255ad8,
objectReference: {fileID: 11400000, guid: 2c37bf93cad864ba5a91689aa40eba6d,
type: 3}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 8daf438e1a41f4d06850cacc91aa175f, type: 3}

type: 3}
propertyPath: m_Model
value:
objectReference: {fileID: 11400000, guid: 6fa638926d5204c779388e48e6255ad8,
objectReference: {fileID: 11400000, guid: 2c37bf93cad864ba5a91689aa40eba6d,
type: 3}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 8daf438e1a41f4d06850cacc91aa175f, type: 3}

type: 3}
propertyPath: m_Model
value:
objectReference: {fileID: 11400000, guid: 6fa638926d5204c779388e48e6255ad8,
objectReference: {fileID: 11400000, guid: 2c37bf93cad864ba5a91689aa40eba6d,
type: 3}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 8daf438e1a41f4d06850cacc91aa175f, type: 3}

type: 3}
propertyPath: m_Model
value:
objectReference: {fileID: 11400000, guid: 6fa638926d5204c779388e48e6255ad8,
objectReference: {fileID: 11400000, guid: 2c37bf93cad864ba5a91689aa40eba6d,
type: 3}
- target: {fileID: 1671215519116747191, guid: 4ee4867f326424260aa2753712f3d643,
type: 3}

type: 3}
propertyPath: m_Model
value:
objectReference: {fileID: 11400000, guid: 6fa638926d5204c779388e48e6255ad8,
objectReference: {fileID: 11400000, guid: 2c37bf93cad864ba5a91689aa40eba6d,
objectReference: {fileID: 11400000, guid: 6fa638926d5204c779388e48e6255ad8,
objectReference: {fileID: 11400000, guid: 2c37bf93cad864ba5a91689aa40eba6d,
objectReference: {fileID: 11400000, guid: 6fa638926d5204c779388e48e6255ad8,
objectReference: {fileID: 11400000, guid: 2c37bf93cad864ba5a91689aa40eba6d,
objectReference: {fileID: 11400000, guid: 6fa638926d5204c779388e48e6255ad8,
objectReference: {fileID: 11400000, guid: 2c37bf93cad864ba5a91689aa40eba6d,
objectReference: {fileID: 11400000, guid: 6fa638926d5204c779388e48e6255ad8,
objectReference: {fileID: 11400000, guid: 2c37bf93cad864ba5a91689aa40eba6d,
objectReference: {fileID: 11400000, guid: 6fa638926d5204c779388e48e6255ad8,
objectReference: {fileID: 11400000, guid: 2c37bf93cad864ba5a91689aa40eba6d,
objectReference: {fileID: 11400000, guid: 6fa638926d5204c779388e48e6255ad8,
objectReference: {fileID: 11400000, guid: 2c37bf93cad864ba5a91689aa40eba6d,
objectReference: {fileID: 11400000, guid: 6fa638926d5204c779388e48e6255ad8,
objectReference: {fileID: 11400000, guid: 2c37bf93cad864ba5a91689aa40eba6d,
objectReference: {fileID: 11400000, guid: 6fa638926d5204c779388e48e6255ad8,
objectReference: {fileID: 11400000, guid: 2c37bf93cad864ba5a91689aa40eba6d,
type: 3}
- target: {fileID: 6152130843188510807, guid: 4ee4867f326424260aa2753712f3d643,
type: 3}

20
Project/Assets/ML-Agents/Examples/Walker/Scenes/WalkerDynamicVariableSpeed.unity


type: 3}
propertyPath: m_Model
value:
objectReference: {fileID: 11400000, guid: db7b60f9ef4594117b8c652234fee72d,
objectReference: {fileID: 11400000, guid: 1a6e4a4e15a5d49a7acac1f78bc1f514,
type: 3}
- target: {fileID: 7955124901054842523, guid: 4ee4867f326424260aa2753712f3d643,
type: 3}

type: 3}
propertyPath: m_Model
value:
objectReference: {fileID: 11400000, guid: db7b60f9ef4594117b8c652234fee72d,
objectReference: {fileID: 11400000, guid: 1a6e4a4e15a5d49a7acac1f78bc1f514,
objectReference: {fileID: 11400000, guid: db7b60f9ef4594117b8c652234fee72d,
objectReference: {fileID: 11400000, guid: 1a6e4a4e15a5d49a7acac1f78bc1f514,
objectReference: {fileID: 11400000, guid: db7b60f9ef4594117b8c652234fee72d,
objectReference: {fileID: 11400000, guid: 1a6e4a4e15a5d49a7acac1f78bc1f514,
objectReference: {fileID: 11400000, guid: db7b60f9ef4594117b8c652234fee72d,
objectReference: {fileID: 11400000, guid: 1a6e4a4e15a5d49a7acac1f78bc1f514,
objectReference: {fileID: 11400000, guid: db7b60f9ef4594117b8c652234fee72d,
objectReference: {fileID: 11400000, guid: 1a6e4a4e15a5d49a7acac1f78bc1f514,
objectReference: {fileID: 11400000, guid: db7b60f9ef4594117b8c652234fee72d,
objectReference: {fileID: 11400000, guid: 1a6e4a4e15a5d49a7acac1f78bc1f514,
objectReference: {fileID: 11400000, guid: db7b60f9ef4594117b8c652234fee72d,
objectReference: {fileID: 11400000, guid: 1a6e4a4e15a5d49a7acac1f78bc1f514,
objectReference: {fileID: 11400000, guid: db7b60f9ef4594117b8c652234fee72d,
objectReference: {fileID: 11400000, guid: 1a6e4a4e15a5d49a7acac1f78bc1f514,
objectReference: {fileID: 11400000, guid: db7b60f9ef4594117b8c652234fee72d,
objectReference: {fileID: 11400000, guid: 1a6e4a4e15a5d49a7acac1f78bc1f514,
type: 3}
- target: {fileID: 8669830784825731694, guid: 4ee4867f326424260aa2753712f3d643,
type: 3}

20
Project/Assets/ML-Agents/Examples/Walker/Scenes/WalkerStatic.unity


type: 3}
propertyPath: m_Model
value:
objectReference: {fileID: 11400000, guid: 6328576cf5b5e45a3bf49967070b5df7,
objectReference: {fileID: 11400000, guid: d8bebea7ecfd0470f87cbab469bd1411,
type: 3}
- target: {fileID: 8228205183255163001, guid: c319a0a1c387d420a92f520b38ef875b,
type: 3}

type: 3}
propertyPath: m_Model
value:
objectReference: {fileID: 11400000, guid: 6328576cf5b5e45a3bf49967070b5df7,
objectReference: {fileID: 11400000, guid: d8bebea7ecfd0470f87cbab469bd1411,
type: 3}
- target: {fileID: 8228205183255163001, guid: c319a0a1c387d420a92f520b38ef875b,
type: 3}

type: 3}
propertyPath: m_Model
value:
objectReference: {fileID: 11400000, guid: 6328576cf5b5e45a3bf49967070b5df7,
objectReference: {fileID: 11400000, guid: d8bebea7ecfd0470f87cbab469bd1411,
type: 3}
- target: {fileID: 8228205183255163001, guid: c319a0a1c387d420a92f520b38ef875b,
type: 3}

type: 3}
propertyPath: m_Model
value:
objectReference: {fileID: 11400000, guid: 6328576cf5b5e45a3bf49967070b5df7,
objectReference: {fileID: 11400000, guid: d8bebea7ecfd0470f87cbab469bd1411,
type: 3}
- target: {fileID: 8228205183255163001, guid: c319a0a1c387d420a92f520b38ef875b,
type: 3}

type: 3}
propertyPath: m_Model
value:
objectReference: {fileID: 11400000, guid: 6328576cf5b5e45a3bf49967070b5df7,
objectReference: {fileID: 11400000, guid: d8bebea7ecfd0470f87cbab469bd1411,
type: 3}
- target: {fileID: 8228205183255163001, guid: c319a0a1c387d420a92f520b38ef875b,
type: 3}

type: 3}
propertyPath: m_Model
value:
objectReference: {fileID: 11400000, guid: 6328576cf5b5e45a3bf49967070b5df7,
objectReference: {fileID: 11400000, guid: d8bebea7ecfd0470f87cbab469bd1411,
type: 3}
- target: {fileID: 8228205183255163001, guid: c319a0a1c387d420a92f520b38ef875b,
type: 3}

type: 3}
propertyPath: m_Model
value:
objectReference: {fileID: 11400000, guid: 6328576cf5b5e45a3bf49967070b5df7,
objectReference: {fileID: 11400000, guid: d8bebea7ecfd0470f87cbab469bd1411,
type: 3}
- target: {fileID: 8228205183255163001, guid: c319a0a1c387d420a92f520b38ef875b,
type: 3}

type: 3}
propertyPath: m_Model
value:
objectReference: {fileID: 11400000, guid: 6328576cf5b5e45a3bf49967070b5df7,
objectReference: {fileID: 11400000, guid: d8bebea7ecfd0470f87cbab469bd1411,
type: 3}
- target: {fileID: 8228205183255163001, guid: c319a0a1c387d420a92f520b38ef875b,
type: 3}

type: 3}
propertyPath: m_Model
value:
objectReference: {fileID: 11400000, guid: 6328576cf5b5e45a3bf49967070b5df7,
objectReference: {fileID: 11400000, guid: d8bebea7ecfd0470f87cbab469bd1411,
type: 3}
- target: {fileID: 8228205183255163001, guid: c319a0a1c387d420a92f520b38ef875b,
type: 3}

type: 3}
propertyPath: m_Model
value:
objectReference: {fileID: 11400000, guid: 6328576cf5b5e45a3bf49967070b5df7,
objectReference: {fileID: 11400000, guid: d8bebea7ecfd0470f87cbab469bd1411,
type: 3}
- target: {fileID: 8228205183255163001, guid: c319a0a1c387d420a92f520b38ef875b,
type: 3}

20
Project/Assets/ML-Agents/Examples/Walker/Scenes/WalkerStaticVariableSpeed.unity


type: 3}
propertyPath: m_Model
value:
objectReference: {fileID: 11400000, guid: 71f39bc92e5ae49edba82a2d411c0678,
objectReference: {fileID: 11400000, guid: a473273f582f94ecbbb2df833dd7251d,
type: 3}
- target: {fileID: 1077752704035527914, guid: d0b01030cfe47462398dd15595ca95de,
type: 3}

type: 3}
propertyPath: m_Model
value:
objectReference: {fileID: 11400000, guid: 163fdf9da8bd8441c97f6e760543fa06,
objectReference: {fileID: 11400000, guid: a473273f582f94ecbbb2df833dd7251d,
type: 3}
- target: {fileID: 1077752704035527914, guid: d0b01030cfe47462398dd15595ca95de,
type: 3}

type: 3}
propertyPath: m_Model
value:
objectReference: {fileID: 11400000, guid: 163fdf9da8bd8441c97f6e760543fa06,
objectReference: {fileID: 11400000, guid: a473273f582f94ecbbb2df833dd7251d,
type: 3}
- target: {fileID: 1077752704035527914, guid: d0b01030cfe47462398dd15595ca95de,
type: 3}

type: 3}
propertyPath: m_Model
value:
objectReference: {fileID: 11400000, guid: 163fdf9da8bd8441c97f6e760543fa06,
objectReference: {fileID: 11400000, guid: a473273f582f94ecbbb2df833dd7251d,
type: 3}
- target: {fileID: 1077752704035527914, guid: d0b01030cfe47462398dd15595ca95de,
type: 3}

type: 3}
propertyPath: m_Model
value:
objectReference: {fileID: 11400000, guid: 163fdf9da8bd8441c97f6e760543fa06,
objectReference: {fileID: 11400000, guid: a473273f582f94ecbbb2df833dd7251d,
type: 3}
- target: {fileID: 1077752704035527914, guid: d0b01030cfe47462398dd15595ca95de,
type: 3}

type: 3}
propertyPath: m_Model
value:
objectReference: {fileID: 11400000, guid: 71f39bc92e5ae49edba82a2d411c0678,
objectReference: {fileID: 11400000, guid: a473273f582f94ecbbb2df833dd7251d,
type: 3}
- target: {fileID: 1077752704035527914, guid: d0b01030cfe47462398dd15595ca95de,
type: 3}

type: 3}
propertyPath: m_Model
value:
objectReference: {fileID: 11400000, guid: 163fdf9da8bd8441c97f6e760543fa06,
objectReference: {fileID: 11400000, guid: a473273f582f94ecbbb2df833dd7251d,
type: 3}
- target: {fileID: 1077752704035527914, guid: d0b01030cfe47462398dd15595ca95de,
type: 3}

type: 3}
propertyPath: m_Model
value:
objectReference: {fileID: 11400000, guid: 163fdf9da8bd8441c97f6e760543fa06,
objectReference: {fileID: 11400000, guid: a473273f582f94ecbbb2df833dd7251d,
type: 3}
- target: {fileID: 1077752704035527914, guid: d0b01030cfe47462398dd15595ca95de,
type: 3}

type: 3}
propertyPath: m_Model
value:
objectReference: {fileID: 11400000, guid: 163fdf9da8bd8441c97f6e760543fa06,
objectReference: {fileID: 11400000, guid: a473273f582f94ecbbb2df833dd7251d,
type: 3}
- target: {fileID: 1077752704035527914, guid: d0b01030cfe47462398dd15595ca95de,
type: 3}

type: 3}
propertyPath: m_Model
value:
objectReference: {fileID: 11400000, guid: 163fdf9da8bd8441c97f6e760543fa06,
objectReference: {fileID: 11400000, guid: a473273f582f94ecbbb2df833dd7251d,
type: 3}
- target: {fileID: 1077752704035527914, guid: d0b01030cfe47462398dd15595ca95de,
type: 3}

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


//If true, walkSpeed will be randomly set between zero and m_maxWalkingSpeed in OnEpisodeBegin()
//If false, the goal velocity will be walkingSpeed
public bool randomizeWalkSpeedEachEpisode;
// Vector3 m_WalkDir; //Direction to the target
public enum WalkDirectionMethod

[Header("Walk Direction")] public WalkDirectionMethod walkDirectionMethod;
public Vector3 worldDirToWalk = Vector3.right;
public Vector3 m_currentWorldDirToWalk = Vector3.right;
public Vector3 worldPosToWalkTo;
public Transform target; //Target the agent will walk towards.

8
Project/Assets/ML-Agents/Examples/Walker/TFModels/20kAllBPVelRelPosClampedTo100.meta


fileFormatVersion: 2
guid: 2d241685fc042499b9de5f4cc6f7deb0
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

1001
Project/Assets/ML-Agents/Examples/Walker/TFModels/20kAllBPVelRelPosClampedTo100/WalkerDynamic.nn
文件差异内容过多而无法显示
查看文件

11
Project/Assets/ML-Agents/Examples/Walker/TFModels/20kAllBPVelRelPosClampedTo100/WalkerDynamic.nn.meta


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

1001
Project/Assets/ML-Agents/Examples/Walker/TFModels/20kAllBPVelRelPosClampedTo100/WalkerDynamicVariableSpeed.nn
文件差异内容过多而无法显示
查看文件

11
Project/Assets/ML-Agents/Examples/Walker/TFModels/20kAllBPVelRelPosClampedTo100/WalkerDynamicVariableSpeed.nn.meta


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

1001
Project/Assets/ML-Agents/Examples/Walker/TFModels/20kAllBPVelRelPosClampedTo100/WalkerStatic.nn
文件差异内容过多而无法显示
查看文件

11
Project/Assets/ML-Agents/Examples/Walker/TFModels/20kAllBPVelRelPosClampedTo100/WalkerStatic.nn.meta


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

1001
Project/Assets/ML-Agents/Examples/Walker/TFModels/20kAllBPVelRelPosClampedTo100/WalkerStaticVariableSpeed.nn
文件差异内容过多而无法显示
查看文件

11
Project/Assets/ML-Agents/Examples/Walker/TFModels/20kAllBPVelRelPosClampedTo100/WalkerStaticVariableSpeed.nn.meta


fileFormatVersion: 2
guid: a473273f582f94ecbbb2df833dd7251d
ScriptedImporter:
fileIDToRecycleName:
11400000: main obj
11400002: model data
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 19ed1486aa27d4903b34839f37b8f69f, type: 3}
正在加载...
取消
保存