|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools |
Rating:
|
Display Modes |
|
#31
|
|||
|
|||
|
Re: Tower Tracker 1.0
you can do this on $35 Raspberry pi and save critical RoboRio resources
see this Look here for tracking shronghold goalpost http://www.mindsensors.com/blog/how-...our-frc-robot- |
|
#32
|
|||
|
|||
|
Re: Tower Tracker 1.0
Quote:
|
|
#33
|
|||
|
|||
|
Re: Tower Tracker 1.0
I'm still gonna try to see what I can do with the Rio. I just have no idea what I'm doing when it comes to cross compiling huge C++ projects and make files and shared libraries and all of that stuff.
|
|
#34
|
|||
|
|||
|
Re: Tower Tracker 1.0
Quote:
Now, would you be willing to help me setup my build environment for cross compiling an OpenCV program in C++ that will use the shared libs on the RoboRio (preferably in Eclipse)? EDIT: Information on setting up build environment is avaible on the latest release on gituhub. Wow, that was easy! Last edited by FleventyFive : 25-01-2016 at 17:32. |
|
#35
|
|||
|
|||
|
Re: Tower Tracker 1.0
Can this work with usb cameras?
|
|
#36
|
|||
|
|||
|
Re: Tower Tracker 1.0
*My java opencv is a little rusty*
Here is how you use a use camera with the opencv libraries and store the image in the data type Mat. VideoCapture camera = new VideoCapture(0); Mat frame = new Mat(); camera.read(frame); instead of videoCapture = new VideoCapture(); //replaces the ##.## with your team number videoCapture.open("http://10.##.##.11/mjpg/video.mjpg"); |
|
#37
|
|||
|
|||
|
Re: Tower Tracker 1.0
Yes, if you are going to use a usb webcam I would recommend mjpeg streamer and running it off of the driverstation.
|
|
#38
|
|||
|
|||
|
Re: Tower Tracker 1.0
|
|
#39
|
|||
|
|||
|
Re: Tower Tracker 1.0
My team is trying to use your code to test our vision but every time we run the executable JAR file we get two errors-
"Error opening file </build/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:578>" and when we try to use the network table, we get the error "NT: Error: could not resolve roborio-3929.local address <TCPConnecotr.cpp:93>". We've installed opencv 3.1 and we are able to stream camera output to the dashboard. We are using the microsoft livecam 3000. Any help would be appreciated. Thanks! Last edited by MekhiThomas : 02-02-2016 at 19:20. |
|
#40
|
|||
|
|||
|
Re: Tower Tracker 1.0
My robotics team is also getting the same error that everyone else is. When we try and run it in the command prompt is gives us the error that it is having a hard time with having Open CV in the library. It can't find it but it is in there. Any ideas on how to fix it? We followed the directions as it said and nothing works. We also added the DLL file in Open CV folder to system 32. I included a screenshot of the error we were getting. Please help.
|
|
#41
|
|||
|
|||
|
Re: Tower Tracker 1.0
Quote:
Quote:
|
|
#42
|
|||
|
|||
|
Re: Tower Tracker 1.0
Quote:
|
|
#43
|
|||
|
|||
|
Re: Tower Tracker 1.0
that or you put it in the same folder like i have...Cheers on getting it to work!
|
|
#44
|
|||
|
|||
|
Re: Tower Tracker 1.0
I modified the code to output distance values to the network table. When I add code to put the distance value on the dashboard, no values show up. Also, when I use the OutlineViewer to check any networktable values (with the localhost as "roboRIO-3929-FRC.local"), nothing shows up except the Root folder. Did you get the network table to work?
|
|
#45
|
|||
|
|||
|
Re: Tower Tracker 1.0
Quote:
Code:
while(!NetworkTable.isConnected()){}
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|