Go to Post if the school doesn't have a team - just start one. - Pattie [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

 
View Poll Results: Was this useful?
Yes, it was! It helped point out diamonds in the rough 109 70.32%
No, its numbers generally did not correspond to robot's actual on-field performance 46 29.68%
Voters: 155. You may not vote on this poll

Reply
Thread Tools Rating: Thread Rating: 32 votes, 4.88 average. Display Modes
  #1   Spotlight this post!  
Unread 27-02-2009, 17:09
Bongle's Avatar
Bongle Bongle is offline
Registered User
FRC #2702 (REBotics)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Waterloo
Posts: 1,069
Bongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond repute
Send a message via MSN to Bongle
Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting

5:42 EST (v2): Updated with more DLLs in the binary zip which will hopefully allow it to work.
6:27 EST (v3): Updated with sorting and a reduction in verbosity.

I've spent a bit of time recently cleaning up my offensive power rating code and adding a few new features that I felt would be useful this year. The application is attached, as is the source code.

Features:
1) Automatically downloads current results from usfirst.org, parses them, and outputs the results, with only 3 parameters from the user (which regional, which year, and which statistic you want)
2) Three statistics: Offensive Power Rating, Defensive Power Rating, and Estimated +/-. The +/- is simply the OPR minus the DPR. It may or may not actually be useful (or correct!).
3) Easy to use, by my standards. Just double click, enter the parameters it asks for, and it'll download match results itself. Can also be run from a script with command-line parameters for people that want their statistics automated.
4) The parsing code is written so it can be used before a regional is complete. Obviously this reduces the accuracy of the outputted stats, and it doesn't even work before each team has played 2-3 matches. But this can be useful for the friday-evening scouting meeting to pick out diamonds in the rough.

Disclaimers:
1) There are people that don't believe OPR will be useful this year. I disagree with them, but keep that in mind.
2) OPR does not indicate just a robot's performance, but a whole team's performance. If a team has a weak robot but a stellar human player, they might still have a high OPR.
3) Having a high OPR in this game means very little without also having a low DPR. If you score 80 points in a match but always give away 100, you are not useful to your alliance.
4) I don't know how accurate the +/- stuff is, it is a result of me playing around. Hopefully some teams out at regionals right now can compare with their scouting data and give feedback.


Interpretations:
A high OPR might indicate:
-A robot that is very effective at getting balls into enemy trailers
-A HP that is very effective at getting balls into enemy trailers
-A robot that does the grunt-work at supplying empty cells so that its alliance can always score a couple super-cells
-Any robot that just 'greases the wheels' of its alliance, resulting in higher scores

A low OPR (yes, it can even be negative) might indicate:
-An otherwise good robot that takes a lot of penalties
-A robot that simply doesn't score much
-A robot impedes its alliance-partner's progress at scoring

A high DPR might indicate:
-No-shows or broken robots that spend whole matches with a stopped trailer, thus getting filled up
-Robots that tend to get into positions where they get scored on
-Robots that tend to get their alliance partners into positions where they get scored on
-Robots with no auto mode
-Generally, high DPR means low mobility. It is a robot that gets scored on a lot.

A low DPR might indicate:
-A mobile robot that can effectively keep its trailer out of trouble
-A lucky robot

Really, I should have called DPR something else, because a high DPR actually means you're very bad at defending your trailer.

Without further adieau, the attachments:
Attached Files
File Type: zip OPRNet Source.zip (9.3 KB, 489 views)
File Type: zip OPRNet - v3.zip (765.8 KB, 877 views)
File Type: zip OPRNet Source v3.zip (9.5 KB, 336 views)

Last edited by Bongle : 27-02-2009 at 20:59.
Reply With Quote
  #2   Spotlight this post!  
Unread 27-02-2009, 17:14
Rick Wagner's Avatar
Rick Wagner Rick Wagner is offline
Registered User
FRC #3008 (Kalani Robotics)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2003
Location: Honolulu, Hawaii
Posts: 188
Rick Wagner is a splendid one to beholdRick Wagner is a splendid one to beholdRick Wagner is a splendid one to beholdRick Wagner is a splendid one to beholdRick Wagner is a splendid one to beholdRick Wagner is a splendid one to beholdRick Wagner is a splendid one to behold
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting

Sounds interesting. Before I download, what did you compile it with and for what platform (Windows XT I assume)?
Reply With Quote
  #3   Spotlight this post!  
Unread 27-02-2009, 17:17
Bongle's Avatar
Bongle Bongle is offline
Registered User
FRC #2702 (REBotics)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Waterloo
Posts: 1,069
Bongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond repute
Send a message via MSN to Bongle
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting

Quote:
Originally Posted by Rick Wagner View Post
Sounds interesting. Before I download, what did you compile it with and for what platform (Windows XT I assume)?
Visual Studio 2005, developed on Windows XP, though I'm pretty sure it'll work on Vista as well. It makes heavy use of Windows API functions for the internet stuff, I think you'll need the windows SDK to compile it.
Reply With Quote
  #4   Spotlight this post!  
Unread 27-02-2009, 17:27
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting

I got this error :
This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.
Reply With Quote
  #5   Spotlight this post!  
Unread 27-02-2009, 17:29
Rick Wagner's Avatar
Rick Wagner Rick Wagner is offline
Registered User
FRC #3008 (Kalani Robotics)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2003
Location: Honolulu, Hawaii
Posts: 188
Rick Wagner is a splendid one to beholdRick Wagner is a splendid one to beholdRick Wagner is a splendid one to beholdRick Wagner is a splendid one to beholdRick Wagner is a splendid one to beholdRick Wagner is a splendid one to beholdRick Wagner is a splendid one to behold
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting

Quote:
Originally Posted by Bongle View Post
Visual Studio 2005, developed on Windows XP, though I'm pretty sure it'll work on Vista as well. It makes heavy use of Windows API functions for the internet stuff, I think you'll need the windows SDK to compile it.
Thanks. I have the SDK.
Reply With Quote
  #6   Spotlight this post!  
Unread 27-02-2009, 17:37
Bongle's Avatar
Bongle Bongle is offline
Registered User
FRC #2702 (REBotics)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Waterloo
Posts: 1,069
Bongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond repute
Send a message via MSN to Bongle
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting

Quote:
Originally Posted by EricVanWyk View Post
I got this error :
This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.
Hmmm...

Try grabbing the Visual Studio 2005 redistributable:
http://www.microsoft.com/downloads/d...displaylang=en

I'm going to update the .zip with the DLLs I think are necessary, but I don't have high hopes.
Reply With Quote
  #7   Spotlight this post!  
Unread 27-02-2009, 17:40
Samuel H. Samuel H. is offline
Registered User
no team
 
Join Date: Dec 2005
Rookie Year: 1000
Location: World
Posts: 40
Samuel H. has a spectacular aura aboutSamuel H. has a spectacular aura about
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting

Quote:
Originally Posted by EricVanWyk View Post
I got this error :
This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.
It appears there is a problem with the manifest for the program. When I viewed the dependencies using Dependency Walker, it provided these errors:

Quote:
Error: The Side-by-Side configuration information for "c:\documents and settings\1880337\my documents\downloads\OPRNET.EXE" contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001).
Error: At least one required implicit or forwarded dependency was not found.
Warning: At least one delay-load dependency module was not found.
Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.
MSVCP80D.DLL and MSVCR80D.DLL seem to be the dlls mentioned by the warnings.

When I googled them, I found several mentions of people getting that error and solving it by selecting the "Embed Manifest" option when compiling. I don't know whether this correct or relevant.

Thanks
- Sam

Edit: Tried installing the redistributable, made no difference.
__________________
Team 931 Alumni
Freshman
South Dakota School of Mines and Technology

Last edited by Samuel H. : 27-02-2009 at 17:44. Reason: Updated status, reword
Reply With Quote
  #8   Spotlight this post!  
Unread 27-02-2009, 17:42
Bongle's Avatar
Bongle Bongle is offline
Registered User
FRC #2702 (REBotics)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Waterloo
Posts: 1,069
Bongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond repute
Send a message via MSN to Bongle
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting

Quote:
Originally Posted by Samuel H. View Post
It appears there is a problem with the manifest for the program. When I viewed the dependencies using Dependency Walker, it provided these errors:



MSVCP80D.DLL and MSVCR80D.DLL seem to be the ones in question.

When I googled them, I found several mentions of people getting that error and solving it by selecting the "Embed Manifest" option when compiling. I don't know whether this correct or relevant.

Thanks
- Sam
I think there are two problems:
1) The .exe I zipped is the debug version, and so looks for debug DLLs that most people won't have
2) Some (most?) people won't have the VS2005 redistributable anyway.
Reply With Quote
  #9   Spotlight this post!  
Unread 27-02-2009, 17:44
keehun's Avatar
keehun keehun is offline
Team Captain
AKA: Keehun Nam
FRC #2502 (EP Robotics)
Team Role: Leadership
 
Join Date: May 2008
Rookie Year: 2008
Location: Eden Priaire
Posts: 474
keehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond repute
Send a message via AIM to keehun
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting

Next time you do this sort of stuff, PM me so I can develop a mac version alongside yours!

I may try to port this one
__________________
For by grace you have been saved through faith, and that not of yourselves; it is the gift of God, not of works, lest anyone should boast. -- Ephesians 2:8-9
2010: Quarter Finalist (MN 10,000 Lakes)
2010: Website Award (MN 10,000 Lakes)
2009: Quarter Finalist (MN 10,000 Lakes)
2009: GM Industrial Award (MN 10,000 Lakes)
Reply With Quote
  #10   Spotlight this post!  
Unread 27-02-2009, 17:45
Bongle's Avatar
Bongle Bongle is offline
Registered User
FRC #2702 (REBotics)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Waterloo
Posts: 1,069
Bongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond repute
Send a message via MSN to Bongle
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting

Quote:
Originally Posted by keehun View Post
Next time you do this sort of stuff, PM me so I can develop a mac version alongside yours!

I may try to port this one
Most of the math stuff should be easily portable, its just the downloading that is heavily dependent on windows.

Edit: here's the math library I used.
Attached Files
File Type: zip jama.zip (69.7 KB, 103 views)
Reply With Quote
  #11   Spotlight this post!  
Unread 27-02-2009, 18:19
engunneer's Avatar
engunneer engunneer is offline
Alumni turned Mentor
AKA: Branden Gunn
FRC #4761
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1996
Location: Reading, MA
Posts: 816
engunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond repute
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting

Runs on my vista system


Thanks,
__________________
Student FRC23 (1996-1999), Mentor FRC246 (2000), Mentor FRC1318 (2007-2009), Mentor FRC93 (2011), Mentor FRC2151 (2012), Mentor FRC23 (2013), Mentor FRC4761 (2014-2017)
1998 - National Chairman's Award and Woodie Flowers Award (FRC23, Mike Bastoni ) | 2007 - PNW SF (488, 1595) | 2008 - Oregon RCA - Seattle #2 Seed, SF (488, 1696) | 2009 - Oregon #1 Seed, Winners (1983, 2635) - Seattle SF (945, 2865) - Galileo #2 Seed, SF (973, 25) | 2012 Midwest F (111, 71) | 2014 RIDE Winners (78, 125), Inspector - NEU #24, QF (3479, 3958) - NECMP #35 | 2015 Reading #11, SF (1058, 190), Inspector - RIDE #17, QF(4055, 5494), Inspector - NECMP #57 | 2016 Reading #4, SF (133, 4474), DCA, Inspector - Ride #22, SF (1735, 2067), Creativity, Inspector - NECMP #48, RCA - Archimedes
Reply With Quote
  #12   Spotlight this post!  
Unread 27-02-2009, 18:32
Bongle's Avatar
Bongle Bongle is offline
Registered User
FRC #2702 (REBotics)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Waterloo
Posts: 1,069
Bongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond repute
Send a message via MSN to Bongle
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting

Just posted a v3 revision that sorts the output, reduces how much pre-statistic stuff it spews, and fixes a bug where the command-line version would pause for input.
Reply With Quote
  #13   Spotlight this post!  
Unread 27-02-2009, 18:50
engunneer's Avatar
engunneer engunneer is offline
Alumni turned Mentor
AKA: Branden Gunn
FRC #4761
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1996
Location: Reading, MA
Posts: 816
engunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond repute
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting

please add a "verbose" option that I can turn off

thanks.
__________________
Student FRC23 (1996-1999), Mentor FRC246 (2000), Mentor FRC1318 (2007-2009), Mentor FRC93 (2011), Mentor FRC2151 (2012), Mentor FRC23 (2013), Mentor FRC4761 (2014-2017)
1998 - National Chairman's Award and Woodie Flowers Award (FRC23, Mike Bastoni ) | 2007 - PNW SF (488, 1595) | 2008 - Oregon RCA - Seattle #2 Seed, SF (488, 1696) | 2009 - Oregon #1 Seed, Winners (1983, 2635) - Seattle SF (945, 2865) - Galileo #2 Seed, SF (973, 25) | 2012 Midwest F (111, 71) | 2014 RIDE Winners (78, 125), Inspector - NEU #24, QF (3479, 3958) - NECMP #35 | 2015 Reading #11, SF (1058, 190), Inspector - RIDE #17, QF(4055, 5494), Inspector - NECMP #57 | 2016 Reading #4, SF (133, 4474), DCA, Inspector - Ride #22, SF (1735, 2067), Creativity, Inspector - NECMP #48, RCA - Archimedes
Reply With Quote
  #14   Spotlight this post!  
Unread 27-02-2009, 21:05
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting

Results from Jersey below (go 1923!!) :
Code:
OPR     1923    31.6079
OPR     708     29.8004
OPR     25      26.0054
OPR     816     25.0949
OPR     1006    24.1073
OPR     2753    23.9246
OPR     136     23.6915
OPR     1218    22.9299
OPR     223     20.6492
OPR     869     19.7636
Code:
DPR     136     32.7112
DPR     11      29.109
DPR     1616    26.7029
DPR     869     26.0814
DPR     223     25.7706
DPR     1048    24.3491
DPR     486     21.5663
DPR     219     20.9251
DPR     1617    20.6711
DPR     2344    20.3672
Code:
PlusMinus       1218    24.2442
PlusMinus       1923    22.7624
PlusMinus       102     21.6363
PlusMinus       2753    20.7922
PlusMinus       25      19.8969
PlusMinus       75      16.9573
PlusMinus       708     14.669
PlusMinus       423     14.5928
PlusMinus       816     11.5961
PlusMinus       1366    9.48648
I only listed the top 10, you'll have to download this cool chunk of code yourself to see the rest.
Reply With Quote
  #15   Spotlight this post!  
Unread 27-02-2009, 21:07
engunneer's Avatar
engunneer engunneer is offline
Alumni turned Mentor
AKA: Branden Gunn
FRC #4761
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1996
Location: Reading, MA
Posts: 816
engunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond repute
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting

Also, can you reverse the sort on DPR? (since lower is better, they should be at the top of the list)

great work, thanks.
__________________
Student FRC23 (1996-1999), Mentor FRC246 (2000), Mentor FRC1318 (2007-2009), Mentor FRC93 (2011), Mentor FRC2151 (2012), Mentor FRC23 (2013), Mentor FRC4761 (2014-2017)
1998 - National Chairman's Award and Woodie Flowers Award (FRC23, Mike Bastoni ) | 2007 - PNW SF (488, 1595) | 2008 - Oregon RCA - Seattle #2 Seed, SF (488, 1696) | 2009 - Oregon #1 Seed, Winners (1983, 2635) - Seattle SF (945, 2865) - Galileo #2 Seed, SF (973, 25) | 2012 Midwest F (111, 71) | 2014 RIDE Winners (78, 125), Inspector - NEU #24, QF (3479, 3958) - NECMP #35 | 2015 Reading #11, SF (1058, 190), Inspector - RIDE #17, QF(4055, 5494), Inspector - NECMP #57 | 2016 Reading #4, SF (133, 4474), DCA, Inspector - Ride #22, SF (1735, 2067), Creativity, Inspector - NECMP #48, RCA - Archimedes
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
Offensive Power Ranking Calculations Greg Marra General Forum 4 18-03-2009 22:03
Offensive Power Rankings for 2008 Bongle General Forum 166 18-05-2008 15:05
Offensive+Defensive Power Rankings BornaE General Forum 4 05-04-2008 01:33
2006 Offensive Power Ratings sw293 General Forum 16 10-05-2006 17:04
(CURIE) Let's make this Easy for all of us. [scouting] 157#1Driver Championship Event 13 22-04-2002 08:56


All times are GMT -5. The time now is 16:02.

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