Public Member Functions | Public Attributes | Protected Member Functions | Private Attributes | List of all members
tuw::CostsEvaluator< Lattice, MapData > Class Template Reference

#include <costs_evaluator.hpp>

Inheritance diagram for tuw::CostsEvaluator< Lattice, MapData >:
Inheritance graph
[legend]

Public Member Functions

 CostsEvaluator (std::shared_ptr< MapData > &_mapDataPtr)
 
 CostsEvaluator (const CostsEvaluator &)=default
 
 CostsEvaluator (CostsEvaluator &&)=default
 
bool evalValidCostStep (const CostEvaluatorCostType &_arrayType, double _arcNow, size_t &_violatingLatIdx, double &_arcMax) override
 
void init (std::vector< std::shared_ptr< Lattice >> &_lattPtr) override
 
std::shared_ptr< MapData > & mapDataPtr ()
 
CostsEvaluatoroperator= (const CostsEvaluator &)=default
 
CostsEvaluatoroperator= (CostsEvaluator &&)=default
 
void resetCostFunctions (const CostEvaluatorCostType &_arrayType) override
 
virtual ~CostsEvaluator ()=default
 
- Public Member Functions inherited from tuw::CostsEvaluatorBase< Lattice >
 CostsEvaluatorBase ()
 
 CostsEvaluatorBase (const CostsEvaluatorBase &)=default
 
 CostsEvaluatorBase (CostsEvaluatorBase &&)=default
 
void evaluateAllCosts ()
 
void evaluateF ()
 
void evaluateG ()
 
void evaluateH ()
 
bool gIsValid (const double &_boxBound=1e-2) const
 
bool gIsValid (const size_t _Idx, const double &_boxBound=1e-2) const
 
bool hIsValid () const
 
virtual void loadCostFunctions ()=0
 
CostsEvaluatorBaseoperator= (const CostsEvaluatorBase &)=default
 
CostsEvaluatorBaseoperator= (CostsEvaluatorBase &&)=default
 
virtual ~CostsEvaluatorBase ()=default
 

Public Attributes

std::vector< std::vector< std::unique_ptr< cost_functions::CostsArrayLatBase< Lattice, MapData > > > > partialCostsArray_
 
- Public Attributes inherited from tuw::CostsEvaluatorBase< Lattice >
double f
 
std::vector< double > g
 
std::vector< double > gradF
 
Eigen::MatrixXd gradG
 
Eigen::MatrixXd gradH
 
std::vector< double > h
 

Protected Member Functions

void computeArrayCost (std::vector< double > &_arr, const CostEvaluatorCostType &_arrayType) override
 
void computeScalarCost (double &_f)
 

Private Attributes

bool firstAfterReset_
 
std::shared_ptr< MapData > mapDataPtr_
 

Detailed Description

template<typename Lattice, typename MapData>
class tuw::CostsEvaluator< Lattice, MapData >

Definition at line 186 of file costs_evaluator.hpp.

Constructor & Destructor Documentation

template<typename Lattice , typename MapData >
tuw::CostsEvaluator< Lattice, MapData >::CostsEvaluator ( std::shared_ptr< MapData > &  _mapDataPtr)
inline

Definition at line 189 of file costs_evaluator.hpp.

template<typename Lattice , typename MapData >
virtual tuw::CostsEvaluator< Lattice, MapData >::~CostsEvaluator ( )
virtualdefault
template<typename Lattice , typename MapData >
tuw::CostsEvaluator< Lattice, MapData >::CostsEvaluator ( const CostsEvaluator< Lattice, MapData > &  )
default
template<typename Lattice , typename MapData >
tuw::CostsEvaluator< Lattice, MapData >::CostsEvaluator ( CostsEvaluator< Lattice, MapData > &&  )
default

Member Function Documentation

template<typename Lattice , typename MapData >
void tuw::CostsEvaluator< Lattice, MapData >::computeArrayCost ( std::vector< double > &  _arr,
const CostEvaluatorCostType _arrayType 
)
inlineoverrideprotectedvirtual

Implements tuw::CostsEvaluatorBase< Lattice >.

Definition at line 249 of file costs_evaluator.hpp.

template<typename Lattice , typename MapData >
void tuw::CostsEvaluator< Lattice, MapData >::computeScalarCost ( double &  _f)
inlineprotectedvirtual

Implements tuw::CostsEvaluatorBase< Lattice >.

Definition at line 227 of file costs_evaluator.hpp.

template<typename Lattice , typename MapData >
bool tuw::CostsEvaluator< Lattice, MapData >::evalValidCostStep ( const CostEvaluatorCostType _arrayType,
double  _arcNow,
size_t &  _violatingLatIdx,
double &  _arcMax 
)
inlineoverridevirtual

Implements tuw::CostsEvaluatorBase< Lattice >.

Definition at line 292 of file costs_evaluator.hpp.

template<typename Lattice , typename MapData >
void tuw::CostsEvaluator< Lattice, MapData >::init ( std::vector< std::shared_ptr< Lattice >> &  _lattPtr)
inlineoverridevirtual

Implements tuw::CostsEvaluatorBase< Lattice >.

Definition at line 210 of file costs_evaluator.hpp.

template<typename Lattice , typename MapData >
std::shared_ptr<MapData>& tuw::CostsEvaluator< Lattice, MapData >::mapDataPtr ( )
inline

Definition at line 346 of file costs_evaluator.hpp.

template<typename Lattice , typename MapData >
CostsEvaluator& tuw::CostsEvaluator< Lattice, MapData >::operator= ( const CostsEvaluator< Lattice, MapData > &  )
default
template<typename Lattice , typename MapData >
CostsEvaluator& tuw::CostsEvaluator< Lattice, MapData >::operator= ( CostsEvaluator< Lattice, MapData > &&  )
default
template<typename Lattice , typename MapData >
void tuw::CostsEvaluator< Lattice, MapData >::resetCostFunctions ( const CostEvaluatorCostType _arrayType)
inlineoverridevirtual

Implements tuw::CostsEvaluatorBase< Lattice >.

Definition at line 279 of file costs_evaluator.hpp.

Member Data Documentation

template<typename Lattice , typename MapData >
bool tuw::CostsEvaluator< Lattice, MapData >::firstAfterReset_
private

Definition at line 355 of file costs_evaluator.hpp.

template<typename Lattice , typename MapData >
std::shared_ptr<MapData> tuw::CostsEvaluator< Lattice, MapData >::mapDataPtr_
private

Definition at line 352 of file costs_evaluator.hpp.

template<typename Lattice , typename MapData >
std::vector<std::vector<std::unique_ptr<cost_functions::CostsArrayLatBase<Lattice, MapData> > > > tuw::CostsEvaluator< Lattice, MapData >::partialCostsArray_

Definition at line 343 of file costs_evaluator.hpp.


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


tuw_control
Author(s): George Todoran
autogenerated on Mon Jun 10 2019 15:27:22