diff --git a/Varianten/AdapterFIDEROS/src/Adapter.java b/Varianten/AdapterFIDEROS/src/Adapter.java index 27e8950673d6a9b22580960047d894f3e1502f47..a405c4410fabbfe0ae63aed5312e6ac42288db83 100644 --- a/Varianten/AdapterFIDEROS/src/Adapter.java +++ b/Varianten/AdapterFIDEROS/src/Adapter.java @@ -9,8 +9,8 @@ import org.jdom2.output.XMLOutputter; /** * Takes a featuremodel.xml file generated using FeatureModelConfigurator and a given - * ROS/ Gazebo .xacro file. - * The model.sdf file is modified to support the features specified in the + * ROS/ Gazebo .gazebo.xacro file. + * The .gazebo.xacro file is modified to support the features specified in the * featuremodel.xml file. */ public class Adapter { @@ -75,19 +75,19 @@ public class Adapter { public static void main(String[] args) { try { File srcFeatureModel = new File("resources/input/featuremodel.xml"); - File srcGazeboModel = new File("resources/input/turtlebot3_master/turtlebot3_description/urdf/turtlebot3_burger.gazebo.xacro"); + File srcGazeboModel = new File("resources/input/turtlebot3-master/turtlebot3_description/urdf/turtlebot3_burger.gazebo.xacro"); SAXBuilder saxBuilder = new SAXBuilder(); Document FeatureModel = saxBuilder.build(srcFeatureModel); Document GazeboModel = saxBuilder.build(srcGazeboModel); - //TODO operate on featuremodel + //TODO operate on featuremodel.xml Element specification = FeatureModel.getRootElement(); List<Element> modules = specification.getChildren("module"); //TODO - //TODO operate on sdf + //TODO operate on .gazebo.xacro Element test = GazeboModel.getRootElement(); - List<Element> jointListTest = searchTagBelow(test, "joint"); + List<Element> jointListTest = searchTagBelow(test, "min"); for(int i = 0; i < jointListTest.size(); i++) { System.out.println(jointListTest.get(i)); }