Go to Post We don't just build robots. We build people. - Koko Ed [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 Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 18-01-2016, 07:48
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
I made a simple statistical match simulator

http://www.tourdegiro.com/personal/robosim/

Basically, you plug in a bunch of estimates for how long it takes to do various things, and it tells you how many points on average "your robot" would take to do those things (after simulating 2500 matches), and gives you a sample match log.

Think it sucks? Github is here, make it better! (license: do whatever you want. Modify it, fork it, sell it, claim it is yours, etc)
https://github.com/arthare/robosim

The simulated robot's strategy is:
1) Get the closest ball it can
2) Shoot the ball
3) Goto 1

For assigning RPs, it assumes all your alliance's robots challenge or scale the castle, and so the castle RP boils down to your robot doing enough damage.

It does not simulate other robots, other than randomly making it harder to line up or get balls in the courtyard, depending on the defense parameters you plug in.

When a choice is available (passive vs active defenses or high goal vs low goal), the simulated robot will choose the one that has a lower expected time to complete, if there are points available for that task.

It does not simulate autonomous. Your robot starts in the courtyard without a ball though (as if you shot during autonomous).

It does not give you the straight-up points for the challenge/scale or for autonomous. It's solely meant to simulate steady-state teleop.

Last edited by Bongle : 18-01-2016 at 08:17.
Reply With Quote
  #2   Spotlight this post!  
Unread 18-01-2016, 09:24
JesseK's Avatar
JesseK JesseK is offline
Expert Flybot Crasher
FRC #1885 (ILITE)
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 2005
Location: Reston, VA
Posts: 3,608
JesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond repute
Re: I made a simple statistical match simulator

This is really cool! I've only spent a couple of minutes with it and love how easy it is to use and how straightforward the output is. I'll have to play with it more based upon similar games' videos to determine actual times to get balls, etc.
__________________

Drive Coach, 1885 (2007-present)
CAD Library Updated 5/1/16 - 2016 Curie/Carver Industrial Design Winner
GitHub
Reply With Quote
  #3   Spotlight this post!  
Unread 18-01-2016, 11:28
Fields's Avatar
Fields Fields is offline
Classic
FRC #5637 (Titanium Polars)
Team Role: Mentor
 
Join Date: Dec 2014
Rookie Year: 2015
Location: Minneapolis
Posts: 92
Fields is a name known to allFields is a name known to allFields is a name known to allFields is a name known to allFields is a name known to allFields is a name known to all
Re: I made a simple statistical match simulator

This is actually really good for helping you determine what's possible (if you put realistic numbers in there)

I believe the low/high goal needs to be corrected. I cannot get it to do a mix of the two. It seems to only rely on which is faster (and if a tie, do only high)
Reply With Quote
  #4   Spotlight this post!  
Unread 18-01-2016, 11:52
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: I made a simple statistical match simulator

Quote:
Originally Posted by Fields View Post
This is actually really good for helping you determine what's possible (if you put realistic numbers in there)

I believe the low/high goal needs to be corrected. I cannot get it to do a mix of the two. It seems to only rely on which is faster (and if a tie, do only high)
Yeah, that's how the code is written. If expected lineup+shooting time is shorter for one method, that's what they're going to try to do. It doesn't do an expected-value calculation because in my experience, drive teams don't plan on missing.

My justification is that a drive team will tend to always pick one in their strategy anyway, and they don't plan on missing, so accuracy doesn't get taken into account.

Edit: I just noticed I never pushed the actual app to github. Embarrassing...

Last edited by Bongle : 18-01-2016 at 11:59.
Reply With Quote
  #5   Spotlight this post!  
Unread 18-01-2016, 14:54
vigneshv vigneshv is online now
Registered User
FRC #2489
 
Join Date: Jan 2014
Location: United States
Posts: 53
vigneshv is on a distinguished road
Re: I made a simple statistical match simulator

Thanks for making this! It would be awesome if there was a way to choose to get your balls from only the secret passage (because the simulator tends to choose to use the balls from the neutral zone pretty often, even if the times to get them are extremely high).

Last edited by vigneshv : 18-01-2016 at 14:57.
Reply With Quote
  #6   Spotlight this post!  
Unread 18-01-2016, 15:16
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: I made a simple statistical match simulator

Quote:
Originally Posted by vigneshv View Post
Thanks for making this! It would be awesome if there was a way to choose to get your balls from only the secret passage (because the simulator tends to choose to use the balls from the neutral zone pretty often, even if the times to get them are extremely high).
That's a good point! You're right that it always tries to get balls in its current sector (or, if in the courtyard and no balls available, in the neutral zone), rather than traversing to a location where they might be easier to get like your home secret passage. I should add that.

I didn't model the opponent's secret passage as a source to get balls, since the availability of balls there depends on a _lot_ of very dynamic factors, like the behaviour of other robots, penalties, defensive play, etc.
Reply With Quote
  #7   Spotlight this post!  
Unread 19-01-2016, 11:29
YoshiCity YoshiCity is offline
Registered User
FRC #0133
 
Join Date: Jul 2015
Location: United States
Posts: 16
YoshiCity is an unknown quantity at this point
Re: I made a simple statistical match simulator

Due to the relative greater accuracy required by high goal shooters, perhaps a separate multiplier for defense bots for high goal vs low goal shots may be necessary?
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 21: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