Go to Post "We'll fix that in programming" - EStokely [more]
Home
Go Back   Chief Delphi > Technical > Control System > FRC Control System
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
View Poll Results: Vision Tracking: Did the GDC get it right this year or not?
Yes, they got it! This is the year. 27 55.10%
No, Another disappointment. Maybe next year... 22 44.90%
Voters: 49. You may not vote on this poll

Reply
Thread Tools Rate Thread Display Modes
  #16   Spotlight this post!  
Unread 09-01-2010, 21:37
GGCO's Avatar
GGCO GGCO is offline
Registered User
AKA: Grant
FRC #3357
Team Role: Alumni
 
Join Date: Jan 2008
Rookie Year: 2004
Location: Michigan
Posts: 406
GGCO is a splendid one to beholdGGCO is a splendid one to beholdGGCO is a splendid one to beholdGGCO is a splendid one to beholdGGCO is a splendid one to beholdGGCO is a splendid one to beholdGGCO is a splendid one to beholdGGCO is a splendid one to behold
Send a message via AIM to GGCO
Re: Vision tracking: Did they get it right?

Anyway I can find the Java camera code? I saw it once somewhere, but can't remember. Thanks in advance!
__________________
"Great spirits have always encountered violent opposition from mediocre minds" - Albert Einstein
The FIRST Alliance
COMETS Robotics
Website

Reply With Quote
  #17   Spotlight this post!  
Unread 09-01-2010, 21:47
GGCO's Avatar
GGCO GGCO is offline
Registered User
AKA: Grant
FRC #3357
Team Role: Alumni
 
Join Date: Jan 2008
Rookie Year: 2004
Location: Michigan
Posts: 406
GGCO is a splendid one to beholdGGCO is a splendid one to beholdGGCO is a splendid one to beholdGGCO is a splendid one to beholdGGCO is a splendid one to beholdGGCO is a splendid one to beholdGGCO is a splendid one to beholdGGCO is a splendid one to behold
Send a message via AIM to GGCO
Re: Vision tracking: Did they get it right?

http://first.wpi.edu/FRC/frcjava.html

Nevermind.
__________________
"Great spirits have always encountered violent opposition from mediocre minds" - Albert Einstein
The FIRST Alliance
COMETS Robotics
Website

Reply With Quote
  #18   Spotlight this post!  
Unread 09-01-2010, 22:12
Chris is me's Avatar
Chris is me Chris is me is offline
no bag, vex only, final destination
AKA: Pinecone
FRC #0228 (GUS Robotics); FRC #2170 (Titanium Tomahawks)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Glastonbury, CT
Posts: 7,790
Chris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond repute
Send a message via AIM to Chris is me
Re: Vision tracking: Did they get it right?

Quote:
Originally Posted by jspatz1 View Post
Not necessarily. A defensive bot's autonomous mode may be to block a goal.
Nope. Penalty for crossing the white line and penalty for each game piece the robot touched.
__________________
Mentor / Drive Coach: 228 (2016-?)
--2016 Waterbury SFs (with 3314, 3719), RIDE #2 Seed / Winners (with 1058, 6153), Carver QFs (with 503, 359, 4607)
Mentor / Consultant Person: 2170 (2017-?)
.
College Mentor: 2791 (2010-2015)
-- 2015 TVR Motorola Quality, FLR GM Industrial Design -- 2014 FLR Motorola Quality / SFs (with 341, 4930)
-- 2013 BAE Motorola Quality, WPI Regional #1 Seed / Delphi Excellence in Engineering / Finalists (with 20, 3182)
-- 2012 BAE Imagery / Finalists (with 1519, 885), CT Xerox Creativity / SFs (with 2168, 118)
Student: 1714 (2009) - 2009 MN 10K Lakes Regional Winners (with 2826, 2470)
2791 Build Season Photo Gallery - Look here for mechanism photos My Robotics Blog (Updated April 11 2014)
Reply With Quote
  #19   Spotlight this post!  
Unread 09-01-2010, 22:19
EricH's Avatar
EricH EricH is offline
New year, new team
FRC #1197 (Torbots)
Team Role: Engineer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: SoCal
Posts: 19,825
EricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond repute
Re: Vision tracking: Did they get it right?

Quote:
Originally Posted by Chris is me View Post
Nope. Penalty for crossing the white line and penalty for each game piece the robot touched.
Actually, it's a double penalty for crossing, double penalty + yellow for the first ball/robot hit after crossing, and double penalty per contact after that. That was a nice understatement, Chris.

But there is a goal on your side of the line that you could block.
__________________
Past teams:
2003-2007: FRC0330 BeachBots
2008: FRC1135 Shmoebotics
2012: FRC4046 Schroedinger's Dragons

"Rockets are tricky..."--Elon Musk

Reply With Quote
  #20   Spotlight this post!  
Unread 10-01-2010, 21:40
fabalafae's Avatar
fabalafae fabalafae is offline
Guardian of the Grimmerie
FRC #0540 (TALON)
Team Role: Programmer
 
Join Date: Nov 2007
Rookie Year: 2007
Location: Richmond, VA
Posts: 33
fabalafae is an unknown quantity at this point
Re: Vision tracking: Did they get it right?

Is there any starter camera tracking code for LabVIEW yet? I looked through the examples, but those are only for color recognition- not for shapes.
__________________
I am stricken and can't let you go
When the heart is cold, there's no hope, and we know
That I am crippled by all that you've done
Into the abyss will I run
Reply With Quote
  #21   Spotlight this post!  
Unread 10-01-2010, 21:58
Paradise1165's Avatar
Paradise1165 Paradise1165 is offline
Registered User
FRC #1165
 
Join Date: Nov 2007
Location: Phoenix, Arizona
Posts: 2
Paradise1165 is an unknown quantity at this point
Re: Vision tracking: Did they get it right?

perhaps. this year doesnt so sound so imortant or controlable this year. if we had this camera last year and these cool little laptops, yeha this would make it a whoooooooooooooole lots better.
Reply With Quote
  #22   Spotlight this post!  
Unread 10-01-2010, 22:26
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Vision tracking: Did they get it right?

Quote:
Originally Posted by fabalafae View Post
Is there any starter camera tracking code for LabVIEW yet? I looked through the examples, but those are only for color recognition- not for shapes.
The starter code for LabVIEW is actually built into the default template. This means that when you create a new robot project, it already contains some sample vision code for finding the target.
Reply With Quote
  #23   Spotlight this post!  
Unread 10-01-2010, 23:23
davidalln's Avatar
davidalln davidalln is offline
World's Worst Coder
AKA: David Allen
FRC #2415 (The Westminster Wiredcats)
Team Role: Programmer
 
Join Date: Mar 2009
Rookie Year: 2008
Location: Atlanta, GA
Posts: 108
davidalln is on a distinguished road
Send a message via AIM to davidalln
Re: Vision tracking: Did they get it right?

Quote:
Originally Posted by fabalafae View Post
Is there any starter camera tracking code for LabVIEW yet? I looked through the examples, but those are only for color recognition- not for shapes.
The LabVIEW off the CD does not have it (probably to keep the people compiling the CD from getting a hint about the game early). You have to download the update here: http://joule.ni.com/nidu/cds/view/p/lang/en/id/1534

