Go to Post If your robot doesn't work, it doesn't matter, because the robot is really meaningless, in the long run. What is the important thing, the reason we're all in FIRST then? To better our understanding of Science and Technology, and hopefully make the world a better place. - Ian W. [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rating: Thread Rating: 7 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 04-05-2011, 13:49
Robotmmm Robotmmm is offline
Registered User
no team
 
Join Date: Apr 2011
Rookie Year: 2011
Location: USA
Posts: 132
Robotmmm has a brilliant futureRobotmmm has a brilliant futureRobotmmm has a brilliant futureRobotmmm has a brilliant futureRobotmmm has a brilliant futureRobotmmm has a brilliant futureRobotmmm has a brilliant futureRobotmmm has a brilliant futureRobotmmm has a brilliant futureRobotmmm has a brilliant futureRobotmmm has a brilliant future
Re: Please help Wave Robotics earn $1,000!!!

Now over 15,000! And the students haven't even seen this yet because they are in class. You will win because Firsters are the best!
Reply With Quote
  #2   Spotlight this post!  
Unread 04-05-2011, 14:07
Tyler Olds Tyler Olds is offline
FUN Show Host
no team (First Updates Now)
 
Join Date: Jan 2002
Rookie Year: 2001
Location: Oshkosh, WI
Posts: 1,159
Tyler Olds has a reputation beyond reputeTyler Olds has a reputation beyond reputeTyler Olds has a reputation beyond reputeTyler Olds has a reputation beyond reputeTyler Olds has a reputation beyond reputeTyler Olds has a reputation beyond reputeTyler Olds has a reputation beyond reputeTyler Olds has a reputation beyond reputeTyler Olds has a reputation beyond reputeTyler Olds has a reputation beyond reputeTyler Olds has a reputation beyond repute
Re: Please help Wave Robotics earn $1,000!!!

Quote:
Originally Posted by Robotmmm View Post
Now over 15,000! And the students haven't even seen this yet because they are in class. You will win because Firsters are the best!
This is crazy! This morning we had 600 and we are topping 20000. Thank you cd community! Please keep it up! These contributions are from a couple of emails, a Facebook post, and this post on cd! Truly amazing!
__________________
First Updates Now Show Host.
Watch and Listen to FUN on Youtube, iTunes, and www.firstupdatesnow.com
FRC Emcee 2009-2016: Team 2826 Wave Robotics Lead Mentor 2001-2004 Team 93 NEW Apple Corps Alumni
CD Moderator
Reply With Quote
  #3   Spotlight this post!  
Unread 04-05-2011, 14:25
kwotremb's Avatar
kwotremb kwotremb is offline
Registered User
FRC #3414
Team Role: Engineer
 
Join Date: Jan 2010
Rookie Year: 2002
Location: Farmington Hills, MI
Posts: 127
kwotremb is a splendid one to beholdkwotremb is a splendid one to beholdkwotremb is a splendid one to beholdkwotremb is a splendid one to beholdkwotremb is a splendid one to beholdkwotremb is a splendid one to behold
Re: Please help Wave Robotics earn $1,000!!!

Dont worry Tyler, Ill help a fellow 93 Alum
__________________
2013: Team 3414 Hackbots
Waterford District: Finalist (51, 3604)
Livonia District: Winner (3641, 240), Spirit Award
MSC: 6th Seed Captain (862, 3641), Spirit Award
Worlds: Seeded 32 in Curie


Past Years:
Team 3414: Hackbots, 2013-Current, Mentor
Team 818: Steel Armadillos, 2008-2012, Mentor
Team 93: N.E.W Apple Corps, 2002-2003, Student
Reply With Quote
  #4   Spotlight this post!  
Unread 04-05-2011, 14:26
Chris27's Avatar
Chris27 Chris27 is offline
Registered User
AKA: Chris Freeman
FRC #1625 (Winnovation)
Team Role: Alumni
 
Join Date: Mar 2005
Rookie Year: 2004
Location: Mountain View
Posts: 196
Chris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant future
Re: Please help Wave Robotics earn $1,000!!!

Someone should make a script...
Reply With Quote
  #5   Spotlight this post!  
Unread 04-05-2011, 14:54
efoote868 efoote868 is offline
foote stepped in
AKA: E. Foote
FRC #0868
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2005
Location: Noblesville, IN
Posts: 1,404
efoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond repute
Re: Please help Wave Robotics earn $1,000!!!

Quote:
Originally Posted by Chris27 View Post
Someone should make a script...
would you like the java source code?
__________________
Be Healthy. Never Stop Learning. Say It Like It Is. Own It.

Like our values? Flexware Innovation is looking for Automation Engineers. Check us out!
Reply With Quote
  #6   Spotlight this post!  
Unread 04-05-2011, 15:11
BigJ BigJ is offline
Registered User
AKA: Josh P.
FRC #1675 (Ultimate Protection Squad)
Team Role: Engineer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Milwaukee, WI
Posts: 945
BigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond repute
Re: Please help Wave Robotics earn $1,000!!!

Let's not cheat, guys. Keep it professional.
Reply With Quote
  #7   Spotlight this post!  
Unread 04-05-2011, 15:32
MagiChau's Avatar
MagiChau MagiChau is offline
Registered User
AKA: Michael Chau
FRC #0085 (B.O.B. (Built on Brains))
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Zeeland, Michigan
Posts: 875
MagiChau is just really niceMagiChau is just really niceMagiChau is just really niceMagiChau is just really nice
Re: Please help Wave Robotics earn $1,000!!!

Hope you guys get some exploding bacon if you guys get the $1,000. Oink Oink Boom Wave?
Reply With Quote
  #8   Spotlight this post!  
Unread 04-05-2011, 15:47
Bob Steele's Avatar
Bob Steele Bob Steele is offline
Professional Steamacrit Hunter
AKA: Bob Steele
FRC #1983 (Skunk Works Robotics)
Team Role: Coach
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Seattle, Washington
Posts: 1,516
Bob Steele has a reputation beyond reputeBob Steele has a reputation beyond reputeBob Steele has a reputation beyond reputeBob Steele has a reputation beyond reputeBob Steele has a reputation beyond reputeBob Steele has a reputation beyond reputeBob Steele has a reputation beyond reputeBob Steele has a reputation beyond reputeBob Steele has a reputation beyond reputeBob Steele has a reputation beyond reputeBob Steele has a reputation beyond repute
Re: Please help Wave Robotics earn $1,000!!!

33,000 + now!!!!

Wow
Reply With Quote
  #9   Spotlight this post!  
Unread 04-05-2011, 15:51
Kimmeh's Avatar
Kimmeh Kimmeh is offline
Student at Kettering University
AKA: Kimberly
FRC #0068 (Truck Town Thunder)
Team Role: Mentor
 
Join Date: Sep 2008
Rookie Year: 2009
Location: Michigan
Posts: 334
Kimmeh has a reputation beyond reputeKimmeh has a reputation beyond reputeKimmeh has a reputation beyond reputeKimmeh has a reputation beyond reputeKimmeh has a reputation beyond reputeKimmeh has a reputation beyond reputeKimmeh has a reputation beyond reputeKimmeh has a reputation beyond reputeKimmeh has a reputation beyond reputeKimmeh has a reputation beyond reputeKimmeh has a reputation beyond repute
Send a message via Yahoo to Kimmeh
Re: Please help Wave Robotics earn $1,000!!!

Amusing trend I've noticed: Almost everyone who has commented so is either a mentor or college student.

Are we all really that bored at work?
__________________
[2014 - Present] 68 Truck Town Thunder| Mentor |2014 - Great Lakes Bay Winner, Curie Quarterfinalists, District Chairman's Award, MCS Chairman's Award, Industrial Design Award, Entrepreneurship Award
[2014 - Present] 5046 Jacked Up Jackets| Mentor |
[2010 - 2013] 3421 Tachyon TECs| Mentor |2010 - Rookie Inspiration Award; 2013 - Coopertition Award , Kettering Quarterfinalists - 2nd Seed, Livonia Quarterfinalists - 2nd Seed Captain
[2009 - 2010] 2604 Metal and Soul| Student | 2010 - Gracious Professionalism Award, UL Industrial Safety Award
Reply With Quote
  #10   Spotlight this post!  
