Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Programming Kinect Buttons (http://www.chiefdelphi.com/forums/showthread.php?t=102845)

jhellr13 14-02-2012 21:28

Programming Kinect Buttons
 
Working on the kinect for our robot. We got the tank drive to work, and we are trying to get a button to control a motor for us. From the pdf about the kinect, we found button 1 (The button we want to use) is head right. Do we need to program this a special way, or is it just like programming any other button on a joystick? Also, does it matter if we put the button on the right stick as opposed to the left stick, or vice versa?

Thanks

RufflesRidge 14-02-2012 21:55

Re: Programming Kinect Buttons
 
They work pretty much like buttons from a joystick. The head one's can be kind of touchy though, especially if used with the arm motions. The head buttons are the first two so they are displayed as the top two on the default dashboard. Make sure you can reliably control the button before deciding to use it.

The buttons are set exactly the same for both sticks in the Kinect Server so you can use the left or right stick with no differences.

Draycos214 15-02-2012 14:01

Re: Programming Kinect Buttons
 
Im having a problem where the button only registers when my hands (arms?) are tracked. Any way to fix this?

therealman1 15-02-2012 15:13

Re: Programming Kinect Buttons
 
if you are using java you need to bring in a Kinect (not a KinectStick) then what i did was find the Yaxis value of the right hand then print the Yaxis on the drive station afther playing with that i set it so when the Yaxis goes above a point it is true

Draycos214 15-02-2012 15:18

Re: Programming Kinect Buttons
 
Im using LabVIEW. My problem is that i cant just press the buttons by themselves. I have to have my hands out (which is drive for me) to trigger them. I want to be able to keep my hands in and press the head-tilt buttons

therealman1 15-02-2012 15:25

Re: Programming Kinect Buttons
 
ive got no knowlage of labview... so im no help to you but you should think about java next season from what ive herd java is alot easyer

RufflesRidge 15-02-2012 15:29

Re: Programming Kinect Buttons
 
Quote:

Originally Posted by Draycos214 (Post 1127411)
Im using LabVIEW. My problem is that i cant just press the buttons by themselves. I have to have my hands out (which is drive for me) to trigger them. I want to be able to keep my hands in and press the head-tilt buttons

This is just how the Kinect Server works and is outlined in the Getting Started with the Microsoft Kinect for FRC document and described further in the Kinect Server Code Walkthough. The arms must be in a "valid" position in order to "enable" the Kinect Sticks to send any data other than zeros.

The raw Kinect data is piped through regardless of arm position so you can use that and the LabVIEW Gesture Processing example to implement the same buttons yourself on the robot side.

Draycos214 15-02-2012 16:34

Re: Programming Kinect Buttons
 
Could you show an example on how to do this? Im a newbie programmer. This is my first year. I get the gist of what you say, but not how to impliment it.

RufflesRidge 15-02-2012 16:52

Re: Programming Kinect Buttons
 
Quote:

Originally Posted by Draycos214 (Post 1127481)
Could you show an example on how to do this? Im a newbie programmer. This is my first year. I get the gist of what you say, but not how to impliment it.

The Kinect Gesture Processing example can be found in a ZIP file here:
http://firstforge.wpi.edu/sf/frs/do/...erver_01071 2

It implements the same gestures as the Kinect Server does for the KinectStick. You should be able to find the part that zeroes everything out pretty easily and remove it/go around it.


All times are GMT -5. The time now is 11:16.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi