hololensmrtkwindows-mixed-reality

How to extract hand tracking data from HoloLens2 into a data analysis format


I have been tasked with using Microsoft's MRTK and HoloLens2 to simply extract hand position data in the (X,Y,Z) coordinate axis system as well as hand movement data (acceleration, jerk, etc.) into a readable and analyzable format such as MS Excel.

Any help with the Microsoft MRTK and HoloLens2 API would be immensely helpful (especially with laying out the code)


Solution

  • You can use the IMixedRealityHand interface to request the joint data from the device. And this code shows how to poll joint pose from the controller: Accessing a given hand controller For analyzing and tabulating, there is no out-of-box API from MRTK to do that, it needs to implement it by your own code. You can refer to this link to learn how to export the data to a CSV file: Write Data From List To CSV File