Namespace Unity.MLAgents.Sensors
Classes
CameraSensor
A sensor that wraps a Camera object to generate visual observations for an agent.
CameraSensorComponent
A SensorComponent that creates a CameraSensor.
ObservationWriter
Allows sensors to write to both TensorProxy and float arrays/lists.
RayPerceptionOutput
Contains the data generated/produced from a ray perception sensor.
RayPerceptionSensor
A sensor implementation that supports ray cast-based observations.
RayPerceptionSensorComponent2D
A component for 2D Ray Perception.
RayPerceptionSensorComponent3D
A component for 3D Ray Perception.
RayPerceptionSensorComponentBase
A base class to support sensor components for raycast-based sensors.
RenderTextureSensor
Sensor class that wraps a RenderTexture instance.
RenderTextureSensorComponent
Component that wraps a RenderTextureSensor.
SensorComponent
Editor components for creating Sensors. Generally an ISensor implementation should have a corresponding SensorComponent to create it.
SensorExtensions
Helper methods to be shared by all classes that implement ISensor.
StackingSensor
Sensor that wraps around another Sensor to provide temporal stacking. Conceptually, consecutive observations are stored left-to-right, which is how they're output For example, 4 stacked sets of observations would be output like | t = now - 3 | t = now -3 | t = now - 2 | t = now | Internally, a circular buffer of arrays is used. The m_CurrentIndex represents the most recent observation.
Currently, compressed and multidimensional observations are not supported.
VectorSensor
A sensor implementation for vector observations.
Structs
RayPerceptionInput
Contains the elements that define a ray perception sensor.
RayPerceptionOutput.RayOutput
Contains the data generated from a single ray of a ray perception sensor.
Interfaces
ISensor
Sensor interface for generating observations.
Enums
RayPerceptionCastType
Determines which dimensions the sensor will perform the casts in.
SensorCompressionType
The compression setting for visual/camera observations.