Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Semesterprojekt Modulbasiertes Testen
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonas Trappe
Semesterprojekt Modulbasiertes Testen
Commits
c7fa79eb
There was an error fetching the commit references. Please try again later.
Commit
c7fa79eb
authored
5 years ago
by
marvin
Browse files
Options
Downloads
Patches
Plain Diff
Fixed input error
parent
0c821a93
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Varianten/AdapterFIDEROS/src/Adapter.java
+6
-6
6 additions, 6 deletions
Varianten/AdapterFIDEROS/src/Adapter.java
with
6 additions
and
6 deletions
Varianten/AdapterFIDEROS/src/Adapter.java
+
6
−
6
View file @
c7fa79eb
...
...
@@ -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
,
"
jo
in
t
"
);
List
<
Element
>
jointListTest
=
searchTagBelow
(
test
,
"
m
in"
);
for
(
int
i
=
0
;
i
<
jointListTest
.
size
();
i
++)
{
System
.
out
.
println
(
jointListTest
.
get
(
i
));
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment