docs.unity3d.com
    Show / Hide Table of Contents

    Class Frame

    The top level structure that holds all of the artifacts of a simulation frame. This is only reported after all of the captures, annotations, and metrics are ready to report for a single frame.

    Inheritance
    Object
    DataModelElement
    Frame
    Inherited Members
    DataModelElement.id
    Namespace: UnityEngine.Perception.GroundTruth.DataModel
    Syntax
    public class Frame : DataModelElement, IMessageProducer

    Constructors

    Frame(Int32, Int32, Int32, Single)

    Creates a new frame.

    Declaration
    public Frame(int frame, int sequence, int step, float timestamp)
    Parameters
    Type Name Description
    Int32 frame

    The simulation frame ID

    Int32 sequence

    The sequence ID

    Int32 step

    The step inside the sequence of the frame

    Single timestamp

    The timestamp of the frame

    Properties

    frame

    The perception frame number of this record

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

    metrics

    A list of all of the metrics recorded recorded for the frame.

    Declaration
    public List<Metric> metrics { get; }
    Property Value
    Type Description
    List<Metric>

    modelType

    Declaration
    public override string modelType { get; }
    Property Value
    Type Description
    String
    Overrides
    DataModelElement.modelType

    sensors

    A list of all of the sensor captures recorded for the frame.

    Declaration
    public List<Sensor> sensors { get; set; }
    Property Value
    Type Description
    List<Sensor>

    sequence

    The sequence that this record is a part of

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

    step

    The step in the sequence that this record is a part of

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

    timestamp

    The timestamp of the frame

    Declaration
    public float timestamp { get; }
    Property Value
    Type Description
    Single

    Methods

    IsValid()

    Is the component valid?

    Declaration
    public override bool IsValid()
    Returns
    Type Description
    Boolean

    Is the component valid?

    Overrides
    DataModelElement.IsValid()

    ToMessage(IMessageBuilder)

    Convert contents int a message.

    Declaration
    public override void ToMessage(IMessageBuilder builder)
    Parameters
    Type Name Description
    IMessageBuilder builder

    The message builder that will convert the class's contents into a message

    Overrides
    DataModelElement.ToMessage(IMessageBuilder)
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023