Go to Post One time I had to write a report on "What is Gracious Professionalism?" I wrote down "Andy Baker" and got an A . - Swan217 [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 23-01-2012, 13:23
RahatAhmed RahatAhmed is offline
Registered User
FRC #4300 (The Lion Kings)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Texas
Posts: 24
RahatAhmed is an unknown quantity at this point
Kinect saying vertices are not tracking

After coping the code from the Kinect tutorial, checking the state of any vertex always comes out as Not Tracking. We can see the kinect skeleton on the DS. Also for some reason running robot main.vi and choosing autonomous doesn't run the autonomous independent.vi, instead we have to run the autonomous.vi itself. Anyone know how to fix it?
Reply With Quote
  #2   Spotlight this post!  
Unread 23-01-2012, 14:14
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Kinect saying vertices are not tracking

Is your Kinect problem similar to this one?http://www.chiefdelphi.com/forums/sh...d.php?t=100557


To run autonomous you need to choose it on the Driver Station application Operations tab.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #3   Spotlight this post!  
Unread 23-01-2012, 16:14
RahatAhmed RahatAhmed is offline
Registered User
FRC #4300 (The Lion Kings)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Texas
Posts: 24
RahatAhmed is an unknown quantity at this point
Re: Kinect saying vertices are not tracking

Okay, after further research, I found out there is some Kinect Joystick that has some pre-written code to better interface with. Do you know where in the functions palette I can get the joystick from?

Also, the kinect skeleton in the DS moves and updates fine, so I don't think it's a driver issue. The status LED for the Kinect is green.

EDIT: Nevermind, I figured it out. I haven't been able to test it yet. How are we supposed to structure the code in the Autonomous.vi? I have added to the default code a part where the kinect joysticks(I made two, assuming they are one for each arm) and the motors wire into a while loop, and in the loop the joysticks wire their y axes to a Tank Drive.vi. Is this the correct way to do it?

EDIT 2: I checked the values from Kinect Header, and this is what I got:
Version = "" blank
Num Players = 0
Success = false

So for some reason the DS recognizes the Kinect, but not the code.

Last edited by RahatAhmed : 23-01-2012 at 17:04.
Reply With Quote
  #4   Spotlight this post!  
Unread 24-01-2012, 08:03
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Kinect saying vertices are not tracking

Try installing Visual Studio C#, there may be a dependency on that for getting the Kinect data properly.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #5   Spotlight this post!  
Unread 24-01-2012, 12:54
RahatAhmed RahatAhmed is offline
Registered User
FRC #4300 (The Lion Kings)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Texas
Posts: 24
RahatAhmed is an unknown quantity at this point
Re: Kinect saying vertices are not tracking

Doesn't the classmate come with visual studio?

EDIT: It does seem to have Visual Studio C# installed on it already. I tried to install .NET 4.0 just to be safe, but it seemed to have it installed already and only gave me a repair or remove option(i repaired it).

EDIT 2: My hypothesis is that the Kinect is installed fine but the robot is not receiving any information over the network, since the DS is receiving the kinect values, but the robot receives 0's and blank strings for everything. I checked my firewall and it was disabled. I have no idea what could be wrong.

Last edited by RahatAhmed : 24-01-2012 at 17:17.
Reply With Quote
  #6   Spotlight this post!  
Unread 24-01-2012, 17:35
RahatAhmed RahatAhmed is offline
Registered User
FRC #4300 (The Lion Kings)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Texas
Posts: 24
RahatAhmed is an unknown quantity at this point
Re: Kinect saying vertices are not tracking

Here are some screenshots of the code. They're kinda big because I didn't have the time to crop them, so sorry about that.

Begin.vi: http://i.imgur.com/BFSqB.png
Finish.vi: http://i.imgur.com/a45vq.png
Autonomous Independent.vi: http://i.imgur.com/leoMF.png
Reply With Quote
  #7   Spotlight this post!  
Unread 25-01-2012, 08:30
SuperS_5's Avatar
SuperS_5 SuperS_5 is offline
[Certified LabVIEW Developer]
FRC #1219
 
Join Date: Dec 2010
Rookie Year: 2010
Location: Canada
Posts: 140
SuperS_5 will become famous soon enoughSuperS_5 will become famous soon enough
Re: Kinect saying vertices are not tracking

Quote:
Originally Posted by RahatAhmed View Post
Here are some screenshots of the code. They're kinda big because I didn't have the time to crop them, so sorry about that.

Begin.vi: http://i.imgur.com/BFSqB.png
Finish.vi: http://i.imgur.com/a45vq.png
Autonomous Independent.vi: http://i.imgur.com/leoMF.png
You can make code snippets, might make life easier. To do so, select the desired code, click on edit>"create VI snippet from selection". The result is a compressed PNG, that has VI code attached. It can be dragged and dropped onto a block diagram.
__________________
Mike B
Reply With Quote
  #8   Spotlight this post!  
Unread 25-01-2012, 10:25
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Kinect saying vertices are not tracking

There seems to be an odd issue with getting the Kinect data from some PCs.
FIRST is looking at it.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #9   Spotlight this post!  
Unread 26-01-2012, 11:14
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Kinect saying vertices are not tracking

Okay, FIRST thinks that the issue seems to be due to a conflict with the missing Cypress IO board.

Here are some temporary solutions to try.
Please, report back if this helps or fails.
  • See if plugging your Cypress board USB in makes it all better.
or
  • Go to the Driver station I/O tab, click Configure and change it to Compatible mode to see if that makes the Kinect data work.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #10   Spotlight this post!  
Unread 27-01-2012, 20:18
RahatAhmed RahatAhmed is offline
Registered User
FRC #4300 (The Lion Kings)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Texas
Posts: 24
RahatAhmed is an unknown quantity at this point
Re: Kinect saying vertices are not tracking

Quote:
Originally Posted by Mark McLeod View Post
Okay, FIRST thinks that the issue seems to be due to a conflict with the missing Cypress IO board.

Here are some temporary solutions to try.
Please, report back if this helps or fails.
  • See if plugging your Cypress board USB in makes it all better.
or
  • Go to the Driver station I/O tab, click Configure and change it to Compatible mode to see if that makes the Kinect data work.
I set the DS I/O tab to Configure and it didn't work. Then I installed the update that came out a few days ago (found it on the Team Updates section on usfirst.org), and suddenly the robot started recognizing the Kinect! Thanks for the help, though!
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:25.

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