浏览代码

update prefabs with new models. walkerstatic failed to train

/active-variablespeed
HH 4 年前
当前提交
ee810790
共有 6 个文件被更改,包括 4 次插入31 次删除
  1. 2
      Project/Assets/ML-Agents/Examples/Walker/Prefabs/Ragdoll/WalkerRagdollStSingleSpeedVariant.prefab
  2. 2
      Project/Assets/ML-Agents/Examples/Walker/Prefabs/Ragdoll/WalkerRagdollStVariableSpeedVariant.prefab
  3. 6
      Project/Assets/ML-Agents/Examples/Walker/Scenes/WalkerStaticVariableSpeed.unity
  4. 4
      Project/Assets/ML-Agents/Examples/Walker/Scripts/WalkerAgent.cs
  5. 10
      Project/Assets/ML-Agents/Examples/SharedAssets/Scripts/WalkGroup.cs
  6. 11
      Project/Assets/ML-Agents/Examples/SharedAssets/Scripts/WalkGroup.cs.meta

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


type: 3}
propertyPath: m_Model
value:
objectReference: {fileID: 11400000, guid: afc80030947564f6fb3134fd5eb98643,
objectReference: {fileID: 11400000, guid: 6328576cf5b5e45a3bf49967070b5df7,
type: 3}
- target: {fileID: 895268871377934298, guid: 765582efd9dda46ed98564603316353f,
type: 3}

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


type: 3}
propertyPath: m_Model
value:
objectReference: {fileID: 11400000, guid: 3cf64093a7fed40d289aa482939dbc9d,
objectReference: {fileID: 11400000, guid: 71f39bc92e5ae49edba82a2d411c0678,
type: 3}
- target: {fileID: 895268871377934298, guid: 765582efd9dda46ed98564603316353f,
type: 3}

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


m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 1077752704035527913, guid: d0b01030cfe47462398dd15595ca95de,
type: 3}
propertyPath: m_Model
value:
objectReference: {fileID: 11400000, guid: 71f39bc92e5ae49edba82a2d411c0678,
type: 3}
- target: {fileID: 1077752704035527914, guid: d0b01030cfe47462398dd15595ca95de,
type: 3}
propertyPath: m_LocalPosition.x

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);

10
Project/Assets/ML-Agents/Examples/SharedAssets/Scripts/WalkGroup.cs


using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class WalkGroup : MonoBehaviour
{
[Range(0, 15)]
public float walkingSpeed = 15; //The walking speed to try and achieve
public float m_maxWalkingSpeed = 15; //The max walking speed
}

11
Project/Assets/ML-Agents/Examples/SharedAssets/Scripts/WalkGroup.cs.meta


fileFormatVersion: 2
guid: 0a2c0686fcb9742d1b62b7888d87bba9
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
正在加载...
取消
保存