A class for generating the glue code and makefile for interfacing generated code and Simulink. More...
#include <export_simulink_interface.hpp>
Public Member Functions | |
| returnValue | configure (unsigned N, unsigned NX, unsigned NDX, unsigned NXA, unsigned NU, unsigned NP, unsigned NY, unsigned NYN, bool _initialStateFixed, unsigned _wMatrixType, bool _hardcodedConstraints, bool _useArrivalCost, bool _compCovMatrix, std::string _qpSolver) |
| returnValue | exportCode () |
| ExportSimulinkInterface (const std::string &_makefileName, const std::string &_wrapperHeaderFileName, const std::string &_wrapperSourceFileName, const std::string &_moduleName="acado", const std::string &_commonHeaderName="", const std::string &_realString="double", const std::string &_intString="int", int _precision=16, const std::string &_commentString=std::string()) | |
| virtual | ~ExportSimulinkInterface () |
Private Attributes | |
| ExportTemplatedFile | makefile |
| std::string | moduleName |
| ExportTemplatedFile | wrapperHeader |
| ExportTemplatedFile | wrapperSource |
A class for generating the glue code and makefile for interfacing generated code and Simulink.
Definition at line 47 of file export_simulink_interface.hpp.
| BEGIN_NAMESPACE_ACADO ExportSimulinkInterface::ExportSimulinkInterface | ( | const std::string & | _makefileName, |
| const std::string & | _wrapperHeaderFileName, | ||
| const std::string & | _wrapperSourceFileName, | ||
| const std::string & | _moduleName = "acado", |
||
| const std::string & | _commonHeaderName = "", |
||
| const std::string & | _realString = "double", |
||
| const std::string & | _intString = "int", |
||
| int | _precision = 16, |
||
| const std::string & | _commentString = std::string() |
||
| ) |
Default constructor.
| [in] | _moduleName | Module name for customization. |
| [in] | _commonHeaderName | Name of common header file to be included. |
| [in] | _realString | std::string to be used to declare real variables. |
| [in] | _intString | std::string to be used to declare integer variables. |
| [in] | _precision | Number of digits to be used for exporting real values. |
| [in] | _commentString | std::string to be used for exporting comments. |
Definition at line 42 of file export_simulink_interface.cpp.
| virtual ExportSimulinkInterface::~ExportSimulinkInterface | ( | ) | [inline, virtual] |
Destructor.
Definition at line 74 of file export_simulink_interface.hpp.
| returnValue ExportSimulinkInterface::configure | ( | unsigned | N, |
| unsigned | NX, | ||
| unsigned | NDX, | ||
| unsigned | NXA, | ||
| unsigned | NU, | ||
| unsigned | NP, | ||
| unsigned | NY, | ||
| unsigned | NYN, | ||
| bool | _initialStateFixed, | ||
| unsigned | _wMatrixType, | ||
| bool | _hardcodedConstraints, | ||
| bool | _useArrivalCost, | ||
| bool | _compCovMatrix, | ||
| std::string | _qpSolver | ||
| ) |
Configure the template
Definition at line 59 of file export_simulink_interface.cpp.
Export the interface.
Definition at line 123 of file export_simulink_interface.cpp.
Definition at line 102 of file export_simulink_interface.hpp.
std::string ExportSimulinkInterface::moduleName [private] |
Definition at line 105 of file export_simulink_interface.hpp.
Definition at line 104 of file export_simulink_interface.hpp.
Definition at line 103 of file export_simulink_interface.hpp.