agentleFS
MetaKnown publisherfacebookresearch/projectaria-plugins/projectaria_ark_plugin/skills/projectaria-tools/SKILL.md

projectaria-tools

Skill16 starsChanged 11 days agoApache-2.0View on GitHub

Use when working with projectaria_tools (PAT) — the official Python/C++ library for reading Aria VRS recordings, accessing sensor data, device calibration, loading MPS results (eye gaze, hand tracking, SLAM trajectory), time domain mapping for multi-device alignment, and data visualization. Use whenever the user imports projectaria_tools, works with Aria VRS files, or asks about Aria sensor data processing.

  • Installs packages

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    After cloning the repo, these are the source-of-truth files for API details:

    line 34
  2. Very specific:

    All sensor data is timestamped.

    line 75
  3. Distinctive:

    Check time domain mapping availability on a provider — only present in client/receiver VRS files

    line 170
  4. Very specific:

    Always run <tool> --help for the current flag set: Do not assume flag names from memory or from this skill — they drift across releases, …

    line 204

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

ProjectAriaTools (PAT)

PAT is the foundational open-source library for accessing and processing data recorded by Project Aria glasses. It provides Python and C++ interfaces for loading VRS files, accessing calibration, processing sensor data, loading MPS results, and visualizing Aria data.

How to Use This Skill

This skill is a navigation map — it tells you where the key APIs and source files are, what the gotchas are, and where to find the truth. Never guess API names from this skill alone. Read the source file it points to before writing any API call.

  • For CLI flags, run --help instead of guessing from this skill.
  • For API details, read the relevant Python module or C++ pybind header.

Installation & Documentation

Key Source Paths

After cloning the repo, these are the source-of-truth files for API details:

WhatPath
C++ pybind: VrsDataProvider APIcore/python/VrsDataProviderPyBind.h
C++ pybind: SensorData accessorscore/python/SensorDataPyBind.h
C++ pybind: Calibrationcore/python/DeviceCalibrationPyBind.h
C++ pybind: MPS datacore/python/MpsPyBind.h
C++ pybind: SE3/Sophuscore/python/sophus/
MPS types (eye gaze, hand, trajectory)core/mps/
TimeDomain enumcore/data_provider/TimeTypes.h
Python package (pip-installed API)projectaria_tools/core/
Visualization toolsprojectaria_tools/tools/
Gen2 tutorialsexamples/Gen2/python_notebooks/

The Python package (projectaria_tools/core/) exposes the compiled C++ modules. The C++ pybind headers (core/python/) are the definitive API reference — read them when you need exact method signatures, return types, or parameter semantics.

Core API

from projectaria_tools.core import data_provider
from projectaria_tools.core.sensor_data import SensorDataType

provider = data_provider.create_vrs_data_provider("recording.vrs")

Key constraint: create_vrs_data_provider requires a local file path. Does NOT accept URLs or remote URIs.

Data Access

VrsDataProvider offers methods for stream discovery, indexed and time-based data access, calibration, and image configuration. Read core/python/VrsDataProviderPyBind.h for the complete typed API.

Access sensor data by index or by timestamp. Time-based queries take a TimeDomain and TimeQueryOptions.

Sensor Data

Each SensorData object has typed accessors for: image, IMU, magnetometer, barometer, GPS, audio, eye tracking, WiFi, Bluetooth. Read core/python/SensorDataPyBind.h for all accessors and return types.

Gotchas:

  • Magnetometer shares the MotionData type with IMU — check validity flags to distinguish.
  • All sensor data is timestamped; retrieve via the time accessor with an optional TimeDomain argument.

VRS Streams and Stream Labels

Each VRS stream is identified by a StreamId = RecordableTypeId-InstanceId (e.g. 214-1). PAT maps these to human-readable labels. Docs: https://facebookresearch.github.io/projectaria_tools/gen2/technical-specs/vrs/streamid-label-mapper

StreamIdLabelSensor
1201-1 / 1201-2camera-slam-left / camera-slam-rightSLAM cameras (grayscale)
1201-3 / 1201-4SLAM cameras 3/4Additional SLAM cameras
214-1camera-rgbRGB camera (12MP)
211-1 / 211-2camera-et-left / camera-et-rightEye tracking cameras
1202-1 / 1202-2imu-left / imu-rightIMUs
1203-1mag0Magnetometer
247-1baro0Barometer
281-2gpsGPS sensor
281-1gps-appGPS from companion app
231-1mic7-channel microphone
246-1temperatureTemperature sensor
500-1alsAmbient light sensor
248-1ppgPhotoplethysmography
373-1eyegazeOn-device eye gaze
282-1wpsWi-Fi
283-1bluetoothBluetooth

