docs.unity.cn
    Show / Hide Table of Contents

    Class VectorSensorComponent

    A SensorComponent that creates a VectorSensor.

    Inheritance
    Object
    SensorComponent
    VectorSensorComponent
    Namespace: Unity.MLAgents.Sensors
    Syntax
    public class VectorSensorComponent : SensorComponent

    Properties

    ObservationSize

    The number of float observations in the VectorSensor

    Declaration
    public int ObservationSize { get; set; }
    Property Value
    Type Description
    Int32

    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
    SensorComponent.CreateSensors()

    GetSensor()

    Returns the underlying VectorSensor

    Declaration
    public VectorSensor GetSensor()
    Returns
    Type Description
    VectorSensor
    Back to top Copyright © 2021 Unity Technologies
    Generated by DocFX
    on Monday, November 8, 2021
    Terms of use