33 #include <acado/code_generation/templates/templates.hpp> 42 const std::string& _commonHeaderName,
43 const std::string& _realString,
44 const std::string& _intString,
46 const std::string& _commentString
47 ) :
ExportTemplatedFile(HPMPC_INTERFACE, _fileName, _commonHeaderName, _realString, _intString, _precision, _commentString)
51 const unsigned _printLevel,
52 bool _useSinglePrecision,
54 const std::string& _Hx,
55 const std::string& _Hu,
56 const std::string& _lbA,
57 const std::string& _ubA,
59 const std::vector< unsigned >& _conDim,
69 dictionary[
"@PRECISION@" ] = _useSinglePrecision ==
true ?
"1" :
"0";
70 dictionary[
"@WARM_START@" ] = _warmStart ==
true ?
"1" :
"0";
77 if (_conDim.size() > 0)
85 ss <<
"unsigned int nD[";
88 for (
unsigned i = 0; i < _conDim.size(); ++i)
91 if (i < _conDim.size() - 1)
101 ss <<
"unsigned int nD[";
103 ss <<
" + 1]; for (kk = 0; kk < ";
105 ss <<
" + 1; nD[ kk++ ] = 0);";
std::map< std::string, std::string > dictionary
Allows to pass back messages to the calling function.
ExportHpmpcInterface(const std::string &_fileName, const std::string &_commonHeaderName="", const std::string &_realString="real_t", const std::string &_intString="int", int _precision=16, const std::string &_commentString=std::string())
string toString(T const &value)
#define CLOSE_NAMESPACE_ACADO
Allows export of template files.
static std::string fcnPrefix
#define BEGIN_NAMESPACE_ACADO
virtual returnValue configure()
returnValue fillTemplate()
static std::string varPrefix
#define ACADOERROR(retval)