|
|
|
|
|
|
|
|
|
|
public class VectorSensorComponent : SensorComponent |
|
|
|
{ |
|
|
|
public int observationSize; |
|
|
|
int m_observationSize; |
|
|
|
ObservationType m_ObservationType; |
|
|
|
|
|
|
|
public int ObservationSize |
|
|
|
{ |
|
|
|
get { return m_observationSize; } |
|
|
|
set { m_observationSize = value; } |
|
|
|
} |
|
|
|
|
|
|
|
public ObservationType observationType; |
|
|
|
public ObservationType ObservationType |
|
|
|
{ |
|
|
|
get { return m_ObservationType; } |
|
|
|
set { m_ObservationType = value; } |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Creates a VectorSensor.
|
|
|
|
|
|
|
{ |
|
|
|
sensor = new VectorSensor(observationSize, observationType: observationType); |
|
|
|
sensor = new VectorSensor(m_observationSize, observationType: m_ObservationType); |
|
|
|
return sensor; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
return new[] { observationSize }; |
|
|
|
return new[] { m_observationSize }; |
|
|
|
} |
|
|
|
} |