Unread 04-05-2011, 16:04
BigJ BigJ is offline
Registered User
AKA: Josh P.
FRC #1675 (Ultimate Protection Squad)
Team Role: Engineer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Milwaukee, WI
Posts: 945
BigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond repute
Re: Please help Wave Robotics earn $1,000!!!

Yes. Also trawling CD for my post-CMP hangover
Reply With Quote
  #11   Spotlight this post!  
Unread 04-05-2011, 16:06
DarrinMunter's Avatar
DarrinMunter DarrinMunter is offline
Fixes parts that leak smoke
AKA: Darrin Munter
no team
Team Role: Mentor
 
Join Date: Aug 2010
Rookie Year: 2009
Location: Peoria, IL
Posts: 151
DarrinMunter is a splendid one to beholdDarrinMunter is a splendid one to beholdDarrinMunter is a splendid one to beholdDarrinMunter is a splendid one to beholdDarrinMunter is a splendid one to beholdDarrinMunter is a splendid one to beholdDarrinMunter is a splendid one to behold
Re: Please help Wave Robotics earn $1,000!!!

Are we all really that bored at work? [/quote]



YES.
__________________
2014 Wisconsin Engineering Inspiration Award, CIR Engineering Excellence Award
2013 Croosroads Engineering Inspiration Award

2012 BMR Judge's Award, 2011 BMR Regional Champions, BMR Motorola Quality Award, BMR Autodesk Excellence in Design Award, 2010 BMR Regional finalists; 2009 BMR General Motors Industrial Design Award; 2008 BMR Engineering Inspiration Award; 2007 BMR Rookie All-Star Award

Darrin Munter - N9SDD
Advanced Technology Services
Reply With Quote
  #12   Spotlight this post!  
Unread 04-05-2011, 16:59
Andrew Schreiber Andrew Schreiber is offline
Joining the 900 Meme Team
FRC #0079
 
Join Date: Jan 2005
Rookie Year: 2000
Location: Misplaced Michigander
Posts: 4,062
Andrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond repute
Re: Please help Wave Robotics earn $1,000!!!

Quote:
Originally Posted by efoote868 View Post
would you like the java source code?
Actually yes, I'm curious how you tell where the coins are.

