Go to Post I've had parents tell me I'm a great role model for their daughters, because I was a female leader. It's a great feeling to hear something like that. - Liz Smith [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

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 24-04-2010, 12:21
ewoodring ewoodring is offline
Registered User
AKA: Eric
FRC #2474 (Excel)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Michigan
Posts: 8
ewoodring is an unknown quantity at this point
Vision target

We are planning on using the camera for targeting, but we want to experiment with our 2010 robot instead of rushing into competition blindly sticking it on next year. It would be a lot easier for me to make a smaller vision target than the official measurements, so would the camera code still track a smaller target?

Thanks in advance.
  #2   Spotlight this post!  
Unread 24-04-2010, 12:32
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,588
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Vision target

We started out with the target printed on a 8.5"x11" sheet. It tracks it fine as long as you are close enough.

We ended up printing our target full size at kinkos (in black and white) for around $10.
  #3   Spotlight this post!  
Unread 24-04-2010, 12:33
ewoodring ewoodring is offline
Registered User
AKA: Eric
FRC #2474 (Excel)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Michigan
Posts: 8
ewoodring is an unknown quantity at this point
Re: Vision target

Thank you very much. I'm actually taking a class about manufacturing, and one of the machines cuts out vinyl sticks to a maximum of 2' wide, so I can get one for free that way.
  #4   Spotlight this post!  
Unread 24-04-2010, 13:23
Mori1578 Mori1578 is offline
Registered User
FRC #1578
 
Join Date: Feb 2010
Location: Israel
Posts: 19
Mori1578 is a jewel in the roughMori1578 is a jewel in the roughMori1578 is a jewel in the roughMori1578 is a jewel in the rough
Re: Vision target

Yes, it works great.
Team 1578 printed the target on a regular A4 paper and the example code worked great, without any problems.
The only problem you can have is in the distance part of the code.

Good luck, Yaar.
  #5   Spotlight this post!  
Unread 24-04-2010, 13:29
blayde5's Avatar
blayde5 blayde5 is offline
Registered User
AKA: Abhi
FRC #3504 (Girls of Steel)
Team Role: Mentor
 
Join Date: Feb 2009
Rookie Year: 2008
Location: Pittsburgh
Posts: 71
blayde5 is a glorious beacon of lightblayde5 is a glorious beacon of lightblayde5 is a glorious beacon of lightblayde5 is a glorious beacon of lightblayde5 is a glorious beacon of light
Re: Vision target

We just made a stencil and spray painted a replica of the goal. That seemed to work well too
  #6   Spotlight this post!  
Unread 24-04-2010, 13:38
Zach O's Avatar
Zach O Zach O is offline
Building an iOS app @ glacial speed
AKA: @FRCZach
no team
Team Role: Alumni
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Atlanta, GA
Posts: 512
Zach O has a reputation beyond reputeZach O has a reputation beyond reputeZach O has a reputation beyond reputeZach O has a reputation beyond reputeZach O has a reputation beyond reputeZach O has a reputation beyond reputeZach O has a reputation beyond reputeZach O has a reputation beyond reputeZach O has a reputation beyond reputeZach O has a reputation beyond reputeZach O has a reputation beyond repute
Re: Vision target

We printed off a to-scale one on a plotter. It worked well for testing. I don't know the actual dimensions of it though.
__________________
Follow me twitter dot com slash frc zach
  #7   Spotlight this post!  
Unread 24-04-2010, 14:05
Jamie Kalb Jamie Kalb is offline
Registered User
no team
 
Join Date: Oct 2009
Rookie Year: 2008
Location: Mountain View, C.A.
Posts: 272
Jamie Kalb is a name known to allJamie Kalb is a name known to allJamie Kalb is a name known to allJamie Kalb is a name known to allJamie Kalb is a name known to allJamie Kalb is a name known to all
Re: Vision target

We printed a bunch of 8.5" by 11" sheets and taped them together to make a full-size target.

