|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
GRIP C++ issues
Hi everyone, my team has gotten GRIP to work running on the driver station laptop to the point that we are getting values in the Network Tables Outline Viewer. I tried using the code on WPIlib screensteps, but it didn't work. We did a little experimentation, and we found out that the size of any vector/array we access (area, centerX, etc.) has a size of zero, even if there are values in Outline Viewer. We were wondering if anyone has had this same problem, and if anyone knows how to fix it. Thank you for any help!
Edit: After some testing, I found that I can access the sub-table "myContoursReport", but I can't access any of the keys in the subtable. Last edited by CurlyFries : 16-02-2016 at 17:23. |
|
#2
|
|||
|
|||
|
Re: GRIP C++ issues
What steps did you use. Try both of these.
https://github.com/WPIRoboticsProjec...board/releases https://github.com/WPIRoboticsProjec...EW-FRC-program Don't know if this is what you are asking about or not but the Publish video should send info to your driver station. |
|
#3
|
|||
|
|||
|
Re: GRIP C++ issues
Thank you, but that's not exactly what I'm looking for. I'm trying to access the values from network tables, and I'm using the examples provided, making a NetworkTable object and using GetNumberArray->, but when I check the size of the array I'm accessing, it says the size is zero, even if there are values in outline viewer.
|
|
#4
|
||||
|
||||
|
Re: GRIP C++ issues
Is outlineviewer running in server or client mode? If GRIP is connecting to outlineviewer as the server instead of the robot as the server, that would explain it.
|
|
#5
|
|||
|
|||
|
Re: GRIP C++ issues
I'm running GRIP on the laptop, not the robot. Does this change anything? It's running in server mode right now.
Last edited by CurlyFries : 16-02-2016 at 18:07. |
|
#6
|
||||
|
||||
|
Re: GRIP C++ issues
Not really. For testing without a RIO, you can run outlineviewer in server mode, but for actually running it, make sure your roborio is the NetworkTables Server Address (tools > settings), and run outlineviewer in client mode.
|
|
#7
|
|||
|
|||
|
Re: GRIP C++ issues
Thank you! We set the network table server IP in GRIP to the roborio, and we're getting the keys now! Thank you again for your help!
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|