I think that, because the targets are stationary rather than moving like last year, there is definitely an opportunity to score in autonomous using the camera to track. Long range shooting was impossible last year because of the moving targets and the unpredictable floor, but this year I can see it make a comeback (although it might have been nice to see a point increase for a long range goal... sort of like a 3-pointer in basketball. Oh well...)
__________________
SANTOSH ANDREW DECKER RICK WYNNIE SEAN DEREK MATT
(alamo (semis), p'tree (CHAMPS!), nc (CHAMPS!), newton (quarters))


Best four years of my life. Thanks to everyone who made it happen.
Reply With Quote
  #24   Spotlight this post!  
Unread 11-01-2010, 22:55
TD-Linux TD-Linux is offline
Registered User
FRC #2530
 
Join Date: Jan 2010
Location: Rochester, Minnesota
Posts: 6
TD-Linux is on a distinguished road
Re: Vision tracking: Did they get it right?

I've only looked at the C++ vision code so far, but I would imagine the labview code to be similar.

I am going to test it tomorrow with the old robot, but there are a few things that worry me:

- While the ellipse detection only uses luminance data for detecting edges, it does so by allocating memory, mixing the image down, processing it, then freeing the memory. I don't know how efficient vxworks' malloc is, but this seems like a rather bad idea.

- From what I can tell, the ellipse detection uses the edges of ellipses - meaning that it will detect two ellipses around the inner and outer edges of the black circle. While this is perfectly acceptable when one bases navigation of the center of the circles, it has to potential to throw a wrench into distance algorithms (e.g. inverse perspective transform). Some sort of algorithm will be needed to pick one of the edges (preferably the outer one).

- The tracking algorithm only samples the image once, then bases all further turning on the gyro without sampling any more images. There are both problems with this approach, as well as problems in the implementation. I won't elaborate on this point, as it probably deserves its own separate thread.

I'm impressed that they created a decently working camera example for teams to start with, though it definitely is not a perfect solution. I have to wonder if they did this on purpose - after all, it would be no fun if everyone's robot ran the same code.
Reply With Quote
  #25   Spotlight this post!  
Unread 12-01-2010, 00:17
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Vision tracking: Did they get it right?

Quote:
Originally Posted by TD-Linux View Post
- While the ellipse detection only uses luminance data for detecting edges, it does so by allocating memory, mixing the image down, processing it, then freeing the memory. I don't know how efficient vxworks' malloc is, but this seems like a rather bad idea.
You are absolutely correct. And no... malloc on VxWorks is not amazingly fast or anything. It is a bad idea and any patch you'd like to submit to address the issue would be greatly appreciated. I hear the AxisCamera2010 does the same thing, but with C++ new! (hint hint)

Quote:
Originally Posted by TD-Linux View Post
- The tracking algorithm only samples the image once, then bases all further turning on the gyro without sampling any more images. There are both problems with this approach, as well as problems in the implementation. I won't elaborate on this point, as it probably deserves its own separate thread.
This is intentional... when you are moving, your image is usually very blury, meaning that you are unlikely to be able to find high contrast edges. By using the gyro, you are able to get higher bandwidth data to move you pretty close to your target. Since your target is not moving, you will likely be pointed very close to the target when the gyro is at the detected angle and the next update will be a minor adjustment.

This method is more reliable and typically faster when homing in on stationary targets.

If you'd like to discuss it further, feel free to start another thread.

-Joe
Reply With Quote
  #26   Spotlight this post!  
Unread 12-01-2010, 11:22
slavik262's Avatar
slavik262 slavik262 is offline
We do what we must because we can.
AKA: Matt Kline
FRC #0537 (Charger Robotics)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Sussex, WI
Posts: 310
slavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to behold
Send a message via AIM to slavik262
Re: Vision tracking: Did they get it right?

I'm really excited for this year. Live video streams to the drivers will be amazing, and the targeting is built into the API (through their ellipse-finding code). Now teams will have consistant, (hopefully) reliable, and contained targeting code that's standard across the board.
__________________
Reply With Quote
  #27   Spotlight this post!  
Unread 12-01-2010, 14:43
davidalln's Avatar
davidalln davidalln is offline
World's Worst Coder
AKA: David Allen
FRC #2415 (The Westminster Wiredcats)
Team Role: Programmer
 
Join Date: Mar 2009
Rookie Year: 2008
Location: Atlanta, GA
Posts: 108
davidalln is on a distinguished road
Send a message via AIM to davidalln
Re: Vision tracking: Did they get it right?

Quote:
Originally Posted by TD-Linux View Post
- From what I can tell, the ellipse detection uses the edges of ellipses - meaning that it will detect two ellipses around the inner and outer edges of the black circle. While this is perfectly acceptable when one bases navigation of the center of the circles, it has to potential to throw a wrench into distance algorithms (e.g. inverse perspective transform). Some sort of algorithm will be needed to pick one of the edges (preferably the outer one).
Correct me if I'm wrong as I don't have the code in front of me, but doesn't the example find the target based on locating two concentric ellipses and then find the data such as the height and width and (x,y)? Therefore, the target will essentially act as one circle that can be used for distance algorithms.
__________________
SANTOSH ANDREW DECKER RICK WYNNIE SEAN DEREK MATT
(alamo (semis), p'tree (CHAMPS!), nc (CHAMPS!), newton (quarters))


Best four years of my life. Thanks to everyone who made it happen.
Reply With Quote
  #28   Spotlight this post!  
Unread 18-01-2010, 20:40
rjbarra rjbarra is offline
GameTime
AKA: Joe Barra
FRC #0020 (Rocketeers)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2002
Location: Clifton Park, New York
Posts: 58
rjbarra is just really nicerjbarra is just really nicerjbarra is just really nicerjbarra is just really nice
Re: Vision tracking: Did they get it right?

It uses RobertDrive class which does not support crab drive
Reply With Quote
  #29   Spotlight this post!  
Unread 18-01-2010, 21:53
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,756
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 tracking: Did they get it right?

Since it is not possible to support all type of robot bases with the current WPILib, it controls what is probably the most common. At one level it computes an angle to rotate, then uses robot drive to rotate. It should be pretty easy to map to alternate drive bases. Of course you will likely want it to move forward, kick, line up with another, etc.

Greg McKaskle
Reply With Quote
  #30   Spotlight this post!  
Unread 18-01-2010, 22:58
Paul Copioli's Avatar Unsung FIRST Hero Woodie Flowers Award
Paul Copioli Paul Copioli is offline
President, VEX Robotics, Inc.
FRC #3310 (Black Hawk Robotics)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 2000
Location: Rockwall, TX
Posts: 1,392
Paul Copioli has a reputation beyond reputePaul Copioli has a reputation beyond reputePaul Copioli has a reputation beyond reputePaul Copioli has a reputation beyond reputePaul Copioli has a reputation beyond reputePaul Copioli has a reputation beyond reputePaul Copioli has a reputation beyond reputePaul Copioli has a reputation beyond reputePaul Copioli has a reputation beyond reputePaul Copioli has a reputation beyond reputePaul Copioli has a reputation beyond repute
Re: Vision tracking: Did they get it right?

Is vision needed in this game?

Is the goal stationary? YES
Do you know the location of the balls prior to Auton? YES
Do you know your robot location prior to Auton? YES
Is there potential defense in auton? NO
Can a human score without camera? YES


Is vision needed in this game? NO

We are all for using the camera, when the effort is worth it. We used it in 06, because it was worth it. We will not use it this year because it is not worth it.
__________________
In full disclosure I am the President of VEX Robotics, a division of Innovation First International.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is fedex right? did ship get delayed for central Mass? Joe G. General Forum 7 21-02-2009 19:38
So what did we get right? geeknerd99 Chit-Chat 9 10-05-2006 13:11
71's Vision Tracking Problems Bill Beatty Rumor Mill 7 19-04-2005 17:41
did they Jgreenwd1 Championship Event 1 29-04-2002 11:45
They got it right in LA (Times)! dlavery Regional Competitions 0 10-04-2002 15:26


All times are GMT -5. The time now is 13:44.

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