|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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.
|
|
#2
|
||||
|
||||
|
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/
|
|
#3
|
||||
|
||||
|
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!
|
|
#4
|
||||
|
||||
|
Re: GRIP Generated code
What code did you have to change?
|
|
#5
|
||||
|
||||
|
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. |
|
#6
|
||||
|
||||
|
How and where are you calling your pipeline? I've been screaming at my vision code for a while now.
|
|
#7
|
||||
|
||||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|