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)
 

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 25 of file cost-sum.hpp.

Member Typedef Documentation

◆ CostModelAbstract

template<typename _Scalar >
typedef CostModelAbstractTpl<Scalar> CostModelAbstract

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

Constructor & Destructor Documentation

◆ CostItemTpl() [1/2]

template<typename _Scalar >
CostItemTpl ( )
inline

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

◆ CostItemTpl() [2/2]

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

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

Friends And Related Symbol Documentation

◆ operator<<

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

Print information on the cost item.

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

Member Data Documentation

◆ Scalar

template<typename _Scalar >
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef _Scalar Scalar

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

◆ name

template<typename _Scalar >
std::string name

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

◆ cost

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

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

◆ weight

template<typename _Scalar >
Scalar weight

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

◆ active

template<typename _Scalar >
bool active

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


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