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

custom-profile

Skill16 starsChanged 11 days agoApache-2.0View on GitHub

Use when authoring or editing a custom profile JSON for Aria Gen 2. A profile fixes which sensors are enabled and at what rate, resolution, and encoding — **the same profile works for both recording and streaming**, despite the historical "recording profile" name. Gives the legal value for every field, the rules that make the device reject a profile or fail to start a session, and the changes the device makes silently. Use whenever the user asks how to write a custom profile, modify a profile, pull an existing profile off the device, define sensor rates, deploy a profile to the device, or asks what a specific profile field means.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Default to a pre-defined profile: Write a custom one only when none fits.

    line 10
  2. Very specific:

    All cameras run off one 180 Hz trigger.

    line 157
  3. Very specific:

    Client SDK: add it (see the client-sdk skill), then select it by name.

    line 296
  4. Very specific:

    Run vrs-health-check (see that skill) — required before MPS.

    line 307

≈ “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

Custom Profile Authoring

A profile is JSON that fixes which Aria Gen 2 sensors run, at what rate, resolution, and encoding. One profile serves both recording and streaming; the "recording profile" name is historical.

Default to a pre-defined profile. Write a custom one only when none fits.

Don't write a custom profile when

  • The user is new to Aria.
  • The data goes to MPS — custom profiles risk incompatibility.
  • The data must be shareable or comparable across studies.
  • A pre-defined profile hasn't been tried yet.

1. Start from a device profile

Sources on device: native (firmware), cloud (server-pushed), user (yours — the only writable one).

Pull a base off the device and edit it. Never transcribe one from docs, and never start blank. A pull returns what the firmware actually runs.

Client SDK does list / pull / add / remove. Commands are in the client-sdk skill — don't guess them.

add is non-destructive, takes one profile, and won't overwrite. To iterate: remove, then add.

ProfileUse forNotable
profile8General-purpose recordingRGB 10 Hz @ 2560×1920, SLAM 30 Hz, all environmental sensors on
profile9General-purpose streamingRGB 5 Hz CBR (8 Mbps + blur filter), no GPS / BLE / WiFi / ET cameras
profile10High-frame-rate RGBRGB 30 Hz @ 2016×1512, otherwise like profile8
mp_streaming_demoMachine-perception streaming demoStreaming-only, lighter encoding, no ALS / baro / mag / GPS / BLE / WiFi

Catalog: https://facebookresearch.github.io/projectaria_tools/gen2/technical-specs/device/profile


2. Hard rules — breaking these stops the session

RuleFailure
Every field name spelled exactly; no unknown fieldsUpload rejected
name non-empty and unique across all three sourcesUpload rejected
imus / magnetometer / barometer / gps rate on the allow-listRejected
Camera rate_hz ≤ 90Rejected
RGB rate_hz within the ceiling for its resolution (24 at 4032×3024, else 30)Rejected
cqp.qp in 0–51Stream won't start
fixed_exposure.gain positive and inside the camera's rangeRejected
encoding: YUV only on rgb_cameraRejected
Valid enum values everywhere, including wifi.scan_modeRejected
rgb_camera.resolution recognisedDataflow service aborts
ALS exposure_time_us + 6000 ≤ sample periodRejected
ALS exposure_mode: FIXED requires exposure_time_usRejected
Never enable ML ET and ht togetherSession won't start

Geometric ET: at most one of ET images / gaze results may exceed 5 Hz. A third-party IP restriction, and a hard requirement — do not rely on the device to catch a violation for you. See the et.type section.


3. Things the device changes without telling you

You wroteDevice does
Camera rate_hz not equal to 180/NSnaps up to the next 180/N (25 → ≈25.7)
ppg.rate_hz in rangeSnaps to nearest achievable
als.rate_hzSnaps to a 20.5 ms grid
als.exposure_time_usRounds to nearest 1600 µs tick
temperature.rate_hz < 1Clamps to 1
cnr.strength > 10Clamps to 10
als.gain_index outside 1–15Sensor default
fixed_exposure value ≤ 0Replaced with 1000 µs / gain 1.0 before the range check, so it never reaches the driver. Only a positive out-of-range gain is rejected.
iframe_period ≤ 01
Blur threshold < 0 / window_ms ≤ 060 / 100
encoding unsetH265, and it beats the RAW8 a CV vertical asks for — see below
Any blur_filter_config block, even enabled: 2Pulls in vio_high_frequency_pose → vio → slam_cameras + imus
A whole top-level block omittedFeature off, not defaulted. "audio": {} gets you the defaults; no audio key gets you no audio.
Deprecated top-level qpMigrated to cqp
gps / ppg on a board without the hardwareRemoved from the profile
CQP H265 under thermal/power pressureRewritten to CBR with a bitrate cap — recorded quality won't match your QP

