Class SpheroDataFrame

Hierarchy

  • DataFrame
    • SpheroDataFrame

Constructors

Properties

createdTimestamp: number

Data frame created timestamp (ISO 8601)

phenomenonTimestamp?: number

Data frame sensor data pheonomenon timestamp (ISO 8601)

uid: string

Data frame unique identifier

x: number
y: number

Accessors

  • get source(): DataObject
  • Source object clone that captured the data frame

    Returns

    Source data object

    Returns DataObject

  • set source(object: DataObject): void
  • Set the source object clone that captured the data frame

    Parameters

    • object: DataObject

      Source data object

    Returns void

Methods

  • Add a new object relevant to this data frame

    Returns

    instance

    Parameters

    • object: DataObject

      Relevant object

    Returns SpheroDataFrame

  • Add a new reference space relevant to this data frame.

    Alias

    addObject Alias for addObject

    Parameters

    • referenceSpace: ReferenceSpace

      Relevant reference space

    Returns void

  • Add a new sensor relevant to this data frame

    Returns

    instance

    Parameters

    • object: SensorObject<Object | SensorValue<Unit> | Orientation>

      Relevant sensor

    Returns SpheroDataFrame

  • Clone the data frame

    Returns

    Cloned data frame

    Returns SpheroDataFrame

  • Get a specific object by its identifier

    Returns

    Data object if found

    Type Parameters

    • T extends DataObject<T>

    Parameters

    • uid: string

      Object UID

    Returns T

  • Get known objects used in this data frame

    Returns

    Array of found data objects

    Type Parameters

    • T extends DataObject<T>

    Parameters

    • Optional dataType: (new () => T)

      Data object type

        • new (): T
        • Returns T

    Returns T[]

  • Get known sensor objects used in this data frame

    Returns

    Found data objects

    Type Parameters

    • T extends SensorObject<Object | SensorValue<Unit> | Orientation, T>

    Parameters

    • type: (new (uid?: string) => T)

      Sensor type

        • new (uid?: string): T
        • Parameters

          • Optional uid: string

          Returns T

    • Optional defaultUID: string

      Default UID. When sensor is not added, it will be created

    Returns T

  • Check if the data frame has an object

    Returns

    Object exist

    Parameters

    • object: DataObject

      Data object to find

    Returns boolean

  • Remove an object from the data frame

    Parameters

    • object: DataObject

      Object to remove

    Returns void