33 #include <acado/code_generation/templates/templates.hpp> 40 const std::string& _commonHeaderName,
41 const std::string& _realString,
42 const std::string& _intString,
44 const std::string& _commentString
45 ) :
ExportTemplatedFile(QPDUNES_TEMPLATE, _fileName, _commonHeaderName, _realString, _intString, _precision, _commentString)
49 const unsigned _printLevel,
50 const std::string& _HH,
51 const std::string& _g,
52 const std::string& _gN,
53 const std::string& _CC,
54 const std::string& _c,
55 const std::string& _DD,
56 const std::string& _lb0,
57 const std::string& _ub0,
58 const std::string& _lb,
59 const std::string& _ub,
60 const std::string& _lbA,
61 const std::string& _ubA,
62 const std::string& _primal,
63 const std::string& _lambda,
64 const std::string& _mu,
65 const std::vector< unsigned >& conDim,
66 const std::string& _initialStateFixed,
67 const std::string& _diagH,
68 const std::string& _diagHN,
109 if (conDim.size() > 0)
116 ss <<
"unsigned int nD[";
119 for (
unsigned i = 0; i < conDim.size(); ++i)
122 if (i < conDim.size() - 1)
132 ss <<
"unsigned int nD[";
134 ss <<
" + 1]; for (kk = 0; kk < ";
136 ss <<
" + 1; nD[ kk++ ] = 0);";
144 dictionary[
"@INITIAL_STATE_FIXED@" ] = _initialStateFixed;
std::map< std::string, std::string > dictionary
Allows to pass back messages to the calling function.
#define CLOSE_NAMESPACE_ACADO
Allows export of template files.
ExportQpDunesInterface(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())
#define BEGIN_NAMESPACE_ACADO
virtual returnValue configure()
returnValue fillTemplate()