Frc Robot Simulator Wiki
A library that allows programs for a NI CRIO to be run on a computer.
Status: Alpha
Brought to you by:
spectare
There is a gui client that should be easier to work with, see Getting Started with the GUI.
Download the wpilibj and library JARs or get the code from Subversion. Build it if necessary and replace your project's reference to wpilibj with a reference to our library.
public class SimAppName{
public static void main(String[] args){
// Start simulator here
}
}
public class RobotAppName extends SimpleRobot{ //Extends IterativeRobot, RobotBase, etc.
public static void main(String[] args){
// Start simulator here
}
//disabled,autonomous,operatorControl, and other methods
}
Simulator sim = null;
try{
sim = new Simulator("your.robot.app.package.RobotAppName");
} catch(Exception e){
// Print an error message here
System.exit(2);
}
sim.start();
This will work, but as you may have noticed, will fail when it tries to reference any modules. To solve this, see Using the CRIO class.