Constructor OneHotGridSensor
OneHotGridSensor(string, Vector3, Vector3Int, string[], SensorCompressionType)
Create a OneHotGridSensor with the specified configuration.
Declaration
public OneHotGridSensor(string name, Vector3 cellScale, Vector3Int gridSize, string[] detectableTags, SensorCompressionType compression)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The sensor name |
| Vector3 | cellScale | The scale of each cell in the grid |
| Vector3Int | gridSize | Number of cells on each side of the grid |
| string[] | detectableTags | Tags to be detected by the sensor |
| SensorCompressionType | compression | Compression type |