diff --git a/com.unity.ml-agents/Runtime/Sensors/SensorBase.cs b/com.unity.ml-agents/Runtime/Sensors/SensorBase.cs deleted file mode 100644 index 7ec7f5d8f8..0000000000 --- a/com.unity.ml-agents/Runtime/Sensors/SensorBase.cs +++ /dev/null @@ -1,54 +0,0 @@ -namespace MLAgents.Sensors -{ - /// - /// A base sensor that provides a number default implementations. - /// - public abstract class SensorBase : ISensor - { - /// - /// Write the observations to the output buffer. This size of the buffer will be product - /// of the sizes returned by . - /// - /// - public abstract void WriteObservation(float[] output); - - /// - public abstract int[] GetObservationShape(); - - /// - public abstract string GetName(); - - /// - /// Default implementation of Write interface. This creates a temporary array, - /// calls WriteObservation, and then writes the results to the WriteAdapter. - /// - /// - /// The number of elements written. - public virtual int Write(WriteAdapter adapter) - { - // TODO reuse buffer for similar agents, don't call GetObservationShape() - var numFloats = this.ObservationSize(); - float[] buffer = new float[numFloats]; - WriteObservation(buffer); - - adapter.AddRange(buffer); - - return numFloats; - } - - /// - public void Update() {} - - /// - public virtual byte[] GetCompressedObservation() - { - return null; - } - - /// - public virtual SensorCompressionType GetCompressionType() - { - return SensorCompressionType.None; - } - } -} diff --git a/com.unity.ml-agents/Runtime/Sensors/SensorBase.cs.meta b/com.unity.ml-agents/Runtime/Sensors/SensorBase.cs.meta deleted file mode 100644 index c724240207..0000000000 --- a/com.unity.ml-agents/Runtime/Sensors/SensorBase.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 553b05a1b59a94260b3e545f13190389 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: