Go to Post Duh! Sometimes the simplest answers are the best ones! - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 14-01-2017, 11:43
Blasting's Avatar
Blasting Blasting is offline
"That Guy"
FRC #1225 (Gorillas)
Team Role: Programmer
 
Join Date: Feb 2016
Rookie Year: 2015
Location: Hendersonville
Posts: 6
Blasting is an unknown quantity at this point
GRIP Generated code

Our team (1225 Gorillas) is new to vision tracking this year. When I imported code generated by GRIP (C++) I get errors from missing #includes (<opencv2/contrib/contrib.hpp>, and "VisionPipeline.h") as well as "expected class-name before '{' token" at "class GripPipeline: public VisionPipeline {". Any ideas? I've updated, used a fresh chroot, messing with formatting, and our Windows machine. I'm running Ubuntu Xenial.
Reply With Quote
  #2   Spotlight this post!  
Unread 14-01-2017, 11:57
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: GRIP Generated code

If you're generating code and selecting "Implement WPILib VisionPipeline", you need to be generating the code into an Eclipse robot project. So the save directory would be something like ~/workspace/robot2017/src/
__________________
WPILib
GRIP, RobotBuilder
Reply With Quote
  #3   Spotlight this post!  
Unread 15-01-2017, 12:03
Blasting's Avatar
Blasting Blasting is offline
"That Guy"
FRC #1225 (Gorillas)
Team Role: Programmer
 
Join Date: Feb 2016
Rookie Year: 2015
Location: Hendersonville
Posts: 6
Blasting is an unknown quantity at this point
Re: GRIP Generated code

Thanks Sam, I still needed to edit some of the generated code so it would build but we're up and running now!
Reply With Quote
  #4   Spotlight this post!  
Unread 15-01-2017, 12:21
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: GRIP Generated code

What code did you have to change?
__________________
WPILib
GRIP, RobotBuilder
Reply With Quote
  #5   Spotlight this post!  
Unread 16-01-2017, 10:00
Blasting's Avatar
Blasting Blasting is offline
"That Guy"
FRC #1225 (Gorillas)
Team Role: Programmer
 
Join Date: Feb 2016
Rookie Year: 2015
Location: Hendersonville
Posts: 6
Blasting is an unknown quantity at this point
Re: GRIP Generated code

I remove the inclusion of <opencv/contrib/contrib.hpp> because there is no opencv/contrib folder.

I changed the inclusion of "VisionPipeline" to "vision/VisionRunner.h" to fix "Symbol 'VisionPipeline' could not be resolved GripPipeline.h line 25"

I commented out the setsource0() function, this solved various issues and doesn't appear to make any.

Lastly I had to add cv:: to a SimpleBlobDetecter::create() call near the end of GripPipeline.cpp.
If you need any logs, the generated and modified files, or any version numbers just ask.
Reply With Quote
  #6   Spotlight this post!  
Unread 16-01-2017, 12:31
tkdberger's Avatar
tkdberger tkdberger is offline
SPAAACE
AKA: Edwan Vi
FRC #3494 (Quadrangles)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2016
Location: Bloomington, IN
Posts: 26
tkdberger is an unknown quantity at this point
Question Re: GRIP Generated code

How and where are you calling your pipeline? I've been screaming at my vision code for a while now.
Reply With Quote
  #7   Spotlight this post!  
Unread 01-02-2017, 13:32
egaudet's Avatar
egaudet egaudet is offline
Registered User
FRC #4917 (Sir Lancerbot)
Team Role: Mentor
 
Join Date: Nov 2016
Rookie Year: 2012
Location: Ontario, Canada
Posts: 4
egaudet is on a distinguished road
Re: GRIP Generated code

I had the same problems. I was building C++ code with "Implement WPILib VisionPipeline" checked (I think it's supposed to be checked) and I got the include errors.

I updated to the latest version of GRIP (1.5.2) and regenerated the code and now it builds without any editing.

Next step, figure out how to make it work.
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:31.

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