[Kinect] waitTimeout important?
Posted: 03 August 2011 03:24 AM   [ Ignore ]
New Member
Rank
Total Posts:  2
Joined  2011-08-02

Hey,
I’m playing around with kinect and have a case where many threads need the data of kinect. Each thread (I guess 100 threads in total) is calling the getRGB32 function in a while-loop. So I have 100 threads and everyone is calling getRGB32 very often.
Because of the lag I had to set the waitTimeout to 0 and it works well but now I wonder if that could crash my kinect some time?
So is it important to set waitTimeout to a higher number or can I ask for data with no timeout and so often then I want with no risk?
I hope someone can help me or tell me where I can find some information about that?
Thanks!

Profile
 
 
Posted: 03 August 2011 01:42 PM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  585
Joined  2009-09-17

When waitTimeout=0 the framework returns the image without any wait. This means that you might get duplicate images.

Profile
 
 
Posted: 03 August 2011 02:15 PM   [ Ignore ]   [ # 2 ]
New Member
Rank
Total Posts:  2
Joined  2011-08-02

Ah thank you that is perfect! smile
But as soon as a new image is available it return the new image? And many requests with no timeout don’t result in an overstrained kinect?

Profile
 
 
 
 


RSS 2.0     Atom Feed