Go to Post So.... football pizza water game with minibots and megabots? - euhlmann [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 18-02-2012, 19:46
Rogue Leader Rogue Leader is offline
Registered User
FRC #0696 (Circuit Breakers)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2011
Location: Glendale, CA
Posts: 78
Rogue Leader is an unknown quantity at this point
Kinect Issues

Hello People of Chief Delphi!

We have been having some issues with our Kinect working with LabVIEW, so I was hoping you all might be able to provide some help and constructive criticism.

First off, we can't get a reading off the Kinect. We know the Kinect itself works, has we have seen in the "Kinect Skeletal Viewer" and the "Kinect Explorer." However, we cannot get the Kinect to work with our LabVIEW programs. We don't get any errors about the program not compiling or having build errors, so we are very confused about this. We did, however, make one modification to allow the program to run independent of the cRIO, on our desktop computers. (The modification is the image attachment.) Could this be our problem?

Next, we were curious as to how we could get the image out of the Kinect and onto our program. Would we use a Image display, and if so, how would we do this?

Thank you in advance for your help, Chief Delphi!
Attached Thumbnails
Click image for larger version

Name:	Chief Delphi Kinect Post copy.jpg
Views:	34
Size:	110.4 KB
ID:	11984  
Reply With Quote
  #2   Spotlight this post!  
Unread 18-02-2012, 21:34
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Kinect Issues

Actually, there were two changes. The code you attached was intended to be part of the robot code. It was moved to run on the PC, where it will not run due to a missing library called FRC_NetworkCommunication.out. Since that didn't work, it was changed to not call any library at all.

Anyway, the Kinect VIs in WPILib can be used on the cRIO in a location such as autonomous or periodic. The basic Kinect joystick data is available using just the Joystick opening a Kinect 1 or Kinect 2 edition. The other data such as the Kinect Header can be used to get at the advanced data fields. I uploaded some examples to CD and FIRSTForge showing how to map various arm movements from the low level vertices and make your own joystick on the robot. The FIRSTForge URL is http://firstforge.wpi.edu/sf/frs/do/...inect_examples

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 19-02-2012, 21:43
Rogue Leader Rogue Leader is offline
Registered User
FRC #0696 (Circuit Breakers)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2011
Location: Glendale, CA
Posts: 78
Rogue Leader is an unknown quantity at this point
Re: Kinect Issues

Thanks for the reply.

New question: How would I calibrate the Kinect so that I could hold my arms up, and thus creating a point of reference for the Kinect to base motor values off of?
Reply With Quote
  #4   Spotlight this post!  
Unread 20-02-2012, 07:47
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Kinect Issues

I suppose you could remember the highest Z you've seen on a hand or something, but my suggestion would be to use some other point on the skeleton for reference. Shoulders, spine, possibly head.

The code I referenced in the other post used the height between hip and shoulder, or something similar to normalize the arm gestures, and then had general linear scaling and offset to make the gestures comfortable and full-range.

Another useful point to use is the Center of Mass of the player.

Greg McKaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 20-02-2012, 13:19
Rogue Leader Rogue Leader is offline
Registered User
FRC #0696 (Circuit Breakers)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2011
Location: Glendale, CA
Posts: 78
Rogue Leader is an unknown quantity at this point
Re: Kinect Issues

Thanks again! We think we figured out a solution, using a combination of case structures and feed back nodes to compare the original value that we calibrated vs. the new position of the hands. We'll see how it works when we test it. Hopefully, it'll work!
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 08:44.

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