Skip to main content

Export Gen2 On-device Machine Perception data to CSV

This page covers the Gen2 Machine Perception (MP) CSV exporter tool, run_gen2_mp_csv_exporter, which extracts on-device machine perception data from Gen2 Aria VRS files and exports them to CSV files compatible with the MPS (Machine Perception Service) data format. This enables seamless integration and comparison between on-device results and cloud-processed MPS data.

Basic Usage

run_gen2_mp_csv_exporter --vrs-path path/to/your/gen2_file.vrs \
--output-folder ./exported_mp_data/ \
--vio-high-freq-subsample-rate 80

Command Line Options

ParameterTypeRequiredDescription
--vrs-pathstringYesPath to the Gen2 VRS file containing on-device MP data
--output-folderstringNoFolder to output MP CSV files. Default: current directory
--vio-high-freq-subsample-rateintNoSubsample rate for VIO high frequency data. Default: 1 (no subsampling)

Data Types Exported

After running the tool, your output folder will contain the following files, with csv / JSONL formats that are compatible with MPS data formats:

output_folder/
├── slam/
│ ├── open_loop_trajectory.csv # VIO high-frequency poses
│ └── online_calibration.jsonl # Online calibration updates
├── eye_gaze/
│ └── generalized_eye_gaze.csv # Eye gaze data
└── hand_tracking/
└── hand_tracking_results.csv # Hand tracking results
Data TypeSource VRS Data StreamOutput FileContentNotes
VIO High-Frequency Trajectoryvio_high_frequency${OUTPUT_FOLDER}/slam/open_loop_trajectory.csvHigh-frequency device trajectory poses from Visual-Inertial OdometryCompatible with MPS open-loop trajectory format. Subsampling configurable via --vio-high-freq-subsample-rate parameter
Eye Gaze Dataeyegaze${OUTPUT_FOLDER}/eye_gaze/generalized_eye_gaze.csvEye gaze directions and fixation pointsCompatible with MPS eye gaze format
Hand Tracking Datahandtracking${OUTPUT_FOLDER}/hand_tracking/hand_tracking_results.csvHand pose estimates, joint positions, and hand landmarksCompatible with MPS hand tracking format
Online Calibration Datavio${OUTPUT_FOLDER}/slam/online_calibration.jsonlOnline SLAM camera and IMU calibration updates computed on-deviceCompatible with MPS online calibration format

Important Notes

  • Gen2 specific: This tool only works with Gen2 Aria VRS files that contain on-device MP data
  • Stream availability: Not all Gen2 recordings may contain all MP data streams
  • Data consistency: The tool preserves original timestamps and coordinate systems from the on-device processing
  • Calibration updates: Online calibration data represents dynamic updates computed during recording, which may differ from factory calibration