Class VectorSensorComponent
A SensorComponent that creates a VectorSensor.
Namespace: Unity.MLAgents.Sensors
Syntax
public class VectorSensorComponent : SensorComponent
Properties
ObservationSize
The number of float observations in the VectorSensor
Declaration
public int ObservationSize { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
ObservationStacks
Whether to stack previous observations. Using 1 means no previous observations. Note that changing this after the sensor is created has no effect.
Declaration
public int ObservationStacks { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
ObservationType
The type of the observation.
Declaration
public ObservationType ObservationType { get; set; }
Property Value
Type | Description |
---|---|
ObservationType |
SensorName
Name of the generated VectorSensor object. Note that changing this at runtime does not affect how the Agent sorts the sensors.
Declaration
public string SensorName { get; set; }
Property Value
Type | Description |
---|---|
String |
Methods
CreateSensors()
Creates a VectorSensor.
Declaration
public override ISensor[] CreateSensors()
Returns
Type | Description |
---|---|
ISensor[] |
Overrides
GetSensor()
Returns the underlying VectorSensor
Declaration
public VectorSensor GetSensor()
Returns
Type | Description |
---|---|
VectorSensor |