docs.unity3d.com
    Show / Hide Table of Contents

    Class SamplingStamps

    Manages a list of sample stamps.

    Inheritance
    Object
    SamplingStamps
    Namespace: Mechatronics.SensorSDK
    Syntax
    public class SamplingStamps

    Properties

    Count

    Returns the number of sample stamp in the list.

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

    Item[Int32]

    Accesses a specific sample stamp in the list.

    Declaration
    public SampleStamp this[int index] { get; }
    Parameters
    Type Name Description
    Int32 index

    Index of the entry in the list.

    Property Value
    Type Description
    SampleStamp

    A sample stamp

    Methods

    Add(Transform, Transform, Int32)

    Adds a sampling stamp in the list.

    Declaration
    public void Add(Transform sensorToWorldTransform, Transform referenceToWorldTransform, int count)
    Parameters
    Type Name Description
    Transform sensorToWorldTransform

    Used to store the position and rotation on the photosensor used as origin of the sampling.

    Transform referenceToWorldTransform

    Used to store the position and rotation of the sensor's reference frame used for output.

    Int32 count

    Number of samples to take when executing the sampling.

    Clear()

    Empties the list of sample stamps.

    Declaration
    public void Clear()

    Reset(Transform, Transform)

    Clears all sampling stamps, except the last stamp. The last stamp is used a previous position reference for interpolation.

    Declaration
    public void Reset(Transform initialSensorTransform, Transform initialReferenceTransform)
    Parameters
    Type Name Description
    Transform initialSensorTransform

    Position of the photosensor when the simulation starts.

    Transform initialReferenceTransform

    Position of the sensor's reference frame when the simulation starts.

    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