|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools |
Rating:
|
Display Modes |
|
#16
|
|||
|
|||
|
Re: Tower Tracker 1.0
Also interested in running this on RoboRio and in C++. Anyone have any luck compiling a C++ WPIlib robot program with some opencv in it? If so, I'd love to hear how you did it.
|
|
#17
|
|||
|
|||
|
Re: Tower Tracker 1.0
Thanks for sharing that! How did you get the opencv libraries onto the roborio? I've been having some trouble with that
|
|
#18
|
|||
|
|||
|
Re: Tower Tracker 1.0
wow! Amazing!
I just wish that we had something like that in labview :/ |
|
#19
|
||||
|
||||
|
Re: Tower Tracker 1.0
Quote:
Ideally, I'd love to see this processed on board with a raspberry pi or arduino board, but that's version 2.0 stuff. |
|
#20
|
|||
|
|||
|
Re: Tower Tracker 1.0
It works with labview! all you have to do is output to a network table, and from there you can get the values in labview.
|
|
#21
|
||||
|
||||
|
Re: Tower Tracker 1.0
Nicely done.
So how would you use this to get the values of the contours? Lets say I want my robot to "auto" shoot when the contours are a specific dimension. Anyway I can do that with this ? Thanks. |
|
#22
|
|||
|
|||
|
Re: Tower Tracker 1.0
Quote:
essentially you need to find the amount that your shooter can be off (tolerance) while still "scoring", for instance it can make it anywhere from 6-8 feet from the goal. Then you need to make sure your robot keeps driving until it is somewhere between that tolerance and then it can start its fire sequence. I would recommend looking into a pid drive system for that, its a closed loop drive that would work nicely with this. |
|
#23
|
||||
|
||||
|
Re: Tower Tracker 1.0
Quote:
Quote:
|
|
#24
|
|||
|
|||
|
Re: Tower Tracker 1.0
Quote:
Greg McKaskle |
|
#25
|
||||
|
||||
|
Re: Tower Tracker 1.0
When trying to run the program on the Jetson TK1, I get the error
Code:
java.lang.UnsatisfiedLinkError: no libopencv_java2410 in java.library.path Thank you! -Chris Last edited by TheGuyWhoCodes : 23-01-2016 at 17:16. |
|
#26
|
|||
|
|||
|
Re: Tower Tracker 1.0
In case anyone is still daring to try to do vision on the Rio, and wants to put it right in their normal C++ project, I was able to (finally) get opencv to build for ARM and integrate into a WPILib project. Been unable to test on a Rio so far, but at least it builds. Here's an example project with the special opencv build and a file (BuildOpenCV.txt) explaining how to set it up. Was a big PIA for me, so thought i'd leave notes on the steps I went through. You can just throw in your own source files into the project, but make sure to delete/comment out the line #define REAL in WPILib.h, as it creates some conflict of OPENCV. Okay it's 3 a.m I should go to sleep now.
|
|
#27
|
|||
|
|||
|
Re: Tower Tracker 1.0
Quote:
|
|
#28
|
|||
|
|||
|
Re: Tower Tracker 1.0
Nevermind, I have no idea what I'm doing.
|
|
#29
|
|||
|
|||
|
Re: Tower Tracker 1.0
why are you trying to run it on a jetson or something else...
|
|
#30
|
||||
|
||||
|
Re: Tower Tracker 1.0
FYI, anyone looking for a precompiled version of opencv 3.1 for the roboRIO, the robotpy project has had one available since before build season. Works with C++, Java, and Python 2/3 -- very easy to install the shared libraries on the roboRIO through our opkg repo.
https://github.com/robotpy/roborio-opencv |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|