8 #include <boost/property_tree/ptree.hpp> 9 #include <boost/property_tree/info_parser.hpp> 10 #include <boost/algorithm/string.hpp> 30 template <
size_t STATE_DIM,
size_t CONTROL_DIM,
typename SCALAR =
double>
34 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
control_vector_t controlDerivativeIntermediate() override
Computes intermediate-cost first-order derivative with respect to control.
Definition: CostFunctionAnalytical-impl.hpp:136
state_vector_t stateDerivativeTerminal() override
Definition: CostFunctionAnalytical-impl.hpp:115
CostFunctionAnalytical()
Basic constructor.
Definition: CostFunctionAnalytical-impl.hpp:12
state_matrix_t stateSecondDerivativeTerminal() override
Computes final-cost second-order derivative with respect to state.
Definition: CostFunctionAnalytical-impl.hpp:129
core::StateVector< STATE_DIM, SCALAR > state_vector_t
Definition: CostFunctionAnalytical.hpp:40
void loadFromConfigFile(const std::string &filename, bool verbose=false) override
Loads cost function from config file.
Definition: CostFunctionAnalytical-impl.hpp:43
A cost function which contains only terms that have analytical derivatives.
Definition: CostFunctionAnalytical.hpp:31
control_state_matrix_t stateControlDerivativeTerminal() override
Computes final-cost derivative with respect to state and control.
Definition: CostFunctionAnalytical-impl.hpp:171
core::ControlVector< CONTROL_DIM, SCALAR > control_vector_t
Definition: CostFunctionAnalytical.hpp:41
Describes a cost function with a quadratic approximation, i.e. one that can compute first and second ...
Definition: CostFunctionQuadratic.hpp:29
control_state_matrix_t stateControlDerivativeIntermediate() override
Computes intermediate-cost derivative with respect to state and control.
Definition: CostFunctionAnalytical-impl.hpp:164
SCALAR evaluateIntermediate() override
evaluate intermediate costs
Definition: CostFunctionAnalytical-impl.hpp:95
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef Eigen::Matrix< SCALAR, STATE_DIM, STATE_DIM > state_matrix_t
Definition: CostFunctionAnalytical.hpp:36
CppAD::AD< CppAD::cg::CG< double > > SCALAR
SCALAR evaluateTerminal() override
evaluate terminal costs
Definition: CostFunctionAnalytical-impl.hpp:101
Eigen::Matrix< SCALAR, CONTROL_DIM, STATE_DIM > control_state_matrix_t
Definition: CostFunctionAnalytical.hpp:38
Eigen::Matrix< SCALAR, CONTROL_DIM, CONTROL_DIM > control_matrix_t
Definition: CostFunctionAnalytical.hpp:37
state_matrix_t stateSecondDerivativeIntermediate() override
Computes intermediate-cost second-order derivative with respect to state.
Definition: CostFunctionAnalytical-impl.hpp:122
control_matrix_t controlSecondDerivativeIntermediate() override
Computes intermediate-cost second-order derivative with respect to input.
Definition: CostFunctionAnalytical-impl.hpp:150
CostFunctionAnalytical< STATE_DIM, CONTROL_DIM, SCALAR > * clone() const override
Definition: CostFunctionAnalytical-impl.hpp:30
control_matrix_t controlSecondDerivativeTerminal() override
Computes final-cost second-order derivative with respect to input.
Definition: CostFunctionAnalytical-impl.hpp:157
~CostFunctionAnalytical()
Definition: CostFunctionAnalytical-impl.hpp:37
const bool verbose
Definition: ConstraintComparison.h:18
control_vector_t controlDerivativeTerminal() override
Computes terminal-cost first-order derivative with respect to control.
Definition: CostFunctionAnalytical-impl.hpp:143
state_vector_t stateDerivativeIntermediate() override
Computes intermediate-cost first-order derivative with respect to state.
Definition: CostFunctionAnalytical-impl.hpp:108