Go to Post My team does what works for my team. Let your team do the same. - Alexa Stott [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 16-01-2012, 17:02
kylevedder kylevedder is offline
Programmer
AKA: Kyle Vedder
FRC #0467 (Shrewsbury Colonials)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Massachusetts
Posts: 6
kylevedder is an unknown quantity at this point
Trouble reading Kinect values from robot

Hello,

We set up our robot and kinect recently and have gotten the kinect working on the driver station. The kinect server runs properly and the skeletons display under the Kinect Skeleton area of the dashboard.

However, we're unable to read any of this data from the robot. We're using WPIlib and java, and we started to test with the WPIlib KinectStickExample. This results in the printout "Bad Retval: 3" and all the read values are zeroes. We looked into the cause of this printout, and it's the FRCControl getDynamicControlData method. The API for this method says that the returned value should be 0, 1, or 2, but we couldn't find what 3 meant.

Other information... Trying to access the skeleton data from the Kinect class also resulted in all zeroes. We tried performing the gestures in front of the kinect but still received zeroes. The firewall on the driverstation computer is disabled and the kinect server is running. The driverstation and kinect drivers are all up to date.

Thanks for any help.
Reply With Quote
  #2   Spotlight this post!  
Unread 16-01-2012, 19:16
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,572
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Trouble reading Kinect values from robot

During the beta test, it was stated that this value means the robot isn't receiving the kinect data.

What is your network configuration? What kind of driver station computer are you using?

Last edited by Joe Ross : 16-01-2012 at 19:23.
Reply With Quote
  #3   Spotlight this post!  
Unread 19-01-2012, 16:38
Edlinger467 Edlinger467 is offline
Registered User
FRC #0467
 
Join Date: Jan 2012
Location: Massachusetts
Posts: 1
Edlinger467 is an unknown quantity at this point
Re: Trouble reading Kinect values from robot

Our driverstation is an HP mini. And we are using LAN Realtek PCIe FE Family Controller. The IP address is 10.4.675, the subnet mask is 255.255.255.0, and the default gateway is blank. We appreciate the help.
Reply With Quote
  #4   Spotlight this post!  
Unread 21-01-2012, 15:33
mryfrmr's Avatar
mryfrmr mryfrmr is offline
Registered User
AKA: Mary Farmer
FRC #0191 (XCATS)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: rochester
Posts: 7
mryfrmr is an unknown quantity at this point
Re: Trouble reading Kinect values from robot

We are also seeing the same behavior. The getY() method on the KinectStick continually returns 0 even though in the driver station we see that the skeleton is getting Y values. We are using java, and a Dell windows 7 driver station. Everything else is working well, camera, drives, normal joysticks etc.
Reply With Quote
  #5   Spotlight this post!  
Unread 21-01-2012, 23:23
uofifox uofifox is offline
Registered User
FRC #2202
 
Join Date: Oct 2011
Location: Wisconsin
Posts: 2
uofifox is an unknown quantity at this point
Re: Trouble reading Kinect values from robot

We are also having issues with the kinect. We are getting the skeleton and we're using C++. We've setup the server and run the debug for the server. Everything seems to work fine, but the robot is not getting values from the kinect.

It all seems to work fine except that the information isn't being sent to the robot. We've even tried to use the kinect object to just get if there is 1 person in the field of view, and we know that something isn't right because the ds is showing data.
Reply With Quote
  #6   Spotlight this post!  
Unread 23-01-2012, 17:43
Lapuz.geek Lapuz.geek is offline
Registered User
AKA: James Lapuz
FRC #0467
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Massachusetts
Posts: 3
Lapuz.geek is an unknown quantity at this point
Re: Trouble reading Kinect values from robot

An update from Team 467:
We tried using our old driverstation: a 2go pc running windows 7
it is running the same software as our newer dell
it worked and it did not give us any bad retval
we are currently trying to find a difference between the two systems
Reply With Quote
  #7   Spotlight this post!  
Unread 23-01-2012, 20:23
eddie12390's Avatar
eddie12390 eddie12390 is offline
Registered User
AKA: Eddie
FRC #3260 (SHARP)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Pittsburgh
Posts: 285
eddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of light
Re: Trouble reading Kinect values from robot

I thought it was said that finding the "joystick" values had not yet been implemented and that the teams would have to do so on their own?
Reply With Quote
  #8   Spotlight this post!  
Unread 24-01-2012, 08:00
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,817
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: Trouble reading Kinect values from robot

Try installing Visual Studio C# (the Classmate has that).
There may be some required dependencies.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #9   Spotlight this post!  
Unread 24-01-2012, 16:27
McInally467 McInally467 is offline
Registered User
FRC #0467
 
Join Date: Jan 2012
Location: Shrewsbury, MA
Posts: 2
McInally467 is an unknown quantity at this point
Re: Trouble reading Kinect values from robot

We have installed Visual C# to no avail.
Reply With Quote
  #10   Spotlight this post!  
Unread 24-01-2012, 17: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: Trouble reading Kinect values from robot

Our team is having this problem, too, but we're using LabVIEW. We're using the Classmate, so it should have visual C# on it. The driver station sees everything fine, but no information reaches the robot.
Reply With Quote
  #11   Spotlight this post!  
Unread 26-01-2012, 11:16
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,817
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: Trouble reading Kinect values from robot

Okay, FIRST thinks that the issue is 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

Last edited by Mark McLeod : 26-01-2012 at 18:37.
Reply With Quote
  #12   Spotlight this post!  
Unread 26-01-2012, 18:24
McInally467 McInally467 is offline
Registered User
FRC #0467
 
Join Date: Jan 2012
Location: Shrewsbury, MA
Posts: 2
McInally467 is an unknown quantity at this point
Smile Re: Trouble reading Kinect values from robot

Hallelujah!! Changing it to compatible mode worked. Thank you for solving our week long problem. Much appreciated.
Reply With Quote
  #13   Spotlight this post!  
Unread 26-01-2012, 20:01
Lapuz.geek Lapuz.geek is offline
Registered User
AKA: James Lapuz
FRC #0467
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Massachusetts
Posts: 3
Lapuz.geek is an unknown quantity at this point
Re: Trouble reading Kinect values from robot

The change to compatibility mode gave us access to the getY() method from the class KinectStick but not the getX() method
Reply With Quote
  #14   Spotlight this post!  
Unread 26-01-2012, 20:08
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: Trouble reading Kinect values from robot

Quote:
Originally Posted by Lapuz.geek View Post
The change to compatibility mode gave us access to the getY() method from the class KinectStick but not the getX() method
As detailed in the Getting Started with the Microsoft Kinect for FRC document, there is no gesture mapped to the X-axis in the FRC Kinect Server. If you want something on this axis, you will have to edit the Kinect Server C# code.
Reply With Quote
  #15   Spotlight this post!  
Unread 28-01-2012, 22:18
mryfrmr's Avatar
mryfrmr mryfrmr is offline
Registered User
AKA: Mary Farmer
FRC #0191 (XCATS)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: rochester
Posts: 7
mryfrmr is an unknown quantity at this point
This worked for us too, we now see getY. Thank you!


---
I am here: http://maps.google.com/maps?ll=43.264436,-77.617103
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 13:14.

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