/aria-ark:client-sdkfrom aria-ark
Controls Aria Gen2 glasses from a host PC: device pairing, recording management, live sensor streaming, and multi-device setup via the aria_gen2 CLI and aria.sdk_gen2 Python SDK.
Ships in aria-ark. 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.
None: SKILL.md is the whole skill.
The Client SDK lets you control Aria Gen2 glasses from a host PC — pair devices, manage recordings, stream live sensor data, and configure multi-device setups. It ships as a pip package with both a CLI (aria_gen2) and a Python SDK (aria.sdk_gen2).
This skill teaches the concepts and capabilities. For exact API details:
aria_gen2 <subcommand> --helpsdk_gen2.pyi in the installed package (site-packages/aria/), or run help(aria.sdk_gen2)python -m aria.extract_sdk_samples --output ~/Downloads/pip install projectaria-client-sdk (in a virtual environment, Python 3.10–3.12)aria_doctor — configures system ports and verifies connectivityaria_gen2 auth pair (requires approval in Companion App)The SDK exposes five capability areas through both CLI and Python SDK:
One-time device-PC pairing. The PC generates a client hash, the user approves in the Companion App, and subsequent connections are automatic. Use aria_doctor to verify system readiness before pairing.
Start/stop recordings on the device, list recordings, download as VRS files, delete. Recordings use configurable profiles that define which sensors are active and at what rate — predefined profiles (e.g. general-purpose, high-res RGB, streaming-optimized) are available on-device, plus custom profiles via JSON. Downloaded VRS files are processed with ProjectAriaTools (PAT).
Stream live sensor data from the device to the host PC in real-time. Three streaming interfaces with different tradeoffs:
Available sensor streams include: RGB camera, SLAM cameras, eye tracking cameras, IMU, magnetometer, barometer, GPS, audio, eye gaze, hand tracking, VIO (visual-inertial odometry), and more.
In the Python SDK, streaming uses a callback pattern: create a StreamDataInterface, register per-sensor callbacks (e.g. register_rgb_callback, register_imu_callback, register_eye_gaze_callback), then start streaming. Each callback fires when data arrives for that sensor. StreamDataInterface also supports record_to_vrs() to capture streamed data into a local VRS file on the host — this is the only way to save data during streaming, since on-device recording and streaming cannot run simultaneously.
Query device status (battery, temperature, WiFi, recording state), connect to WiFi networks, start the on-device hotspot, send text-to-speech, manage recording/streaming profiles, and retrieve device calibration.
Profiles: aria_gen2 device profile --help — list, pull, add, remove. Pull to get a base worth customizing; add won't overwrite an existing name; only profiles you added are removable. To author the JSON, use the custom-profile skill.
Temporal alignment across multiple Aria Gen2 devices using sub-GHz radio hardware. One device is configured as broadcaster, others as receivers. The broadcaster transmits its timestamps; receivers record timestamp pairs enabling clock conversion. Configure via TimeDomainMappingConfig (Python) or --all (CLI) on recording or streaming configs. Post-processing uses PAT's TimeDomain.SUBGHZ to query receiver data in the broadcaster's time domain.
When you need to stream from multiple devices into a single host process (e.g. a headless collection server or a live cross-device visualizer), use the AriaGen2HttpServer + per-connection handler factory pattern. One server listens on :6768; every device that connects gets its own fresh StreamDataInterface from a factory callback you supply.
Per-device data via the device_id callback param: declare device_id: str | None = None as a keyword argument on any streaming callback. The SDK detects this via inspect.signature() at registration time and starts passing the device's serial number on every fire. Callbacks without the param keep working unchanged — single- and multi-device code can share the same callback.
def rgb_callback(image_data, image_record, device_id: str | None = None):
print(f"[{device_id}] RGB frame")
def setup_stream_handler() -> StreamDataInterface:
handler = StreamDataInterface(enable_image_decoding=True, enable_raw_stream=False)
handler.register_rgb_callback(rgb_callback)
return handler
server = AriaGen2HttpServer(
HttpServerConfig(address="0.0.0.0", port=6768),
setup_stream_handler,
)
Start streaming on every device pointing at the same server URL (aria_gen2 streaming start --all ... is the quickest path). Each device opens an independent HTTPS connection — verify both are live with lsof -i :6768. If only one shows up, the second device probably failed the TLS handshake — both devices must use the same streaming certificate. The persistent certificate lives at ~/.aria/streaming-certs/persistent/ on the host PC; both devices receive it on first aria_gen2 streaming start from that host. If a device was previously paired against a different host, re-run aria_gen2 streaming install-certificates from the current host to overwrite it.
Cross-thread state needs locking. Callbacks fire from internal SDK threads, not the main thread. Any per-device dict you read or write from a callback (frame counters, recent TDM offsets, frame buffers) must be guarded by a threading.Lock. Even simple counter increments are not safe without it.
The broadcaster does NOT fire TDM callbacks (its DEVICE_TIME is the reference, so it has nothing to map). Only receivers report TDM offsets. If you see TDM-callback output for N−1 of your N devices, that's expected — the missing one is the broadcaster.
Worked example: https://facebookresearch.github.io/projectaria_tools/gen2/ark/client-sdk/python-sdk/multi-device-streaming-example
Pick by intent:
aria_gen2): One-shot operations, inspection, or chaining a few sequential actions.import aria.sdk_gen2 as sdk_gen2): Streaming with per-sensor callbacks, conditional logic during streaming, host-side VRS capture, or integration into a Python pipeline.The SDK follows a client → device → operation model:
DeviceClient — discovers and connects to devices. Supports multi-device via usb_network_devices() and connecting to specific DeviceTargets.Device — represents a connected device. All operations (recording, streaming, device management) go through this object.StreamDataInterface — handles streaming data reception. Register per-sensor callbacks, set queue sizes, and optionally record to local VRS.RecordingConfig, HttpStreamingConfig, TimeDomainMappingConfig — set on the device before starting operations.Default to aria_streaming_viewer — more polished and actively maintained. aria_rerun_viewer is for playback of downloaded VRS files, not live streaming.
aria_streaming_viewer is a persistent GUI window — it displays live sensor data for as long as the streaming session lasts. It does NOT exit after launch. When launching it:
aria_gen2 streaming start), then launch the viewer.run_in_background or &) — it blocks the terminal indefinitely.Streaming between device and host uses TLS with self-signed certificates. Two cert types exist:
~/.aria/streaming-certs/persistent/, survive across sessions, installed via aria_gen2 streaming install-certificates or auto-generated on first aria_gen2 streaming start~/.aria/streaming-certs/ephemeral/, regenerated each sessionThe CLI aria_gen2 streaming start auto-installs a persistent cert if none exists — no manual cert setup needed for the typical workflow.
Viewer only loads persistent certs. Both aria_streaming_viewer and the multi-device streaming viewer hardcode to ~/.aria/streaming-certs/persistent/. If streaming was started with ephemeral certs (e.g. via Python SDK with StreamingSecurityOptions.use_ephemeral_certs = True), the viewer's TLS handshake will silently fail — the viewer appears to start but shows no data. There is no error message indicating a cert mismatch.
Rule: When using the viewer, always ensure streaming uses persistent certs (the default). If you must use ephemeral certs for a custom Python SDK workflow, do not use aria_streaming_viewer — handle stream data via SDK callbacks instead.
aria_gen2 auth pair.record_to_vrs() for host-side capture during streaming.~/.aria/streaming-certs/persistent/. Streaming with ephemeral certs will silently fail to display in the viewer.The pip package includes both. Gen1 uses aria CLI and import aria.sdk. Gen2 uses aria_gen2 CLI and import aria.sdk_gen2. Type stubs: sdk.pyi (Gen1), sdk_gen2.pyi (Gen2). Gen1 and Gen2 SDK are NOT interchangeable.
When any Client SDK command fails or returns unexpected output, you MUST consult this section and the official troubleshooting page BEFORE attempting your own diagnosis. This is not optional. Aria failures have Aria-specific root causes (sandbox blocks, cert mismatches, thermal shutdowns, mDNS issues) that generic debugging will misdiagnose.
Anti-patterns:
Resources:
aria_doctor — configures ports and diagnoses connectivity.| Symptom | Action |
|---|---|
| Device not detected | Run aria_doctor. Try different USB 3.0+ port/cable. Disable VPN. |
auth pair hangs | Open Companion App, navigate to pairing screen. Check phone internet. |
| Streaming disconnects | USB: use quality cable, avoid hubs. WiFi: check signal/firewall. |
| Device overheating | Shuts down at ~44°C. Cool 5-10 min. Limit hotspot streaming to ~20 min. |
| Viewer starts but no data | Cert mismatch: streaming used ephemeral certs but the viewer only loads persistent certs. Restart streaming without use_ephemeral_certs, or run aria_gen2 streaming install-certificates then restart streaming. |
GLIBCXX_3.4.31 not found (Ubuntu 22) | sudo apt install g++-13 |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub facebookresearch/projectaria-plugins --plugin aria-ark12 skills in this plugin
/aria-knowledgeEncoded knowledge for Project Aria Gen 2 and the Aria Research Kit (ARK) — hardware, profiles, calibration, coordinate systems, VRS format, time domains, on-device perception, MPS outputs (SLAM, point cloud, hand tracking), plus pointers to the source-of-truth docs for specifics. Use whenever the user asks ANY conceptual question about Aria Gen 2 / ARK and you need to either answer from encoded knowledge or know where to look next. This skill is the single index that tells an agent how to fetch official Aria knowledge — encoded stable concepts for what does not drift, explicit public-doc pointers for hardware specs / schemas / numerical values that do, and "go read the code" or "run --help" for things owned by source. Pair with the domain skills in this plugin (`projectaria-tools`, `client-sdk`, `mps`, `vrs-health-check`, `pilot-dataset`, `web-app-creator`, `custom-profile`, `vrs-cli`, `client-sdk-ros2-integration`, `cloud-streaming`, `timecode-bridge`) for hands-on work./client-sdk-ros2-integrationUse when integrating Aria Gen 2 sensor streams with ROS2 — publishing raw Aria sensor data through ROS2 topics, decoding it in subscriber nodes, sharing device calibration across nodes. The integration uses a custom `AriaRaw` message (a thin FlatBuffer wrapper) and a required `aria_data_types` package name. Use whenever the user asks about Aria + ROS2, publishing Aria data to topics, or building ROS2 nodes around Aria sensors.Other plugins' skills for the same job