Dynamic StreamIds: handtracking, vio, and vio_high_frequency streams have runtime-determined IDs that depend on whether hand tracking is present in the recording.

Each data record contains sensor readout values, timestamps, and acquisition parameters (e.g. exposure/gain for cameras). Image records store one frame + metadata per record; audio records group 4096 samples per chunk. VRS data format docs: https://facebookresearch.github.io/projectaria_tools/gen2/technical-specs/vrs/data-format

Time Domains

from projectaria_tools.core.sensor_data import TimeDomain
ValueDescription
RECORD_TIMEVRS file order
DEVICE_TIMEHardware clock — use for single-device workflows
HOST_TIMEWall clock on companion host
TIME_CODEExternal sync signal (Gen1)
SUBGHZBroadcaster's device time — use for multi-device alignment (Gen2)

TimeQueryOptions: BEFORE (latest sample ≤ query time), AFTER (earliest sample ≥ query time), CLOSEST (nearest by absolute difference).

Calibration

Device and per-sensor calibration — focal length, principal point, distortion models, image undistortion. Read core/python/DeviceCalibrationPyBind.h for the full API and core/calibration/ for camera model details.

SE3 Transforms

6-DOF rigid body transforms (rotation + translation):

from projectaria_tools.core.sophus import SE3

Supports translation, rotation, matrix conversion, inversion, composition, point transformation. Read core/python/sophus/ for the full API.

Detecting Gen1 vs Gen2

Gen1 vs Gen2 can be distinguished from the device_type field in the image configuration. Read core/python/VrsDataProviderPyBind.h for how to access it.

MPS Data Loading

Load cloud MPS results alongside VRS data:

from projectaria_tools.core import mps

Read core/python/MpsPyBind.h for all reader functions and return types.

Key concepts:

  • Trajectory: timestamps + SE3 poses (T_world_device)
  • Point cloud: 3D points in world coordinates; observations: 2D pixel coords per frame. Join observations to points via uid.
  • Hand tracking: from projectaria_tools.core.mps import hand_tracking
  • Compression: .csv.gz files are auto-detected from file extension.

Eye gaze gotcha: There is no .gaze_direction attribute. Always use the helper functions from MpsPyBind.h to convert yaw/pitch to unit vectors and 3D points.

Time Domain Mapping (Multi-Device Alignment)

PAT provides time domain mapping to temporally align data across multiple Aria Gen2 devices. The underlying mechanism uses sub-GHz radio hardware for sub-millisecond accuracy.

Host/Client Model

  • Host (Broadcaster): Transmits timestamps over sub-GHz radio. Its VRS does NOT contain a SubGHz stream — its DEVICE_TIME IS the reference.
  • Client (Receiver): Records (broadcaster_time, local_time) pairs into a SubGHz stream in its VRS. PAT uses these to map between device clocks.

Usage Pattern

  1. For host: query data in DEVICE_TIME
  2. For clients: query data with the host's timestamp using TimeDomain.SUBGHZ — PAT handles the clock mapping automatically
  3. Check time domain mapping availability on a provider — only present in client/receiver VRS files

Tutorial_4 demonstrates the complete multi-device time domain mapping workflow with Rerun visualization.

Comparison with Gen1

ProtocolGenerationAccuracyNotes
SubGHz time domain mappingGen2Sub-millisecondHardware radio, broadcaster/receiver setup
TICSyncGen1ModerateSoftware-based, client/server over network
TimeCodeGen1VariesExternal timecode signal (SMPTE)

Gen2 Tutorials

Path: examples/Gen2/python_notebooks/

TutorialContent
Tutorial_1VrsDataProvider basics — read multimodal sensor data
Tutorial_2Device calibration
Tutorial_3Sequential multi-sensor access (queued data streaming)
Tutorial_4Timestamp alignment (multi-device SubGHz)
Tutorial_5MPS basics — output layout, MpsDataPathsProvider, MpsDataProvider
Tutorial_6VIO and trajectory — on-device VIO + MPS SLAM, point cloud
Tutorial_7Hand tracking — on-device stream + MPS result
Tutorial_8Eye tracking — on-device geometric, on-device ML, MPS
Tutorial_9Neural Band sEMG

Tutorials 6-8 each cover one algorithm across every source that produces it, so the on-device and MPS variants are compared side by side rather than split across tutorials.

