Protonect: Add timeout arg for waitForNewFrame() #612
Merged
+5
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
From #598 (Protonect ignores ^C)
Add timeout argument for waitForNewFrames() in the Protonect main loop. The Protonect exit if no frames come from the Kinect sensor for 10 seconds. This works only with c++11 option.
Tested on Mac OS X and ubuntu.
There are some remaining issues.
ISSUE 1:
Protonect exit abnormally with "Abort trap: 6" in Freenect2DeviceImpl::~Freenect2DeviceImpl() when the timeout fired. The probability is 5/26. (i.e. 5/40,000)
I think we can ignore this issue because the probability is very low.
ISSUE2:
Protonect message end with "status 0x090000: 1024" and does not show the window and images. The probability is 4,586/40,000. I will report this issue later separately.