Go to Post It isn't what you're given that makes it awesome. It's what you do with it. - JosephC [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 21-01-2017, 11:28
Cybercats2872 Cybercats2872 is online now
Registered User
FRC #2872
 
Join Date: Jan 2017
Location: Roslyn Heights, NY
Posts: 7
Cybercats2872 is an unknown quantity at this point
GRIP Full of Errors

I exported my GRIP stuff into a Java file (I'm not even sure I did it right, it only exports a .java so I copy pasted the text in that file into a class in Eclipse)

The code is riddled with errors, I'm the only programmer on my team and I'm struggling to understand what the issue is.

It's the standard GRIP code, I have an HSV Threshold, a mask, and a blob finder. In the Java code, lots of objects like VisionPipeline, Mat, and MatOfKeyPoint (and many more) are being flagged as nonexistent. What could be the issue?

Thanks!!!
Reply With Quote
  #2   Spotlight this post!  
Unread 21-01-2017, 12:25
SamCarlberg's Avatar
SamCarlberg SamCarlberg is online now
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: GRIP Full of Errors

Sounds like the Eclipse project isn't a WPILib robot project, which explains how it can't find all those libraries
__________________
WPILib
GRIP, RobotBuilder
Reply With Quote
  #3   Spotlight this post!  
Unread 21-01-2017, 14:05
Cybercats2872 Cybercats2872 is online now
Registered User
FRC #2872
 
Join Date: Jan 2017
Location: Roslyn Heights, NY
Posts: 7
Cybercats2872 is an unknown quantity at this point
Re: GRIP Full of Errors

It is a WPLib and it recognizes many other objects such as Joysticks, just not anything from GRIP. Any ideas??
Reply With Quote
  #4   Spotlight this post!  
Unread 21-01-2017, 16:33
SamCarlberg's Avatar
SamCarlberg SamCarlberg is online now
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: GRIP Full of Errors

VisionPipeline is new in WPILib this year. Have you updated the Eclipse plugins?
__________________
WPILib
GRIP, RobotBuilder
Reply With Quote
  #5   Spotlight this post!  
Unread 21-01-2017, 17:15
dmelcer9 dmelcer9 is offline
Registered User
AKA: Daniel
FRC #0810 (Mechanical Bulls)
Team Role: Leadership
 
Join Date: Dec 2015
Rookie Year: 2012
Location: Smithtown
Posts: 51
dmelcer9 is an unknown quantity at this point
Re: GRIP Full of Errors

Also for some reason we had to to this manually- make sure that opencv and cscore are included libraries. If you go to project properties > Java Build Path > Libraries, then "Add External JARs", select opencv and cscore in ~/wpilib/java/current/lib, that might solve the issue.
Reply With Quote
  #6   Spotlight this post!  
Unread 21-01-2017, 19:17
RushAHead RushAHead is offline
President and Pun-Master
FRC #3103 (Iron Plaid)
Team Role: Electrical
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Texas
Posts: 7
RushAHead is an unknown quantity at this point
Re: GRIP Full of Errors

We do C++, but it's still in Eclipse.

Did you export your code to Eclipse or copy in the code from a separate file? I had an issue earlier today with an imported file being corrupt and not recognizing anything (also refusing to even consider building), so I copied and pasted into a new project created from a random WPI-provided sample project.

In the new file, make sure your includes follow actual paths. You'll probably have to comment out/ remove the "#include <opencv2/contrib/contrib.hpp" unless you can find the folder. I was unable to, and commenting it out seems to have worked.
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 13:16.

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