|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: FRC 2015 Simulator??
Quote:
|
|
#2
|
|||
|
|||
|
Re: FRC 2015 Simulator??
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.
|
|
#3
|
||||
|
||||
|
Re: FRC 2015 Simulator??
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. Last edited by Spoam : 01-05-2015 at 00:22. |
|
#4
|
||||
|
||||
|
Re: FRC 2015 Simulator??
Quote:
|
|
#5
|
|||
|
|||
|
Re: FRC 2015 Simulator??
Quote:
|
|
#6
|
||||
|
||||
|
Re: FRC 2015 Simulator??
The Java Native Interfaces feature of Java might offer what you are looking for.
|
|
#7
|
||||
|
||||
|
Re: FRC 2015 Simulator??
Quote:
|
|
#8
|
||||
|
||||
|
Re: FRC 2015 Simulator??
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|