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.

What steps did you use. Try both of these.


https://github.com/WPIRoboticsProjects/GRIP/wiki/Tutorial:-Run-GRIP-from-a-CPP,-Java,-or-LabVIEW-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.

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.

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.

I’m running GRIP on the laptop, not the robot. Does this change anything? It’s running in server mode right now.

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.

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!