We also made a small version (just 8.5" by 11") on cardboard, which was great because we could tape it onto a PVC pipe and have people wave it around for the robot to track. Also, that way the person holding it could be safely out of the way when the robot decided it had found the target and it was time to fire .
__________________
Team 3129 Green MacHHHHine Founder, Captain (2009-10), Alumnus, and Mentor (2011-14)

2011-13 VEX World Championship...
  #8   Spotlight this post!  
Unread 24-04-2010, 15:00
JewishDan18's Avatar
JewishDan18 JewishDan18 is offline
Registered User
FRC #1700
Team Role: Engineer
 
Join Date: Feb 2009
Rookie Year: 2007
Location: Sunnyvale, CA
Posts: 185
JewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to behold
Re: Vision target

During competition, we made a target about 1 inch in diameter (a rush job). As long as you hold it close enough, it will see it the same.
  #9   Spotlight this post!  
Unread 24-04-2010, 15:52
slijin's Avatar
slijin slijin is offline
Pockets
AKA: Samuel Lijin
FRC #0694 (StuyPulse)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York City
Posts: 537
slijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to behold
Re: Vision target

It works. We made one on a 1' x 1' piece of lexan before going to nationals. At Hartford and New York, we brought a target of full dimensions - it was a nightmare to carry around, and to store.

I really wish we'd thought of making the smaller one earlier :x
  #10   Spotlight this post!  
Unread 24-04-2010, 15:55
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Vision target

A few notes on the default camera code:
1. To compensate for the smaller image, you could run the camera at a higher resolution so it can still see it (from a full-field distance the normal target is only a few pixels in the lowest resolution mode, so it won't see the little one at all.).
2. It uses a gyro to angle itself based on the vision data. There is some tuning in this that must be done. Since the target blurs when moving, you can only get frames when not moving.
3. It only ever gets one camera image. You can do a check on the gyro that says something like "when not moving update image and try again" to get closer.
4. Vision processing takes up a TON of CPU. We weren't able to do any vision stuff this year (or last) because the timing of the asynchronous loops would be sporadic, and since PID controls use T, if T is not constant then they will freak out (the gyro also uses T but it is handled on the FPGA, not the main processor). If it is not a problem for you, you could send a trigger to the camera to only process when you need the frames. You could do this by having a Occurrence that you trigger when you want the image, which would trigger the camera code, then have another one to trigger the main loop to use the data. Since Occurrences are triggers, it would be impossible for the camera code to run multiple times on one call as it would be if you passed a Boolean enable bit.

As for the target, we printed an 8 1/2x11 and used it for basic testing of the camera code, then printed a full-size one which we taped first to the wall in the hallway then to the wooden goal when it was built. One of our engineers is in design at Chrysler, so he printed out a big target on paper.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
  #11   Spotlight this post!  
Unread 25-04-2010, 20:57
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,753
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: Vision target

The target can be whatever size you like. In fact, cameras are pretty easy to fool in this respect. Double the distance to the camera, double the size of the target in both X and Y, and the image looks the same. This lets you use a small target as long as you think through the proportions and correct for the distance.

The targets can be printed, painted, or colored with a marker. My personal favorite was to purchase black vinyl from a fabric store, cut the inner and outer circle, and slap it on a white board. It clings, it releases, it folds and goes into a drawer. Full-size cost four dollars. From the left-overs, you can create half or fourth size as well. Be sure to scale the width of the ring.

Greg McKaskle
Closed Thread


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Vision target mounting rath358 Rules/Strategy 3 13-02-2010 23:19
Vision Target!!! Pancake Programming 4 22-01-2010 14:30
Vision Target Assembly platt Kit & Additional Hardware 4 26-01-2006 17:34
vision target Dakota Snow Kit & Additional Hardware 1 08-01-2006 23:00


All times are GMT -5. The time now is 23:15.

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