Visualization & Data Export

Tools shipped with PAT — installed with pip install 'projectaria-tools[all]', except aria_viewer which needs a CMake source build.

Always run <tool> --help for the current flag set. Do not assume flag names from memory or from this skill — they drift across releases, and the --help output is the only authoritative reference.

aria_rerun_viewer (Python, Rerun)

Rerun-based interactive viewer for any VRS file. Works on Gen 1 and Gen 2. Renders camera frames alongside IMU / audio / barometer / magnetometer time series, and overlays on-device perception (VIO trajectory, eye gaze, hand tracking) in a 3D scene.

Use when: you want a quick interactive look at a VRS file — one tool covers most sensor streams. Default first choice for "just show me what's in this recording".

Source: https://github.com/facebookresearch/projectaria_tools/tree/main/projectaria_tools/tools/aria_rerun_viewer

viewer_mps (Python, Rerun)

Rerun-based viewer specialized for MPS output overlays — trajectories, semi-dense point clouds, eye gaze, hand tracking. Auto-detects MPS data under <vrs_file>/mps/, or accepts individual file paths. Supports both a desktop window and a web-browser mode.

Use when: you need to validate or visually inspect MPS results against the source VRS — see how trajectory + point cloud + sensor frames align in 3D.

Source: https://github.com/facebookresearch/projectaria_tools/tree/main/projectaria_tools/tools/viewer_mps

aria_viewer (C++ / Pangolin)

Native-performance VRS viewer built with Pangolin. Not in the pip package — requires a CMake source build (see Advanced Installation in the repo README). If Pangolin isn't found during the build, the viewer simply isn't compiled.

Use when: you need native playback performance, or you're already in a C++ build environment.

Known issue: high-frequency Gen 2 playback can show asynchronous camera updates (CPU image-decode limits). Workarounds: fall back to aria_rerun_viewer, slow down via the speed slider, or use the timestamp slider for random access (always works correctly).

Source: https://github.com/facebookresearch/projectaria_tools/tree/main/tools/visualization

vrs_to_mp4

Converts camera streams from a VRS file into a standard MP4 video.

Use when: you need a shareable / previewable video file — for presentations, web embedding, or sharing with non-Aria users who don't have PAT.

Do NOT use for CV / AI pipelines. Output is lossy compressed video — feed those pipelines decoded frames from VrsDataProvider instead.

Source: https://github.com/facebookresearch/projectaria_tools/tree/main/projectaria_tools/tools/vrs_to_mp4

gen2_mp_csv_exporter

Exports on-device machine-perception streams (VIO, eye gaze, hand tracking, online calibration) from a Gen 2 VRS into CSV / JSONL files in the same format as cloud MPS outputs.

Use when:

  • You want to compare on-device perception against cloud MPS on the same recording.
  • You want to reuse MPS-loading code on a recording you haven't sent through MPS.

Gen 2 only. Streams not present in the recording are skipped silently.

Source: https://github.com/facebookresearch/projectaria_tools/tree/main/projectaria_tools/tools/gen2_mp_csv_exporter

aria_dataset_downloader

Downloads Aria open datasets in bulk from a CDN URL manifest file. You first obtain the manifest from the dataset's download page, then this tool fetches the full dataset — or a selected subset of sequences and data groups — into a local folder, with resumable downloads.

Use when: you're working with any Aria open dataset and want to pull it locally for offline processing, rather than streaming or sequence-by-sequence manual download.

Source: https://github.com/facebookresearch/projectaria_tools/tree/main/projectaria_tools/tools/dataset_downloader

dtc_object_downloader

Downloads 3D object assets from the Digital Twin Catalog (DTC) — the object library used by Aria Digital Twin and related dataset projects.

Use when: you're working with DTC-based projects and need the underlying 3D object models locally.

Source: https://github.com/facebookresearch/projectaria_tools/tree/main/projectaria_tools/projects/dtc_objects

Glossary

AcronymMeaning
PATProjectAriaTools — this library
VRSVision Record Stream — file format for timestamped multi-stream sensor data
MPSMachine Perception Services — cloud processing for SLAM, eye gaze, hand tracking
VIOVisual-Inertial Odometry — real-time 6DoF pose from cameras + IMU
SLAMSimultaneous Localization and Mapping — trajectory in MPS
CPFCentral Pupil Frame — reference coordinate frame for eye gaze
SE3Special Euclidean group in 3D — 6DoF rigid body transforms
SubGHzSub-GHz radio hardware used for time domain mapping across Gen2 devices

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.