Go to Post Hmmm I think I hear phones ringing. Panic calls to the Rules committee to figure out how to close THAT loophole, which you could drive a truck through. Have you considered a career in Law? - ChrisH [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
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 03-03-2009, 13:45
Lil' Lavery Lil' Lavery is online now
TSIMFD
AKA: Sean Lavery
FRC #1712 (DAWGMA)
Team Role: Mentor
 
Join Date: Nov 2003
Rookie Year: 2003
Location: Philadelphia, PA
Posts: 6,639
Lil' Lavery has a reputation beyond reputeLil' Lavery has a reputation beyond reputeLil' Lavery has a reputation beyond reputeLil' Lavery has a reputation beyond reputeLil' Lavery has a reputation beyond reputeLil' Lavery has a reputation beyond reputeLil' Lavery has a reputation beyond reputeLil' Lavery has a reputation beyond reputeLil' Lavery has a reputation beyond reputeLil' Lavery has a reputation beyond reputeLil' Lavery has a reputation beyond repute
Send a message via AIM to Lil' Lavery
Re: Turrets and cameras

1712 used the given calibration time during Lunch on Thursday to work with the NI representative at DC to calibrate our camera. I don't know the specifics on the settings (was working on other items at the time), but we managed to get our tracking code working succesfully.
We would sometimes lose targets at a longer range, but that may have been due to their movement and the presence of multiple targets (when we lost a target, we would almost always lock onto another almost immediately) in the camera's vision.
We did notice some difference between when the camera was aimed at the black curtain background and when it was aimed anywhere else. It wasn't a massive difference, but it may be enough at some venues to impact your results.
__________________
Being correct doesn't mean you don't have to explain yourself.
  #2   Spotlight this post!  
Unread 03-03-2009, 14:02
Rich Kressly's Avatar
Rich Kressly Rich Kressly is offline
Robot/STEM troublemaker since 2001
no team (Formerly 103 & 1712. Now run U.P. Robotics (other programs))
Team Role: Mentor
 
Join Date: Oct 2001
Rookie Year: 2001
Location: Pennsburg, PA
Posts: 2,045
Rich Kressly has a reputation beyond reputeRich Kressly has a reputation beyond reputeRich Kressly has a reputation beyond reputeRich Kressly has a reputation beyond reputeRich Kressly has a reputation beyond reputeRich Kressly has a reputation beyond reputeRich Kressly has a reputation beyond reputeRich Kressly has a reputation beyond reputeRich Kressly has a reputation beyond reputeRich Kressly has a reputation beyond reputeRich Kressly has a reputation beyond repute
Re: Turrets and cameras

Quote:
Originally Posted by Lil' Lavery View Post
1712 used the given calibration time during Lunch on Thursday to work with the NI representative at DC to calibrate our camera. I don't know the specifics on the settings (was working on other items at the time), but we managed to get our tracking code working succesfully.
We would sometimes lose targets at a longer range, but that may have been due to their movement and the presence of multiple targets (when we lost a target, we would almost always lock onto another almost immediately) in the camera's vision.
We did notice some difference between when the camera was aimed at the black curtain background and when it was aimed anywhere else. It wasn't a massive difference, but it may be enough at some venues to impact your results.

Yep, one of our software engineers, Paul Gehman, worked with Greg from NI at lunch to get the 1712 settings right. I'll see if I can get Paul to post our values here - maybe I can get some screen shots from the programming laptop to post., but I'd suggest on field calibration on Thursday if/when it might be allowed. Bob Bellini, our other engineer helped to refine our target code on Sat, but since the lighting on the field was so bright and different, we really couldn't test a lot in the pits and never went to the practice field because of the difference. We just tried to learn through Thursday and things really worked out well for our autonomous routine using the camera and target size only with no other sensors.
__________________
technology, innovation, and invention without a social conscience will only allow us to destroy ourselves in more creative ways
  #3   Spotlight this post!  
Unread 03-03-2009, 14:24
Rich Kressly's Avatar
Rich Kressly Rich Kressly is offline
Robot/STEM troublemaker since 2001
no team (Formerly 103 & 1712. Now run U.P. Robotics (other programs))
Team Role: Mentor
 
Join Date: Oct 2001
Rookie Year: 2001
Location: Pennsburg, PA
Posts: 2,045
Rich Kressly has a reputation beyond reputeRich Kressly has a reputation beyond reputeRich Kressly has a reputation beyond reputeRich Kressly has a reputation beyond reputeRich Kressly has a reputation beyond reputeRich Kressly has a reputation beyond reputeRich Kressly has a reputation beyond reputeRich Kressly has a reputation beyond reputeRich Kressly has a reputation beyond reputeRich Kressly has a reputation beyond reputeRich Kressly has a reputation beyond repute
Re: Turrets and cameras

Attached are the cam values we used from calibrating with Greg from NI at lunch on Thurs. to score in autonomous in DC. I'll see if I can get Paul Gehman to comment here since he is the one that worked with Greg.

It's also important to note that it's possible that some slightly different values might be optimal for red/blue alliance as we always have had a harder time identifying green as opposed to pink and with the "other" color on top and the position of our camera the same values may not be as good in both cases. Nontheless, the lunchtime calibration on Thursday is what allowed us to consistently track and score on targets in auto.
Attached Thumbnails
Click image for larger version

Name:	1712_dc_camvalues.JPG
Views:	221
Size:	135.2 KB
ID:	7620  
__________________
technology, innovation, and invention without a social conscience will only allow us to destroy ourselves in more creative ways
  #4   Spotlight this post!  
Unread 04-03-2009, 13:02
Paul Gehman Paul Gehman is offline
Dr. G
AKA: Dr. G
FRC #1712 (Dawgma)
Team Role: Mentor
 
Join Date: Mar 2009
Rookie Year: 2008
Location: King of Prussia, PA
Posts: 3
Paul Gehman is an unknown quantity at this point
Re: Turrets and cameras

Quote:
Originally Posted by Rich Kressly View Post
Attached are the cam values we used from calibrating with Greg from NI at lunch on Thurs. to score in autonomous in DC...the lunchtime calibration on Thursday is what allowed us to consistently track and score on targets in auto.
I am going to expand on comments from Team 1712 Mentor Rick Kressly, Sean Lavery, and National Instrument's Greg McKaskle, as posted above.

Greg/NI was available during lunch on Thursday, at the DC Regional, to assist Teams who wanted to calibrate their cameras, and adjust parameters in their softwares. We jumped at the opportunity to field test our camera settings and vision VIs (LabView). For Team 1712, that meant varying key settings in our implementation of the "two-color camera servo" example code. Read Greg's reply carefully and take a good look at his posted images and masks.

The field's lighting at DC was much brighter than the lighting back at Lower Merion High School, or in the DC Regional pit areas or on the practice field. For an extreme example of what the bright lights could do to a target, as viewed by the camera and software, look at Greg's image labeled "Default West" - read front glare.

On a related point, the DC field's lighting consisted of 2 high-mounted banks of can lights aligned with the long sides of the Arena, aka the Crater. This could create bright sides on the pink/green target - read side-glare - leaving a "shadow" down the center. For a somewhat similar mask to what we were experiencing in DC initially, albeit a more extreme example, look at Greg's image labeled "Default SW Corner mask."

Prior to lunch on Thursday - Team 1712's first autonomous run indicated that the camera/two-color tracking software locked on nothing - even when targets were directly in front. On analysis = green was never recognized - in essence, our hue settings were too high. With Greg's general guidance, and the sample pictures similar to what was posted above, Team 1712's coding crew talked over our proposed adjustments, played with lowering the brightness value, lowering the green hue's upper and lower range values, adjusted the lower red saturation value, and adjusted the servo speed/ranges. All this activity took one busy lunch hour. Part of Team 1712 then spent the rest of Thursday watching the Dawgma Team's robot "Alice" begin to hone in during the next several matches, as we tested and refined our approach. Tom Line, also in this thread, lists the key tuning steps that Team 1712 also utilized to refine "Alice's" vision.

I can definitely agree with Greg and Rich on a couple of interesting issues. When "Alice's" camera stared at the black background behind the big-screen TV - we believe the camera adjusted enough to void out one Thursday match. And what eventually worked for "Alice" in autonomous mode on Friday and Saturday might not apply elsewhere. Best advice -- grab a hold of any available time to test on the real field. Using Greg's/NI's snapshots of targets and masks for ideas, and understanding how the brighter lights, the darker backgrounds, and the software settings were interacting and affecting "Alice" in DC -- we eventually developed better and better masks for "Alice" to use in tracking and scoring in autonomous mode.

Last edited by Paul Gehman : 04-03-2009 at 13:35.
  #5   Spotlight this post!  
Unread 04-03-2009, 13:14
Doug Leppard's Avatar
Doug Leppard Doug Leppard is offline
Registered User
FRC #1902 (Exploding Bacon)
Team Role: Engineer
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Orlando
Posts: 435
Doug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond repute
Send a message via AIM to Doug Leppard
Re: Turrets and cameras

Quote:
Originally Posted by Paul Gehman View Post
we eventually developed better and better masks for "Alice" to use in tracking and scoring in autonomous mode.
Did you score int autonomous mode in official games? If so how often and what precentage of the balls went in?
__________________
Doug Leppard
  #6   Spotlight this post!  
Unread 04-03-2009, 13:18
Vikesrock's Avatar
Vikesrock Vikesrock is offline
Team 2175 Founder
AKA: Kevin O'Connor
no team
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2007
Location: Manchester, NH
Posts: 3,305
Vikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond repute
Send a message via AIM to Vikesrock Send a message via MSN to Vikesrock Send a message via Yahoo to Vikesrock
Re: Turrets and cameras

Quote:
Originally Posted by Doug Leppard View Post
Did you score int autonomous mode in official games? If so how often and what precentage of the balls went in?
They did, quite a few times.

Here's a quote from Sean in another thread

Quote:
Originally Posted by Lil' Lavery View Post
1712 scored four times in auto in DC. Three times it was 7/7, and the fourth it was 3/7. Two or three other occasions the bot would line up but not score, and 1712 would dump in the first second or two of tele-op.
__________________


2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)
  #7   Spotlight this post!  
Unread 05-03-2009, 08:34
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,752
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: Turrets and cameras

I saw a handful of video posts on the general forum about autonomous scoring. The attached video will give you an idea of the glare and how much the camera is shifting the exposure to keep colors from over saturating. It also shows why it is good to not overreact when a frame doesn't contain the target. Glare, a hit, all sorts of things can cause small glitches.

http://www.youtube.com/watch?v=xJnq-...eature=channel

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
team colors and misguided cameras bobbyt14 Programming 12 14-01-2009 10:00
Section 4.3.1<S03> and turrets JoelP Rules/Strategy 13 15-01-2006 11:23
Two cameras: Pros and Cons cooknl Programming 1 12-01-2006 20:57
S03 and turrets geeknerd99 Rules/Strategy 3 10-01-2006 22:35
On board cameras and vision systems and robots! oh my! archiver 2000 1 23-06-2002 23:02


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

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