Class VectorSensorComponent
A SensorComponent that creates a VectorSensor.
Inherited Members
Namespace: Unity.MLAgents.Sensors
Assembly: Unity.ML-Agents.dll
Syntax
[AddComponentMenu("ML Agents/Vector Sensor", 50)]
public class VectorSensorComponent : SensorComponent
Properties
ObservationSize
The number of float observations in the VectorSensor
Declaration
public int ObservationSize { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
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 |