Go to Post Truly good teasers should give people a good place to start guessing, while still leaving some mystery and uncertainty. - Travis Covington [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 5 votes, 4.20 average. Display Modes
  #31   Spotlight this post!  
Unread 25-01-2016, 15:09
pnitin pnitin is offline
Registered User
no team
 
Join Date: Oct 2015
Location: USA
Posts: 14
pnitin is infamous around these partspnitin is infamous around these parts
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-
Reply With Quote
  #32   Spotlight this post!  
Unread 25-01-2016, 15:17
Fauge7 Fauge7 is offline
Head programmer
FRC #3019 (firebird robotics)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Scottsdale
Posts: 195
Fauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to all
Re: Tower Tracker 1.0

Quote:
Originally Posted by pnitin View Post
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-
if your trying to advertise atleast make sure the link works...
Reply With Quote
  #33   Spotlight this post!  
Unread 25-01-2016, 16:47
FleventyFive FleventyFive is offline
Registered User
FRC #4118
 
Join Date: Sep 2014
Location: Gainesville, FL
Posts: 23
FleventyFive is on a distinguished road
Re: Tower Tracker 1.0

Quote:
Originally Posted by Fauge7 View Post
why are you trying to run it on a jetson or something else...
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.
Reply With Quote
  #34   Spotlight this post!  
Unread 25-01-2016, 16:58
FleventyFive FleventyFive is offline
Registered User
FRC #4118
 
Join Date: Sep 2014
Location: Gainesville, FL
Posts: 23
FleventyFive is on a distinguished road
Re: Tower Tracker 1.0

Quote:
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
You, sir, just made my day. Been trying to figure out how to build a more up-to-date version of OpenCV for two days now, and realized I have no idea what I'm doing. You RobotPy people really rock.

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.
Reply With Quote
  #35   Spotlight this post!  
Unread 25-01-2016, 17:30
1024Programming 1024Programming is offline
Registered User
FRC #1024
 
Join Date: Jan 2014
Location: Indiana
Posts: 43
1024Programming is an unknown quantity at this point
Re: Tower Tracker 1.0

Can this work with usb cameras?
Reply With Quote
  #36   Spotlight this post!  
Unread 25-01-2016, 18:36
Turing'sEgo Turing'sEgo is offline
Registered User
no team
 
Join Date: Jan 2016
Rookie Year: 2010
Location: Boulder
Posts: 48
Turing'sEgo is on a distinguished road
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");
Reply With Quote
  #37   Spotlight this post!  
Unread 25-01-2016, 19:18
Fauge7 Fauge7 is offline
Head programmer
FRC #3019 (firebird robotics)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Scottsdale
Posts: 195
Fauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to all
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.
Reply With Quote
  #38   Spotlight this post!  
Unread 26-01-2016, 18:54
pnitin pnitin is offline
Registered User
no team
 
Join Date: Oct 2015
Location: USA
Posts: 14
pnitin is infamous around these partspnitin is infamous around these parts
Re: Tower Tracker 1.0

Quote:
Originally Posted by Fauge7 View Post
if your trying to advertise atleast make sure the link works...
http://www.mindsensors.com/blog/how-...our-frc-robot-
Reply With Quote
  #39   Spotlight this post!  
Unread 02-02-2016, 19:04
MekhiThomas MekhiThomas is offline
Registered User
FRC #3929
 
Join Date: Feb 2016
Location: Philadelphia, PA
Posts: 1
MekhiThomas is an unknown quantity at this point
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.
Reply With Quote
  #40   Spotlight this post!  
Unread 03-02-2016, 18:29
KaiFukuyama KaiFukuyama is offline
Registered User
FRC #4327 (Q Branch)
Team Role: Programmer
 
Join Date: Feb 2016
Rookie Year: 2015
Location: Battle Creek, MI
Posts: 2
KaiFukuyama is an unknown quantity at this point
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.
Attached Thumbnails
Click image for larger version

Name:	unnamed.png
Views:	65
Size:	105.6 KB
ID:	19961  
Reply With Quote
  #41   Spotlight this post!  
Unread 03-02-2016, 18:36
Fauge7 Fauge7 is offline
Head programmer
FRC #3019 (firebird robotics)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Scottsdale
Posts: 195
Fauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to all
Re: Tower Tracker 1.0

Quote:
Originally Posted by MekhiThomas View Post
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!
If its having problems with the ffmpeg you need to download opencv and follow my instructions at the top of this thread. I decribe what you have to do after installing it. As for the microsoft usb camera you have to use whats called mjpeg streamer. It takes a usb webcam and outputs the feed to a web page in which you can call later.

Quote:
Originally Posted by KaiFukuyama View Post
[font="Times New Roman"]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 also added the DLL file in Open CV folder to system 32.
Did you extract the program into a runnable jar and then put it in a folder with the files similar to the screenshot i included?
Reply With Quote
  #42   Spotlight this post!  
Unread 04-02-2016, 07:41
KaiFukuyama KaiFukuyama is offline
Registered User
FRC #4327 (Q Branch)
Team Role: Programmer
 
Join Date: Feb 2016
Rookie Year: 2015
Location: Battle Creek, MI
Posts: 2
KaiFukuyama is an unknown quantity at this point
Re: Tower Tracker 1.0

Quote:
Originally Posted by Fauge7 View Post
If its having problems with the ffmpeg you need to download opencv and follow my instructions at the top of this thread. I decribe what you have to do after installing it. As for the microsoft usb camera you have to use whats called mjpeg streamer. It takes a usb webcam and outputs the feed to a web page in which you can call later.



Did you extract the program into a runnable jar and then put it in a folder with the files similar to the screenshot i included?
We figured out what the problem was with why it won't run. We needed to put the Open CV jar file in with system 32.
Reply With Quote
  #43   Spotlight this post!  
Unread 05-02-2016, 01:01
Fauge7 Fauge7 is offline
Head programmer
FRC #3019 (firebird robotics)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Scottsdale
Posts: 195
Fauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to all
Re: Tower Tracker 1.0

Quote:
Originally Posted by KaiFukuyama View Post
We figured out what the problem was with why it won't run. We needed to put the Open CV jar file in with system 32.
that or you put it in the same folder like i have...Cheers on getting it to work!
Reply With Quote
  #44   Spotlight this post!  
Unread 05-02-2016, 16:18
SlittyEyes SlittyEyes is offline
Registered User
FRC #3929
 
Join Date: Jan 2015
Location: Philadelphia
Posts: 3
SlittyEyes is an unknown quantity at this point
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?
Reply With Quote
  #45   Spotlight this post!  
Unread 08-02-2016, 21:33
Fauge7 Fauge7 is offline
Head programmer
FRC #3019 (firebird robotics)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Scottsdale
Posts: 195
Fauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to all
Re: Tower Tracker 1.0

Quote:
Originally Posted by SlittyEyes View Post
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?
Before checking you need to make sure your program connects to the network tables on the robot. Here is what you can do to ensure that it will connect before it does the vision processing.

Code:
while(!NetworkTable.isConnected()){}
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 15:13.

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