Go to Post Obligatory warning: School comes first. If you have to choose between doing homework and going to a build season meeting, do the homework. - Billfred [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 14-02-2012, 21:28
jhellr13 jhellr13 is offline
Registered User
FRC #4272
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: US
Posts: 187
jhellr13 is an unknown quantity at this point
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
Reply With Quote
  #2   Spotlight this post!  
Unread 14-02-2012, 21:55
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
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.
Reply With Quote
  #3   Spotlight this post!  
Unread 15-02-2012, 14:01
Draycos214 Draycos214 is offline
Registered User
FRC #2389 (Oklahoma STORM)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: South Carolina
Posts: 8
Draycos214 is an unknown quantity at this point
Re: Programming Kinect Buttons

Im having a problem where the button only registers when my hands (arms?) are tracked. Any way to fix this?
Reply With Quote
  #4   Spotlight this post!  
Unread 15-02-2012, 15:13
therealman1's Avatar
therealman1 therealman1 is offline
Registered User
FRC #3044
Team Role: Programmer
 
Join Date: Oct 2011
Rookie Year: 2011
Location: ballston spa
Posts: 14
therealman1 can only hope to improve
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
Reply With Quote
  #5   Spotlight this post!  
Unread 15-02-2012, 15:18
Draycos214 Draycos214 is offline
Registered User
FRC #2389 (Oklahoma STORM)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: South Carolina
Posts: 8
Draycos214 is an unknown quantity at this point
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
Reply With Quote
  #6   Spotlight this post!  
Unread 15-02-2012, 15:25
therealman1's Avatar
therealman1 therealman1 is offline
Registered User
FRC #3044
Team Role: Programmer
 
Join Date: Oct 2011
Rookie Year: 2011
Location: ballston spa
Posts: 14
therealman1 can only hope to improve
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
Reply With Quote
  #7   Spotlight this post!  
Unread 15-02-2012, 15:29
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: Programming Kinect Buttons

Quote:
Originally Posted by Draycos214 View Post
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.
Reply With Quote
  #8   Spotlight this post!  
Unread 15-02-2012, 16:34
Draycos214 Draycos214 is offline
Registered User
FRC #2389 (Oklahoma STORM)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: South Carolina
Posts: 8
Draycos214 is an unknown quantity at this point
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.
Reply With Quote
  #9   Spotlight this post!  
Unread 15-02-2012, 16:52
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: Programming Kinect Buttons

Quote:
Originally Posted by Draycos214 View Post
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.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 22:07.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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