Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
monticore
EmbeddedMontiArc
generators
EMAMOpt2Cpp
Commits
16be86cd
Commit
16be86cd
authored
Aug 23, 2019
by
Bernhard Rumpe
Browse files
BR-sy
parent
649eee7c
Pipeline
#175157
failed with stage
in 3 minutes and 40 seconds
Changes
90
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main/resources/template/optimizationSolver/cplex/CplexMat.h
View file @
16be86cd
/* (c) https://github.com/MontiCore/monticore */
#ifndef MACMAKETEST_CplexMat_H
#define MACMAKETEST_CplexMat_H
...
...
src/main/resources/template/optimizationSolver/ipopt/ADMat.h
View file @
16be86cd
/* (c) https://github.com/MontiCore/monticore */
#ifndef MACMAKETEST_ADMAT_H
#define MACMAKETEST_ADMAT_H
...
...
src/main/resources/template/optimizationSolver/ipopt/CallIpoptTemplate_HeaderOnly.ftl
View file @
16be86cd
<#--
(c) https://github.com/MontiCore/monticore -->
#
ifndef
__$
{
viewModel
.callSolverName
?
upper_case
}
_H__
#
define
__$
{
viewModel
.callSolverName
?
upper_case
}
_H__
#
include
<
armadillo
>
...
...
@@ -385,4 +386,4 @@ class ${viewModel.callSolverName}
}
};
#
endif
\ No newline at end of file
#
endif
src/test/java/de/monticore/lang/monticar/generator/BasicGenerationTest.java
View file @
16be86cd
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.generator
;
import
de.monticore.lang.embeddedmontiarc.LogConfig
;
...
...
src/test/java/de/monticore/lang/monticar/generator/CarModelGenerationTest.java
View file @
16be86cd
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.generator
;
import
de.monticore.lang.embeddedmontiarc.embeddedmontiarc._symboltable.instanceStructure.EMAComponentInstanceSymbol
;
...
...
src/test/java/de/monticore/lang/monticar/generator/GeneratorCplexSolverTest.java
View file @
16be86cd
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.generator
;
import
de.monticore.lang.embeddedmontiarc.embeddedmontiarc._symboltable.instanceStructure.EMAComponentInstanceSymbol
;
...
...
@@ -56,4 +57,4 @@ public class GeneratorCplexSolverTest {
List
<
File
>
files
=
doGenerateModel
(
"de.rwth.monticar.optimization.constraintTest"
);
}
}
\ No newline at end of file
}
src/test/java/de/monticore/lang/monticar/generator/GeneratorEMAMOpt2CMakeTest.java
View file @
16be86cd
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.generator
;
import
de.monticore.lang.embeddedmontiarc.embeddedmontiarc._symboltable.instanceStructure.EMAComponentInstanceSymbol
;
...
...
@@ -106,4 +107,4 @@ public class GeneratorEMAMOpt2CMakeTest extends BasicGenerationTest {
List
<
File
>
files
=
doGenerateModel
(
"de.rwth.monticar.optimization.constraintTest"
);
}
}
\ No newline at end of file
}
src/test/java/de/monticore/lang/monticar/generator/GeneratorEMAMOpt2CPPTest.java
View file @
16be86cd
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.generator
;
import
de.monticore.lang.embeddedmontiarc.embeddedmontiarc._symboltable.instanceStructure.EMAComponentInstanceSymbol
;
...
...
@@ -150,4 +151,4 @@ public class GeneratorEMAMOpt2CPPTest extends BasicGenerationTest {
List
<
File
>
files
=
doGenerateOptimizationModel
(
"matrixTransposeMinimizationTest"
);
}
}
\ No newline at end of file
}
src/test/java/de/monticore/lang/monticar/generator/GeneratorEMAMOpt2CppCliTest.java
View file @
16be86cd
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.generator
;
import
de.monticore.lang.embeddedmontiarc.LogConfig
;
...
...
@@ -37,4 +38,4 @@ public class GeneratorEMAMOpt2CppCliTest extends BasicGenerationTest {
assertTrue
(
Files
.
exists
(
Paths
.
get
(
targetDir
+
positiveFileName
)));
}
}
}
\ No newline at end of file
}
src/test/java/de/monticore/lang/monticar/generator/TrajectoryControllerTest.java
View file @
16be86cd
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.generator
;
import
de.monticore.lang.embeddedmontiarc.embeddedmontiarc._symboltable.instanceStructure.EMAComponentInstanceSymbol
;
...
...
src/test/java/de/monticore/lang/monticar/generator/cpp/optimizationSolver/problem/OptimizationProblemClassificationTest.java
View file @
16be86cd
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.generator.cpp.optimizationSolver.problem
;
public
class
OptimizationProblemClassificationTest
{
}
\ No newline at end of file
}
src/test/resources/de/rwth/monticar/carmodel/CarModelInstanceTest.emam
View file @
16be86cd
/*
(
c
)
https
://
github
.
com
/
MontiCore
/
monticore
*/
package
de
.
rwth
.
monticar
.
carmodel
;
component
CarModelInstanceTest
{
...
...
src/test/resources/de/rwth/monticar/carmodel/KinematicBicycleCarModel.emam
View file @
16be86cd
/*
(
c
)
https
://
github
.
com
/
MontiCore
/
monticore
*/
package
de
.
rwth
.
monticar
.
carmodel
;
component
KinematicBicycleCarModel
<
Q
dt
=
0.1
s
,
Q
l_f
=
1
m
,
Q
l_r
=
1
m
>
...
...
@@ -34,4 +35,4 @@ component KinematicBicycleCarModel<Q dt = 0.1 s, Q l_f = 1 m, Q l_r = 1 m>
predictedYawAngle
=
currentYawAngle
+
dpsi
;
predictedVelocity
=
currentVelocity
+
dv
;
}
}
\ No newline at end of file
}
src/test/resources/de/rwth/monticar/carmodel/MatlabCarModel.emam
View file @
16be86cd
/*
(
c
)
https
://
github
.
com
/
MontiCore
/
monticore
*/
package
de
.
rwth
.
monticar
.
carmodel
;
component
MatlabCarModel
<
Q
dt
=
0.1
s
,
Q
m
=
2000
kg
,
Q
a
=
1.5
m
,
Q
b
=
1.5
m
,
Q
cx
=
150000
,
Q
cy
=
40000
,
Q
ca
=
0.5
>
...
...
@@ -38,4 +39,4 @@ component MatlabCarModel<Q dt = 0.1 s, Q m = 2000 kg, Q a = 1.5 m, Q b = 1.5 m,
predictedVelocityY
=
currentVelocityY
+
dvy
*
dt
;
predictedYawRate
=
currentYawRate
+
dYawRate
*
dt
;
}
}
\ No newline at end of file
}
src/test/resources/de/rwth/monticar/mpc/ActuatorController.emam
View file @
16be86cd
/*
(
c
)
https
://
github
.
com
/
MontiCore
/
monticore
*/
//
acceleration
and
steering
angle
to
actuators
steering
,
engine
,
break
//
@
author
Christoph
Richter
...
...
@@ -30,4 +31,4 @@ component ActuatorController
//
warning
because
engine
can
not
be
set
to
a
negative
value
the
car
can
not
drive
//
backwards
}
}
\ No newline at end of file
}
src/test/resources/de/rwth/monticar/mpc/TrajectoryControllerMPC.emam
View file @
16be86cd
/*
(
c
)
https
://
github
.
com
/
MontiCore
/
monticore
*/
package
de
.
rwth
.
monticar
.
mpc
;
import
de
.
rwth
.
monticar
.
mpc
.
bicycle
.*;
...
...
src/test/resources/de/rwth/monticar/mpc/bicycle/BicycleMPC.emam
View file @
16be86cd
/*
(
c
)
https
://
github
.
com
/
MontiCore
/
monticore
*/
//
Kinematic
Bicycle
model
//
@
author
Christoph
Richter
...
...
@@ -80,4 +81,4 @@ component BicycleMPC<Q dt = 0.1, Q l_f = 1, Q l_r = 1, Z hp = 1>
a = u(1,1);
steering = u(2,1);
}
}
\ No newline at end of file
}
src/test/resources/de/rwth/monticar/mpc/matlab/MatlabMPC.emam
View file @
16be86cd
/*
(
c
)
https
://
github
.
com
/
MontiCore
/
monticore
*/
//
Kinematic
Bicycle
model
//
@
author
Christoph
Richter
...
...
@@ -14,4 +15,4 @@ component MatlabMPC
{
//
vehicle
model
describes
update
functions
}
}
\ No newline at end of file
}
src/test/resources/de/rwth/monticar/mpc/trajectory/PathPlaner.emam
View file @
16be86cd
/*
(
c
)
https
://
github
.
com
/
MontiCore
/
monticore
*/
//
PathPlaner
:
//
-
First
trims
path
to
current
progress
//
-
Then
creates
low
level
reference
state
vector
for
mpc
controller
...
...
@@ -49,4 +50,4 @@ component PathPlaner<Q dt = 0.1>
//
connect
output
connect
referencePathCreator
.
z_ref
->
z_ref
;
}
\ No newline at end of file
}
src/test/resources/de/rwth/monticar/mpc/trajectory/ReferencePathCreator.emam
View file @
16be86cd
/*
(
c
)
https
://
github
.
com
/
MontiCore
/
monticore
*/
//
ReferencePath
:
Created
a
reference
path
for
the
prediction
horizon
of
the
mpc
controller
//
@
author
Christoph
Richter
...
...
@@ -86,4 +87,4 @@ component ReferencePathCreator<Q dt = 0.1>
end
}
}
\ No newline at end of file
}
Prev
1
2
3
4
5
Next
Write
Preview
Supports
Markdown
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