Skip to content

Commit 68d0cfd

Browse files
committed
Added a prototype for sensorMetadata
1 parent 0b4f5f7 commit 68d0cfd

File tree

8 files changed

+169
-344
lines changed

8 files changed

+169
-344
lines changed

Assets/ECS_MLAgents_v0/Core/ExternalDecision.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@ public class ExternalDecision<TS, TA> : IAgentDecision<TS, TA>
4343
// TODO : Replace with a file creation system
4444
// TODO : Implement the communication in a separate class
4545
// TODO : Have separate files for sensor and actuators
46-
private string filenameWrite = "Assets/shared_communication_file.txt";
47-
46+
// private string filenameWrite = "Assets/shared_communication_file.txt";
47+
private string filenameWrite = "shared_communication_file.txt";
48+
49+
4850
private MemoryMappedViewAccessor accessor;
4951

5052
public ExternalDecision()
@@ -115,7 +117,7 @@ public void BatchProcess(ref NativeArray<TS> sensors, ref NativeArray<TA> actuat
115117
}
116118
Profiler.EndSample();
117119

118-
Profiler.BeginSample("__Read");
120+
Profiler.BeginSample("__Read");
119121
accessor.ReadArray(ACTUATOR_DATA_POSITION, actuatorData, 0, batch);
120122

121123
actuators.Slice(offset, batch).CopyFrom(actuatorData);
@@ -124,7 +126,7 @@ public void BatchProcess(ref NativeArray<TS> sensors, ref NativeArray<TA> actuat
124126
// actuators[i] = actuatorData[i];
125127
// }
126128

127-
Profiler.EndSample();
129+
Profiler.EndSample();
128130
Profiler.EndSample();
129131

130132
}

0 commit comments

Comments
 (0)