Go to Post ASPCA would be happy to know you are petting your watchdog rather than kicking it. - Ether [more]
Home
Go Back   Chief Delphi > Competition > Rules/Strategy > Scouting
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 30-01-2008, 00:39
Nibbles Nibbles is offline
Interstellar Hitchhiker
AKA: Austin Wright
FRC #0498 (Cobra Commanders)
Team Role: Alumni
 
Join Date: Jan 2008
Rookie Year: 2003
Location: Arizona
Posts: 103
Nibbles is just really niceNibbles is just really niceNibbles is just really niceNibbles is just really niceNibbles is just really nice
Lightbulb Web-based scouting program

This is a scouting program I have been working on for the last year. It is fully tested and mature, it does statistics, match records, handles multiple events over multiple years (you can switch the database at least), and multiple people can work at the same time, with multiple devices (with a router or wireless router).
It is a PHP program that uses any CGI web server (I use apache2 and mod_php) and MySQL on Gentoo Linux (with no GUI or X11 to keep it fast, MySQL LOVES memory). I have been keeping version control with Git for only the last three months.
I have dedicated much focus to a great user interface that is simple and quick for stuff that needs to be fast (entering match data, looking up teams).

The temporary demo is online (probably) from the laptop at http://labs.redjacket.ws/. Please be kind to it, I haven't put it through any sort of stress testing yet. Select a database first, there are five databases with actual data (frc_2007_whatever), and a sixth with all combined (frc_everything_2007, disabled for now).

A few features: Robot pictures can be viewed (and uploaded), SQL backups, match predicting can be done for all matches (future and completed) by clicking the "MP" link below the table on a match page (it predicts the correct team 90% of the time, and also gives a % certainty), a strength algorithm that shows how much a team contributes to their alliance's score (0 means average for that event, 1000 means 10 points roughly?), search for teams across all databases by number, official name/sponsor (rookie teams), or nickname from the front page. The "query" page lets you execute real SQL (SELECT statements on databases starting with "frc_" only, haha) across the database. Very useful if you want refined statistics. You can sort teams by the official FIRST ranking or my own strength algorithm clicking on the headers on the team list.

I know it is great, please don't waste a post to say that
Please do post if you want to use it at a regional or suggest a feature. I want to have all match data for every regional entered this year, if you are able to record and upload all stats (penalties, per-team scores which there may be with live scoring this year, etc), please make that available.

If you want the source, you will need Git for now: git clone http://labs.redjacket.ws/tools/scouting.git/
If you just want to view the source, try Git-php, linked to on the front page.
  #2   Spotlight this post!  
Unread 30-01-2008, 18:36
nate118 nate118 is offline
Registered User
FRC #0118
 
Join Date: Jan 2008
Location: Houston
Posts: 1
nate118 is an unknown quantity at this point
Re: Web-based scouting program

Do you think it would be against the spirt of First to try to sell licenses to a scouting program?
  #3   Spotlight this post!  
Unread 30-01-2008, 18:44
MARS-CJ's Avatar
MARS-CJ MARS-CJ is offline
Registered User
AKA: Carl Jalm
FRC #1523 (M.A.R.S.)
Team Role: Scout
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Jupiter, FL
Posts: 32
MARS-CJ is on a distinguished road
Send a message via AIM to MARS-CJ
Re: Web-based scouting program

Would there be a way to sort a list of all the teams in the database by certain categories? For example, this year it would probably be useful to see a team's average number of hurdles per match when choosing final alliances. It would make it easier if the program could list them from greatest to least.
__________________
"Yes, I've gone where no man has gone before, but... I was in Mexico and her father gave me permission!" - William Shatner

Last edited by MARS-CJ : 30-01-2008 at 18:56.
  #4   Spotlight this post!  
Unread 30-01-2008, 21:49
Nibbles Nibbles is offline
Interstellar Hitchhiker
AKA: Austin Wright
FRC #0498 (Cobra Commanders)
Team Role: Alumni
 
Join Date: Jan 2008
Rookie Year: 2003
Location: Arizona
Posts: 103
Nibbles is just really niceNibbles is just really niceNibbles is just really niceNibbles is just really niceNibbles is just really nice
Re: Web-based scouting program

Quote:
Originally Posted by nate118 View Post
Do you think it would be against the spirt of First to try to sell licenses to a scouting program?
Against the spirit of first to sell licenses? I don't think so, I know Carl Hayden/Falcon Robotics, FRC 842, is selling a networked scouting device to teams, I don't have the link right in front of me but it is somewhere on CD. Granted, it is a physical device, not just software.

I just added the GPL v3 to the project, so it shouldn't matter for me.

