Skip to content
Snippets Groups Projects
Commit 63d16243 authored by marvin's avatar marvin
Browse files

bla

parent 31dc49bf
No related merge requests found
......@@ -106,16 +106,15 @@ public class Adapter {
switch(botList.size()) {
case 0:
System.out.println("Invalid input: No bot selected\n");
System.out.println("Invalid input: No bot selected");
System.exit(-1);
break;
case 1:
botName = botList.get(0).getValue();
break;
default:
System.out.println("Invalid input: multiple bots selected\n");
System.out.println("Invalid input: Multiple bots selected");
System.exit(-1);
}
switch(botName) {
case "Burger":
......@@ -128,7 +127,7 @@ public class Adapter {
fileName = "turtlebot3_waffle_pi.gazebo.xacro";
break;
default:
System.out.println("Cannot handle \'"+botName+"\': No input file known.\n");
System.out.println("Cannot handle \'"+botName+"\': No input file known.");
System.exit(-1);
}
gazeboModel = readXml("resources/input/turtlebot3-master/turtlebot3_description/urdf/"+fileName);
......@@ -141,7 +140,6 @@ public class Adapter {
List<Element> cSensorList = xQueryElements(sensorConfig, "//sensor[@type='ray' and @name='lds_lfcd_sensor']");
Element cSensor = cSensorList.get(0);
List<Element> gSensorList = xQueryElements(gazeboModel, "//sensor[@type='ray' and @name='lds_lfcd_sensor']");
Element gSensor = gSensorList.get(0);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment