EMAM2Cpp issueshttps://git.rwth-aachen.de/monticore/EmbeddedMontiArc/generators/EMAM2Cpp/-/issues2020-01-13T14:14:20+01:00https://git.rwth-aachen.de/monticore/EmbeddedMontiArc/generators/EMAM2Cpp/-/issues/45add largestContour command2020-01-13T14:14:20+01:00Ahmed Diabadd largestContour commandEvgeny KusmenkoAhmed DiabEvgeny Kusmenkohttps://git.rwth-aachen.de/monticore/EmbeddedMontiArc/generators/EMAM2Cpp/-/issues/44add boundingRect command from OpenCV2020-01-13T14:13:59+01:00Ahmed Diabadd boundingRect command from OpenCVEvgeny KusmenkoAhmed DiabEvgeny Kusmenkohttps://git.rwth-aachen.de/monticore/EmbeddedMontiArc/generators/EMAM2Cpp/-/issues/43add rectangle command from OpenCV2020-01-13T14:13:33+01:00Ahmed Diabadd rectangle command from OpenCVEvgeny KusmenkoAhmed DiabEvgeny Kusmenkohttps://git.rwth-aachen.de/monticore/EmbeddedMontiArc/generators/EMAM2Cpp/-/issues/42add findContours command from OpenCV2020-01-05T21:27:32+01:00Ahmed Diabadd findContours command from OpenCVEvgeny KusmenkoAhmed DiabEvgeny Kusmenkohttps://git.rwth-aachen.de/monticore/EmbeddedMontiArc/generators/EMAM2Cpp/-/issues/41add threshold command from OpenCV2020-03-20T09:13:51+01:00Ahmed Diabadd threshold command from OpenCVEvgeny KusmenkoAhmed DiabEvgeny Kusmenkohttps://git.rwth-aachen.de/monticore/EmbeddedMontiArc/generators/EMAM2Cpp/-/issues/40add inRange command from OpenCV2020-01-05T21:28:27+01:00Ahmed Diabadd inRange command from OpenCVEvgeny KusmenkoAhmed DiabEvgeny Kusmenkohttps://git.rwth-aachen.de/monticore/EmbeddedMontiArc/generators/EMAM2Cpp/-/issues/39add cvtColor Command from OpenCV2020-01-05T21:28:57+01:00Ahmed Diabadd cvtColor Command from OpenCVEvgeny KusmenkoAhmed DiabEvgeny Kusmenkohttps://git.rwth-aachen.de/monticore/EmbeddedMontiArc/generators/EMAM2Cpp/-/issues/38add gaussianBlur command from OpenCV2020-01-05T21:30:45+01:00Ahmed Diabadd gaussianBlur command from OpenCVEvgeny KusmenkoAhmed DiabEvgeny Kusmenkohttps://git.rwth-aachen.de/monticore/EmbeddedMontiArc/generators/EMAM2Cpp/-/issues/37add erode and dilate commands from OpenCV2020-01-05T21:31:31+01:00Ahmed Diabadd erode and dilate commands from OpenCVEvgeny KusmenkoAhmed DiabEvgeny Kusmenkohttps://git.rwth-aachen.de/monticore/EmbeddedMontiArc/generators/EMAM2Cpp/-/issues/36add new addParameter to method class2020-01-05T21:29:54+01:00Ahmed Diabadd new addParameter to method classextends the Method class to a new addParameter function.extends the Method class to a new addParameter function.https://git.rwth-aachen.de/monticore/EmbeddedMontiArc/generators/EMAM2Cpp/-/issues/35extends the commands with min/max function2020-07-02T19:30:42+02:00Ahmed Diabextends the commands with min/max functionhttps://git.rwth-aachen.de/monticore/EmbeddedMontiArc/generators/EMAM2Cpp/-/issues/34extends the commands with ceil function2020-01-01T09:33:18+01:00Ahmed Diabextends the commands with ceil functionAhmed DiabAhmed Diabhttps://git.rwth-aachen.de/monticore/EmbeddedMontiArc/generators/EMAM2Cpp/-/issues/30Execute with logging: Name collision2019-05-23T16:10:24+02:00Alexander David HellwigExecute with logging: Name collisionfunction arma::log(as in logarithm) has a name collision with log(as in write to log)function arma::log(as in logarithm) has a name collision with log(as in write to log)Alexander David HellwigAlexander David Hellwighttps://git.rwth-aachen.de/monticore/EmbeddedMontiArc/generators/EMAM2Cpp/-/issues/29Wrong execution order of generated c file2021-02-22T13:21:34+01:00Malte HeithoffWrong execution order of generated c fileRunning test
https://git.rwth-aachen.de/monticore/EmbeddedMontiArc/generators/EMAM2Cpp/blob/heithoff_bug/src/test/java/de/monticore/lang/monticar/generator/heithoff/SListBug.java
generates cpp from the ```PacManWrapper```. The instanc...Running test
https://git.rwth-aachen.de/monticore/EmbeddedMontiArc/generators/EMAM2Cpp/blob/heithoff_bug/src/test/java/de/monticore/lang/monticar/generator/heithoff/SListBug.java
generates cpp from the ```PacManWrapper```. The instance ```searchLeft```
https://git.rwth-aachen.de/monticore/EmbeddedMontiArc/generators/EMAM2Cpp/blob/heithoff_bug/src/test/resources/de/rwth/pacman/heithoff2/BFS/Paths.emam#L23
from component ```BFSearch``` https://git.rwth-aachen.de/monticore/EmbeddedMontiArc/generators/EMAM2Cpp/blob/heithoff_bug/src/test/resources/de/rwth/pacman/heithoff2/BFS/BFSearch.emam
will be compiled to https://git.rwth-aachen.de/monticore/EmbeddedMontiArc/generators/EMAM2Cpp/blob/heithoff_bug/src/test/resources/de/rwth/pacman/heithoff2/BFS/de_rwth_pacman_pacManWrapper_controller_safePaths_searchLeft.h
(or in target/generated-sources-cpp/de/rwth/pacman/PacManWrapper/de_rwth_pacman_pacManWrapper_controller_safePaths_searchLeft.h)
Here the instance ```endSafe``` will be executed before every other instance. https://git.rwth-aachen.de/monticore/EmbeddedMontiArc/generators/EMAM2Cpp/blob/heithoff_bug/src/test/resources/de/rwth/pacman/heithoff2/BFS/de_rwth_pacman_pacManWrapper_controller_safePaths_searchLeft.h#L85
But the component should be executed last.Malte HeithoffMalte Heithoffhttps://git.rwth-aachen.de/monticore/EmbeddedMontiArc/generators/EMAM2Cpp/-/issues/28Add automatic test execution for cmake build script2019-04-11T18:49:39+02:00Alexander David HellwigAdd automatic test execution for cmake build scriptBasic idea:
Add to CMakeLists.txt
add_custom_target(run_${component.name}_StreamTests ALL
COMMAND ${component.name}_StreamTests
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)Basic idea:
Add to CMakeLists.txt
add_custom_target(run_${component.name}_StreamTests ALL
COMMAND ${component.name}_StreamTests
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)Alexander David HellwigAlexander David Hellwighttps://git.rwth-aachen.de/monticore/EmbeddedMontiArc/generators/EMAM2Cpp/-/issues/27Build FAILED because of Tests2018-12-27T13:49:59+01:00Carlos Alfredo Yeverino RodriguezBuild FAILED because of TestsI tried to "install" EMAM2Cpp but I got the following errors:
Results :
Tests in error:
TestsGenTest.testMySuperAwesomeComponent1:54 » ResolvedSeveralEntries 0xA4095 ...
GenerateCMakeTest.floatDivisionTest:127 » ResolvedSeveralEnt...I tried to "install" EMAM2Cpp but I got the following errors:
Results :
Tests in error:
TestsGenTest.testMySuperAwesomeComponent1:54 » ResolvedSeveralEntries 0xA4095 ...
GenerateCMakeTest.floatDivisionTest:127 » ResolvedSeveralEntries 0xA4095 Found...
GenerateCMakeTest.testCMakeStreamTestGenerationForBasicPortsMath:91 » ResolvedSeveralEntries
AutomaticStreamTestGenerationTest.testCLIExample:230->testGenCPPFilesAndExec:293 » IndexOutOfBounds
Tests run: 194, Failures: 0, Errors: 4, Skipped: 13
I installed first EmbeddedMontiArcMath and MontiMath before installing EMAM2Cpp.Alexander David HellwigAlexander David Hellwighttps://git.rwth-aachen.de/monticore/EmbeddedMontiArc/generators/EMAM2Cpp/-/issues/25StreamTest matrix ports input value setting2018-08-16T17:39:48+02:00Sascha Niklas SchneidersStreamTest matrix ports input value settingThe "component.${portName} = ..." part was not generated correctly for matrices used in models like detection.ObjectDetector1The "component.${portName} = ..." part was not generated correctly for matrices used in models like detection.ObjectDetector1Sascha Niklas SchneidersSascha Niklas Schneidershttps://git.rwth-aachen.de/monticore/EmbeddedMontiArc/generators/EMAM2Cpp/-/issues/24StreamTest Matrix output generation check not working properly2018-08-16T17:39:40+02:00Sascha Niklas SchneidersStreamTest Matrix output generation check not working properlyThe "REQUIRE(..)" part was not generated correctly for matrices used in models like detection.ObjectDetector1The "REQUIRE(..)" part was not generated correctly for matrices used in models like detection.ObjectDetector1Sascha Niklas SchneidersSascha Niklas Schneidershttps://git.rwth-aachen.de/monticore/EmbeddedMontiArc/generators/EMAM2Cpp/-/issues/23Automatic stream test execution in the generator2020-07-02T19:22:47+02:00Sascha Niklas SchneidersAutomatic stream test execution in the generatorThe generator should be able to execute stream tests for an emam model to ensure that it still works.
(Enables usage of tests that check the behaviour and not that the generated source code is the same)The generator should be able to execute stream tests for an emam model to ensure that it still works.
(Enables usage of tests that check the behaviour and not that the generated source code is the same)Sascha Niklas SchneidersSascha Niklas Schneidershttps://git.rwth-aachen.de/monticore/EmbeddedMontiArc/generators/EMAM2Cpp/-/issues/19C++ float division2018-08-08T15:51:32+02:00Christoph RichterC++ float divisionFloating point division delivers wrong results in C++.
`Q x = 1 / 2`;
The value of `x` should be 0.5.
The generated C++ code looks like:
`double x = 1 / 2`;
In this case C++ performs an integer division, because `1` and `2` are ha...Floating point division delivers wrong results in C++.
`Q x = 1 / 2`;
The value of `x` should be 0.5.
The generated C++ code looks like:
`double x = 1 / 2`;
In this case C++ performs an integer division, because `1` and `2` are handled as Integer values. The (wrong result is `x == 0`).Christoph RichterChristoph Richter