Go to Post I love the smell of burnt motors in the morning! - Mike Betts [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 29-01-2006, 18:32
d.courtney's Avatar
d.courtney d.courtney is offline
Registered User
AKA: David
FRC #0781 (Kinetic Knights)
Team Role: Alumni
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Kincardine, Ontario
Posts: 196
d.courtney has much to be proud ofd.courtney has much to be proud ofd.courtney has much to be proud ofd.courtney has much to be proud ofd.courtney has much to be proud ofd.courtney has much to be proud ofd.courtney has much to be proud ofd.courtney has much to be proud ofd.courtney has much to be proud ofd.courtney has much to be proud of
Blob Size

I was wondering if it would be possible to know how far away the goal is by the blob size alone...is this possible? You'd think it would be as long as you know the actual size of the object you are tracking.
__________________
  #2   Spotlight this post!  
Unread 29-01-2006, 18:45
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
Re: Blob Size

The main difficulty with that is that the blob will appear smaller if you are looking at it from an angle...
__________________

  #3   Spotlight this post!  
Unread 29-01-2006, 18:51
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Cañada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Cañada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Blob Size

Quote:
Originally Posted by d.courtney
I was wondering if it would be possible to know how far away the goal is by the blob size alone...is this possible? You'd think it would be as long as you know the actual size of the object you are tracking.
Yes, maybe. Keep in mind that the number of pixels will change as you keep a fixed distance from the green light, but rotate around it. Hmmm... Given that you kinda know how far away you are from the green light using the tilt angle, I wonder if you could then use the blob size to determine the angle.

Anyway, a better way might be to determine the height of the blob using y1 and y2 because the height won't vary much.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #4   Spotlight this post!  
Unread 29-01-2006, 18:55
Eldarion's Avatar
Eldarion Eldarion is offline
Electrical Engineer / Computer Geek
AKA: Eldarion Telcontar
no team (Teamless Orphan)
Team Role: Alumni
 
Join Date: Nov 2005
Rookie Year: 2005
Location: Númenor
Posts: 558
Eldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond repute
Send a message via AIM to Eldarion Send a message via Yahoo to Eldarion
Re: Blob Size

Quote:
Originally Posted by Ryan M.
The main difficulty with that is that the blob will appear smaller if you are looking at it from an angle...
The other thing to remember is that the camera sensor is inherently noisy, and as such the blob size will randomly change by a small amount from frame to frame. You can also see the effects of the noise in that the centroid will "dance" by a few pixels even when everything is stationary, however the blob size is much more unstable. I learned this the hard way last year...
__________________
CMUCam not working? Tracks sporadically? Try this instead: http://www.falconir.com!
PM me for more information if you are interested (it's open source!).

Want the FIRST Email blasts? See here: http://www.chiefdelphi.com/forums/sh...ad.php?t=50809

"The harder the conflict, the more glorious the triumph. What we obtain too cheaply, we esteem too lightly; it is dearness only that gives everything its value."
-- Thomas Paine

If it's falling apart it's a mechanical problem. If it's spewing smoke it's a electrical problem.
If it's rampaging around destroying things it's a programming problem.

"All technology is run on 'Magic Smoke' contained within the device. As everyone knows, whenever the magic smoke is released, the device ceases to function."
-- Anonymous

I currently speak: English, some German, Verilog, x86 and 8051 Assembler, C, C++, VB, VB.NET, ASP, PHP, HTML, UNIX and SQL

Last edited by Eldarion : 29-01-2006 at 18:56. Reason: Wrong quote...
  #5   Spotlight this post!  
Unread 29-01-2006, 19:21
coldabert's Avatar
coldabert coldabert is offline
The Dude
FRC #0888 (Robotiators)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2003
Location: MD
Posts: 83
coldabert is a glorious beacon of lightcoldabert is a glorious beacon of lightcoldabert is a glorious beacon of lightcoldabert is a glorious beacon of lightcoldabert is a glorious beacon of light
Send a message via AIM to coldabert
Re: Blob Size

If you need a distance estimation I would recommend using the tilt values of the servos and the y coordinates of the blob. Confidence also decreases at large distances.
  #6   Spotlight this post!  
Unread 29-01-2006, 20:02
d.courtney's Avatar
d.courtney d.courtney is offline
Registered User
AKA: David
FRC #0781 (Kinetic Knights)
Team Role: Alumni
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Kincardine, Ontario
Posts: 196
d.courtney has much to be proud ofd.courtney has much to be proud ofd.courtney has much to be proud ofd.courtney has much to be proud ofd.courtney has much to be proud ofd.courtney has much to be proud ofd.courtney has much to be proud ofd.courtney has much to be proud ofd.courtney has much to be proud ofd.courtney has much to be proud of
Re: Blob Size

well I was just wondering because the team wants to fix the camera to our shooter, so it would be driven by a motor and two things would be changed at once... I was also thinking of keeping track with a sensor, and doing some conversion of teeth to angle... just exploring all the options, and this one just poped up, but it seems it is too unstable so any more ideas, or would the sensor be the best bet? Thanks
__________________
  #7   Spotlight this post!  
Unread 29-01-2006, 20:32
Andrew Blair's Avatar
Andrew Blair Andrew Blair is offline
SAE Formula is FIRST with Gasoline.
FRC #0306 (CRT)
Team Role: Alumni
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Corry
Posts: 1,193
Andrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond repute
Send a message via AIM to Andrew Blair Send a message via Yahoo to Andrew Blair
Re: Blob Size

Heres what I would suggest. If you have to, you can still use the fixed mount to determine distance. I believe that there is a way to "shift" where the camera's center is (Maybe its shifting the centroid of the blob). In other words, you can have the camera pointing slightly offset of the target, yet still have it return center values.

So, have a routine that slaves the turret to the camera, until it finds the target. Upon finding the target, use the values to determine distance. Then, move the camera center values accordingly in order to correctly angle your shooter, if necessary. After that, unless it loses the target, you can subtract the current offset of the camera to determine current distance, and accordingly re-adjust the camera center to place your shooter "on zero".

I'm sure there is a more elegant solution, but perhaps this can be a place to start.



EDIT----------------------------------------

Post number 600!
__________________
Reading makes a full man, conference a ready man, and writing an exact man.
-Sir Francis Bacon

"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction."
-Albert Einstein
  #8   Spotlight this post!  
Unread 29-01-2006, 20:48
d.courtney's Avatar
d.courtney d.courtney is offline
Registered User
AKA: David
FRC #0781 (Kinetic Knights)
Team Role: Alumni
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Kincardine, Ontario
Posts: 196
d.courtney has much to be proud ofd.courtney has much to be proud ofd.courtney has much to be proud ofd.courtney has much to be proud ofd.courtney has much to be proud ofd.courtney has much to be proud ofd.courtney has much to be proud ofd.courtney has much to be proud ofd.courtney has much to be proud ofd.courtney has much to be proud of
Re: Blob Size

well that is another way I didn't think of, thanks for the idea.
__________________
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
Size Of control box rcubes85 Control System 8 18-02-2005 10:22
Robot Controller File Size Limit ?? RoboGeek Programming 1 17-01-2005 19:59
What size is it? sburro Motors 3 19-11-2004 19:38
What size monitor do you use? Elgin Clock IT / Communications 30 10-03-2004 16:53
Is there a size regulation for the pit area if we wanted to put up a banner Ragin_Kage General Forum 6 14-03-2002 15:33


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

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