This year team 2451, pwnage, developed a swerve drive. After completion of the code, a swerve simulation game was created for demonstrative purposes. Here is a link to the program.
Simply download the zip file and unzip it. Then, click on the “.jar” file to run. For more information read the readme file.
If you have any comments, suggestions, or bugs, please post them below.
I agree. This is really good. I would recommend adding less acceleration and speed as an option, though, just to make it more realistic. It’s kinda hard to drive as is because of how fast it is compared to the screen size.
Its beautiful to watch it spin while driving. Its a little fast to make out, but do the wheels themselves never turn more than 180 degrees? I would love to see how that works
I forgot to mention that this will be available to be played at our pit at world’s. We will also have a demonstration of the mechanics of the swerve drive. Feel free to stop by and we can answer any questions you might have.
My burning question is about your source for the internal gear (20 DP x 48 teeth) used in your swerve module. Did you guys make them yourselves, or did you customize a COTS internal gear?
On our actually robot the wheels are allowed to turn a little under a full revolution (330 ish degrees). For the robot code I have algorithms to deal with this but on the simulation code I just made the wheels point to where I want them to be. If you are world’s, come to our pit and I’ll be happy to fully explain how it works. If you aren’t able to come to world’s, I may be writing a white paper on the code when ever I have the time.
I believe it was done on a wire edm, but I’m not sure. I’m programming not mechanical, so I can’t tell you for sure. If you can’t stop by our pit at world’s, then you can try to ask in this thread.
I am working on changing this along with some other things, on the way down to world’s.
Once I open the Jar file, it says ‘Press A to start’. Pressing A doesn’t seem to do anything. I can select all the drop down menus and searched the read me file to see if I was missing anything. Any thoughts?
The program must be finding a joystick or gamepad attached. I can add a way to disable it in the future. For now you can go to control panel (if on Windows) and see what it thinks is a joystick. If you can unplug it. Otherwise I guess trey to disable it? I’m not sure.
This is awsome. Really helpful to get the basic feel of a swerve. The only problem I was having was getting a ball in the corner since I would just keep going instead of ramming against the side.