Go to Post Tell someone familiar with FIRST that you won a regional and they will congratulate you, tell them you won a chairmans award and they will celebrate you. - Brandon Holley [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 17-01-2017, 18:26
MoSadie's Avatar
MoSadie MoSadie is offline
Registered User
AKA: Sean
FRC #4450
 
Join Date: Jan 2017
Rookie Year: 2012
Location: Olympia
Posts: 3
MoSadie is an unknown quantity at this point
Generated GRIP code not working as expected.

My team is experimenting with GRIP's generate code feature and we are having some problems with the data we are getting back. While running the pipeline on my computer gives the data we expect, the generated code is returning different numbers at the same time. Here is the pipeline that was generated and here is where we are calling it from.
Reply With Quote
  #2   Spotlight this post!  
Unread 17-01-2017, 19:22
SamCarlberg's Avatar
SamCarlberg SamCarlberg is offline
GRIP, WPILib. 2084 alum
FRC #2084
Team Role: Mentor
 
Join Date: Nov 2015
Rookie Year: 2009
Location: MA
Posts: 136
SamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to behold
Re: Generated GRIP code not working as expected.

How different are the numbers? They won't be exactly the same that you see in GRIP, but should be pretty close.

Also, this line will throw an exception and cause your robot to crash if no contours are found. You need to check the number of contours before trying to use them.
__________________
WPILib
GRIP, RobotBuilder
Reply With Quote
  #3   Spotlight this post!  
Unread 17-01-2017, 20:25
MoSadie's Avatar
MoSadie MoSadie is offline
Registered User
AKA: Sean
FRC #4450
 
Join Date: Jan 2017
Rookie Year: 2012
Location: Olympia
Posts: 3
MoSadie is an unknown quantity at this point
Re: Generated GRIP code not working as expected.

I ran out of time today to test to give you exact numbers. I will retest the generated code vs the computer pipeline tomorrow to make sure we didn't mess anything up.
Reply With Quote
  #4   Spotlight this post!  
Unread 19-01-2017, 18:55
MoSadie's Avatar
MoSadie MoSadie is offline
Registered User
AKA: Sean
FRC #4450
 
Join Date: Jan 2017
Rookie Year: 2012
Location: Olympia
Posts: 3
MoSadie is an unknown quantity at this point
Re: Generated GRIP code not working as expected.

Nevermind, I realized that we were calling the wrong function. We were calling findCountoursOutput() instead of filterContoursOutput() ... I'm not sure how both our software mentor and I missed that. It's working great now!
Reply With Quote
Reply


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 12:58.

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