View Single Post
  #1   Spotlight this post!  
Unread 09-02-2016, 23:20
Kevin K Kevin K is offline
Registered User
FRC #4541 (CAV-ineers)
Team Role: Programmer
 
Join Date: Feb 2016
Rookie Year: 2013
Location: Severn, MD
Posts: 6
Kevin K is an unknown quantity at this point
GRIP and NetworkTables settings for use with a co-processor

My team has successfully written an algorithm to consistently find this year's targets in GRIP. However, for whatever reason we are unable to transmit contour information to our program on the roboRIO. I essentially copied our code line for line from the Java examples on ScreenstepsLive and the GRIP github page, with minor tweaks in order to access the variables we care about. Our GRIP related code is as follows:
In constructor:
table = NetworkTable.getTable("GRIP/myContoursReport");
In operatorControl:
targetWidth = table.getNumber("width", 0);
When we run our program, the default value of zero is always returned. We run GRIP on a separate laptop(we eventually hope to use a Kangaroo on our robot, but it has not arrived yet). In GRIP I have set the NetworkTables server address as roborio-4541-frc.local, and we can view all of the contour information on our main laptop using OutlineViewer in client mode with the server at the same address. I tried running our code as a client as well, but recieved an error stating that there was already an instance of NetworkTables running. This is our first year using NetworkTables, so I do not have the required knowledge to troubleshoot this problem any further on my own(I've already spent a good 2-3 meetings working on this). Any help or advice anyone could give would be much appreciated.