microsoft / HoloLensForCV

Sample code and documentation for using the Microsoft HoloLens for Computer Vision research
MIT License
472 stars 156 forks source link

nullptr_ service socket when trying to access Short Throw ToF Reflectivity sensor #158

Open theloni-monk opened 2 years ago

theloni-monk commented 2 years ago

I am trying to run ArUco detection on the Short Throw ToF Reflectivity sensor stream. I haven encountered the following error.

SENSOR FRAME STREAMING SERVER SENDING FRAME
SensorFrameStreamingServer::Consume: image dropped -- no connection!
MediaFrameReaderContext::FrameArrived: _sensorType=ShortThrowToFReflectivity (2), timestamp=34638905683 (relative)
frameToOrigin=[[0.999999, 0.000006, -0.000019, 0.000000], [-0.000005, 1.000001, -0.000014, 0.000000], [0.000019, 0.000013, 0.999998, 0.000000], [0.000026, 0.000005, 0.000062, 1.000000]]
cameraViewTransform=[[0.999873, -0.015899, -0.002168, 0.000000], [-0.007236, -0.567391, 0.823418, 0.000000], [-0.014322, -0.823297, -0.567433, 0.000000], [0.000498, -0.183469, 0.055295, 1.000000]]
cameraProjectionTransform=[[1.000000, 0.000000, 0.000000, 0.000000], [0.000000, 1.000000, 0.000000, 0.000000], [0.000000, 0.000000, 1.000000, 0.000000], [0.000000, 0.000000, 0.000000, 1.000000]]

I'm not sure where the issue with this could be. I have the correct permissions and i am certain the sensor is enabled, because I previously recieved the following output

...
MediaFrameSourceGroup::GetSensorType:: found sensor name 'Visible Light Right-Right' in MF_MT_USER_DATA (blob has 52 bytes)
MediaFrameSourceGroup::InitializeMediaSourceWorkerAsync: sensor type  has not been enabled!
MediaFrameSourceGroup::GetSensorType:: found sensor name 'Short Throw ToF Reflectivity' in MF_MT_USER_DATA (blob has 58 bytes)
MediaFrameSourceGroup::GetSubtypeForFrameReader: evaluating MediaFrameSourceKind::Infrared with format Video-L8 @3/1Hz
MediaFrameSourceGroup::InitializeMediaSourceWorkerAsync: created the 'ShortThrowToFReflectivity' frame reader
...

Is there an issue in this service handler? Or are there additional access settings necessary? I'm not sure how to troubleshoot