Go to Post When I see stuff like that, sometimes I say, "That's BRILLIANT, why didn't I think of that?" But I never like the answer. - dtengineering [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-2007, 02:56
Mitch's Avatar
Mitch Mitch is offline
Registered User
FRC #1197 (TorBots)
Team Role: Programmer
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Southern California
Posts: 7
Mitch is an unknown quantity at this point
Distance to travel once targetted?

Okay, so we have the camera tracking the green light and centering the robot onto it. But can anyone drop some hints on figuring out how far forward to go?

I have read that some people go forward depending on the size of the bounds box returned by the t-data, but what other options are there? How are you implementing this?
  #2   Spotlight this post!  
Unread 29-01-2007, 03:05
jgannon's Avatar
jgannon jgannon is offline
I ᐸ3 Robots
AKA: Joey Gannon
no team
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Pittsburgh, PA
Posts: 1,467
jgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond repute
Re: Distance to travel once targetted?

See this document drawn up by Kevin Watson... it may be very helpful.

http://www.kevin.org/frc/2007_frc_range_calc.pdf
__________________
Team 1743 - The Short Circuits
2010 Pittsburgh Excellence in Design & Team Spirit Awards
2009 Pittsburgh Regional Champions (thanks to 222 and 1218)
2007 Pittsburgh Website Award
2006 Pittsburgh Regional Champions (thanks to 395 and 1038)
2006 Pittsburgh Rookie Inspiration & Highest Rookie Seed

Team 1388 - Eagle Robotics
2005 Sacramento Engineering Inspiration
2004 Curie Division Champions (thanks to 1038 and 175)
2004 Sacramento Rookie All-Star

_
  #3   Spotlight this post!  
Unread 29-01-2007, 18:03
Michael DiRamio Michael DiRamio is offline
Registered User
FRC #1114 (Simbotics)
Team Role: Teacher
 
Join Date: Jan 2006
Rookie Year: 2006
Location: St. Catharines, Ontario, Canada
Posts: 39
Michael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond repute
Re: Distance to travel once targetted?

As you move towards the target the tilt on the camera mount will go up.

You could always drive the robot to where you intend to score from, see what the tilt is, then set up your autonomous to drive forward until the camera mount gets to that tilt angle.
  #4   Spotlight this post!  
Unread 29-01-2007, 18:17
Mitch's Avatar
Mitch Mitch is offline
Registered User
FRC #1197 (TorBots)
Team Role: Programmer
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Southern California
Posts: 7
Mitch is an unknown quantity at this point
Re: Distance to travel once targetted?

Quote:
Originally Posted by jgannon View Post
See this document drawn up by Kevin Watson... it may be very helpful.

http://www.kevin.org/frc/2007_frc_range_calc.pdf
oh of course... I knew this! Thank you.
  #5   Spotlight this post!  
Unread 01-02-2007, 12:55
Bomberofdoom's Avatar
Bomberofdoom Bomberofdoom is offline
Biggest FIRST addict in Israel
AKA: Nir Levanon
FRC #2230 (Zcharia's Angels)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Israel
Posts: 471
Bomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond repute
Send a message via MSN to Bomberofdoom
Re: Distance to travel once targetted?

Is there anyone nice enough to tell me the blob size from the edge of the home zone to the target, while the camera is about 1 meter above the ground(or any other hight given)?
  #6   Spotlight this post!  
Unread 01-02-2007, 23:21
Rindill Rindill is offline
Registered User
FRC #1329 (VIPRS)
Team Role: Programmer
 
Join Date: Feb 2007
Rookie Year: 2006
Location: St. Louis
Posts: 6
Rindill is an unknown quantity at this point
Re: Distance to travel once targetted?

You can calculate the distance using Kevin's formula. Then using encoders or gear tooth sensors you can create functions to go the wanted distance.
  #7   Spotlight this post!  
Unread 02-02-2007, 03:28
Bomberofdoom's Avatar
Bomberofdoom Bomberofdoom is offline
Biggest FIRST addict in Israel
AKA: Nir Levanon
FRC #2230 (Zcharia's Angels)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Israel
Posts: 471
Bomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond repute
Send a message via MSN to Bomberofdoom
Re: Distance to travel once targetted?

Not, that's fine, I know how to do that, but I was wondering if anyone can tell me the light's "box" size from that distance.
  #8   Spotlight this post!  
Unread 02-02-2007, 07:21
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Distance to travel once targetted?

Quote:
Originally Posted by Bomberofdoom View Post
Is there anyone nice enough to tell me the blob size from the edge of the home zone to the target, while the camera is about 1 meter above the ground(or any other hight given)?
There is no way to compute the blob size in advance. It depends on how far the target light is from the edge of the home zone, at what angle the camera is seeing the target light, how well the camera focus is adjusted, the details of lens and sensor geometry on the camera itself, and the distribution of brightness along the white diffuser panel.

The easiest answer is to put a camera where you want and see what it tells you the blob size is. You'll notice that the size changes based on exactly where the rack is and in which direction it is facing.
  #9   Spotlight this post!  
Unread 02-02-2007, 09:28
Bomberofdoom's Avatar
Bomberofdoom Bomberofdoom is offline
Biggest FIRST addict in Israel
AKA: Nir Levanon
FRC #2230 (Zcharia's Angels)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Israel
Posts: 471
Bomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond repute
Send a message via MSN to Bomberofdoom
Re: Distance to travel once targetted?

As I persumed(spelled correctly?), we'll have to hang the light at the hight and distance from where we position the robot.
Thanks!
  #10   Spotlight this post!  
Unread 02-02-2007, 11:54
razer razer is offline
Registered User
FRC #1690
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Israel
Posts: 24
razer is an unknown quantity at this point
Re: Distance to travel once targetted?

is the range in meters? or something else?

and is the angel in degrees? or rdians? i remember that in the TANGENS function in MATH.H it is in radians... so we have to convert from degrees to radians

Last edited by razer : 02-02-2007 at 12:27. Reason: because i needed to ask another question
  #11   Spotlight this post!  
Unread 02-02-2007, 17:29
Bomberofdoom's Avatar
Bomberofdoom Bomberofdoom is offline
Biggest FIRST addict in Israel
AKA: Nir Levanon
FRC #2230 (Zcharia's Angels)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Israel
Posts: 471
Bomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond repute
Send a message via MSN to Bomberofdoom
Re: Distance to travel once targetted?

Wasn't there a certain sensor that worked with radii degrees too?
  #12   Spotlight this post!  
Unread 03-02-2007, 08:24
gnirts gnirts is offline
Suspicious pointer conversion
AKA: Robinson Levin
FRC #1648 (The Gearbox Gangstaz)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: ATL
Posts: 116
gnirts will become famous soon enough
Re: Distance to travel once targetted?

Yes, the tan() function in <math.h> takes the degrees argument in radians, so be sure to perform the conversion as Kevin's software calculates the tilt angle in degrees.

The units for distance will be whatever units you specified the light height and camera height with. In the .pdf document above, the 116 is inches, so be sure you calculate h (the height of your camera off the floor) in inches, and then the result will be in inches.

Good luck,
Robinson

Last edited by gnirts : 03-02-2007 at 08:27.
  #13   Spotlight this post!  
Unread 03-02-2007, 11:02
Bomberofdoom's Avatar
Bomberofdoom Bomberofdoom is offline
Biggest FIRST addict in Israel
AKA: Nir Levanon
FRC #2230 (Zcharia's Angels)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Israel
Posts: 471
Bomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond repute
Send a message via MSN to Bomberofdoom
Re: Distance to travel once targetted?

Could anyone give me the (equation/parameter) to convert degrees to radii?
  #14   Spotlight this post!  
Unread 03-02-2007, 17:44
Branden Ghena's Avatar
Branden Ghena Branden Ghena is offline
Previously: tawnos23
FRC #0240 (TEMPEST)
Team Role: College Student
 
Join Date: Nov 2005
Rookie Year: 2004
Location: Houghton, Michigan (MTU)
Posts: 303
Branden Ghena has a spectacular aura aboutBranden Ghena has a spectacular aura aboutBranden Ghena has a spectacular aura about
Re: Distance to travel once targetted?

radians == (degrees*PI)/180

(multiply by 3.1415926... and then divide by 180)
__________________
Branden Ghena - Michigan Tech Student and Team 240 Alumnus
Working Towards: Electrical Engineering and Computer Engineering Double Major

"All we have to decide is what to do with the time that is given to us." - Gandalf
  #15   Spotlight this post!  
Unread 04-02-2007, 00:17
Bomberofdoom's Avatar
Bomberofdoom Bomberofdoom is offline
Biggest FIRST addict in Israel
AKA: Nir Levanon
FRC #2230 (Zcharia's Angels)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Israel
Posts: 471
Bomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond repute
Send a message via MSN to Bomberofdoom
Re: Distance to travel once targetted?

Thank you!
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
calculating distance sur2124 Programming 10 15-03-2006 18:36
IR Distance sensor rodgadashruba Electrical 3 02-02-2006 12:22
Long distance... Ashley Christine Chit-Chat 6 27-04-2005 15:11
Running Once? amateurrobotguy Programming 7 23-02-2005 15:33


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

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