Fixed bug with plugins not including all simulation dependencies.

Change-Id: I34c84c6cd4d918039726aa2efb81efbcf98dd593
This commit is contained in:
Alex Henning
2014-08-11 11:20:07 -04:00
parent 8db11a4c6c
commit 657054c9e2
2 changed files with 10 additions and 4 deletions

View File

@@ -153,10 +153,6 @@ public abstract class RobotBase {
*/
public static void main(String args[]) { // TODO: expose main to teams?
boolean errorOnExit = false;
// Set some implementations so that the static methods work properly
Timer.SetImplementation(new SimTimer());
RobotState.SetImplementation(DriverStation.getInstance());
try {
MainNode.openGazeboConnection();
@@ -166,6 +162,10 @@ public abstract class RobotBase {
System.exit(1);
return;
}
// Set some implementations so that the static methods work properly
Timer.SetImplementation(new SimTimer());
RobotState.SetImplementation(DriverStation.getInstance());
String robotName = "";
Enumeration<URL> resources = null;