Quote:
Originally Posted by MARS-CJ View Post
Would there be a way to sort a list of all the teams in the database by certain categories? For example, this year it would probably be useful to see a team's average number of hurdles per match when choosing final alliances. It would make it easier if the program could list them from greatest to least.
That is a great idea! There is a show/hide columns link on top of the teams table, an "add a column" drop down box would work, or a number of check boxes that are unchecked by default. I will try a few different methods, see what works best.
  #5   Spotlight this post!  
Unread 31-01-2008, 01:17
Nibbles Nibbles is offline
Interstellar Hitchhiker
AKA: Austin Wright
FRC #0498 (Cobra Commanders)
Team Role: Alumni
 
Join Date: Jan 2008
Rookie Year: 2003
Location: Arizona
Posts: 103
Nibbles is just really niceNibbles is just really niceNibbles is just really niceNibbles is just really niceNibbles is just really nice
Re: Web-based scouting program

I posted files with basic install directions at http://labs.redjacket.ws/files/releases/

Install information is in docs/install.txt, you just need a web server with PHP and MySQL (Windows, GNU/Linux, Mac, doesn't matter).
PLEASE do not hesitate PM me if you have trouble setting it up. You can also catch me on IRC at server irc.freenode.net channel #firstrobotics user AAA_awright, if you know how to use IRC.
  #6   Spotlight this post!  
Unread 31-01-2008, 08:33
proegssilb proegssilb is offline
Registered User
AKA: David Bliss
FRC #0904 (D^3)
Team Role: Scout
 
Join Date: Apr 2007
Rookie Year: 2005
Location: Michigan
Posts: 41
proegssilb is on a distinguished road
Re: Web-based scouting program

After build season, I'll look at this a little closer. It holds a lot of promise.

I think there's one thing missing, though. My team's primary use for scouting isn't ranking teams, it's providing info on how to approach each match. To that end, a printable and concise page containing each team, that team's notes, a picture, and the most important stats for that year is a good tool to have.
  #7   Spotlight this post!  
Unread 31-01-2008, 14:48
Nibbles Nibbles is offline
Interstellar Hitchhiker
AKA: Austin Wright
FRC #0498 (Cobra Commanders)
Team Role: Alumni
 
Join Date: Jan 2008
Rookie Year: 2003
Location: Arizona
Posts: 103
Nibbles is just really niceNibbles is just really niceNibbles is just really niceNibbles is just really niceNibbles is just really nice
Re: Web-based scouting program

I put great thought into the team pages, it was one of the first things I worked on. All the pages are printer friendly, the menus are automaticly hidden, for example, amoung other things that are non-interactive. You can upload photos of the team's robot, and put in notes and enter data on a team.
Sorry there are no examples of robot photos or how to edit the team (I am still working on permissions, so I can't give out an demp login username/password for now).
  #8   Spotlight this post!  
Unread 01-02-2008, 13:43
SteveGPage's Avatar
SteveGPage SteveGPage is offline
Mentor - Scouting and Strategy
AKA: Steve
FRC #0836 (RoboBees)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2004
Location: Hollywood, MD
Posts: 520
SteveGPage has a reputation beyond reputeSteveGPage has a reputation beyond reputeSteveGPage has a reputation beyond reputeSteveGPage has a reputation beyond reputeSteveGPage has a reputation beyond reputeSteveGPage has a reputation beyond reputeSteveGPage has a reputation beyond reputeSteveGPage has a reputation beyond reputeSteveGPage has a reputation beyond reputeSteveGPage has a reputation beyond reputeSteveGPage has a reputation beyond repute
Re: Web-based scouting program

Quote:
Originally Posted by Nibbles View Post
... (cut) match predicting can be done for all matches (future and completed) by clicking the "MP" link below the table on a match page (it predicts the correct team 90% of the time, and also gives a % certainty), a strength algorithm that shows how much a team contributes to their alliance's score (0 means average for that event, 1000 means 10 points roughly?), (cut) ....
Can you share the algorithm that you used to do the match predictions? Thanks!

Best regards,

Steve
__________________
FRC 836, The RoboBees www.robobees.org
growingSTEMS www.growingSTEMS.org
2017: Southwest VA, Northern MD, Chesapeake District Championships, Championships
  #9   Spotlight this post!  
Unread 01-02-2008, 17:59
Nibbles Nibbles is offline
Interstellar Hitchhiker
AKA: Austin Wright
FRC #0498 (Cobra Commanders)
Team Role: Alumni
 
Join Date: Jan 2008
Rookie Year: 2003
Location: Arizona
Posts: 103
Nibbles is just really niceNibbles is just really niceNibbles is just really niceNibbles is just really niceNibbles is just really nice
Re: Web-based scouting program

Quote:
Originally Posted by SteveGPage View Post
Can you share the algorithm that you used to do the match predictions? Thanks!
Best regards,
Steve
For the strength of team T, find all the matches played by team T (set B), find all the teams they played against or with (set C), and all the matches they played (set D), then find the average of their score minus opponents score (set E). Subtract the team T's average match score minus opponents score.

I have refined it several times over the last year, but that is how it works more or less. It also assumes that each team has an equal chance of competing against each other, which was not the case, as rookie teams always played with better teams boosting their score, and in a few cases the same alliance played together, It still fared very good however.

Let me try explaining another way: It takes into account the scores of your opponents and allies.

This is the exact SQL query used to find the strength for each team:
Code:
SELECT
  ROUND(AVG(IF(b.teamnum=c.teamnum ,2,-1)*IF(d.alliance="red",e.redscore-e.bluescore,e.bluescore-e.redscore)*IF(b.alliance=c.alliance,1,-1))*100) AS score2
FROM team_match b JOIN team_match c JOIN team_match d JOIN matches e
ON (b.matchid=c.matchid)
  AND (d.teamnum=c.teamnum AND d.matchid!=b.matchid)
  AND (d.matchid=e.matchid)
GROUP BY q.teamnum
This is in pages/strength.act.strength_2.php .

This is how I get the team strengths. Match predicting is a new area for me, I implemented it just a few month ago.
For matches, I found that the sum of the teams strengths on the target alliance, minus the sum of the opponent's alliance, works well enough.
I can calculate the chance a team will win with a cumulative logistic distribution, who's parent function is f(x) = 1/(1+e^(-x)).

My most recent tests show it is only 80% to 85% accurate, based on how I add the strengths together (add the square roots, etc). I don't really care too much, it isn't the most important part of the program.
  #10   Spotlight this post!  
Unread 06-02-2008, 11:21
sebas2mil's Avatar
sebas2mil sebas2mil is offline
Registered User
AKA: Sebastian Acosta
FRC #3966 (STEMpunks)
Team Role: Mentor
 
Join Date: Nov 2004
Rookie Year: 2004
Location: Coral Springs FL
Posts: 122
sebas2mil has a spectacular aura aboutsebas2mil has a spectacular aura about
Re: Web-based scouting program

I am looking at it for 1251 as a scouting system

we are attending the florida regional and the palmetto regional

If it is useful at florida we will deff use it at palmetto

The only thing is that I'm having trouble setting it up

could I use access 2007

would that do the same thing as using that other software you wanted to use

thanks a lot

sebas
__________________
3966 STEMPunks
2014 3rd place Safety Animation Video

1251 TechTigers
[color=darkorange]2008 UCF Regional Winner (1251,233,86)
2008 Florida General Motors Industrial Design Award
2008 Palmetto Semi-Finalist (1251,845,1270)
2008 Palmetto General Motors Industrial Design Award [b][center][size=2]2004 UCF Rookie All Star Award2005 UCF Judges Award
2005 UCF Finalist (1251,1270,845)
2005 Palmetto Xerox Creativity Award
2005 Palmetto Finalist (1251,25,301)
2005 Mayhem @ The Museum (1251,1523,1390)
2005 Mayhem @ The Museum Most Tetras Stacked In One Match Award
2006 UCF Semi-Finalist (86,710,1251)
2006 Palmetto DaimlerChrysler Team Spirit Award
2006 Palmetto Regional Winner (11,247,1251)
2007 Florida General Motors Industrial Design Award
2007 Florida Regional Winner (1251, 1270, 86)
  #11   Spotlight this post!  
Unread 07-02-2008, 22:55
Nibbles Nibbles is offline
Interstellar Hitchhiker
AKA: Austin Wright
FRC #0498 (Cobra Commanders)
Team Role: Alumni
 
Join Date: Jan 2008
Rookie Year: 2003
Location: Arizona
Posts: 103
Nibbles is just really niceNibbles is just really niceNibbles is just really niceNibbles is just really niceNibbles is just really nice
Re: Web-based scouting program

I'll summarize the PM I replied to for everyone else:
There is no reason Access couldn't work, however I can't vouch for it's standards support, and I have no clue how to set it up. It is possible though, since I use a database library (ADODB) that supports many types of databases.
I think installing a web server package such as XAMPP or WAMP, which contains Apache and MySQL, is much easier to set up and use.
  #12   Spotlight this post!  
Unread 06-03-2008, 22:49
synth3tk's Avatar
synth3tk synth3tk is offline
Volunteer / The Blue Alliance
AKA: David Thomas
no team
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Ohio
Posts: 2,005
synth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond repute
Re: Web-based scouting program

Quote:
Originally Posted by Nibbles View Post
I'll summarize the PM I replied to for everyone else:
There is no reason Access couldn't work, however I can't vouch for it's standards support, and I have no clue how to set it up. It is possible though, since I use a database library (ADODB) that supports many types of databases.
I think installing a web server package such as XAMPP or WAMP, which contains Apache and MySQL, is much easier to set up and use.
I'm using XAMPP for Windows to build a network, so I'll try it out and see what happens. I've been looking for a good scouting database to integrate into our intranet. Hopefully it'll work out, I'll let you know.
__________________
Quote:
The difference between theory and application is that in theory, theory and application are the same; In application, they are not.

Last edited by synth3tk : 06-03-2008 at 22:53.
  #13   Spotlight this post!  
Unread 08-02-2008, 11:06
SteveGPage's Avatar
SteveGPage SteveGPage is offline
Mentor - Scouting and Strategy
AKA: Steve
FRC #0836 (RoboBees)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2004
Location: Hollywood, MD
Posts: 520
SteveGPage has a reputation beyond reputeSteveGPage has a reputation beyond reputeSteveGPage has a reputation beyond reputeSteveGPage has a reputation beyond reputeSteveGPage has a reputation beyond reputeSteveGPage has a reputation beyond reputeSteveGPage has a reputation beyond reputeSteveGPage has a reputation beyond reputeSteveGPage has a reputation beyond reputeSteveGPage has a reputation beyond reputeSteveGPage has a reputation beyond repute
Re: Web-based scouting program

Quote:
Originally Posted by Nibbles View Post

I have refined it several times over the last year, but that is how it works more or less. It also assumes that each team has an equal chance of competing against each other, which was not the case, as rookie teams always played with better teams boosting their score, and in a few cases the same alliance played together, It still fared very good however.
Thanks! I will certainly incorporate this approach into how I do scouting! Thanks for sharing this!

Good luck this season!

Steve
__________________
FRC 836, The RoboBees www.robobees.org
growingSTEMS www.growingSTEMS.org
2017: Southwest VA, Northern MD, Chesapeake District Championships, Championships
  #14   Spotlight this post!  
Unread 08-02-2008, 21:20
Nibbles Nibbles is offline
Interstellar Hitchhiker
AKA: Austin Wright
FRC #0498 (Cobra Commanders)
Team Role: Alumni
 
Join Date: Jan 2008
Rookie Year: 2003
Location: Arizona
Posts: 103
Nibbles is just really niceNibbles is just really niceNibbles is just really niceNibbles is just really niceNibbles is just really nice
Re: Web-based scouting program

I typed up and posted a fairly descriptive tutorial online:
http://docs.google.com/View?docid=dcz67k4q_31gk8m5rhw
As usual, if anyone has any problems, feel free to contact me with whatever means you feel appropriate (PM or IRC works best).
If anyone is interested in helping to edit it, I can add you as an editor if you have a Google account (which is trivial to create) or Gmail, Private Message me with your email.
  #15   Spotlight this post!  
Unread 06-03-2008, 00:01
David Bliss David Bliss is offline
Registered User
FRC #0904
 
Join Date: Jan 2008
Rookie Year: 2004
Location: Michigan
Posts: 4
David Bliss is an unknown quantity at this point
Send a message via AIM to David Bliss
Re: Web-based scouting program

I have created, with help, an alternate data input to this application. This one focuses on getting data in the database "live"-- as quickly as possible from the stands as the competitions are happening. There are two components, (1) a VB application that the user works with to generate data, and (2) a python 2.5 and pymysql script that commits that data to the database. In the zip so far are two sample INI files needed to power the system, and the Python script to commit data. I know the code is a bit sloppy, and there's probably a few bugs, but it seems to work pretty well so far, so I thought I'd post something to let anyone interested know what I was up to.

tournament.ini is generated by a to-be-written script, and the other INI by the VB app. The python script in the ZIP takes the INI to commit as the only command-line argument, and prompts for the MySQL username/password.

Enjoy. If you want windows binaries, those will take a couple days.
Attached Files
File Type: zip iniConverterSource-0.1.zip (6.9 KB, 57 views)
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 Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Good program for Palm-based scouting software development? mbmccormick Scouting 4 20-01-2008 22:02
IR Receiver 101 web link & an IR based question. Elgin Clock Technical Discussion 5 19-12-2007 16:10
scouting program Marjory Frosty Scouting 12 21-02-2006 16:30
Scouting Program? Jeffel Programming 3 16-02-2005 08:41
Web-Based File Transfer? Gadget470 Website Design/Showcase 6 11-01-2004 16:41


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

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