tapwithus/tap-web-sdk/tap-raw-sensors
Claude Code and agent skill by tapwithus/tap-web-sdk
- community
Checking that the SKILL.md file is still in the repository.
Stream raw accelerometer and gyroscope samples from a Tap (TapSDKWeb raw mode or TapSDKWeb2 RAW_IMU_DATA), set sensitivity and scaling, log to CSV, and plot. Use for raw sensors, raw IMU, accelerometer, gyro, data logging, datasets, custom gesture recognition, or research.
Install
npx vskill@latest install tapwithus/tap-web-sdk/tap-raw-sensorsSKILL.md
Raw sensors
For research, datasets, and custom gesture models. For pointer movement or orientation, prefer tap-imu-motion (less data, already processed).
Packet format (both firmware classes)
The callback gets a list of packets: cb(identifier, packets).
| Key | Type | Meaning | ||
|---|---|---|---|---|
type | `'imu' \ | 'accl'` | "imu" (thumb IMU) or "accl" (finger accelerometers) | |
ts | number | Device timestamp in ms (device clock, not wall time) | ||
payload | number[] | imu: [gyroX, gyroY, gyroZ, acclX, acclY, acclZ] (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.
TapSDKWeb2
connect() already started notifications. There is no start(). await sdk.getImuSensitivity() returns [ImuGyroSensitivity, ImuAcclSensitivity].
TapSDKWeb
- To change sensitivity, leave raw mode first, then enter it again with new values. The SDK ignores a raw-to-raw change.
- Raw streaming needs Developer mode turned on in Tap Manager.
- Tap Strap streams finger accelerometers. Tap Strap 2 and TapXR also stream the thumb IMU.
Log to CSV
Open scripts/log-csv.html from this repository with a local static server after npm run build. It works on TapSDKWeb and TapSDKWeb2. It records for the chosen number of seconds, then downloads a CSV file.
Columns: host_time, device_ts_ms, type (imu or accl), then the payload values.
In the user's app, push packets onto an array in the callback and build the CSV outside the callback. Download it with a Blob.
Plot
Parse the CSV in the page and draw it on a canvas, or open the file in a spreadsheet. imu accelerometer axes are payload columns 3, 4, and 5 (after gyro x/y/z).
Tips
- Callbacks get batches at a high rate. Append to a list. Write the file or draw outside the callback.
- Use
tsfor timing between samples, notDate.now(). - Lower sensitivity (
G2,DPS125) gives more resolution. Raise it for fast, strong motion so values do not clip.
Docs
- Demo: https://tapwithus.github.io/tap-web-sdk/
- Packet type:
RawDataMessageinsrc/types.ts
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/tap-web-sdk/skills/tap-raw-sensors/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/tapwithus/tap-web-sdk/tap-raw-sensors)