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.
ObservationWriterExtension
Provides extension methods for the ObservationWriter.
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.
SensorHelper
Utility methods related to ISensor implementations.
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, observations are stacked on the last dimension.
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.
ISparseChannelSensor
Sensor interface for sparse channel sensor which requires a compressed channel mapping.
Enums
BuiltInSensorType
Identifiers for "built in" sensor types. These are only used for analytics, and should not be used for any runtime decisions.
NOTE: Do not renumber these, since the values are used for analytics. Renaming is allowed though.
RayPerceptionCastType
Determines which dimensions the sensor will perform the casts in.
SensorCompressionType
The compression setting for visual/camera observations.