![]() |
GRIP NetworkTables
I finally was able to pull information from the GRIP NetworkTables but was very disappointed when I only got a static number (area: 1045.5) repeatedly. Even after a reboot of the code the number remained the same. If I take this code out entirely and then run it and then put the code back in and run it then the number changes to whatever the first number from the NetworkTables is, but of course it remains static and repeats itself. My numbers inside the Outline Viewer are constantly changing so I have no idea why this is happening. Here is my code
Code:
package org.usfirst.frc4328.Robot2016.commands; |
Re: GRIP NetworkTables
*crying* Somebody help please. Or at least give a working GRIP example in Java.
|
Re: GRIP NetworkTables
What are you running GRIP on? Laptop? roboRIO? Coprocessor?
Can we see a screenshot of your GRIP program? Are you running outlineviewer in client mode or server mode? |
Quote:
|
Re: GRIP NetworkTables
Make sure your team number is set (Tools > Settings). That way, GRIP knows where to send NetworkTables values to.
Also, the roborio is supposed to run the NetworkTables server, so outlineviewer should be in client mode unless you're testing something without a roborio. |
OK but why would it continue to return a static number repeatedly? And the FRC documentation says I can run it on the laptop. However the documentation hasn't exactly been correct so far BECAUSE THIS IS SO FRUSTRATING sorry I'm fine I swear.
|
Quote:
|
Re: GRIP NetworkTables
Quote:
I'm not sure why it would return a static number. It's possible that you got it deployed once and it put a number in NetworkTables, and now every time you run it's getting that same number back. Fixing the networktables server address should fix this |
Re: GRIP NetworkTables
Ok after a very long amount of time I finally got it to work. You are right, GRIP had to be run from the RIO, and the function of Outline Viewer's server is for anybody wanting to use a coprocessor. The code above was from WPI's official documentation on FIRST's website and it was completely irrelevant. I used the code from GRIP's GitHub page and I overcame the GRIP deployment by manually transferring the jar over with the .grip file. For anybody who is curious as to which jar you have to transfer (deployment is clearly an issue), it is the opencv-frc jar inside of appdata/local.
|
Re: GRIP NetworkTables
Quote:
|
| All times are GMT -5. The time now is 10:24. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi