|
Re: Kinect Boolean Programming
There are a number of options to do that using the data that will come in if you do have the Kinect plugged in and it's sending data to your robot. The easiest is probably to query the Number of Players and do Kinect stuff if it's 1 and non-Kinect stuff if it's zero. You should also decide what to do in the case that it's greater than 1 even though this shouldn't occur during competition.
The code to do this is obviously very different in the two languages, but I believe the Gesture Processing samples (unfortunately I don't have them on this PC to check) for both languages show how you would do this if you need help.
Last edited by RufflesRidge : 22-01-2012 at 20:03.
|