docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class DatasetCapture

    Global manager for frame scheduling and output capture for simulations. Data capture follows the schema defined in TODO: Expose schema publicly

    Inheritance
    object
    DatasetCapture
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: UnityEngine.Perception.GroundTruth
    Assembly: solution.dll
    Syntax
    public static class DatasetCapture

    Properties

    Name Description
    SchemaVersion

    The json metadata schema version the DatasetCapture's output conforms to.

    Methods

    Name Description
    RegisterAnnotationDefinition(string, string, string, Guid)

    Creates an annotation type, which can be used to produce annotations during the simulation. See ReportAnnotationFile(AnnotationDefinition, string), ReportAnnotationValues<T>(AnnotationDefinition, T[]) and ReportAnnotationAsync(AnnotationDefinition).

    RegisterAnnotationDefinition<TSpec>(string, TSpec[], string, string, Guid)

    Creates an annotation type, which can be used to produce annotations during the simulation. See ReportAnnotationFile(AnnotationDefinition, string), ReportAnnotationValues<T>(AnnotationDefinition, T[]) and ReportAnnotationAsync(AnnotationDefinition).

    RegisterEgo(string)

    Register a new ego. Used along with RegisterSensor to organize sensors under a top-level ego container. RegisterSensor(EgoHandle, string, string, float, float)

    RegisterMetricDefinition(string, string, Guid)

    Creates a metric type, which can be used to produce metrics during the simulation. See ReportMetric<T>(MetricDefinition, T[]), ReportMetricAsync(MetricDefinition), ReportMetric<T>(MetricDefinition, T[]), ReportMetricAsync(MetricDefinition), ReportMetric<T>(MetricDefinition, T[]), ReportMetricAsync(MetricDefinition)

    RegisterMetricDefinition<TSpec>(string, TSpec[], string, Guid)

    Creates a metric type, which can be used to produce metrics during the simulation. See ReportMetric<T>(MetricDefinition, T[]), ReportMetricAsync(MetricDefinition), ReportMetric<T>(MetricDefinition, T[]), ReportMetricAsync(MetricDefinition), ReportMetric<T>(MetricDefinition, T[]), ReportMetricAsync(MetricDefinition)

    RegisterSensor(EgoHandle, string, string, float, float)

    Register a new sensor under the given ego.

    ReportMetric(MetricDefinition, string)

    Report a metric not associated with any sensor or annotation.

    ReportMetricAsync(MetricDefinition)

    Report a metric not associated with any sensor or annotation.

    ReportMetric<T>(MetricDefinition, T[])

    Report a metric not associated with any sensor or annotation.

    ResetSimulation()

    Stop the current simulation and start a new one. All pending data is written to disk before returning.

    StartNewSequence()

    Starts a new sequence in the capture.

    Events

    Name Description
    SimulationEnding

    Called when the simulation ends. The simulation ends on playmode exit, application exit, or when ResetSimulation() is called.

    In This Article
    Back to top
    Copyright © 2024 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)