/tap-python-sdk:tap-raw-sensorsfrom tap-python-sdk
Streams raw accelerometer and gyroscope data from Tap wearable devices (Tap Strap, Tap Strap 2, TapXR). Supports sensitivity/scaling configuration, CSV logging, and plotting for research and custom gesture recognition.
Ships in tap-python-sdk. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
For research, datasets, and custom gesture models. For pointer movement or orientation, prefer tap-imu-motion (less data, already processed).
The callback gets a list of packets: cb(identifier, packets: list[dict]).
| Key | Type | Meaning |
|---|---|---|
type | str | "imu" (thumb IMU) or "accl" (finger accelerometers) |
ts | int | Device timestamp in ms (device clock, not wall time) |
payload | list | imu: [gyro_x, gyro_y, gyro_z, accl_x, accl_y, accl_z] (6 values). accl: 5 fingers x [x, y, z] (15 values, thumb first). |
Units: raw LSB counts, or mdps (gyro) and mg (accelerometer) when scaling is on. Rate is about 200 Hz per sensor, delivered in batches.
TapSDK2 (RAW_IMU_DATA)TapXR developer firmware and TapBand.
from tapsdk import DeviceFeatures
from tapsdk.enumerations import ImuAcclSensitivity, ImuGyroSensitivity
sdk.register_raw_imu_data_events(on_raw) # register_raw_data_events also works
await sdk.start()
await sdk.set_feature(DeviceFeatures.RAW_IMU_DATA, True)
await sdk.set_imu_sensitivity(
xl_sensitivity=ImuAcclSensitivity.G2, # G2 / G4 / G8 / G16
gyro_sensitivity=ImuGyroSensitivity.DPS125, # DPS125 ... DPS2000
scaled=True, # payload in mg / mdps
)
# later
await sdk.set_feature(DeviceFeatures.RAW_IMU_DATA, False)
await sdk.get_imu_sensitivity() returns (ImuGyroSensitivity, ImuAcclSensitivity).
TapSDK (InputModeRaw)Tap Strap and Tap Strap 2.
from tapsdk import InputModeController, InputModeRaw
from tapsdk.enumerations import FingerAcclSensitivity, ImuAcclSensitivity, ImuGyroSensitivity
sdk.register_raw_data_events(on_raw)
await sdk.start()
await sdk.set_input_mode(InputModeRaw(
scaled=True,
finger_accl_sens=FingerAcclSensitivity.G2, # default G2
imu_gyro_sens=ImuGyroSensitivity.DPS125, # default DPS125
imu_accl_sens=ImuAcclSensitivity.G2, # default G2
))
# leave raw mode
await sdk.set_input_mode(InputModeController())
Copy scripts/log_csv.py: python log_csv.py --seconds 30 --out raw.csv. It works on TapSDK and TapSDK2.
# pip install pandas matplotlib
import pandas as pd, matplotlib.pyplot as plt
df = pd.read_csv("raw.csv", header=None)
imu = df[df[2] == "imu"]
imu.plot(x=1, y=[6, 7, 8], title="thumb accelerometer (mg)") # accl_x/y/z columns
plt.show()
ts for timing between samples, not time.time().What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub tapwithus/tap-python-sdk --plugin tap-python-sdk8 skills in this plugin
/tap-build-an-appBuild a complete app or interactive experience controlled by a Tap - games, browser pages, presentations, media control, keyboard shortcuts, or creative tools. Use when the user asks to "build", "make", or "create" something with their Tap, especially if they are not a developer./tap-dpadBuild a D-Pad style controller with a Tap - swipes for directions, short pinches to select, pinch-hold that locks into rotate (twist) or drag (move) mode, fist-hold to hide. Use for D-Pad, menu navigation, select and move, drag and drop, rotate objects, or game controls with gestures./tap-getting-startedFirst skill for any Tap app. The connect order is await connect(), then register_* callbacks, then await sdk.start(), then enable input. connect() alone delivers no taps. Use for install, pairing, "connect to my Tap", setup, or no tap events.Other plugins' skills for the same job