.NET SDK Documentation

    Show / Hide Table of Contents

    Struct TouchSensorData

    A touch sample from the capacitive touch sensor, accompanied with the robot’s conclusion on whether this is considered a valid touch.

    Implements
    IEquatable<TouchSensorData>
    Namespace: Anki.Vector
    Assembly: Anki.Vector.dll
    Syntax
    public struct TouchSensorData : IEquatable<TouchSensorData>

    Properties

    | Improve this Doc View Source

    IsBeingTouched

    Gets a value indicating whether the robot’s conclusion on whether the current value is considered a valid touch.

    public bool IsBeingTouched { get; }
    Property Type
    Boolean
    | Improve this Doc View Source

    RawTouchValue

    Gets the detected sensitivity from the touch sensor.

    This will not map to a constant raw value, as it may be impacted by various environmental factors such as whether the robot is on its charger, being held, humidity, etc.

    public uint RawTouchValue { get; }
    Property Type
    UInt32

    Methods

    | Improve this Doc View Source

    Equals(TouchSensorData)

    Indicates whether the current object is equal to another object of the same type.

    public bool Equals(TouchSensorData other)
    Parameters
    Type Name Description
    TouchSensorData other

    An object to compare with this object.

    Returns
    Type Description
    Boolean

    true if the current object is equal to the other parameter; otherwise, false.

    | Improve this Doc View Source

    Equals(Object)

    Determines whether the specified Object, is equal to this instance.

    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj

    The Object to compare with this instance.

    Returns
    Type Description
    Boolean

    true if the specified Object is equal to this instance; otherwise, false.

    Overrides
    ValueType.Equals(Object)
    | Improve this Doc View Source

    GetHashCode()

    Returns a hash code for this instance.

    public override int GetHashCode()
    Returns
    Type Description
    Int32

    A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

    Overrides
    ValueType.GetHashCode()
    | Improve this Doc View Source

    ToString()

    Converts to string.

    public override string ToString()
    Returns
    Type Description
    String

    A String that represents this instance.

    Overrides
    ValueType.ToString()

    Operators

    | Improve this Doc View Source

    Equality(TouchSensorData, TouchSensorData)

    Implements the operator ==.

    public static bool operator ==(TouchSensorData lhs, TouchSensorData rhs)
    Parameters
    Type Name Description
    TouchSensorData lhs

    The LHS.

    TouchSensorData rhs

    The RHS.

    Returns
    Type Description
    Boolean

    The result of the operator.

    | Improve this Doc View Source

    Inequality(TouchSensorData, TouchSensorData)

    Implements the operator !=.

    public static bool operator !=(TouchSensorData lhs, TouchSensorData rhs)
    Parameters
    Type Name Description
    TouchSensorData lhs

    The LHS.

    TouchSensorData rhs

    The RHS.

    Returns
    Type Description
    Boolean

    The result of the operator.

    Implements

    System.IEquatable<T>
    • Improve this Doc
    • View Source
    Back to top Copyright (c) 2019 by Wayne Venables