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")):
- Printing out table.getKeys() (which is empty)
- Checking if a given index (I.E area) exists (table.containsKey("area") was false)
- Publishing a different number into the GRIP table and trying to get that (put the framerate into the table, NetworkTable.getTable("GRIP").getNumber("myNumber" ,Double.NaN) returns NaN)
Do you have any advice for how I can fix this problem, or any other diagnostic steps you may need?