Go to Post The code won't compile if you violate the rules of the programming language...but English is more robust, it seems to work pretty well no matter how we engineering nerds mangle it! - MrForbes [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-01-2016, 18:17
MikePerreman's Avatar
MikePerreman MikePerreman is offline
Registered User
FRC #0247
 
Join Date: Feb 2015
Location: Michigan
Posts: 46
MikePerreman is an unknown quantity at this point
Programming for vision related things

Hello all, our team has kinda gone through a drought recently, and, consequently, lost our programmers, so, this year id like to try some vision processing. Well, the only problem is the fact that i have no idea, other than some basics, how to go about vision processing. The tools that i have at my disposal are a pi, 4 USB cameras, lights, 2 ip cams, and then the generic electrical things. Also, if you have any way to get multiple camera streams going at once, without the FMS giving us crap on bandwidth limitations, thad be great.

Thanks,
-Mike
Reply With Quote
  #2   Spotlight this post!  
Unread 12-01-2016, 18:21
EDesbiens's Avatar
EDesbiens EDesbiens is offline
Passionate crackpot
AKA: Étienne Desbiens
FRC #5859 (i)
Team Role: College Student
 
Join Date: Apr 2014
Rookie Year: 2013
Location: Canton de Hatley, QC, Canada
Posts: 297
EDesbiens is a glorious beacon of lightEDesbiens is a glorious beacon of lightEDesbiens is a glorious beacon of lightEDesbiens is a glorious beacon of lightEDesbiens is a glorious beacon of lightEDesbiens is a glorious beacon of light
Re: Programming for vision related things

What language are you guys using?
__________________
Lisa: Players play and managers manage.
Ralph: Do alligators alligate?
Reply With Quote
  #3   Spotlight this post!  
Unread 12-01-2016, 18:25
MikePerreman's Avatar
MikePerreman MikePerreman is offline
Registered User
FRC #0247
 
Join Date: Feb 2015
Location: Michigan
Posts: 46
MikePerreman is an unknown quantity at this point
Re: Programming for vision related things

Java is on the RoboRio, however if the pi's gotta be c++, thats how its gonna have to be
Reply With Quote
  #4   Spotlight this post!  
Unread 12-01-2016, 18:42
EDesbiens's Avatar
EDesbiens EDesbiens is offline
Passionate crackpot
AKA: Étienne Desbiens
FRC #5859 (i)
Team Role: College Student
 
Join Date: Apr 2014
Rookie Year: 2013
Location: Canton de Hatley, QC, Canada
Posts: 297
EDesbiens is a glorious beacon of lightEDesbiens is a glorious beacon of lightEDesbiens is a glorious beacon of lightEDesbiens is a glorious beacon of lightEDesbiens is a glorious beacon of lightEDesbiens is a glorious beacon of light
Re: Programming for vision related things

There is a RoboRealm voucher code on TIMS... That software is used to process images...
__________________
Lisa: Players play and managers manage.
Ralph: Do alligators alligate?
Reply With Quote
  #5   Spotlight this post!  
Unread 12-01-2016, 20:40
The Doctor's Avatar
The Doctor The Doctor is offline
Robotics is life
AKA: Hackson
FRC #3216 (MRT)
Team Role: Programmer
 
Join Date: Mar 2014
Rookie Year: 2013
Location: United States
Posts: 155
The Doctor is on a distinguished road
Re: Programming for vision related things

Quote:
Originally Posted by EDesbiens View Post
There is a RoboRealm voucher code on TIMS... That software is used to process images...
IIRC RoboRealm is windows-only.

In any case, vision processing is hard. Not only do you have to have enough usable info from the image, which is battered by changing light conditions and possibly some defensive robots, to be able to distinguish the location, angle, and distance of the target, you also have to make some assumptions about the physics of the situation. The program then has to calculate the trajectory of the ball, aim, and stay aimed as the bot is getting pushed around by defensive robots.

