Go to Post Values aren't really dictated, they are created by everyone involved. - Herodotus [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 26-01-2012, 19:55
DallonF DallonF is offline
Registered User
FRC #2403 (Plasma Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Mesa, AZ
Posts: 11
DallonF is a jewel in the roughDallonF is a jewel in the roughDallonF is a jewel in the roughDallonF is a jewel in the rough
Backboard angle using vision tracking

I've been doing a ton of work on vision tracking and so far it's been going pretty well, but the main issue is that we don't want to shoot at the vision target - we want to shoot at the center of the hoop! We have the math working to adjust for that, but we need the angle of the backboard relative to the robot

We were thinking of using the apparent aspect ratio of the target to determine the angle (the target is 4:3, so if it appears to be 1:1, we should know we're at an angle). The problem with this is that A. we have no idea what direction we're facing the target at, and B. due to fisheye on the Axis 206 camera we're using, even when we're directly facing the target, if the target is toward the sides of the screen, it reports a ~20 angle.

Does anyone have any ideas on this?
  #2   Spotlight this post!  
Unread 26-01-2012, 20:21
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,751
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: Backboard angle using vision tracking

Once you have the location of the target within the image, you can do further processing on only that local area. One approach that may work is to look for something else such as the hoop or the net. Another approach would be to use tools like the edge detection or do some processing on an given column of pixels to identify the ratio of the left and right edge. I posted in another thread on a more precise technique using law of cosines to solve for the angles of the triangle between the left edge, camera, and right edge.

Greg McKaskle
  #3   Spotlight this post!  
Unread 26-01-2012, 20:59
stingray27's Avatar
stingray27 stingray27 is offline
Registered User
AKA: Michael Ray
FRC #0027 (Team RUSH)
Team Role: Alumni
 
Join Date: Mar 2011
Rookie Year: 2010
Location: Clarkston, MI
Posts: 209
stingray27 is a name known to allstingray27 is a name known to allstingray27 is a name known to allstingray27 is a name known to allstingray27 is a name known to allstingray27 is a name known to all
Re: Backboard angle using vision tracking

Quote:
Originally Posted by Greg McKaskle View Post
I posted in another thread on a more precise technique using law of cosines to solve for the angles of the triangle between the left edge, camera, and right edge.

Greg McKaskle
Do you recall what thread that is in? Because I have been having problems finding LabVIEW threads according to Vision. In addition, I also have been having trouble determining the midpoint of the 4 targets due to the inability or inaccuracy of our lighting at the moment. Our targets keep flickering and therefore makes my code very inaccurate due to overshoot. One last thing; I am currently using pixel based processing. How accurate can I get our distance to the target when we are shooting at the target from an angle because the aspect ratio changes. Any help would be appreciated and resources or other threads would be great. Thanks
__________________
Michael Ray
Team RUSH 27

Driving Record: 93-64-0 Best Finish: Finalist (x4 FiM Districts)
Coaching Record: 16-7-0 Best Finish: Winner (Kettering Invitationa)l

  #4   Spotlight this post!  
Unread 26-01-2012, 23:36
James Kuszmaul James Kuszmaul is offline
NEFIRST CSA
FRC #0971 (Spartan Robotics)
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Worcester, MA
Posts: 61
James Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud of
Re: Backboard angle using vision tracking

The thread
And I expect that this is the post you want, but it looks like there is good information in some of the other posts as well.
  #5   Spotlight this post!  
Unread 26-01-2012, 23:52
basicxman basicxman is offline
Emily Horsman
FRC #2200 (MMRambotics)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Burlington, Ontario
Posts: 971
basicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant future
Send a message via AIM to basicxman Send a message via MSN to basicxman Send a message via Yahoo to basicxman
Re: Backboard angle using vision tracking

Quote:
Originally Posted by stingray27 View Post
Do you recall what thread that is in?
http://www.chiefdelphi.com/forums/sh...5&postcount=18
  #6   Spotlight this post!  
Unread 27-01-2012, 07:59
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,751
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: Backboard angle using vision tracking

As for the distance error. It definitely should exist, but doesn't seem that bad for what I thought were reasonable shooting positions. Your milage may vary. A somewhat bigger issue is that this is a distance and position to the center of the rectangle, and that distance and angle may not be where you want to send the ball. If you want a swish-shot, you ideally want to know the center of the hoop. It is near the target, but not at the same position. If you way to bank shot, do you want to shoot at the center of the rect always, or perhaps a bit to the left or right according to angle. I think the answers depend on your shooter.

Of course if the shooter is not super repeatable, these calculations may be overkill.

Greg McKaskle
  #7   Spotlight this post!  
Unread 27-01-2012, 08:43
austin1743 austin1743 is offline
Head Programmer - Java
FRC #1743
Team Role: Programmer
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Pennsylvania
Posts: 56
austin1743 is an unknown quantity at this point
Re: Backboard angle using vision tracking

Quote:
Originally Posted by DallonF View Post
I've been doing a ton of work on vision tracking and so far it's been going pretty well, but the main issue is that we don't want to shoot at the vision target - we want to shoot at the center of the hoop! We have the math working to adjust for that, but we need the angle of the backboard relative to the robot

We were thinking of using the apparent aspect ratio of the target to determine the angle (the target is 4:3, so if it appears to be 1:1, we should know we're at an angle). The problem with this is that A. we have no idea what direction we're facing the target at, and B. due to fisheye on the Axis 206 camera we're using, even when we're directly facing the target, if the target is toward the sides of the screen, it reports a ~20 angle.

Does anyone have any ideas on this?
Would you mind sharing your code on your doing this? I just need an example to show to the other programming people on my team to show them how it could potentially work.

thanks
__________________
Team 1743
Head Programmer
  #8   Spotlight this post!  
Unread 28-01-2012, 13:58
Team 3705's Avatar
Team 3705 Team 3705 is offline
Registered User
FRC #3705
 
Join Date: Jan 2011
Location: Canada
Posts: 34
Team 3705 is an unknown quantity at this point
Re: Backboard angle using vision tracking

Please share, send me a pm if yo uwant
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


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

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