Template Struct CostDataNumDiffTpl

Inheritance Relationships

Base Type

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} \).

VectorXs dx

State disturbance.

VectorXs xp

The integrated state from the disturbance on one DoF “\iline 232 \_form#91@_fakenl”.

VectorXs du

Control disturbance.

VectorXs up

The integrated control from the disturbance on one DoF “\iline 235 \_form#99@_fakenl”.

std::shared_ptr<Base> data_0

The data at the approximation point.

std::vector<std::shared_ptr<Base>> data_x

The temporary data associated with the state variation.

std::vector<std::shared_ptr<Base>> data_u

The temporary data associated with the control variation.

std::shared_ptr<ActivationDataAbstract> activation
Scalar cost
VectorXs Lu
MatrixXs Luu
VectorXs Lx
MatrixXs Lxu
MatrixXs Lxx
std::shared_ptr<ResidualDataAbstract> residual
DataCollectorAbstract *shared