Template Struct CostDataNumDiffTpl
Defined in File cost.hpp
Inheritance Relationships
Base Type
public crocoddyl::CostDataAbstractTpl< _Scalar >(Template Struct CostDataAbstractTpl)
Struct Documentation
-
template<typename _Scalar>
struct CostDataNumDiffTpl : public crocoddyl::CostDataAbstractTpl<_Scalar> Public Types
-
typedef MathBaseTpl<Scalar> MathBase
-
typedef CostDataAbstractTpl<Scalar> Base
-
typedef DataCollectorAbstractTpl<Scalar> DataCollectorAbstract
-
typedef ActivationDataAbstractTpl<Scalar> ActivationDataAbstract
-
typedef MathBaseTpl<Scalar>::VectorXs VectorXs
Public Functions
-
template<template<typename Scalar> class Model>
inline explicit CostDataNumDiffTpl(Model<Scalar> *const model, DataCollectorAbstract *const shared_data) Initialize the numdiff cost data.
- Template Parameters:
Model – is the type of the
CostModelAbstractTpl.- Parameters:
model – is the object to compute the numerical differentiation from.
-
virtual ~CostDataNumDiffTpl() = default
Public Members
- EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef _Scalar Scalar
-
Scalar x_norm
Norm of the state vector.
-
Scalar xh_jac
Disturbance value used for computing \( \ell_\mathbf{x} \).
-
Scalar uh_jac
Disturbance value used for computing \( \ell_\mathbf{u} \).
-
std::vector<std::shared_ptr<Base>> data_u
The temporary data associated with the control variation.
-
std::shared_ptr<ActivationDataAbstract> activation
-
Scalar cost
-
MatrixXs Luu
-
MatrixXs Lxu
-
MatrixXs Lxx
-
std::shared_ptr<ResidualDataAbstract> residual
-
typedef MathBaseTpl<Scalar> MathBase