/aria-ark:client-sdk-ros2-integrationfrom aria-ark
Integrates Aria Gen 2 sensor streams with ROS2 using a custom AriaRaw FlatBuffer message. Covers publishing raw sensor data, decoding in subscriber nodes, and sharing calibration across nodes.
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 ships an example ROS2 publisher / subscriber pair that streams raw Aria sensor data through ROS2 topics. Sensor messages stay in FlatBuffer format end-to-end — a thin custom message type (AriaRaw) carries them on the wire, and the SDK's data converter decodes them in the subscriber.
Reference + full code walkthrough: https://facebookresearch.github.io/projectaria_tools/gen2/ark/client-sdk/python-sdk/ros2-example
Aria streams data in FlatBuffer format. Re-encoding into standard sensor_msgs/* types would:
So the example uses one AriaRaw topic for all sensors, carrying:
int64 id # SDK message type ID (indicates which sensor / message type)
uint8[] payload # raw FlatBuffer bytes
The subscriber uses aria.oss_data_converter.OssDataConverter to decode each payload into a typed Python object (NumPy image, IMU struct, eye-gaze object, etc.) based on the id.
aria_data_typesBoth example files import:
from aria_data_types.msg import AriaRaw
Any other package name fails with ImportError. The aria_data_types package contains only the AriaRaw.msg definition.
client-sdk skill).aria_gen2 auth pair.~/ros2_ws).1. Extract SDK samples python3 -m aria.extract_sdk_samples --out ~/Downloads
→ yields AriaRaw.msg, ros2_publisher_example.py,
ros2_subscriber_example.py
2. Create C++ package aria_data_types (with AriaRaw.msg)
— follow the standard ROS2 custom-message tutorial
3. Create Python package e.g. py_pubsub (publisher + subscriber nodes)
4. Copy example code ros2_publisher_example.py → publisher_member_function.py
ros2_subscriber_example.py → subscriber_member_function.py
5. Add to py_pubsub/package.xml:
<exec_depend>aria_data_types</exec_depend>
6. BUILD aria_data_types FIRST, then py_pubsub:
colcon build --packages-select py_pubsub
7. In BOTH terminals: export the same ROS_DOMAIN_ID
export ROS_DOMAIN_ID=0
8. Terminal A: ros2 run py_pubsub talker (publisher — connects to device)
Terminal B: ros2 run py_pubsub listener (subscriber)
ROS2 tutorials referenced above:
Several decoders (VIO, eye gaze, hand pose) need calibration to transform coordinates. The publisher:
device_calib from the device on first connection.projectaria_tools.core.calibration.device_calibration_to_json_string./calibration topic (queue size 100, republished at 10 Hz so late-joining subscribers still get it).The subscriber:
/calibration and /aria_raw_message.converter.set_calibration(json_str), then handles each raw message by switching on message_id.If the subscriber receives data but logs nothing, it is almost always still waiting for calibration. Check the publisher logs to confirm calibration was published.
aria_raw_message (topic) — AriaRaw, queue size 1000.calibration (topic) — std_msgs/String (calibration JSON), queue size 100.:6768 (TCP) — HTTP server inside the publisher that receives streamed data from the device. Single-binding per host — only one publisher can hold it at a time.| Symptom | Cause | Fix |
|---|---|---|
ImportError: aria_data_types | Package not named aria_data_types, or not built before py_pubsub | Rename, then colcon build aria_data_types first |
| Subscriber receives messages but prints nothing | Calibration not received yet | Check publisher logs for the calibration callback |
| Publisher fails: port 6768 in use | Another viewer or example server is bound to the port | lsof -i :6768, kill the other process, or change config.port in the publisher script |
| Subscriber sees no messages at all | Different ROS_DOMAIN_ID between terminals | export ROS_DOMAIN_ID=0 in both before running |
ros2 node list shows only one node | ROS_DOMAIN_ID mismatch | Same fix |
| Many dropped messages | Queue size too small, slow callback, or wireless bandwidth | Increase queue, simplify callback, prefer USB streaming |
client-sdk — the underlying device control and streaming SDK.aria-knowledge — overall Aria platform / sensor concepts.projectaria-tools — calibration helpers used by the publisher.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
aria, ros2, flatbuffer, sensor-streaming, robot-operating-system
12 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-sdkUse when working with the Aria Client SDK — device pairing, recording, streaming, CLI commands (aria_gen2), Python SDK (aria.sdk_gen2), streaming visualization, multi-device time domain mapping, and device management. Use whenever the user mentions aria_gen2 CLI, aria.sdk_gen2, device pairing, recording start/stop, streaming from Aria glasses, or asks about controlling Aria Gen2 devices programmatically.npx claudepluginhub facebookresearch/projectaria-plugins --plugin aria-arkOther plugins' skills for the same job