4. JSON conventions

  • Field names are snake_case.
  • Enums accept the integer or the name: "encoding": 4 == "encoding": "H265".
  • 0 / UNDEFINED means unset — it yields to defaults, it does not force anything.
  • OptionalBool is a 3-state enum, not a JSON bool: 0=UNDEFINED, 1=TRUE, 2=FALSE.
  • Presence enables: write empty-message toggles as "button_state": {}.
  • A file is a JSON array of profiles, or a single profile object for the inline path.
  • Units: rate_hz Hz (float), period_ms ms (int32), *_us µs (int32).
  • On merge, rate_hz takes the max and period_ms the min.

5. Field reference

Top-level

FieldTypeMeaning
namestringRequired. Selection key. Unique across native + cloud + user.
descriptionstringFree text.
type1=RECORDING, 2=STREAMINGMetadata only; does not affect runtime.
recommendedboolUI hint. No runtime effect.
publicbooltrue = visible in the SDK's profile list. No runtime effect.

Selection at session time is by name — not filename, index, or type.

Inertial & environmental

FieldSub-fieldLegal valuesStandard
imusrate_hz200, 400, 800, 1600, 3200, 6400800 (VIO forces 800)
magnetometerrate_hz1.562, 3.125, 6.25, 12.5, 25, 50, 100, 200, 400100
barometerrate_hz0.125, 0.25, 0.5, 1, 2, 3, 4, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 60, 70, 80, 90, 100, 120, 130, 140, 150, 160, 180, 200, 220, 24050
gpsrate_hz1, 2, 4, 5, 8, 101
ppgrate_hz≈1 … ≈1927128
temperaturerate_hz≥ 1. Sensor runs even if omitted.1
alsrate_hz≈0.19 … ≈131.610
alsexposure_time_us1600 … 1600000. In AUTO it only seeds the loop; in FIXED it is held.3200
alsexposure_mode0=UNSPECIFIED(→AUTO), 1=AUTO, 2=FIXEDAUTO
alsgain_index1 … 15; 0 = sensor default. No auto-gain.0
utc_time_syncperiod_msCadence. Use period_ms — rate_hz parses but never starts the subsystem.60000
device_infoperiod_msBattery + proximity polling. Also enables the proximity sensor.5000–30000

Audio

"audio": {
  "sample_rate": 1,           // 1=16kHz, 2=48kHz
  "frame_period": 3,          // 1=5ms, 2=10ms, 3=20ms
  "sample_format": 1,         // 1=S16, 2=S32
  "encoding_format": 2,       // 1=PCM, 2=OPUS
  "mic_selection": { "1": true, "3": true },              // keys 1-8; empty/omitted = all 8
  "opus_config": { "complexity": 10, "bitrate": 256000 }  // OPUS only; complexity 0-10
}

Unset sub-fields default to 48 kHz / 20 ms / S32 / PCM.

Connectivity

"ble":  { "period_ms": 30000, "duration_ms": 2000 }
"wifi": { "period_ms": 30000, "scan_mode": 2 }      // 1=PASSIVE, 2=ACTIVE

The numeric values are passthrough — no range check. scan_mode is an enum and is validated like every other enum.

Cameras — shared

All cameras run off one 180 Hz trigger. Achievable rate = 180/N for any integer N, capped at 90. Common values: 90, 60, 45, 36, 30, 25.7, 22.5, 20, 18, 15, 12.9, 10, 9, 6, 5. Anything else snaps up to the next 180/N. rate_hz: 0 disables the group.

encoding (CameraEncodingFormat): 1=RAW8, 2=RAW10, 3=YUV (RGB only), 4=H265 (needs video_config).

encoding decides what gets recorded, not what the verticals consume. VIO / HT / ET always get the RAW8 they need internally; both streams exist. So:

  • Want compressed frames on disk: leave encoding unset (it defaults to H265) or set 4. The vertical still works.
  • Want raw frames on disk: set encoding: 1 explicitly. Leaving it unset will not give you RAW8 — the H265 default wins over the vertical's RAW8 request.
"video_config": {
  "iframe_period": 30,
  "cqp": { "qp": 24 }                  // or "cbr": { "bitrate": 10000000 }
}

qp is 0–51 on every camera. cbr.bitrate is bps, unvalidated — 900 kbps (SLAM) to 30 Mbps (RGB) are typical. The schema also has a cvbr arm: do not use it, the firmware has no CVBR support and it silently degrades to QP 0.

Exposure is a oneof — auto_exposure or fixed_exposure:

"auto_exposure": {}                                   // or:
"fixed_exposure": { "exposure_us": 250, "gain": 6 }

auto_exposure's range sub-fields are ignored; only mode is read (1=DEFAULT, 2=GYRO, the gyro motion-blur-adaptive AEC on RGB).

CameraGainExposure (µs)
SLAM0.1–8.0266–16000
ET1.0–16.08–1300
RGB (POV)1.0–255.9426–99878

RGB auto-exposure works in a narrower window: gain 1.0–128.0, exposure 26–14000 µs.

SLAM auto-exposure is recomputed whenever the SLAM rate changes: the ceiling is min(frame_period_us, 16000) − 1000, and the AEC then works within 267–10000 µs. In practice that means 10 ms at any rate the 90 Hz camera ceiling allows.

slam_cameras

