|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Data from GRIP not available in Java Code
I've been using a roboRIO and trying to get a Contour Report from GRIP into my code. GRIP works well enough; data comes from it and into the Network Table viewer (I can see all of the data in the Network Table Viewer!). Once I attempt to get the data from the NetworkTable into my code, it does not work.
What I've tried (in teleopPeriodic) given table=NetworkTable.getTable("GRIP/myCountoursReport")):
Do you have any advice for how I can fix this problem, or any other diagnostic steps you may need? |
|
#2
|
||||
|
||||
|
Re: Data from GRIP not available in Java Code
Is OutlineViewer in client mode or server mode?
What is the NetworkTables server address in GRIP? |
|
#3
|
|||
|
|||
|
Re: Data from GRIP not available in Java Code
The OutlineViewer is in client mode and the NetworkTables server address is roborio-224-frc.local. GRIP deploys fine, and the data is correct in the OutlineViewer, but I can't import any NetworkTables.
Last edited by moomoomoo309 : 27-01-2016 at 14:46. |
|
#4
|
||||
|
||||
|
Re: Data from GRIP not available in Java Code
What is GRIP running on?
Can you share a screenshot of your pipeline? |
|
#6
|
||||
|
||||
|
Re: Data from GRIP not available in Java Code
Everything seems OK from the GRIP side of things. Can you post a link to your full robot code?
|
|
#7
|
|||
|
|||
|
Re: Data from GRIP not available in Java Code
|
|
#8
|
||||
|
||||
|
Re: Data from GRIP not available in Java Code
PHP Code:
PHP Code:
|
|
#9
|
|||
|
|||
|
Re: Data from GRIP not available in Java Code
Thank you, that fixed it. It's always the simple mistakes that get us.
On a side note, why did "NetworkTable.getTable("GRIP").getKeys()" return an empty set? Shouldn't it have "myContoursReport" in it? |
|
#10
|
||||
|
||||
|
Re: Data from GRIP not available in Java Code
getKeys() returns the set of values directly inside the GRIP table. I don't think it include subtables.
getSubTables() is probably what you're looking for. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|