浏览代码

about to train 20k strength, no hh, no rolling targ 30M

/active-variablespeed
HH 4 年前
当前提交
7083559c
共有 5 个文件被更改,包括 4 次插入34 次删除
  1. 2
      Project/Assets/ML-Agents/Examples/SharedAssets/Prefabs/Targets/DynamicTarget.prefab
  2. 2
      Project/Assets/ML-Agents/Examples/Walker/Prefabs/Ragdoll/WalkerRagdollBase.prefab
  3. 15
      Project/Assets/ML-Agents/Examples/Walker/Scenes/WalkerDynamic.unity
  4. 15
      Project/Assets/ML-Agents/Examples/Walker/Scenes/WalkerDynamicVariableSpeed.unity
  5. 4
      Project/Assets/ML-Agents/Examples/Walker/Scripts/WalkerAgent.cs

2
Project/Assets/ML-Agents/Examples/SharedAssets/Prefabs/Targets/DynamicTarget.prefab


m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3840539935788495952}
m_Enabled: 1
m_Enabled: 0
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ab1096666cc514d9aac1e289b32ccfc5, type: 3}
m_Name:

2
Project/Assets/ML-Agents/Examples/Walker/Prefabs/Ragdoll/WalkerRagdollBase.prefab


m_EditorClassIdentifier:
maxJointSpring: 40000
jointDampen: 5000
maxJointForceLimit: 10000
maxJointForceLimit: 20000
bodyPartsList: []
--- !u!114 &895268871377934302
MonoBehaviour:

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


- component: {fileID: 2095421679}
- component: {fileID: 2095421681}
- component: {fileID: 2095421680}
- component: {fileID: 2095421682}
m_Layer: 0
m_Name: WalkerDynamicSettings
m_TagString: Untagged

m_Script: {fileID: 11500000, guid: 3d6f3eab3776b4fb79724ac4216dfd7b, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &2095421682
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2095421678}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 0a2c0686fcb9742d1b62b7888d87bba9, type: 3}
m_Name:
m_EditorClassIdentifier:
walkingSpeed: 15
m_maxWalkingSpeed: 15
--- !u!1001 &8835340466618600407
PrefabInstance:
m_ObjectHideFlags: 0

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


- component: {fileID: 2095421679}
- component: {fileID: 2095421681}
- component: {fileID: 2095421680}
- component: {fileID: 2095421682}
m_Layer: 0
m_Name: WalkerDynamicSettings
m_TagString: Untagged

m_Script: {fileID: 11500000, guid: 3d6f3eab3776b4fb79724ac4216dfd7b, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &2095421682
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2095421678}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 0a2c0686fcb9742d1b62b7888d87bba9, type: 3}
m_Name:
m_EditorClassIdentifier:
walkingSpeed: 15
m_maxWalkingSpeed: 15

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


targetPos.y = 0;
Vector3 relPos = Vector3.ClampMagnitude(m_OrientationCube.transform.InverseTransformPoint(targetPos), 100);
sensor.AddObservation(relPos);
Debug.DrawRay(targetPos, Vector3.up, Color.green,1);
Debug.DrawRay(m_OrientationCube.transform.InverseTransformPoint(targetPos), Vector3.up * 2, Color.red,5);
// Debug.DrawRay(targetPos, Vector3.up, Color.green,1);
// Debug.DrawRay(m_OrientationCube.transform.InverseTransformPoint(targetPos), Vector3.up * 2, Color.red,5);
// sensor.AddObservation(Vector3.ClampMagnitude(m_OrientationCube.transform.InverseTransformPoint(target.transform.position), 100)
// sensor.AddObservation(targetPos);

正在加载...
取消
保存