This commit is contained in:
2024-04-12 14:42:34 +02:00
parent c38ce59409
commit c637b139fb
6 changed files with 17 additions and 5 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 5e7d3887e40cc3045b65f0c2cc73823b
guid: eda9d637f2550584bb2ee47c76a22cc9
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}

View File

@@ -1 +1 @@
{"count":1,"self":119.3234944,"total":120.3650905,"children":{"InitializeActuators":{"count":1,"self":0.0015099,"total":0.0015099,"children":null},"InitializeSensors":{"count":1,"self":0.0020358,"total":0.0020358,"children":null},"AgentSendState":{"count":5783,"self":0.6336645,"total":0.8728585,"children":{"CollectObservations":{"count":5783,"self":0.1543669,"total":0.1543669,"children":null},"WriteActionMask":{"count":5783,"self":0.0116965,"total":0.0116965,"children":null},"RequestDecision":{"count":5783,"self":0.040828199999999995,"total":0.0589387,"children":{"RayPerceptionSensor.Perceive":{"count":11566,"self":0.018110499999999998,"total":0.018110499999999998,"children":null}}},"RayPerceptionSensor.Perceive":{"count":11564,"self":0.014191899999999999,"total":0.014191899999999999,"children":null}}},"DecideAction":{"count":5783,"self":0.0421215,"total":0.0421215,"children":null},"AgentAct":{"count":5783,"self":0.12306429999999999,"total":0.12306429999999999,"children":{"RayPerceptionSensor.Perceive":{"count":16,"self":0,"total":0,"children":null}}}},"gauges":{"BensonImitationV2.CumulativeReward":{"count":4,"max":24.1764412,"min":2.38896155,"runningAverage":15.355751,"value":2.38896155,"weightedAverage":16.02105}},"metadata":{"timer_format_version":"0.1.0","start_time_seconds":"1712920267","unity_version":"2022.3.11f1","command_line_arguments":"C:\\Program Files\\Unity\\Hub\\Editor\\2022.3.11f1\\Editor\\Unity.exe -projectpath C:\\Users\\noahk\\Documents\\Unity projects\\Racesm -useHub -hubIPC -cloudEnvironment production -licensingIpc LicenseClient-noahk -hubSessionId 36cd304d-8333-4e13-9400-40712c29b116 -accessToken V38nPLIXDhAumRkhp_UQDiAFhJHlz31FOZlSjW8et9U005f","communication_protocol_version":"1.5.0","com.unity.ml-agents_version":"2.0.1","scene_name":"AI training","end_time_seconds":"1712920387"}}
{"count":1,"self":309.6612096,"total":311.8317685,"children":{"InitializeActuators":{"count":1,"self":0.0015026999999999998,"total":0.0015026999999999998,"children":null},"InitializeSensors":{"count":1,"self":0.0020054,"total":0.0020054,"children":null},"AgentSendState":{"count":15319,"self":1.2925794,"total":1.8818713,"children":{"CollectObservations":{"count":15319,"self":0.3923006,"total":0.3923006,"children":null},"WriteActionMask":{"count":15319,"self":0.0248735,"total":0.0248735,"children":null},"RequestDecision":{"count":15319,"self":0.085557,"total":0.1400864,"children":{"RayPerceptionSensor.Perceive":{"count":30638,"self":0.0545294,"total":0.0545294,"children":null}}},"RayPerceptionSensor.Perceive":{"count":30636,"self":0.0320314,"total":0.0320314,"children":null}}},"DecideAction":{"count":15319,"self":0.0765185,"total":0.0765185,"children":null},"AgentAct":{"count":15319,"self":0.2076653,"total":0.2076653,"children":{"RayPerceptionSensor.Perceive":{"count":36,"self":0,"total":0,"children":null}}}},"gauges":{"BensonImitationV3.CumulativeReward":{"count":9,"max":24.016304,"min":7.681255,"runningAverage":20.2167473,"value":23.9503059,"weightedAverage":21.3022}},"metadata":{"timer_format_version":"0.1.0","start_time_seconds":"1712925366","unity_version":"2022.3.11f1","command_line_arguments":"C:\\Program Files\\Unity\\Hub\\Editor\\2022.3.11f1\\Editor\\Unity.exe -projectpath C:\\Users\\noahk\\Documents\\Unity projects\\Racesm -useHub -hubIPC -cloudEnvironment production -licensingIpc LicenseClient-noahk -hubSessionId 9ca26982-a0f6-4127-8a14-962f9b9ca2ae -accessToken Uz6Elw7wQ8JPvtO_g14OUcqdUTEXpflxltMduak3nKQ005f","communication_protocol_version":"1.5.0","com.unity.ml-agents_version":"2.0.1","scene_name":"AI training","end_time_seconds":"1712925678"}}

View File

@@ -522,7 +522,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 1387890555408215438, guid: 80c5f8bcfe7e033419638b39d9a278c4, type: 3}
propertyPath: m_IsActive
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2100622393876020061, guid: 80c5f8bcfe7e033419638b39d9a278c4, type: 3}
propertyPath: CameraSide
@@ -1344,6 +1344,10 @@ PrefabInstance:
propertyPath: m_LocalPosition.z
value: -79.35
objectReference: {fileID: 0}
- target: {fileID: 4240903988561362933, guid: 3664a8beed80ac848a9377d9ee14cb9b, type: 3}
propertyPath: maxStepsPerCheckpoint
value: 750
objectReference: {fileID: 0}
- target: {fileID: 4240903988561362933, guid: 3664a8beed80ac848a9377d9ee14cb9b, type: 3}
propertyPath: checkpoints.Array.size
value: 16
@@ -1490,11 +1494,11 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 8031066805216850976, guid: 3664a8beed80ac848a9377d9ee14cb9b, type: 3}
propertyPath: Record
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8031066805216850976, guid: 3664a8beed80ac848a9377d9ee14cb9b, type: 3}
propertyPath: DemonstrationName
value: BensonV3
value: BensonV3M
objectReference: {fileID: 0}
- target: {fileID: 8242215082626919376, guid: 3664a8beed80ac848a9377d9ee14cb9b, type: 3}
propertyPath: m_Model
@@ -1508,6 +1512,10 @@ PrefabInstance:
propertyPath: m_BehaviorType
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8242215082626919376, guid: 3664a8beed80ac848a9377d9ee14cb9b, type: 3}
propertyPath: m_BrainParameters.VectorObservationSize
value: 3
objectReference: {fileID: 0}
- target: {fileID: 8262033930960634649, guid: 3664a8beed80ac848a9377d9ee14cb9b, type: 3}
propertyPath: m_IsActive
value: 0

View File

@@ -83,6 +83,10 @@ public class AgentController : Agent
sensor.AddObservation(checkpointAngle);
float checkpintDistance = distanceToCheckpoint(currentCheckpoint);
sensor.AddObservation(checkpintDistance);
// Agent velocity
var FullVelocityMagnitude = rigidBody.velocity.magnitude; // Velocity including angular velocity