"slam_cameras": {
  "rate_hz": 30,
  "auto_exposure": {},
  "encoding": 4,
  "video_config": { "cqp": { "qp": 24 } }
}

512×512 on shipping Aria Gen 2 (a board property, not a profile field). All four cameras always come up together — camera_selection exists in the schema but the device ignores it.

et_cameras

"et_cameras": {
  "rate_hz": 5,
  "auto_exposure": {},
  "encoding": 4,
  "video_config": { "cqp": { "qp": 22 } },
  "resolution": 1,                // 1=200×200 (default), 2=400×400
  "ir_led": 1,                    // OptionalBool; UNDEFINED → on
  "trigger_output_enabled": 1     // OptionalBool; pulses the external HW trigger with the ET trigger
}

Both ET cameras always come up together; camera_selection is ignored here too.

rgb_camera

"rgb_camera": {
  "rate_hz": 10,
  "auto_exposure": {},
  "encoding": 4,
  "video_config": { "cqp": { "qp": 22 } },
  "resolution": 3,                // see the rate ceiling table below
  "width": 2560, "height": 1920,  // downscaled OUTPUT size, applied before encode
  "blur_filter_config": {
    "enabled": 1,                 // OptionalBool; UNDEFINED → false
    "threshold": 60,              // drop frames scoring above this; 0 = drop nothing; 9999 = score only
    "window_ms": 400              // guarantees ≥1 frame per window
  },
  "sharpening_level": 0,          // 0-10, unvalidated
  "denoising_level": 0,           // 0-10, unvalidated
  "awb": { "source": 1 },         // presence enables. 1 = ALS colour temp (needs `als`), 2 = from pixels
  "lsc_enabled": 1,               // needs `awb`
  "cnr": { "strength": 5 },       // presence enables; strength 0-10
  "cac_enabled": 1
}

Each resolution is a distinct sensor mode with its own rate ceiling — the RGB camera never exceeds 30 fps:

resolutionCaptureMax rate_hz
11008×75630
22016×1512 (default)30
34032×302424
43024×302430

width/height are the downscaled output size, applied before encode, and have no allow-list; 2560×1920 and 320×240 are known-working.

Machine-perception verticals

Enable the vertical and let the device add its dependencies — don't wire up the raw sensors yourself.

FieldFormAuto-adds
vio{rate_hz, extract_image_keypoints, output_tracks}slam_cameras@rate (RAW8) + imus@800
vio_high_frequency_pose{rate_hz}vio (→ SLAM + IMU); sets imus to its rate
et{rate_hz, type}et_cameras@rate (RAW8) + IR LED on
ht{rate_hz}slam_cameras@rate (RAW8)

vio.extract_image_keypoints defaults to off — set 1 if you want keypoints. vio.output_tracks enables image-track output.

A vertical raises the sensor's physical rate; the rate_hz on the raw sensor is what gets delivered. Rates merge by max, then the device decimates to your requested rate. et: 30 + et_cameras: 5 runs the ET cameras at 30 Hz for gaze and records the images at 5 Hz.

et.type — gaze algorithm

2 / ET_ML_TURING selects ML ET. Omitted, 0 / ET_TYPE_UNDEFINED, or 3 / ET_GEOMETRICAL all mean geometric ET, the default.

  • ⛔ ML ET cannot run with ht. The device errors and the session never starts. Geometric ET has no such conflict — the pre-defined profiles run it alongside ht.
  • Geometric ET carries a third-party IP restriction: at most one of ET images / gaze results may exceed 5 Hz. For gaze above 5 Hz hold et_cameras.rate_hz at 5 (this is what profile8 does: et 30 Hz, et_cameras 5 Hz); for images above 5 Hz hold et.rate_hz at 5. Treat it as a hard requirement. ML ET is exempt.

The gaze stream's flavor differs per algorithm, so readers must dispatch on it.

Misc

"button_state": {} — capture button-state events.


6. Warn the user about

Thermal shutdown (~44 °C), shorter battery life, missing streams from untested sensor combinations, MPS rejection, PAT load failures. Meta does not guarantee compatibility for custom profiles.


7. Deploy

Client SDK: add it (see the client-sdk skill), then select it by name.

Companion App: Headset Details → Recording Profiles → Manage recording profiles → pick one → Make a copy → edit → Save. Or + for a blank editor. The saved profile appears under My profiles and works for both recording and streaming despite the UI label. Reference: https://facebookresearch.github.io/projectaria_tools/gen2/ark/companion-app/recording-profiles


8. Verify

Record something short, then:

  • Run vrs-health-check (see that skill) — required before MPS.
  • Load in PAT (see projectaria-tools) and confirm every expected stream is there.
  • Compare actual data rates against what you configured; a large gap means thermal throttling or a sensor that didn't start.
  • Watch device temperature and battery.

Related plugin skills

  • aria-knowledge — what a profile is conceptually + the pre-defined list.
  • client-sdk — pull / add / remove profiles; recording and streaming workflow.
  • vrs-health-check — validate a recording before downstream use.
  • projectaria-tools — inspect the resulting VRS file.

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.