Skip to content

Conversation

@jangernert
Copy link
Contributor

No description provided.

@rooi
Copy link

rooi commented Mar 8, 2018

@jangernert I just saw your PR as I'm trying to use this from unity. However, when I try to call this from unity as other filters are used it runs into a timeout. Could you provide some pointer on how to use this in unity?

Now I'm trying the following:

DisparityTransformFilter dispFilter = new DisparityTransformFilter();
void OnFrameSet(FrameSet frames)
{
Frames filteredFrames = dispFilter .ApplyFilter(frames);
...
}

Thanks!

@jangernert
Copy link
Contributor Author

@rooi I made a small mistake when I copied the code over from a playground branch. Hope this fixes it.

@rooi
Copy link

rooi commented Mar 9, 2018

@jangernert I've tried VideoFrame first and then I found your PR, so I thought FrameSet was the fix.
Using VideoFrame I get the following in Unity after calulating a pointcloud (pc.Calculate):

Frame did not arrive in time!
rs2_wait_for_frame(queue:0000000084535BD0)
UnityEngine.Debug:LogError(Object)
RealSenseDevice:ProcessFrames(FrameSet) (at Assets/_Scripts/Realsense/Plugin/RealSenseDevice.cs:179)
RealSenseDevice:Worker_DoWork(Object, DoWorkEventArgs) (at Assets/_Scripts/Realsense/Plugin/RealSenseDevice.cs:200)
System.Threading._ThreadPoolWaitCallback:PerformWaitCallback()

Any ideas on what may cause this? Thanks!

NEVERMIND. I only did depth2disp and forgot to reverse using disp2depth

@dorodnic
Copy link
Contributor

Thanks @jangernert

@dorodnic dorodnic merged commit dbd3133 into realsenseai:development Mar 19, 2018
@jangernert jangernert deleted the net_disparity_transform branch March 19, 2018 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants