Log in

View Full Version : FRC 2015 Simulator??


Dhill098
11-01-2015, 16:28
Just curious if anyone has been working on a FRC 2015 simulator.

Grey Mann
11-01-2015, 16:49
Last year a couple of our programming and CADding people got together and made a practice simulation for the drive team with functioning scoring, driving, ball collection/firing and splitscreen so they could simulate entire (small) matches. I reckon they will do this again at some point, though it might not be in build season since they have alot of other things to do.

Bryce Paputa
11-01-2015, 16:55
We decided to put it very low on our todo list. Driving in this game is much more about precision than tactical and strategic skill, which is much harder and less rewarding to simulate. The strategic part of this game, which is robot design, is also challenging to simulate.

FluffySasquatch
02-03-2015, 18:06
I recently just created a simulator for my FRC team's robot. Our robot is a little unconventional compared to other robots, but if you want me to attempt to create one with your team's robot, message me and I will see what I can do. Some physics may be still a little wonky, but it gets the job done.

You can play the simulator on our team's website here: acsrobotics.com/recycle-rush (http://acsrobotics.com/recycle-rush/)

Jean Tenca
02-03-2015, 18:41
Our app group created a pretty accurate simulator for this year: Too Many Totes! Game (https://play.google.com/store/apps/details?id=appinventor.ai_Team4488App.TOO_MANY_TOT ES&hl=en) :)

All kidding aside, that is a cool simulator, Fluffy! Playing Recycle Rush in space is a nice touch.

g_sawchuk
02-03-2015, 19:48
I recently just created a simulator for my FRC team's robot. Our robot is a little unconventional compared to other robots, but if you want me to attempt to create one with your team's robot, message me and I will see what I can do. Some physics may be still a little wonky, but it gets the job done.

You can play the simulator on our team's website here: acsrobotics.com/recycle-rush (http://acsrobotics.com/recycle-rush/)
This crashed Google Chrome for me twice. :ahh:

FluffySasquatch
02-03-2015, 19:54
This crashed Google Chrome for me twice. :ahh:

I have never had that happen before, on occasion it will say "Google Chrome has stopped working", however I simply choose not to close it and it runs fine.

This is mainly because our team's website is WordPress based, and Unity Games don't go well with WordPress. Make sure Unity Web player is up to date on your computer as this simulator utilizes the Unity UI system which is fairly new, so older versions of the Unity Web Player may not handle it. Also make sure Unity Web Player is allowed to run on the site.

I will try to upload a standalone download version soon so this won't be a problem.

Hope this helps!

g_sawchuk
02-03-2015, 19:57
I have never had that happen before, on occasion it will say "Google Chrome has stopped working", however I simply choose not to close it and it runs fine.

This is mainly because our team's website is WordPress based, and Unity Games don't go well with WordPress. Make sure Unity Web player is up to date on your computer as this simulator utilizes the Unity UI system which is fairly new, so older versions of the Unity Web Player may not handle it. Also make sure Unity Web Player is allowed to run on the site.

I will try to upload a standalone download version soon so this won't be a problem.

Hope this helps!
That would be good, as I am extremely eager to get addicted to this simulator. :] I tried on IE, but I press the play icon and then it just stays black.

FluffySasquatch
02-03-2015, 20:05
That would be good, as I am extremely eager to get addicted to this simulator. :] I tried on IE, but I press the play icon and then it just stays black.

Just shared it on DropBox. First time using DropBox, so I hope it works!

https://www.dropbox.com/s/uh1gnpbldfyxt46/RecycleRush.rar?dl=0

WillNess
30-04-2015, 22:52
Just shared it on DropBox. First time using DropBox, so I hope it works!

https://www.dropbox.com/s/uh1gnpbldfyxt46/RecycleRush.rar?dl=0

Can you upload the files for the other robot? 3151?

DarthCoder
30-04-2015, 23:21
I've been considering writing something generalized in the offseason, but I haven't been able to get ahold of a second RoboRIO to bring home myself and build test cases on... The idea I had was to write a 3D simulator environment and a proxy implementation of WPILib so you could compile the robot code into a DLL. The Gazebo thing was cool, but being Linux only kinda ruined it since it wouldn't run very well on a VM.

Spoam
01-05-2015, 00:06
Wow, I missed this thread somehow. Anyways, I was intern for Autodesk and while I was there we worked on exactly this, a program we call "Synthesis":

It has a few parts: An Inventor plugin, which runs while your robot CAD is open and utilizes a path-search algorithm to intelligently simplify and link together meshes based on joint data from your CAD, and create a 3D representation of your robot which we import into our game simulator. Once all this data is extracted from your robot CAD, we have a GUI that shows detected joints, and allows you to place motors/pneumatics/sensors on them and assign ports to match your code (e.g. if you have a revolute joint, you might specify that it has a motor on it, controlled by "port 7").

Next you simply run the game simulator and import your robot into it.

Finally there is a loopback adapter and modified wpilib (we have support for c++ and java and working on labview iirc) that allows you to emulate having a crio/roborio so you can control your simulated robot through the driver station (and using 99% the same code you would on your real robot). The simulator receives control packets from the driver station and emulates your robot real-time.

I can't give an expected release date or anything, but the processes I described are currently implemented in a mostly functional Alpha. Second wave of development on it will begin this summer, so look out for it.

asid61
01-05-2015, 02:38
Wow, I missed this thread somehow. Anyways, I was intern for Autodesk and while I was there we worked on exactly this, a program we call "Synthesis":

It has a few parts: An Inventor plugin, which runs while your robot CAD is open and utilizes a path-search algorithm to intelligently simplify and link together meshes based on joint data from your CAD, and create a 3D representation of your robot which we import into our game simulator. Once all this data is extracted from your robot CAD, we have a GUI that shows detected joints, and allows you to place motors/pneumatics/sensors on them and assign ports to match your code (e.g. if you have a revolute joint, you might specify that it has a motor on it, controlled by "port 7").

Next you simply run the game simulator and import your robot into it.

Finally there is a loopback adapter and modified wpilib (we have support for c++ and java and working on labview iirc) that allows you to emulate having a crio/roborio so you can control your simulated robot through the driver station (and using 99% the same code you would on your real robot). The simulator receives control packets from the driver station and emulates your robot real-time.

I can't give an expected release date or anything, but the processes I described are currently implemented in a mostly functional Alpha. Second wave of development on it will begin this summer, so look out for it.
This is amazing. Best of luck on that project.

DarthCoder
01-05-2015, 09:25
Wow, I missed this thread somehow. Anyways, I was intern for Autodesk and while I was there we worked on exactly this, a program we call "Synthesis":

It has a few parts: An Inventor plugin, which runs while your robot CAD is open and utilizes a path-search algorithm to intelligently simplify and link together meshes based on joint data from your CAD, and create a 3D representation of your robot which we import into our game simulator. Once all this data is extracted from your robot CAD, we have a GUI that shows detected joints, and allows you to place motors/pneumatics/sensors on them and assign ports to match your code (e.g. if you have a revolute joint, you might specify that it has a motor on it, controlled by "port 7").

Next you simply run the game simulator and import your robot into it.

Finally there is a loopback adapter and modified wpilib (we have support for c++ and java and working on labview iirc) that allows you to emulate having a crio/roborio so you can control your simulated robot through the driver station (and using 99% the same code you would on your real robot). The simulator receives control packets from the driver station and emulates your robot real-time.

I can't give an expected release date or anything, but the processes I described are currently implemented in a mostly functional Alpha. Second wave of development on it will begin this summer, so look out for it.

Is there a way to compile Java code to a DLL callable with C bindings, or do you run an embedded VM?

MikLast
01-05-2015, 10:15
Wow, I missed this thread somehow. Anyways, I was intern for Autodesk and while I was there we worked on exactly this, a program we call "Synthesis":

It has a few parts: An Inventor plugin, which runs while your robot CAD is open and utilizes a path-search algorithm to intelligently simplify and link together meshes based on joint data from your CAD, and create a 3D representation of your robot which we import into our game simulator. Once all this data is extracted from your robot CAD, we have a GUI that shows detected joints, and allows you to place motors/pneumatics/sensors on them and assign ports to match your code (e.g. if you have a revolute joint, you might specify that it has a motor on it, controlled by "port 7").

Next you simply run the game simulator and import your robot into it.

Finally there is a loopback adapter and modified wpilib (we have support for c++ and java and working on labview iirc) that allows you to emulate having a crio/roborio so you can control your simulated robot through the driver station (and using 99% the same code you would on your real robot). The simulator receives control packets from the driver station and emulates your robot real-time.

I can't give an expected release date or anything, but the processes I described are currently implemented in a mostly functional Alpha. Second wave of development on it will begin this summer, so look out for it.

i remember that during the PNW Champs. i really want to get my hands on that .stl converter...

CJ_Elliott
01-05-2015, 10:46
http://www.amazon.com/Forklift-truck-simulator-Pc/dp/B0034G4V1G

lethc
01-05-2015, 10:51
I recently just created a simulator for my FRC team's robot. Our robot is a little unconventional compared to other robots, but if you want me to attempt to create one with your team's robot, message me and I will see what I can do. Some physics may be still a little wonky, but it gets the job done.

You can play the simulator on our team's website here: acsrobotics.com/recycle-rush (http://acsrobotics.com/recycle-rush/)

Offseason project: make 6 stack in this simulator

EmileH
02-05-2015, 20:53
Fluffy how does your robot manipulate RCs? The frame seems too narrow to fit one in internally.

TheModMaster8
02-05-2015, 23:01
Last year a couple of our programming and CADding people got together and made a practice simulation for the drive team with functioning scoring, driving, ball collection/firing and splitscreen so they could simulate entire (small) matches. I reckon they will do this again at some point, though it might not be in build season since they have alot of other things to do.

is this program available for download ?

WillNess
03-05-2015, 00:42
Everyone:
Here is a thread I made with a list of all of the simulators I have found over the interwebs:
http://www.chiefdelphi.com/forums/showthread.php?t=137100

gblake
05-05-2015, 20:48
Is there a way to compile Java code to a DLL callable with C bindings, or do you run an embedded VM?The Java Native Interfaces feature of Java might offer what you are looking for.

Asymons
06-05-2015, 15:16
Fluffy how does your robot manipulate RCs? The frame seems too narrow to fit one in internally.

Our bot was designed just to load from the shoot. Totes only :P. Also, anyone with suggestions for the simulator, you can pm me or fluffy directly. I pester him about adding a feature for robot customization or just some popular bots as well.

potatoshane
13-05-2015, 11:35
Offseason project: make 6 stack in this simulator

http://i.imgur.com/a2Vd2BF.png

MaestroRoboto
13-05-2015, 16:36
HOW!?!?!?!

Also does the "R" key to spawn a crate work?

EmileH
13-06-2015, 10:49
Also does the "R" key to spawn a crate work?

Yes, but only if the robot is touching the right feeder station and it's mast is tilted backward.

faust1706
13-06-2015, 14:44
I recently just created a simulator for my FRC team's robot. Our robot is a little unconventional compared to other robots, but if you want me to attempt to create one with your team's robot, message me and I will see what I can do. Some physics may be still a little wonky, but it gets the job done.

You can play the simulator on our team's website here: acsrobotics.com/recycle-rush (http://acsrobotics.com/recycle-rush/)

I do not have the time to download and play it, but is there scoring implemented in this simulation? If so, I could probably feed it into my q-network and have it begin learning the game by tonight...

jajabinx124
13-06-2015, 15:39
I do not have the time to download and play it, but is there scoring implemented in this simulation? If so, I could probably feed it into my q-network and have it begin learning the game by tonight...

Scoring is not implemented in that recycle rush simulator.