WHy genFASTCC does not work ?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
hi . I am trying to do the
Reverse-Capable Motion Planning for Tractor-Trailer Model Using plannerControlRRT
and the genFASTcc doent work . I got an error everytime i am trying to work it : Error using codegen.Error in genFastCC (line 13)
codegen('exampleHelperCollisionChecker', '-args', args);
pls help me , its for my thesis and IDK what to do.
1 comentario
Star Strider
el 6 de Sept. de 2023
How are you implementing it? It seems to work here until it needs to open the Editor and cannot (because that does not work here).
openExample('nav/TractorTrailerPlanningUsingPlannerControlRRTExample')
(I do not have the Navigation Toolbox, so I cannot experiment with this anywhere else.)
Respuestas (1)
Garmit Pant
el 9 de En. de 2024
I understand that you are trying to reproduce the MATLAB Example titled “Reverse-Capable Motion Planning for Tractor-Trailer Model Using plannerControlRRT” and you are getting an error while running the "genFASTcc.m” file that creates a MEX file using Codegen. You want to understand the cause of the issue and get a fix for it.
- The error in the file "genFASTcc.m” occurs when trying to create the MEX file using Codegen. A possible reason for the error could be an absence of the pre-requisite products to generate C and C++ code using MATLAB Coder. Make sure you have the following products installed on your device:
- MATLAB Coder
- C or C++ compiler – MinGW (Windows), GCC (Linux), Xcode (Mac). Check the list of compatible compilers on the following link - https://www.mathworks.com/support/requirements/supported-compilers.html
- Another error that can occur during MEX file generation is incompatibility of your current toolchain with SIMD 'SSE2' intrinsics. This can be fixed by installing a compiler like Microsoft Visual C++ that is compatible with the intrinsics. Refer to the following MATLAB Answers post - https://www.mathworks.com/matlabcentral/answers/2047772-error-when-using-embedded-coder-in-simulink-toolchain-lcc-win64-v2-4-1-gmake-64-bit-windows
A MATLAB Coder Error Report is generated whenever code generation fails. Please refer to the Error Report to pinpoint the reason behind the error.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1586176/image.png)
For further understanding on MATLAB Coder and code generation, you can refer to the following MATLAB Documentation:
- Documentation to install, configure and start using MATLAB Coder - https://www.mathworks.com/help/releases/R2023a/coder/getting-started-with-matlab-coder.html
- A guide to Code Generation errors - https://www.mathworks.com/help/releases/R2023a/fixedpoint/ug/fixing-errors-detected-at-code-generation-time.html
I hope you find the above explanation and suggestions useful!
0 comentarios
Ver también
Categorías
Más información sobre MATLAB Coder en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!