Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
T
torcs_dl
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
autonomousdriving
torcs_dl
Commits
d4cbd950
Commit
d4cbd950
authored
Mar 13, 2018
by
Svetlana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed package. Proof of concept components and generator.
parent
a9fd1925
Changes
12
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
210 additions
and
369 deletions
+210
-369
TorcsEMAMGenerator/.idea/libraries/Maven__de_monticore_lang_NumberUnit_0_0_10_SNAPSHOT.xml
...s/Maven__de_monticore_lang_NumberUnit_0_0_10_SNAPSHOT.xml
+3
-3
TorcsEMAMGenerator/.idea/workspace.xml
TorcsEMAMGenerator/.idea/workspace.xml
+168
-332
TorcsEMAMGenerator/pom.xml
TorcsEMAMGenerator/pom.xml
+2
-2
TorcsEMAMGenerator/resources/config/Drivercontroller.yaml
TorcsEMAMGenerator/resources/config/Drivercontroller.yaml
+5
-5
TorcsEMAMGenerator/resources/config/Featureextraction.yaml
TorcsEMAMGenerator/resources/config/Featureextraction.yaml
+5
-5
TorcsEMAMGenerator/resources/config/Imagepreprocessing.yaml
TorcsEMAMGenerator/resources/config/Imagepreprocessing.yaml
+6
-6
TorcsEMAMGenerator/resources/config/Safetycontroller.yaml
TorcsEMAMGenerator/resources/config/Safetycontroller.yaml
+5
-5
TorcsEMAMGenerator/resources/dp/Drivercontroller.emam
TorcsEMAMGenerator/resources/dp/Drivercontroller.emam
+1
-1
TorcsEMAMGenerator/resources/dp/Featureextraction.emam
TorcsEMAMGenerator/resources/dp/Featureextraction.emam
+1
-1
TorcsEMAMGenerator/resources/dp/Imagepreprocessing.emam
TorcsEMAMGenerator/resources/dp/Imagepreprocessing.emam
+1
-2
TorcsEMAMGenerator/resources/dp/Safetycontroller.emam
TorcsEMAMGenerator/resources/dp/Safetycontroller.emam
+1
-1
TorcsEMAMGenerator/src/main/java/de/monticore/lang/monticar/torcs_dl/Experiments.java
...java/de/monticore/lang/monticar/torcs_dl/Experiments.java
+12
-6
No files found.
TorcsEMAMGenerator/.idea/libraries/Maven__de_monticore_lang_NumberUnit_0_0_10_SNAPSHOT.xml
View file @
d4cbd950
<component
name=
"libraryTable"
>
<library
name=
"Maven: de.monticore.lang:NumberUnit:0.0.10-SNAPSHOT"
>
<CLASSES>
<root
url=
"jar://$MAVEN_REPOSITORY$/de/monticore/lang/NumberUnit/0.0.10-SNAPSHOT/NumberUnit-0.0.10-2018031
0.011750
-1.jar!/"
/>
<root
url=
"jar://$MAVEN_REPOSITORY$/de/monticore/lang/NumberUnit/0.0.10-SNAPSHOT/NumberUnit-0.0.10-2018031
3.012035
-1.jar!/"
/>
</CLASSES>
<JAVADOC>
<root
url=
"jar://$MAVEN_REPOSITORY$/de/monticore/lang/NumberUnit/0.0.10-SNAPSHOT/NumberUnit-0.0.10-2018031
0.011750
-1-javadoc.jar!/"
/>
<root
url=
"jar://$MAVEN_REPOSITORY$/de/monticore/lang/NumberUnit/0.0.10-SNAPSHOT/NumberUnit-0.0.10-2018031
3.012035
-1-javadoc.jar!/"
/>
</JAVADOC>
<SOURCES>
<root
url=
"jar://$MAVEN_REPOSITORY$/de/monticore/lang/NumberUnit/0.0.10-SNAPSHOT/NumberUnit-0.0.10-2018031
0.011750
-1-sources.jar!/"
/>
<root
url=
"jar://$MAVEN_REPOSITORY$/de/monticore/lang/NumberUnit/0.0.10-SNAPSHOT/NumberUnit-0.0.10-2018031
3.012035
-1-sources.jar!/"
/>
</SOURCES>
</library>
</component>
\ No newline at end of file
TorcsEMAMGenerator/.idea/workspace.xml
View file @
d4cbd950
This diff is collapsed.
Click to expand it.
TorcsEMAMGenerator/pom.xml
View file @
d4cbd950
...
...
@@ -4,8 +4,8 @@
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
de.
pavlitskaya
</groupId>
<artifactId>
experiments
</artifactId>
<groupId>
de.
monticore.lang.monticar
</groupId>
<artifactId>
torcs-dl
</artifactId>
<version>
1.0-SNAPSHOT
</version>
<build>
<plugins>
...
...
TorcsEMAMGenerator/resources/config/Drivercontroller.yaml
View file @
d4cbd950
-
!de.monticar.lang.monticar.generator.python.RosTag
component
:
s
p.drivercontroller
component
:
d
p.drivercontroller
subscriber
:
-
!de.monticar.lang.monticar.generator.python.RosInterface
ports
:
affordanceIn
:
clock.toSec()
topic
:
/
clock
type
:
rosgraph_msgs/Clock
topic
:
/
indocators
type
:
std_msgs/Int32
publisher
:
-
!de.monticar.lang.monticar.generator.python.RosInterface
ports
:
commandsOut
:
data
topic
:
/
echo
type
:
automated_driving_msgs/Stamped
Float64
topic
:
/
commands
type
:
std_msgs/
Float64
TorcsEMAMGenerator/resources/config/Featureextraction.yaml
View file @
d4cbd950
-
!de.monticar.lang.monticar.generator.python.RosTag
component
:
s
p.featureextraction
component
:
d
p.featureextraction
subscriber
:
-
!de.monticar.lang.monticar.generator.python.RosInterface
ports
:
imageIn
:
clock.toSec()
topic
:
/
clock
type
:
rosgraph_msgs/Clock
topic
:
/
images
type
:
std_msgs/Int32
publisher
:
-
!de.monticar.lang.monticar.generator.python.RosInterface
ports
:
affordanceOut
:
data
topic
:
/
echo
type
:
automated_driving_msgs/Stamped
Float64
topic
:
/
indicators
type
:
std_msgs/
Float64
TorcsEMAMGenerator/resources/config/Imagepreprocessing.yaml
View file @
d4cbd950
-
!de.monticar.lang.monticar.generator.python.RosTag
component
:
s
p.imagepreprocessing
component
:
d
p.imagepreprocessing
subscriber
:
-
!de.monticar.lang.monticar.generator.python.RosInterface
ports
:
imageIn
:
clock.toSec()
topic
:
/c
lock
type
:
rosgraph_msgs/Clock
imageIn
:
data
topic
:
/c
amera
type
:
std_msgs/Int32
publisher
:
-
!de.monticar.lang.monticar.generator.python.RosInterface
ports
:
imageOut
:
data
topic
:
/
echo
type
:
automated_driving_msgs/StampedFloat64
topic
:
/
images
type
:
std_msgs/Float64MultiArray
TorcsEMAMGenerator/resources/config/Safetycontroller.yaml
View file @
d4cbd950
-
!de.monticar.lang.monticar.generator.python.RosTag
component
:
s
p.safetycontroller
component
:
d
p.safetycontroller
subscriber
:
-
!de.monticar.lang.monticar.generator.python.RosInterface
ports
:
imageIn
:
clock.toSec()
affordanceIn
:
clock.toSec()
topic
:
/
clock
type
:
rosgraph_msgs/Clock
topic
:
/
indicators
type
:
std_msgs/Int32
publisher
:
-
!de.monticar.lang.monticar.generator.python.RosInterface
ports
:
safetyLevelOut
:
data
topic
:
/
echo
type
:
automated_driving_msgs/Stamped
Float64
topic
:
/
safety
type
:
std_msgs/
Float64
TorcsEMAMGenerator/resources/
s
p/Drivercontroller.emam
→
TorcsEMAMGenerator/resources/
d
p/Drivercontroller.emam
View file @
d4cbd950
package
s
p
;
package
d
p
;
component
Drivercontroller
{
ports
...
...
TorcsEMAMGenerator/resources/
s
p/Featureextraction.emam
→
TorcsEMAMGenerator/resources/
d
p/Featureextraction.emam
View file @
d4cbd950
package
s
p
;
package
d
p
;
component
Featureextraction
{
ports
...
...
TorcsEMAMGenerator/resources/
s
p/Imagepreprocessing.emam
→
TorcsEMAMGenerator/resources/
d
p/Imagepreprocessing.emam
View file @
d4cbd950
package
s
p
;
package
d
p
;
component
Imagepreprocessing
{
ports
in
Z
(
0
:
255
)^{
3
,
224
,
224
}
imageIn
,
out
Z
(
0
:
255
)^{
3
,
224
,
224
}
imageOut
;
}
TorcsEMAMGenerator/resources/
s
p/Safetycontroller.emam
→
TorcsEMAMGenerator/resources/
d
p/Safetycontroller.emam
View file @
d4cbd950
package
s
p
;
package
d
p
;
component
Safetycontroller
{
ports
...
...
TorcsEMAMGenerator/src/main/java/de/monticore/lang/monticar/
generator
/Experiments.java
→
TorcsEMAMGenerator/src/main/java/de/monticore/lang/monticar/
torcs_dl
/Experiments.java
View file @
d4cbd950
package
de.monticore.lang.monticar.
generator
;
package
de.monticore.lang.monticar.
torcs_dl
;
import
de.monticore.lang.embeddedmontiarc.embeddedmontiarc._symboltable.ExpandedComponentInstanceSymbol
;
import
de.monticore.lang.monticar.generator.middleware.MiddlewareGenerator
;
import
de.monticore.lang.monticar.generator.middleware.impls.CPPGenImpl
;
import
de.monticore.lang.monticar.generator.middleware.impls.DummyMiddlewareGenImpl
;
import
de.monticore.lang.monticar.generator.middleware.impls.RosCppGenImpl
;
import
de.monticore.lang.embeddedmontiarc.embeddedmontiarc._symboltable.PortSymbol
;
import
de.monticore.lang.monticar.generator.order.nfp.TagBreakpointsTagSchema.TagBreakpointsTagSchema
;
import
de.monticore.lang.monticar.generator.order.nfp.TagDelayTagSchema.TagDelayTagSchema
;
import
de.monticore.lang.monticar.generator.order.nfp.TagExecutionOrderTagSchema.TagExecutionOrderTagSchema
;
...
...
@@ -13,9 +10,9 @@ import de.monticore.lang.monticar.generator.order.nfp.TagMinMaxTagSchema.TagMinM
import
de.monticore.lang.monticar.generator.order.nfp.TagTableTagSchema.TagTableTagSchema
;
import
de.monticore.lang.monticar.generator.order.nfp.TagThresholdTagSchema.TagThresholdTagSchema
;
import
de.monticore.lang.monticar.generator.roscpp.GeneratorRosCpp
;
import
de.monticore.lang.monticar.generator.roscpp.helper.TagHelper
;
import
de.monticore.lang.monticar.generator.roscpp.helper.YamlHelper
;
import
de.monticore.lang.monticar.generator.roscpp.tagging.RosToEmamTagSchema
;
import
de.monticore.lang.monticar.generator.rosmsg.GeneratorRosMsg
;
import
de.monticore.lang.tagging._symboltable.TaggingResolver
;
import
de.monticore.symboltable.Scope
;
...
...
@@ -44,6 +41,7 @@ public class Experiments {
RosToEmamTagSchema
.
registerTagTypes
(
symtab
);
GeneratorRosCpp
generatorRosCpp
=
new
GeneratorRosCpp
();
GeneratorRosMsg
generatorRosMsg
=
new
GeneratorRosMsg
();
LinkedList
<
String
>
inputs
=
new
LinkedList
<
String
>();
inputs
.
add
(
"Imagepreprocessing"
);
...
...
@@ -55,6 +53,14 @@ public class Experiments {
for
(
String
inpu
:
inputs
)
{
System
.
out
.
println
(
"Generating for "
+
inpu
);
ExpandedComponentInstanceSymbol
component
=
symtab
.<
ExpandedComponentInstanceSymbol
>
resolve
(
"dp."
+
inpu
.
toLowerCase
(),
ExpandedComponentInstanceSymbol
.
KIND
).
orElse
(
null
);
generatorRosMsg
.
setTarget
(
"generated/"
,
inpu
);
for
(
PortSymbol
port
:
component
.
getPorts
())
{
List
<
File
>
msgFiles
=
generatorRosMsg
.
generate
(
port
.
getTypeReference
());
System
.
out
.
println
(
" Msg files: "
+
msgFiles
.
toString
());
}
generatorRosCpp
.
setGenerationTargetPath
(
"generated/"
+
inpu
);
List
<
File
>
files
=
YamlHelper
.
generateFromFile
(
"resources/config/"
+
inpu
+
".yaml"
,
symtab
,
generatorRosCpp
);
for
(
File
f
:
files
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment