浏览代码

added working raycast model

/develop/superpush/int/hunter
HH 4 年前
当前提交
2e6afaf0
共有 7 个文件被更改,包括 2111 次插入3 次删除
  1. 69
      Project/Assets/ML-Agents/Examples/PushBlock/Prefabs/DungeonEscapeAgent.prefab
  2. 12
      Project/Assets/ML-Agents/Examples/PushBlock/Prefabs/DungeonEscapePlatform.prefab
  3. 3
      Project/Assets/ML-Agents/Examples/PushBlock/Scripts/DungeonEscapeEnvController.cs
  4. 1001
      Project/Assets/ML-Agents/Examples/PushBlock/TFModels/DungeonEscape.onnx
  5. 14
      Project/Assets/ML-Agents/Examples/PushBlock/TFModels/DungeonEscape.onnx.meta
  6. 1001
      Project/Assets/ML-Agents/Examples/PushBlock/TFModels/PushBlock-2499957.onnx
  7. 14
      Project/Assets/ML-Agents/Examples/PushBlock/TFModels/PushBlock-2499957.onnx.meta

69
Project/Assets/ML-Agents/Examples/PushBlock/Prefabs/DungeonEscapeAgent.prefab


m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
--- !u!1 &2137845444014311057
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 6368173101304807141}
- component: {fileID: 9113196012897707438}
m_Layer: 0
m_Name: RaySensor
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &6368173101304807141
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2137845444014311057}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 4830954159424380931}
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &9113196012897707438
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2137845444014311057}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6bb6b867a41448888c1cd4f99643ad71, type: 3}
m_Name:
m_EditorClassIdentifier:
m_SensorName: RayPerceptionSensor
m_DetectableTags:
- wall
- agent
- dragon
- key
- lock
m_RaysPerDirection: 9
m_MaxRayDegrees: 120
m_SphereCastRadius: 0.5
m_RayLength: 40
m_RayLayerMask:
serializedVersion: 2
m_Bits: 1
m_ObservationStacks: 3
rayHitColor: {r: 1, g: 0, b: 0, a: 1}
rayMissColor: {r: 1, g: 1, b: 1, a: 1}
m_StartVerticalOffset: 0
m_EndVerticalOffset: 0
--- !u!1 &2436825414407777345
GameObject:
m_ObjectHideFlags: 0

m_GameObject: {fileID: 2436825414900162134}
m_Material: {fileID: 0}
m_IsTrigger: 1
m_Enabled: 1
m_Enabled: 0
serializedVersion: 2
m_Size: {x: 1.2106373, y: 0.45549554, z: 0.17897394}
m_Center: {x: -0.18605793, y: 0, z: 0}

- {fileID: 4829017773430270461}
- {fileID: 2436825414900162128}
- {fileID: 6860412223676067345}
- {fileID: 6368173101304807141}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 180, z: 0}

VectorActionDescriptions: []
VectorActionSpaceType: 0
hasUpgradedBrainParametersWithActionSpec: 1
m_Model: {fileID: 0}
m_Model: {fileID: 11400000, guid: 8c86d7c7d97b2440eb89f0b3b43d3952, type: 3}
m_InferenceDevice: 0
m_BehaviorType: 0
m_BehaviorName: PushBlock

m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!4 &4829017773430270461
Transform:
m_ObjectHideFlags: 0

12
Project/Assets/ML-Agents/Examples/PushBlock/Prefabs/DungeonEscapePlatform.prefab


m_Modification:
m_TransformParent: {fileID: 2512227112770887927}
m_Modifications:
- target: {fileID: 4796904010917588665, guid: f3c5280e4ae094a9a9b8b6702630c941,
type: 3}
propertyPath: m_Model
value:
objectReference: {fileID: 11400000, guid: 8c86d7c7d97b2440eb89f0b3b43d3952,
type: 3}
- target: {fileID: 4828233698206621445, guid: f3c5280e4ae094a9a9b8b6702630c941,
type: 3}
propertyPath: m_Name

m_Modification:
m_TransformParent: {fileID: 2512227112770887927}
m_Modifications:
- target: {fileID: 4796904010917588665, guid: f3c5280e4ae094a9a9b8b6702630c941,
type: 3}
propertyPath: m_Model
value:
objectReference: {fileID: 11400000, guid: 8c86d7c7d97b2440eb89f0b3b43d3952,
type: 3}
- target: {fileID: 4828233698206621445, guid: f3c5280e4ae094a9a9b8b6702630c941,
type: 3}
propertyPath: m_Name

3
Project/Assets/ML-Agents/Examples/PushBlock/Scripts/DungeonEscapeEnvController.cs


m_AgentGroup.GroupEpisodeInterrupted();
ResetScene();
}
// //Hurry Up Penalty
// m_AgentGroup.AddGroupReward(-0.5f / MaxEnvironmentSteps);
}
public void UnlockBlock(Transform blockT)

1001
Project/Assets/ML-Agents/Examples/PushBlock/TFModels/DungeonEscape.onnx
文件差异内容过多而无法显示
查看文件

14
Project/Assets/ML-Agents/Examples/PushBlock/TFModels/DungeonEscape.onnx.meta


fileFormatVersion: 2
guid: db5abd64808334f289c6d86246cd1991
ScriptedImporter:
fileIDToRecycleName:
11400000: main obj
11400002: model data
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 683b6cb6d0a474744822c888b46772c9, type: 3}
optimizeModel: 1
forceArbitraryBatchSize: 1
treatErrorsAsWarnings: 0

1001
Project/Assets/ML-Agents/Examples/PushBlock/TFModels/PushBlock-2499957.onnx
文件差异内容过多而无法显示
查看文件

14
Project/Assets/ML-Agents/Examples/PushBlock/TFModels/PushBlock-2499957.onnx.meta


fileFormatVersion: 2
guid: 8c86d7c7d97b2440eb89f0b3b43d3952
ScriptedImporter:
fileIDToRecycleName:
11400000: main obj
11400002: model data
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 683b6cb6d0a474744822c888b46772c9, type: 3}
optimizeModel: 1
forceArbitraryBatchSize: 1
treatErrorsAsWarnings: 0
正在加载...
取消
保存