Crocoddyl
Loading...
Searching...
No Matches
CostItemTpl< _Scalar > Struct Template Reference

Public Types

typedef CostModelAbstractTpl< Scalar > CostModelAbstract

Public Member Functions

 CostItemTpl (const std::string &name, std::shared_ptr< CostModelAbstract > cost, const Scalar weight, const bool active=true)
template<typename NewScalar>
CostItemTpl< NewScalar > cast () const

Public Attributes

bool active
std::shared_ptr< CostModelAbstractcost
std::string name
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef _Scalar Scalar
Scalar weight

Friends

std::ostream & operator<< (std::ostream &os, const CostItemTpl< Scalar > &model)
 Print information on the cost item.

Detailed Description

template<typename _Scalar>
struct crocoddyl::CostItemTpl< _Scalar >

Definition at line 19 of file cost-sum.hpp.

Member Typedef Documentation

◆ CostModelAbstract

template<typename _Scalar>
typedef CostModelAbstractTpl<Scalar> CostModelAbstract

Definition at line 23 of file cost-sum.hpp.

Constructor & Destructor Documentation

◆ CostItemTpl() [1/2]

template<typename _Scalar>
CostItemTpl()
inline

Definition at line 25 of file cost-sum.hpp.

◆ CostItemTpl() [2/2]

template<typename _Scalar>
CostItemTpl(const std::string &name,
std::shared_ptr< CostModelAbstract >cost,
const Scalarweight,
const boolactive = true )
inline

Definition at line 26 of file cost-sum.hpp.

Member Function Documentation

◆ cast()

template<typename _Scalar>
template<typename NewScalar>
CostItemTpl< NewScalar > cast()const
inline

Definition at line 31 of file cost-sum.hpp.

◆ operator<<

template<typename _Scalar>
std::ostream & operator<<(std::ostream &os,
const CostItemTpl< Scalar > &model )
friend

Print information on the cost item.

Definition at line 41 of file cost-sum.hpp.

Member Data Documentation

◆ Scalar

template<typename _Scalar>
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef _Scalar Scalar

Definition at line 22 of file cost-sum.hpp.

◆ name

template<typename _Scalar>
std::string name

Definition at line 47 of file cost-sum.hpp.

◆ cost

template<typename _Scalar>
std::shared_ptr<CostModelAbstract> cost

Definition at line 48 of file cost-sum.hpp.

◆ weight

template<typename _Scalar>
Scalar weight

Definition at line 49 of file cost-sum.hpp.

◆ active

template<typename _Scalar>
bool active

Definition at line 50 of file cost-sum.hpp.


The documentation for this struct was generated from the following file: