Class ObservationWriter
Allows sensors to write to both TensorProxy and float arrays/lists.
Inherited Members
Namespace: Unity.MLAgents.Sensors
Assembly: solution.dll
Syntax
public class ObservationWriter
Constructors
| Name | Description |
|---|---|
| ObservationWriter() |
Properties
| Name | Description |
|---|---|
| this[int] | 1D write access at a specified index. Use AddList if possible instead. |
| this[int, int] | |
| this[int, int, int] | 3D write access at the specified height, width, and channel. |
Methods
| Name | Description |
|---|---|
| Add(Quaternion, int) | Write the Quaternion components. |
| Add(Vector3, int) | Write the Vector3 components. |
| Add(Vector4, int) | Write the Vector4 components. |
| AddList(IList<float>, int) | Write the list of floats. |