Log in

View Full Version : Programming the kinect with java.


Lord_Arion
20-01-2012, 18:28
This is our second year in the FRC but first year with Java and I am wondering how one would program the kinect for this year's competition.

thanks in advance.

CodeYeti
20-01-2012, 19:00
Take a look at the documentation for the classes "Kinect" and "KinectStick". The classes are pretty straight forward, and KinectStick actually implements the GenericHID interface, so it can literally be passed to things like RobotDrive in place of a joystick. There's a fairly simple example project that comes with the NetBeans plugins called KinectStickExample that you might want to take a look at. IIRC, it has a couple simple drive commands in there as examples. You can also check out http://www.usfirst.org/sites/default/files/uploadedFiles/Robotics_Programs/FRC/Game_and_Season__Info/2012_Assets/Getting%20Started%20with%20Microsoft%20Kinect%20fo r%20FRC.pdf for some platform-independent information on the topic.