I tried to execute the init() followed by codeGenerationScript() with some modification in codeGenerationScript.m:
% opts.requiredmatlabrelease = '2019b';
|
opts.requiredmatlabrelease = '2019a';
|
|
% opts.codegengitfolder = '../trajectoriesGeneratedCode';
|
opts.codegengitfolder = 'trajectoriesGeneratedCode';
|
|
% opts.gitorigin_url = 'git@gitlab.tekniker.es:aut/projects/3151-LSST/trajectories/generatedcppcode.git';
|
I used the 2019a instead because I have other project is using this one. In addition, I do not think the version of MATLAB does matter here for the code generation (2019a and 2019b do not differ much).
I have the following error:
Error using Lib.CompilerAndCodegen.GetPathsAndGitHashes
|
Kodigoaren trazabilidadea ziurtatu ahal izateko beharrezkoa da kodigoa sortzerako
|
orduan karpetan aldaketarik ez egotea: egin commit zai dauden aldaketei eta saiatu
|
berriro
|
|
Error in Lib.CompilerAndCodegen.GenerateCode
|
|
Error in codeGenerationScript (line 15)
|
Lib.CompilerAndCodegen.GenerateCode(opts);
|
No idea where is the problem.
In addition, the error message is not in English but in basque.
I checked the updated TrajectoriesDoc-04292021.docx
did fix the problems I had in the previous time.
For the CodeGeneration-04292021.docx
, the main update is the Appendix (section 4). The following features are interesting:
1. convertToSinglePrecission
2. TargetLangStandard
3. TargetLang
4. fcns_for_argtypes
5. argTypes
It looks like the GenerateCode() is a high-level function to use the MATLAB original codegen:
https://www.mathworks.com/help/coder/ref/codegen.html