holoride
Search Results for

    Show / Hide Table of Contents

    Class SensorDataInterpolator

    Utility class used to interpolate sensor data e.g. when data frequency is too low for the current frame rate, which may result in stutters otherwise.

    Inheritance
    object
    SensorDataInterpolator
    Namespace: Holoride.ElasticSDK
    Assembly: Holoride.ElasticSDK.StateReceivers.dll
    Syntax
    [Serializable]
    public sealed class SensorDataInterpolator

    Methods

    InverseLerpUnclamped(double, double, double)

    Declaration
    public static float InverseLerpUnclamped(double from, double to, double value)
    Parameters
    Type Name Description
    double from
    double to
    double value
    Returns
    Type Description
    float

    PatchTargetData(VehicleSensorState)

    Patches the most recently set interpolation target.

    Typically used to change individual properties of the localization state, such as its status.

    Declaration
    public void PatchTargetData(VehicleSensorState value)
    Parameters
    Type Name Description
    VehicleSensorState value

    The new localization state.

    Reset()

    Resets the reference time values the interpolator uses to associate data timestamps with current Unity time.

    Declaration
    public void Reset()

    SetTargetData(VehicleSensorState, long?)

    Updates the current interpolation target, usually the latest known data point.

    Declaration
    public void SetTargetData(VehicleSensorState value, long? microseconds = null)
    Parameters
    Type Name Description
    VehicleSensorState value

    The sensor data to interpolate towards.

    long? microseconds

    The timestamp associated with the data, in microseconds.

    UpdateAndGet()

    Updates the current interpolation state if necessary/possible and returns the interpolated data.

    Declaration
    public VehicleSensorState UpdateAndGet()
    Returns
    Type Description
    VehicleSensorState

    The current, interpolated data.

    In This Article

    Back to top
    ©   holoride
    Privacy   Imprint