-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Things that don't work in this project. #35
Comments
does someone know why GetDepthMapBuffer returns null? @petergu684 @HoloAdventure can you please take a quick look at this issue? |
I found the solution. Short: The wrong depth sensors where initialized and the c++-code had no error handling for that. Long: The problem was that |
@petergu684 @HoloAdventure |
I fixed my reshape problem by realizing that
|
I have reopened this issue for future visitors to see. |
@arsi0001 , thanks so much for your contribution! I have one more question, since I still got the problem that the point cloud is not received properly. I think I wrote the SingleToBytes(); function correctly, but I can't think of another place where the bug could be. How did you solve the problem? Here's my code:
|
@agroenenberg
What is your error message? Or what's wrong with the point cloud you received? |
Hey @arsi0001, Solved it, overlooked a float conversion! |
Hi, I can use |
@Yuhan-Shen Do you rely on the shortThrow? Because the shortThrow has a bug anyway, that is caused by the original researchmode project. |
Thank you! I really appreciate your reply. To clarify, is the depthSensorMode set only in Unity/C#? Do I need to check the C++ plugins? Also, can you please let me know what is the bug for shortThrow? Thanks! |
No, no need to check there. The only thing missing in c++ is the handling for the case of wrong depth mode. So if you initialize for short but then ask for the long depth data. Here is the bug. |
First big thanks to the developer for the project! I noticed that a few things do not work and I hope to get help here.
So I tried this project today and right now its a bit frustrating.
I got it running on the HoloLens 2 and the python server is also running.
So what is my problem?
if header == 'f': # save spatial camera images
and saves it on under/data
if header == 's': # save depth sensor images
instead of getting 'f' again. So I gonna check the code in unity to find the reason for that.So I tried to debug the unity part via adding text from the exception into the ui text, that already exists. I did not fix the problem but this is the current information:
Clicking on the AHAT-Btn calls
SaveAHATSensorDateEvent()
. This method has the linevar depthMap = researchMode.GetDepthMapBuffer();
which returnsnull
and then passesdepthMap
(which is null) to the methodSendUITunt16Async()
in the next step.SendUITunt16Async()
throws then aNullReferenceException
:After fixing the wrong depth-mode-issue I thought I could save the point cloud data to a .ply on the py-server, but the server cant handle the point cloud data! So I get the following Error:
So this code cant reshape it because the content/length cannot be divided by 3. Why is this happening and what is wrong?
The text was updated successfully, but these errors were encountered: