Open Secret-Lin opened 1 month ago
Very cool. Thank you. Indeed, I only tested the client shared library on Windows and MSVC.
@jdibenes I figure that you do not write a corresponding hl2ss_3dcv for cpp, I want to transfer the value of longthrow to depth refer to its camera in cpp. By reading your sample_pv_depth_lt.py, I have following questions:
(By the way, I cannot run sample_pv_depth_lt.py, it just stuck and cannot be killed. And I can run clientsteam*.py to see the sensors' information)
Thanks for your great work. I am trying to do some image process on what holoLens2 sees. So, I wanted to import hl2ss as shared library(hl2ss_ulm.so). Here are bugs I met and how I solved: For building hl2ss_ulm.so:
}'
constexpr map_rm_depth_longthrow unpack_rm_depth_longthrow(uint8_t payload) { uint16_t payload_temp = (uint16_t)(payload); uint16_t return_value2 = (uint16_t)(payload + (parameters_rm_depth_longthrow::PIXELS sizeof(uint16_t))); rm_depth_longthrow_metadata metadata = (rm_depth_longthrow_metadata)(payload + (2 parameters_rm_depth_longthrow::PIXELS sizeof(uint16_t))); return { payload_temp, return_value2, metadata }; }
constexpr map_rm_imu unpack_rm_imu(uint8_t payload) { rm_imu_sample payload_temp = (rm_imu_sample*)(payload); return { payload_temp }; }
constexpr map_pv unpack_pv(uint8_t payload, uint32_t size) { pv_metadata metadata = (pv_metadata*)(payload + size - sizeof(pv_metadata)); return { payload, metadata }; }
constexpr map_microphone_raw unpack_microphone_raw(uint8_t payload) { int16_t payload_temp = (int16_t*)(payload); return { payload_temp }; }
constexpr map_microphone_aac unpack_microphone_aac(uint8_t payload) { float payload_temp = (float*)(payload); return { payload_temp }; }
constexpr map_microphone_array unpack_microphone_array(uint8_t payload) { float payload_temp = (float*)(payload); return { payload_temp }; }
constexpr map_si unpack_si(uint8_t payload) { si_frame payload_temp = (si_frame*)(payload); return { payload_temp }; }
constexpr map_eet unpack_eet(uint8_t payload) { eet_frame payload_temp = (eet_frame*)(payload); return { payload_temp }; }
constexpr map_extended_audio_raw unpack_extended_audio_raw(uint8_t payload) { int16_t payload_temp = (int16_t*)(payload); return { payload_temp }; }
constexpr map_extended_audio_aac unpack_extended_audio_aac(uint8_t payload) { float payload_temp = (float*)(payload); return { payload_temp }; }' Finally, I successfully built main_ulm and saw the pv. Thanks again for the author's great work. And these bugs may due to my ubuntu20.04 foxy env. Hope this issue can help someone.