Go to Post I feel that I learned more last year than any previous year because of the challenges we faced. - paldrid [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-10-2012, 18:14
Team3266Spencer's Avatar
Team3266Spencer Team3266Spencer is offline
Team Captain and Lead Programmer
AKA: Spencer Lanman
FRC #3266 (Robots-R-US)
Team Role: Programmer
 
Join Date: Oct 2011
Rookie Year: 2012
Location: Richmond, Indiana
Posts: 280
Team3266Spencer is an unknown quantity at this point
Camera Image Overlay - Sniper Style

So a simple obvious idea one of my teammates came up with, during/after (can't remember) one of our regional, was to put a cross-hair on the camera feed, instead of relying on some half put together camera tracking, luck, or skill. The issue we had though was our camera is not centered to our shooter and i actually side-mounted on our turret. Creating the cross-hairs in code seemed like too much much work (seeing how an image overlay of cross-hairs didn't seem like it would be sufficient at the time), so with that in mind I put the idea to rest.

Recently I revisited the idea, with some prompting from that teammate. With some geometry I was able to calculate curved lines, that could overlay the camera feed, that represented where the robot would be aimed (In relationship to a certain destination, e.g. the top goal) on the camera image dependent upon its distance (horizontally). I was then able to place cross-hairs on certain distances of the graph that our robot had preset powers to shoot from.

This was my result: http://imgur.com/uMOnz

Have any other teams worked with this idea before? I'm sure there have been, how did concepts like this work for you?
__________________
2012: Buckeye Regional, Queen City Regional, Human Player
2013: Queen City Regional, Buckeye Regional, Crossroads Regional
Shooter Operator
2014: Crossroads Regional, Queen City Regional
Catapult Operator
2015: Georgia Southern Classic Regional (Winner), Queen City Regional
Chainsaw Operator
Want to talk? TeamSpeak: team3266.noip.me
  #2   Spotlight this post!  
Unread 03-10-2012, 18:17
AdamHeard's Avatar
AdamHeard AdamHeard is offline
Lead Mentor
FRC #0973 (Greybots)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2004
Location: Atascadero
Posts: 5,508
AdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond repute
Send a message via AIM to AdamHeard
Re: Camera Image Overlay - Sniper Style

What worked really well for us was just a single vertical line that the driver centered over the hoop. Distance wasn't adjusted for, the driver just drove to a similar spot each time.
  #3   Spotlight this post!  
Unread 03-10-2012, 18:23
Team3266Spencer's Avatar
Team3266Spencer Team3266Spencer is offline
Team Captain and Lead Programmer
AKA: Spencer Lanman
FRC #3266 (Robots-R-US)
Team Role: Programmer
 
Join Date: Oct 2011
Rookie Year: 2012
Location: Richmond, Indiana
Posts: 280
Team3266Spencer is an unknown quantity at this point
Re: Camera Image Overlay - Sniper Style

Quote:
What worked really well for us was just a single vertical line that the driver centered over the hoop. Distance wasn't adjusted for, the driver just drove to a similar spot each time.
Yeah, that's essentially what we did during competition. We would draw a vertical line in the driver station, offset approximately to where we believed it lined up best. I just thought it intriguing how simple it was to take it to the next level and use math to calculate the line.
__________________
2012: Buckeye Regional, Queen City Regional, Human Player
2013: Queen City Regional, Buckeye Regional, Crossroads Regional
Shooter Operator
2014: Crossroads Regional, Queen City Regional
Catapult Operator
2015: Georgia Southern Classic Regional (Winner), Queen City Regional
Chainsaw Operator
Want to talk? TeamSpeak: team3266.noip.me
  #4   Spotlight this post!  
Unread 04-10-2012, 22:23
BlacksmithWoods's Avatar
BlacksmithWoods BlacksmithWoods is offline
Mechanics / CAD
AKA: Brendan Woods
FRC #0806 (The Brooklyn Blacksmiths)
Team Role: Mentor
 
Join Date: Sep 2011
Rookie Year: 2010
Location: Brooklyn, New York
Posts: 67
BlacksmithWoods is on a distinguished road
Re: Camera Image Overlay - Sniper Style

Quote:
Originally Posted by AdamHeard View Post
What worked really well for us was just a single vertical line that the driver centered over the hoop. Distance wasn't adjusted for, the driver just drove to a similar spot each time.
Same with our team!
__________________
2002 - Present FRC (806)

Keeping It Stupidly Simple since 2002
"You are done with designing something, not when there's nothing more to add, but when there's nothing left to remove." - EricH
NYC FRC STLA (2011- 2014) Practice Field / Alumni Relations
  #5   Spotlight this post!  
Unread 04-10-2012, 22:27
CalTran's Avatar
CalTran CalTran is offline
MST Rolla Senior
FRC #2410 (BV CAPS Metal Mustang Robotics)
Team Role: College Student
 
Join Date: Apr 2010
Rookie Year: 2010
Location: Overland Park, Kansas
Posts: 2,386
CalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond repute
Re: Camera Image Overlay - Sniper Style

I saw a couple of teams solve this issue via scotch tape on the driver station as well.
__________________
Team 2410 thinks KISSing is amazing! Keep It Super Safe!
  • "You know you've been in robotics too long when you start talking to your tools." "Well, you've been in robotics CLEARLY too long when they start talking back"
  • Theory is when you know everything but nothing works. Practice is when everything works but you don't know why. On our team, theory and practice comes together - nothing works and nobody knows why.
MMR 2410 Student (2010 - 2013) | MMR 2410 Mentor (2013 - Present)
FTC Game Announcer / EmCee (2014 - Present) | FRC EmCee (2015 - Present) | FRC Referee (2016) | FTC Referee (2017)
Academic Student (Forever)
  #6   Spotlight this post!  
Unread 04-10-2012, 22:55
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,187
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Re: Camera Image Overlay - Sniper Style

Here's the HTML we used to display the camera feed with a red line down the center. You can save this (and ui/jquery.js) to anywhere on your computer and open the file locally with Chrome. You need to change the hardcoded IP to your teams IP in the html file.

https://github.com/Team254/FRC-2012/...oofviewer.html
  #7   Spotlight this post!  
Unread 05-10-2012, 00:04
dellagd's Avatar
dellagd dellagd is offline
Look for me on the field!
AKA: Griffin D
FRC #2590 (Nemesis) #2607 (The Fighting Robovikings)
Team Role: Mentor
 
Join Date: Sep 2011
Rookie Year: 2011
Location: PA
Posts: 890
dellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond repute
Re: Camera Image Overlay - Sniper Style

Edit the driver station Labview project, or whatever is called. Our team did it even though we use Java it was so easy. Edit it so that it just draws a line from point a to point b after it draws the camera image (Therefore the line ends up on top of the camera image every loop...)
__________________
Check out some cool personal projects in computers, electronics, and RC vehicles on my blog!

2016 MAR DCMP Engineering Excellence Award
2016 MAR Westtown Innovation in Control Award
2016 MAR Hatboro-Horsham Industrial Design Award
2015 Upper Darby District Winners - Thanks 225 and 4460!
2015 Upper Darby District Industrial Design Award
2015 Hatboro-Horsham District Winners - Thanks 2590 and 5407!
2014 Virginia Regional Winners - Thanks so much 384 and 1610, I will never forget that experience!
2014 Virginia Quality Award
2014 MAR Bridgewater-Raritan Innovation in Control Award
2014 MAR Hatboro-Horsham Gracious Professionalism Award
2013 MAR Bridgewater-Raritan Innovation in Control Award
2012 MAR Lenape Quality Award
  #8   Spotlight this post!  
Unread 05-10-2012, 00:50
tickspe15's Avatar
tickspe15 tickspe15 is offline
Purdue University
AKA: Spencer Tickman
FRC #1747 (Harrison Boiler Robotics)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2009
Location: Issaquah, Washington
Posts: 252
tickspe15 has a brilliant futuretickspe15 has a brilliant futuretickspe15 has a brilliant futuretickspe15 has a brilliant futuretickspe15 has a brilliant futuretickspe15 has a brilliant futuretickspe15 has a brilliant futuretickspe15 has a brilliant futuretickspe15 has a brilliant futuretickspe15 has a brilliant futuretickspe15 has a brilliant future
Re: Camera Image Overlay - Sniper Style

We lined up field goal post like markers with the bottom of the back board and had different one for each distance
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 00:25.

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