docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ArticulationBodyJointExtractor

    Inheritance
    object
    ArticulationBodyJointExtractor
    Implements
    IJointExtractor
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.MLAgents.Sensors
    Assembly: Unity.ML-Agents.dll
    Syntax
    [MovedFrom("Unity.MLAgents.Extensions.Sensors")]
    public class ArticulationBodyJointExtractor : IJointExtractor

    Constructors

    ArticulationBodyJointExtractor(ArticulationBody)

    Declaration
    public ArticulationBodyJointExtractor(ArticulationBody body)
    Parameters
    Type Name Description
    ArticulationBody body

    Methods

    NumObservations(PhysicsSensorSettings)

    Determine the number of observations that would be generated for the particular joint using the provided PhysicsSensorSettings.

    Declaration
    public int NumObservations(PhysicsSensorSettings settings)
    Parameters
    Type Name Description
    PhysicsSensorSettings settings

    The settings used to configure the physics sensor.

    Returns
    Type Description
    int

    Number of floats that will be written.

    NumObservations(ArticulationBody, PhysicsSensorSettings)

    Declaration
    public static int NumObservations(ArticulationBody body, PhysicsSensorSettings settings)
    Parameters
    Type Name Description
    ArticulationBody body
    PhysicsSensorSettings settings
    Returns
    Type Description
    int

    Write(PhysicsSensorSettings, ObservationWriter, int)

    Write the observations to the ObservationWriter, starting at the specified offset.

    Declaration
    public int Write(PhysicsSensorSettings settings, ObservationWriter writer, int offset)
    Parameters
    Type Name Description
    PhysicsSensorSettings settings

    The settings used to configure the physics sensor.

    ObservationWriter writer

    The writer to which observations are written.

    int offset

    The starting index in the writer to begin writing observations.

    Returns
    Type Description
    int

    Number of floats that were written.

    Implements

    IJointExtractor
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)