If you have no programming knowledge, it isn't likely that anyone here would have the time to teach you about the intricacies of vision processing. Not to mention that the top teams would likely not share any of this year's vision code (for obvious reasons). Unfortunately, you may be out of luck unless you find some competent programmers and finish in enough time (I'd estimate 2-3 weeks to completely test and perfect a vision solution).

It is for the last reason that our team has never had time to try vision. We usually spend all 6 weeks building, and not enough time practicing and perfecting things like this.
__________________
Robots + Python + pentesting == me;
Blog ~ GitHub ~ Keybase
If you have a pressing issue to discuss with me, kik me at slush.puddles since I don't check CD very often.
Reply With Quote
  #6   Spotlight this post!  
Unread 12-01-2016, 20:55
EDesbiens's Avatar
EDesbiens EDesbiens is offline
Passionate crackpot
AKA: Étienne Desbiens
FRC #5859 (i)
Team Role: College Student
 
Join Date: Apr 2014
Rookie Year: 2013
Location: Canton de Hatley, QC, Canada
Posts: 297
EDesbiens is a glorious beacon of lightEDesbiens is a glorious beacon of lightEDesbiens is a glorious beacon of lightEDesbiens is a glorious beacon of lightEDesbiens is a glorious beacon of lightEDesbiens is a glorious beacon of light
Re: Programming for vision related things

Quote:
Originally Posted by The Doctor View Post
If you have no programming knowledge, it isn't likely that anyone here would have the time to teach you about the intricacies of vision processing.
I would If they were using labview...
__________________
Lisa: Players play and managers manage.
Ralph: Do alligators alligate?
Reply With Quote
  #7   Spotlight this post!  
Unread 13-01-2016, 06:23
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Programming for vision related things

My advice is to use the examples and tutorials for whichever tool/language.

Your first step is to get the camera connected and taking images. Then decide whether you want the drivers to see the images or for the computer to make measurements on the images. If making measurements, what do you want to do with those measurements? Driver, influence something on the robot, etc.

And feel free to ask detailed questions once you decide what you want and get started.
Greg McKaskle
Reply With Quote
  #8   Spotlight this post!  
Unread 13-01-2016, 07:35
iSpotix iSpotix is offline
Registered User
FRC #4049
 
Join Date: Jan 2016
Location: Pittsburgh
Posts: 27
iSpotix is an unknown quantity at this point
Re: Programming for vision related things

I've been messing around with GRIP lately. It's a graphical drag and drop program for vision processing.

https://wpilib.screenstepslive.com/s/4485/m/50711

http://www.chiefdelphi.com/forums/sh...hreadid=141283
Reply With Quote
  #9   Spotlight this post!  
Unread 13-01-2016, 08:19
philso philso is offline
Mentor
FRC #2587
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Houston, Tx
Posts: 938
philso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond repute
Re: Programming for vision related things

If all of your programmers have left the team, your first priority should be to do what it takes to support basic functions like having your robot be able to drive around on the field, pick up some game pieces and transport them securely. If your robot cannot get into scoring position with the game piece, your vision processing will be unnecessary.

My impression is that most teams that are successful in using "advanced techniques" such as vision processing, swerve drive, other holonomic drive systems, learn to use them in the time between competition seasons. In the fall and especially in the month or two before Kickoff, you tend to see the results of many of these off-season learning exercises being posted.

In the next six weeks, you can really only use what you already know and some things that are quick and simple to learn. As others have pointed out, vision processing is not quick and simple to learn.

Last edited by philso : 13-01-2016 at 08:21.
Reply With Quote
  #10   Spotlight this post!  
Unread 13-01-2016, 15:46
MikePerreman's Avatar
MikePerreman MikePerreman is offline
Registered User
FRC #0247
 
Join Date: Feb 2015
Location: Michigan
Posts: 46
MikePerreman is an unknown quantity at this point
Re: Programming for vision related things

i programmed last years bot, so im not a complete newb to this, i just don have the experience of the old programmers. all im aiming for is a system that when a light reflects off the reflective tape, i can run it through and return a true or false, primarily for auton. i just got done with school, so im going to do some trial and error, as i don have an actual bot at the moment. so, its entirely possible that ill get it.

thanks
Reply With Quote
  #11   Spotlight this post!  
Unread 14-01-2016, 21:40
MikePerreman's Avatar
MikePerreman MikePerreman is offline
Registered User
FRC #0247
 
Join Date: Feb 2015
Location: Michigan
Posts: 46
MikePerreman is an unknown quantity at this point
Re: Programming for vision related things

Ok, to EDesbiens, a huge thanks for the pip about roborealm, as now i can identify the "u", i just have some high intensity LEDs (oh wait, neon tube is it? people need to start organizing lights.) set the RGB filter to green, and have an "ideal" for my target. what i hope to be able to do tomorrow (why do mentors need to go home?) is actually track the thing, hopefully this will all be contained on the Driver Station computer (oh great, another thing to fail) and i can just relay to the Smart Dash via the Network Table. (im trying to give as much info as possible, this might help some other team out there)

Thanks
-Mike
Reply With Quote
  #12   Spotlight this post!  
Unread 15-01-2016, 11:40
EDesbiens's Avatar
EDesbiens EDesbiens is offline
Passionate crackpot
AKA: Étienne Desbiens
FRC #5859 (i)
Team Role: College Student
 
Join Date: Apr 2014
Rookie Year: 2013
Location: Canton de Hatley, QC, Canada
Posts: 297
EDesbiens is a glorious beacon of lightEDesbiens is a glorious beacon of lightEDesbiens is a glorious beacon of lightEDesbiens is a glorious beacon of lightEDesbiens is a glorious beacon of lightEDesbiens is a glorious beacon of light
Re: Programming for vision related things

Quote:
Originally Posted by MikePerreman View Post
Ok, to EDesbiens, a huge thanks for the pip about roborealm, as now i can identify the "u", i just have some high intensity LEDs (oh wait, neon tube is it? people need to start organizing lights.) set the RGB filter to green, and have an "ideal" for my target. what i hope to be able to do tomorrow (why do mentors need to go home?) is actually track the thing, hopefully this will all be contained on the Driver Station computer (oh great, another thing to fail) and i can just relay to the Smart Dash via the Network Table. (im trying to give as much info as possible, this might help some other team out there)

Thanks
-Mike
No problem Have fun and don't hesitate if you have problems!
__________________
Lisa: Players play and managers manage.
Ralph: Do alligators alligate?
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 09:02.

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