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

Fixed input error

parent 0c821a93
No related merge requests found
......@@ -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));
}
......
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