Go to Post My suggestion is to first focus in on your drive base. Get it running, and drive it into the ground and see what breaks. Then fix it. Rinse wash and repeat. - Andy A. [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 15-02-2016, 21:19
CurlyFries CurlyFries is offline
Registered User
AKA: Troy Martin
FRC #2512 (Duluth East Daredevils)
Team Role: Programmer
 
Join Date: Oct 2015
Rookie Year: 2014
Location: Duluth, MN
Posts: 22
CurlyFries is an unknown quantity at this point
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   Spotlight this post!  
Unread 15-02-2016, 21:36
joeojazz joeojazz is offline
Registered User
FRC #5712
 
Join Date: Jan 2016
Location: Hemlock
Posts: 42
joeojazz is an unknown quantity at this point
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   Spotlight this post!  
Unread 15-02-2016, 21:51
CurlyFries CurlyFries is offline
Registered User
AKA: Troy Martin
FRC #2512 (Duluth East Daredevils)
Team Role: Programmer
 
Join Date: Oct 2015
Rookie Year: 2014
Location: Duluth, MN
Posts: 22
CurlyFries is an unknown quantity at this point
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   Spotlight this post!  
Unread 16-02-2016, 17:23
ThomasClark's Avatar
ThomasClark ThomasClark is offline
Registered User
FRC #0237
 
Join Date: Dec 2012
Location: Watertown, CT
Posts: 146
ThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud of
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.
__________________
GRIP (Graphically Represented Image Processing) - rapidly develop computer vision algorithms for FRC
  #5   Spotlight this post!  
Unread 16-02-2016, 18:03
CurlyFries CurlyFries is offline
Registered User
AKA: Troy Martin
FRC #2512 (Duluth East Daredevils)
Team Role: Programmer
 
Join Date: Oct 2015
Rookie Year: 2014
Location: Duluth, MN
Posts: 22
CurlyFries is an unknown quantity at this point
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   Spotlight this post!  
Unread 16-02-2016, 18:08
ThomasClark's Avatar
ThomasClark ThomasClark is offline
Registered User
FRC #0237
 
Join Date: Dec 2012
Location: Watertown, CT
Posts: 146
ThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud of
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.
__________________
GRIP (Graphically Represented Image Processing) - rapidly develop computer vision algorithms for FRC
  #7   Spotlight this post!  
Unread 16-02-2016, 18:16
CurlyFries CurlyFries is offline
Registered User
AKA: Troy Martin
FRC #2512 (Duluth East Daredevils)
Team Role: Programmer
 
Join Date: Oct 2015
Rookie Year: 2014
Location: Duluth, MN
Posts: 22
CurlyFries is an unknown quantity at this point
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!
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 01:32.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi