Go to Post P.S. Who doesn't have CD as there homepage! (I mean, come on people. It's not like there's anything else to do on the net... :)) - Ryan M. [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: 19 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 05-06-2014, 00:43
cjl2625's Avatar
cjl2625 cjl2625 is offline
apel py
AKA: Cory Lynch
FRC #2067 (Apple Pi)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Guilford, CT
Posts: 412
cjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to behold
Team 2067 Swerve Drive Game

This year, our team used swerve drive. Our team uses LabVIEW, but I recently wrote a swerve simulator/game in Java using LibGDX.
I got the idea from Team Pwnage's game, which can be found here.

Here's the link for our game:
http://applepi.tk/swerve

Here are the controls:

The harvester has to be down before you can shoot.

The calculations have some improvements from the code we used on the actual robot, like the ability to rotate around any point, not just the center. (This is what I, J, K, L keys are for)
I didn't spend too much time on the ball physics, so they're a bit weird. I'm planning on refining them, and then adding more features, like other robots on the field and USB controller support.
__________________
Head Programmer / Driver

Last edited by cjl2625 : 05-06-2014 at 08:27.
Reply With Quote
  #2   Spotlight this post!  
Unread 05-06-2014, 02:41
Dunngeon Dunngeon is offline
Pumped
AKA: Ryan
FRC #0973 (Greybots)
Team Role: College Student
 
Join Date: Mar 2014
Rookie Year: 2012
Location: Cal Poly San Luis Obispo
Posts: 299
Dunngeon has a reputation beyond reputeDunngeon has a reputation beyond reputeDunngeon has a reputation beyond reputeDunngeon has a reputation beyond reputeDunngeon has a reputation beyond reputeDunngeon has a reputation beyond reputeDunngeon has a reputation beyond reputeDunngeon has a reputation beyond reputeDunngeon has a reputation beyond reputeDunngeon has a reputation beyond reputeDunngeon has a reputation beyond repute
Re: Team 2067 Swerve Drive Game

I can't get it to shoot with space. I'm using Chrome on Windows.

Also your rotation on the arrow keys feels really fast. It would work with a joystick, but with keyboard keys it really doesn't work that well IMO.


Otherwise, looks and runs great

EDIT: You have to shoot with the intake out
__________________
(2015-?): 973
(2012-2015): 955

Last edited by Dunngeon : 05-06-2014 at 02:49.
Reply With Quote
  #3   Spotlight this post!  
Unread 05-06-2014, 02:46
Kevin Sheridan's Avatar
Kevin Sheridan Kevin Sheridan is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Feb 2014
Rookie Year: 2003
Location: Menlo Park, CA
Posts: 57
Kevin Sheridan has a reputation beyond reputeKevin Sheridan has a reputation beyond reputeKevin Sheridan has a reputation beyond reputeKevin Sheridan has a reputation beyond reputeKevin Sheridan has a reputation beyond reputeKevin Sheridan has a reputation beyond reputeKevin Sheridan has a reputation beyond reputeKevin Sheridan has a reputation beyond reputeKevin Sheridan has a reputation beyond reputeKevin Sheridan has a reputation beyond reputeKevin Sheridan has a reputation beyond repute
Re: Team 2067 Swerve Drive Game

Quote:
Originally Posted by Dunngeon View Post
I can't get it to shoot with space. I'm using Chrome on Windows.

Also your rotation on the arrow keys feels really fast. It would work with a joystick, but with keyboard keys it really doesn't work that well IMO.


Otherwise, looks and runs great
You need to deploy the intake in order to shoot. Took me a while to figure that out.
Reply With Quote
  #4   Spotlight this post!  
Unread 05-06-2014, 08:33
cjl2625's Avatar
cjl2625 cjl2625 is offline
apel py
AKA: Cory Lynch
FRC #2067 (Apple Pi)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Guilford, CT
Posts: 412
cjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to behold
Re: Team 2067 Swerve Drive Game

Oh yeah, should have mentioned that.
And the turning is really sensitive, and especially hard to control with the drift. Maybe I'll turn down the drift and the acceleration.
__________________
Head Programmer / Driver
Reply With Quote
  #5   Spotlight this post!  
Unread 05-06-2014, 11:41
dmaciel10123 dmaciel10123 is offline
The Everything Guy
AKA: David Maciel
FRC #3525 (The Nuts and Bolts of Fury)
Team Role: Alumni
 
Join Date: Feb 2013
Rookie Year: 2013
Location: Waterbury, Connecticut
Posts: 100
dmaciel10123 is an unknown quantity at this point
Re: Team 2067 Swerve Drive Game

I'm having a lot of fun with this haha. Good job, and impressive system on the bot. You guys did great this year.
__________________
Reply With Quote
  #6   Spotlight this post!  
Unread 05-06-2014, 12:12
Orion.DeYoe Orion.DeYoe is offline
Registered User
FRC #5413 (Stellar Robotics)
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2011
Location: North Fairfield, OH
Posts: 204
Orion.DeYoe is a splendid one to beholdOrion.DeYoe is a splendid one to beholdOrion.DeYoe is a splendid one to beholdOrion.DeYoe is a splendid one to beholdOrion.DeYoe is a splendid one to beholdOrion.DeYoe is a splendid one to beholdOrion.DeYoe is a splendid one to beholdOrion.DeYoe is a splendid one to behold
Re: Team 2067 Swerve Drive Game

Great game! Joystick support would be nice.
Reply With Quote
  #7   Spotlight this post!  
Unread 05-06-2014, 12:16
Electronica1's Avatar
Electronica1 Electronica1 is offline
Former Design and CAD Captain 1086
AKA: Alexander Kaplan
FRC #0401 (Copperhead Robotics)
Team Role: Mentor
 
Join Date: Aug 2010
Rookie Year: 2004
Location: Glen Allen
Posts: 343
Electronica1 has a reputation beyond reputeElectronica1 has a reputation beyond reputeElectronica1 has a reputation beyond reputeElectronica1 has a reputation beyond reputeElectronica1 has a reputation beyond reputeElectronica1 has a reputation beyond reputeElectronica1 has a reputation beyond reputeElectronica1 has a reputation beyond reputeElectronica1 has a reputation beyond reputeElectronica1 has a reputation beyond reputeElectronica1 has a reputation beyond repute
Talking Re: Team 2067 Swerve Drive Game

My favorite part is doing bounce shots off the side rails into the high goal, (not sure if it is a feature or not, but still pretty cool).
Reply With Quote
  #8   Spotlight this post!  
Unread 06-06-2014, 21:21
cjl2625's Avatar
cjl2625 cjl2625 is offline
apel py
AKA: Cory Lynch
FRC #2067 (Apple Pi)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Guilford, CT
Posts: 412
cjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to behold
Re: Team 2067 Swerve Drive Game

I updated the game with controller support, timed matches, and an AI defensive bot that gets in your way. The robot interactions are rather buggy (weird things might happen if you get pinned), so there's a link to a version without enemies if you don't like it.
Clear the cache if you've played before.

Html5 with enemies:
http://applepi.tk/swerve

Html5 without enemies:
http://applepi.tk/swerve_noenemy

Desktop with enemies and controllers:
http://applepi.tk/swerve.jar

Controllers don't work in html, I haven't figured that out, so use the desktop version if you want to use a controller.
Tested on a Logitech Gamepad F310. Left stick for translation, right stick for rotation, LT and LB for harvester, RT for shoot, A for field centric, B for robot centric, D-pad for move rotation point, back for reset rotation point.

And it wont let me update the first post to add the links... There's no edit button
__________________
Head Programmer / Driver

Last edited by cjl2625 : 06-06-2014 at 22:08.
Reply With Quote
  #9   Spotlight this post!  
Unread 06-06-2014, 21:36
pimathbrainiac's Avatar
pimathbrainiac pimathbrainiac is offline
Today, Regionals. Tomorrow, Worlds.
AKA: Philip N
FRC #1127 (Lotus Robotics)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Milton HS
Posts: 49
pimathbrainiac can only hope to improve
Re: Team 2067 Swerve Drive Game

You should github the source code. That way, more people can work on it and perhaps make it better!
Reply With Quote
  #10   Spotlight this post!  
Unread 06-06-2014, 22:57
Fanny Z's Avatar
Fanny Z Fanny Z is offline
Electrical/Mechanical
AKA: Fanny Zhang
FRC #0865 (Warp 7)
Team Role: Mentor
 
Join Date: Mar 2014
Rookie Year: 2012
Location: Canada
Posts: 31
Fanny Z is on a distinguished road
Re: Team 2067 Swerve Drive Game

You can shoot over the truss as well !
Reply With Quote
  #11   Spotlight this post!  
Unread 07-06-2014, 04:36
Uniwersel Uniwersel is offline
Registered User
FRC #1828 (BoxerBots)
Team Role: Alumni
 
Join Date: Dec 2013
Rookie Year: 2014
Location: Tucson, Arizona
Posts: 16
Uniwersel is an unknown quantity at this point
Re: Team 2067 Swerve Drive Game

Quote:
Originally Posted by cjl2625 View Post
I updated the game with controller support, timed matches, and an AI defensive bot that gets in your way. The robot interactions are rather buggy (weird things might happen if you get pinned), so there's a link to a version without enemies if you don't like it.
Clear the cache if you've played before.

Html5 with enemies:
http://applepi.tk/swerve

Html5 without enemies:
http://applepi.tk/swerve_noenemy

Desktop with enemies and controllers:
http://applepi.tk/swerve.jar

Controllers don't work in html, I haven't figured that out, so use the desktop version if you want to use a controller.
Tested on a Logitech Gamepad F310. Left stick for translation, right stick for rotation, LT and LB for harvester, RT for shoot, A for field centric, B for robot centric, D-pad for move rotation point, back for reset rotation point.

And it wont let me update the first post to add the links... There's no edit button
Is there any chance of getting a version without the 60 second timer? I liked the game a lot more without the timer.
Reply With Quote
  #12   Spotlight this post!  
Unread 07-06-2014, 06:36
asid61's Avatar
asid61 asid61 is offline
Registered User
AKA: Anand Rajamani
FRC #0115 (MVRT)
Team Role: Mechanical
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Cupertino, CA
Posts: 2,215
asid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond repute
Re: Team 2067 Swerve Drive Game

Sweeeeeet. Would be nice if there were 2 blockers though.

Next step: 3D! lol
Reply With Quote
  #13   Spotlight this post!  
Unread 07-06-2014, 07:11
cjl2625's Avatar
cjl2625 cjl2625 is offline
apel py
AKA: Cory Lynch
FRC #2067 (Apple Pi)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Guilford, CT
Posts: 412
cjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to behold
Re: Team 2067 Swerve Drive Game

Quote:
Originally Posted by Uniwersel View Post
Is there any chance of getting a version without the 60 second timer? I liked the game a lot more without the timer.
Yeah, I can do that. I'll add a settings menu
__________________
Head Programmer / Driver
Reply With Quote
  #14   Spotlight this post!  
Unread 07-06-2014, 11:34
BrendanB BrendanB is offline
Registered User
AKA: Brendan Browne
FRC #1058 (PVC Pirates)
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2003
Location: Londonderry, NH
Posts: 3,100
BrendanB has a reputation beyond reputeBrendanB has a reputation beyond reputeBrendanB has a reputation beyond reputeBrendanB has a reputation beyond reputeBrendanB has a reputation beyond reputeBrendanB has a reputation beyond reputeBrendanB has a reputation beyond reputeBrendanB has a reputation beyond reputeBrendanB has a reputation beyond reputeBrendanB has a reputation beyond reputeBrendanB has a reputation beyond repute
Re: Team 2067 Swerve Drive Game

Cory, great work on this it is a really neat simulation!

One slight recommendation would be to have the score and timer in constant view and a little larger.

And 2067's swerve was pretty neat this year too!
__________________
1519 Mechanical M.A.Y.H.E.M. 2008 - 2010
3467 Windham Windup 2011 - 2015
1058 PVC Pirates 2016 - xxxx
Reply With Quote
  #15   Spotlight this post!  
Unread 07-06-2014, 13:34
Henrique Schmit's Avatar
Henrique Schmit Henrique Schmit is offline
Registered User
FRC #1156 (Under Control)
Team Role: CAD
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Brazil
Posts: 55
Henrique Schmit is an unknown quantity at this point
Re: Team 2067 Swerve Drive Game

so, what are your high scores?
__________________
Ready for the water games
http://i.imgur.com/QQXtifE.jpg

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 17:47.

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