![]() |
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? |
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? |
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.
|
Re: Data from GRIP not available in Java Code
What is GRIP running on?
Can you share a screenshot of your pipeline? |
Re: Data from GRIP not available in Java Code
|
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?
|
Re: Data from GRIP not available in Java Code
|
Re: Data from GRIP not available in Java Code
PHP Code:
PHP Code:
|
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? |
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. |
| All times are GMT -5. The time now is 07:25. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi