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
Namespace: Anki.Vector
Assembly: Anki.Vector.dll
Syntax
public struct TouchSensorData : IEquatable<TouchSensorData>
Properties
| Improve this Doc View SourceIsBeingTouched
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 |
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 SourceEquals(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 |
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 |
|
Overrides
| Improve this Doc View SourceGetHashCode()
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
| Improve this Doc View SourceToString()
Converts to string.
public override string ToString()
Returns
Type | Description |
---|---|
String | A String that represents this instance. |
Overrides
Operators
| Improve this Doc View SourceEquality(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. |
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. |