docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IJointExtractor

    Interface for generating observations from a physical joint or constraint.

    Namespace: Unity.MLAgents.Sensors
    Assembly: Unity.ML-Agents.dll
    Syntax
    [MovedFrom("Unity.MLAgents.Extensions.Sensors")]
    public interface IJointExtractor

    Methods

    NumObservations(PhysicsSensorSettings)

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

    Declaration
    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.

    Write(PhysicsSensorSettings, ObservationWriter, int)

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

    Declaration
    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.

    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)