(Hey, it is a really cool application and I'm curious!)
__________________




.
Reply With Quote
  #13   Spotlight this post!  
Unread 04-05-2011, 21:20
efoote868 efoote868 is offline
foote stepped in
AKA: E. Foote
FRC #0868
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2005
Location: Noblesville, IN
Posts: 1,404
efoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond repute
Re: Please help Wave Robotics earn $1,000!!!

Quote:
Originally Posted by Andrew Schreiber View Post
Actually yes, I'm curious how you tell where the coins are.

(Hey, it is a really cool application and I'm curious!)
It took me about ~30 minutes to write this (I wrote something similar for a different thing oh so long ago).

I apologize for using magic numbers for pixel locations. Also, do not run this if you're not willing to give up the use of your computer for a minute.



Code:
/*
 Copyright (C) 2011  Evan Foote

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

import java.awt.AWTException;
import java.awt.Color;
import java.awt.Robot;

public void robotRunner()
{
  try
  {
    Robot myRobot = new Robot();
    myRobot.delay(4000);

    //get the current system time for reference on how long to run
    long time = System.currentTimeMillis();

    int loops = 0;

    int x = 560; //coordinate of the screen in pixels where the coins appear
    int y = 560;             
    int dx = 0; //or offset, where we're sampling
    int dy = 0;                
    int xmax = 240; //size of the rectangle we're sampling
    int ymax = 150;                
    int xsamp = 40; //AKA the step size between samples
    int ysamp = 20;

    Color c; //the sampled color

    int cnt = 0; //The number of coins we've found

    //run main loop for about 1 minute
    while (System.currentTimeMillis() - time < 1*60*1000) 
    {
      //iterate through each coordiante in the sample space
      for (dx = 0; dx < xmax; dx += xsamp)
      {
        for (dy = 0; dy < ymax; dy += ysamp)
        {
          //snag the color where we're sampling
          c = myRobot.getPixelColor(x + dx, y + dy);

          //check and see if the color is something other than white (like yellow)
          if (notWhite(c))
          {
            //move the mouse to that location
            myRobot.mouseMove(x + dx, y + dy);
            //increment the count so we know when to stop
            cnt++;

            //subtract this sample so we can check again
            dy -= ysamp;

            //left click the mouse, wait, drag it to the piggy bank, wait,
            //release it, wait.
            myRobot.mousePress(16);
            myRobot.delay(50);
            myRobot.mouseMove(448, 537);
            myRobot.delay(50);
            myRobot.mouseRelease(16);
            myRobot.delay(50);

            //TODO: CAN BETTER THIS CODE by:
            //checking that the coin traveled with the mouse. If it didn't,
            //subtract 1 from the cnt and try again.

            //alright, grabbed 5 coins. click on the refresh button
            if(cnt == 5)
            {
              myRobot.mouseMove(1109, 87);
              myRobot.delay(50);
              myRobot.mousePress(16);
              myRobot.delay(50);
              myRobot.mouseRelease(16);

              //wait a second for the page to refresh. Slower internet speeds
              //should wait longer.
              myRobot.delay(1000);
              break;
            }//if count is at 5
          }//if sample is not white
        }//for each y pixel

        //Putting this in the outer for loop so we can break from it
        //as well.
        if (cnt == 5)
        {
          //reset the count and the iteration
          cnt = 0;
          break;
        }
      }//for each x row

      //if dy >= ymax, it means that we've traveled all the way and didn't
      //spot 5 coins. something went bad, refresh the page.
      if (dy >= ymax)
      {
        myRobot.mouseMove(1109, 87);
        myRobot.delay(50);
        myRobot.mousePress(16);
        myRobot.delay(50);
        myRobot.mouseRelease(16);

        myRobot.delay(1000);

        cnt = 0;
      }

    loops++;
    }//while loop

    System.out.println("Number of loops run: " + loops);
  }//try
  catch(Exception e)
  {
    //not sure what would cause above code to be more than exceptional, but
    //if it is, I don't care and we can stop running here.
  }
}

private boolean notWhite (Color c)
{
  return (c.getRed() + c.getBlue() + c.getGreen() < 255*3);
}
__________________
Be Healthy. Never Stop Learning. Say It Like It Is. Own It.

Like our values? Flexware Innovation is looking for Automation Engineers. Check us out!
Reply With Quote
  #14   Spotlight this post!  
Unread 04-05-2011, 21:31
gyroscopeRaptor's Avatar
gyroscopeRaptor gyroscopeRaptor is offline
Registered ConfUser
AKA: Mark McGivern
FRC #3633 (Catalyst)
Team Role: College Student
 
Join Date: Dec 2010
Rookie Year: 2011
Location: Albert Lea, MN / Troy, NY
Posts: 360
gyroscopeRaptor has a spectacular aura aboutgyroscopeRaptor has a spectacular aura about
Re: Please help Wave Robotics earn $1,000!!!

I suggest you remove the script. It's highly likely that the rules don't have anything good to say about macros to gain points. This could result in Wave Robotics losing by default.

Last edited by gyroscopeRaptor : 04-05-2011 at 21:35.
Reply With Quote
  #15   Spotlight this post!  
Unread 04-05-2011, 22:46
Andrew Schreiber Andrew Schreiber is offline
Joining the 900 Meme Team
FRC #0079
 
Join Date: Jan 2005
Rookie Year: 2000
Location: Misplaced Michigander
Posts: 4,062
Andrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond repute
Re: Please help Wave Robotics earn $1,000!!!

Quote:
Originally Posted by efoote868 View Post
It took me about ~30 minutes to write this (I wrote something similar for a different thing oh so long ago).

I apologize for using magic numbers for pixel locations. Also, do not run this if you're not willing to give up the use of your computer for a minute.
Just doing a naive search if I am understanding this correctly. Does anyone feel like taking a crack at this using vision processing in Labview?

(Not badmouthing this at all, just curious if any of the FRC students want to put all that vision processing they did to good use)
__________________




.
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


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

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