浏览代码

VectorSensorComponent to use new API

/goal-conditioning/sensors-3-pytest-fix
vincentpierre 4 年前
当前提交
fbd3c3c2
共有 1 个文件被更改,包括 2 次插入8 次删除
  1. 10
      com.unity.ml-agents/Runtime/Sensors/VectorSensorComponent.cs

10
com.unity.ml-agents/Runtime/Sensors/VectorSensorComponent.cs


/// Creates a VectorSensor.
/// </summary>
/// <returns></returns>
public override ISensor CreateSensor()
public override ISensor[] CreateSensors()
return m_Sensor;
}
/// <inheritdoc/>
public override int[] GetObservationShape()
{
return new[] { m_ObservationSize };
return new ISensor[] { m_Sensor };
}
public VectorSensor GetSensor()

正在加载...
取消
保存