Merge "Fixed bug with plugins not including all simulation dependencies."

This commit is contained in:
Alex Henning (WPI)
2014-08-11 08:22:15 -07:00
committed by Gerrit Code Review
2 changed files with 10 additions and 4 deletions

View File

@@ -132,6 +132,12 @@
<artifactId>JavaGazebo</artifactId>
<version>0.1.0-SNAPSHOT</version>
</artifactItem>
<artifactItem>
<groupId>edu.wpi.first.wpilibj</groupId>
<artifactId>wpilibJava</artifactId>
<version>0.1.0-SNAPSHOT</version>
<type>jar</type>
</artifactItem>
<artifactItem>
<groupId>edu.wpi.first.wpilibj</groupId>
<artifactId>wpilibJavaSim</artifactId>

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;