Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   GRIP Generated code (http://www.chiefdelphi.com/forums/showthread.php?t=153631)

Blasting 14-01-2017 11:43

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.

SamCarlberg 14-01-2017 11:57

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/

Blasting 15-01-2017 12:03

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!

SamCarlberg 15-01-2017 12:21

Re: GRIP Generated code
 
What code did you have to change?

Blasting 16-01-2017 10:00

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.

tkdberger 16-01-2017 12:31

Re: GRIP Generated code
 
How and where are you calling your pipeline? I've been screaming at my vision code for a while now.

egaudet 01-02-2017 13:32

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.


All times are GMT -5. The time now is 13:31.

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