microsoft / HoloLens2ForCV

Sample code and documentation for using the Microsoft HoloLens 2 for Computer Vision research.
MIT License
490 stars 145 forks source link

Sensor device consent issue #71

Open NHarishGit opened 3 years ago

NHarishGit commented 3 years ago

Overarching goal: Get IMU data from the modified HL2 device.

Trying to run the latest main trunk code (SensorVisualization sample using VS2019 v16.8.5) on my modified HL2 device but it keeps failing at this line:

winrt::check_hresult(m_pSensorDevice->QueryInterface(IID_PPV_ARGS(&m_pSensorDeviceConsent)));

My interpretation: Since my HL2 has different sensors the "device consent" piece is NOT working as it may be asking consent using GUIDs which are NOT applicable in my hardware. it is just my guess.

My real question: How does one get GUIDs such as below "EAB9D672-9A88-4E43-8A69-9BA8f23A4C76" ?:

DECLARE_INTERFACE_IID_(IResearchModeSensorDeviceConsent, IUnknown, "EAB9D672-9A88-4E43-8A69-9BA8f23A4C76") { STDMETHOD_(HRESULT, RequestCamAccessAsync)(void (*camCallback)(ResearchModeSensorConsent))= 0; STDMETHOD_(HRESULT, RequestIMUAccessAsync)(void (*imuCallback)(ResearchModeSensorConsent)) = 0; };

My OS version: 19041.1045

any thoughts @dorinung @robertyoung2 @fbogo @kysucix !

dakesse commented 3 years ago

Research Mode - and thus IMU access - is only supported with 19041.1364 or newer. Have a look in the doc file or issues #70.

dakesse commented 3 years ago

Research Mode - and thus IMU access - is only supported with 19041.1364 or newer. Have a look in the doc file or issues #70.

But as far as I remember research mode was already available from Windows Holographic, version 2004 - July 2020 Update (19041.1109). However it was only communicated from Windows Holographic, version 20H2 (19041.1128) in the release notes.