control-toolbox
control-toolbox copied to clipboard
Explicit Template Instantiation does not compile for ADScalar or ADCGScalar
@johuber had reported the following for v2.3
When I try to compile with either of the in the explicit_templates.cfg file, several compile errors occur.
Config:
STATE_DIM=4, CONTROL_DIM=2, POS_DIM=0, VEL_DIM=0, SCALAR=double STATE_DIM=4, CONTROL_DIM=2, POS_DIM=0, VEL_DIM=0, SCALAR=ct::core::ADScalar STATE_DIM=4, CONTROL_DIM=2, POS_DIM=0, VEL_DIM=0, SCALAR=ct::core::ADCGScalar
Errors:
/ct/ct/ct_core/include/external/cppad/local/ad_ctor.hpp:172:10: error: no matching conversion for functional-style cast from 'const CppAD::AD<double>' to 'CppAD::cg::CG<double>'
/ct/ct/ct_optcon/include/ct/optcon/constraint/term/StateConstraint-impl.h:99:9: error: no matching member function for call to 'setConstant'
jac.setConstant(1.0);
/ct/ct/ct_optcon/include/ct/optcon/constraint/term/ControlInputConstraint-impl.h:118:9: error: no matching member function for call to 'setConstant'
jac.setConstant(1.0);