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
8791d3b5
Commit
8791d3b5
authored
5 years ago
by
marvin
Browse files
Options
Downloads
Patches
Plain Diff
ModelSetup tolerates non-.gazebo.xacro files in in_gmPath
parent
ba3caf53
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/var/FeatureModelImplGenerator/src/ModelSetup.java
+11
-8
11 additions, 8 deletions
src/var/FeatureModelImplGenerator/src/ModelSetup.java
with
11 additions
and
8 deletions
src/var/FeatureModelImplGenerator/src/ModelSetup.java
+
11
−
8
View file @
8791d3b5
...
...
@@ -50,9 +50,18 @@ public class ModelSetup extends XMLHelper{
String
out_mName
=
getConfigVal
(
ModelSetupConfig
,
"output/model"
,
"name"
);
Document
model
=
readXml
(
in_mPath
+
in_mName
);
//Get sensorconfig- and gazebomodel file names.
//All files in in_scPath will be treated as sensorconfigs, while in_gmPath may
//contain other files that will be filtered out!
List
<
String
>
scList
=
getFileNames
(
in_scPath
);
List
<
String
>
gmList
=
getFileNames
(
in_gmPath
);
List
<
String
>
tmpList
=
getFileNames
(
in_gmPath
);
List
<
String
>
gmList
=
new
ArrayList
<
String
>();
for
(
String
s
:
tmpList
)
{
if
(
s
.
endsWith
(
GM_ENDING
))
{
gmList
.
add
(
s
);
}
}
//Check whether feature input was empty.
//It is possible to have no sensors (so you can build a custom bot with no sensors),
...
...
@@ -72,12 +81,6 @@ public class ModelSetup extends XMLHelper{
System
.
exit
(-
1
);
}
}
for
(
String
gm
:
gmList
)
{
if
(!
gm
.
endsWith
(
GM_ENDING
))
{
System
.
err
.
println
(
"Error: gazebo model file \'"
+
gm
+
"\' does not have an \'"
+
GM_ENDING
+
"\' ending."
);
System
.
exit
(-
1
);
}
}
//Sort features alphabetically (ascending order; upper case first; then lower case).
Collections
.
sort
(
scList
);
...
...
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