anki_vector.touch

Support for Vector’s touch sensor.

The robot will forward a raw sensor reading representing the capacitance detected on its back sensor. Accompanied with this value is a true/false flag that takes into account other aspects of the robot’s state to evaluate whether the robot thinks it is being touched or not. This flag is the same value used internally for petting detection.

Classes

TouchComponent(robot)

Maintains the most recent touch sensor data

TouchSensorData(proto_data)

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