Public Member Functions | Public Attributes | List of all members
tuw::ParamFuncsEvaluator< ObservedStateType, OutputStateType, ParamType, ParamFuncs2StateTypes > Class Template Reference

Class manipulating a set of parametric-functions-to-state objects based on requested parametric functions input type. More...

#include <param_funcs_evaluator.hpp>

Public Member Functions

template<typename ParamFuncPtrType >
std::shared_ptr< OutputStateType > & compute (std::shared_ptr< ObservedStateType > &_xObs, ParamFuncPtrType &_paramFuncs, const double &_t)
 Performs a parametric functions evaluator computation step (calling the parametric functions evaluator specific for the templated ParamFuncPtrType) More...
 
template<typename ParamFuncsType >
void loadParamFuncsState0 (const std::vector< double > &_state0, const double &_timeShift=0)
 Loads the initial state into the specific parametric functions evaluators. More...
 
 ParamFuncsEvaluator (std::shared_ptr< ParamType > _params)
 
void reloadParam ()
 Calls reloadParam on all parametric functions evaluators. More...
 
void reset ()
 Resets all parametric functions evaluators. More...
 

Public Attributes

std::tuple< ParamFuncs2StateTypes... > paramFuncs2State_
 Tuple storing the parametric functions evaluators. More...
 
bool processingParamFuncs_
 Flags if any evaluator is active. More...
 

Detailed Description

template<typename ObservedStateType, typename OutputStateType, typename ParamType, typename... ParamFuncs2StateTypes>
class tuw::ParamFuncsEvaluator< ObservedStateType, OutputStateType, ParamType, ParamFuncs2StateTypes >

Class manipulating a set of parametric-functions-to-state objects based on requested parametric functions input type.

Template Parameters
ObservedStateTypeClass containing the observed state
OutputStateTypeClass containing the output state
ParamTypeClass containing the parameter structure
ParamFuncs2StateTypesParameter pack of the supported parametric functions evaluators

Definition at line 50 of file param_funcs_evaluator.hpp.

Constructor & Destructor Documentation

template<typename ObservedStateType , typename OutputStateType , typename ParamType , typename... ParamFuncs2StateTypes>
tuw::ParamFuncsEvaluator< ObservedStateType, OutputStateType, ParamType, ParamFuncs2StateTypes >::ParamFuncsEvaluator ( std::shared_ptr< ParamType >  _params)
inline

Definition at line 54 of file param_funcs_evaluator.hpp.

Member Function Documentation

template<typename ObservedStateType , typename OutputStateType , typename ParamType , typename... ParamFuncs2StateTypes>
template<typename ParamFuncPtrType >
std::shared_ptr<OutputStateType>& tuw::ParamFuncsEvaluator< ObservedStateType, OutputStateType, ParamType, ParamFuncs2StateTypes >::compute ( std::shared_ptr< ObservedStateType > &  _xObs,
ParamFuncPtrType &  _paramFuncs,
const double &  _t 
)
inline

Performs a parametric functions evaluator computation step (calling the parametric functions evaluator specific for the templated ParamFuncPtrType)

Template Parameters
ParamFuncPtrTypeType of parametric functions structure in use
Parameters
_xObsObserved chassis + arc parametrization state
_tTemporal evaluation point

Definition at line 67 of file param_funcs_evaluator.hpp.

template<typename ObservedStateType , typename OutputStateType , typename ParamType , typename... ParamFuncs2StateTypes>
template<typename ParamFuncsType >
void tuw::ParamFuncsEvaluator< ObservedStateType, OutputStateType, ParamType, ParamFuncs2StateTypes >::loadParamFuncsState0 ( const std::vector< double > &  _state0,
const double &  _timeShift = 0 
)
inline

Loads the initial state into the specific parametric functions evaluators.

Template Parameters
ParamFuncsTypeParametric function structure type
Parameters
_state0Initial state

Definition at line 87 of file param_funcs_evaluator.hpp.

template<typename ObservedStateType , typename OutputStateType , typename ParamType , typename... ParamFuncs2StateTypes>
void tuw::ParamFuncsEvaluator< ObservedStateType, OutputStateType, ParamType, ParamFuncs2StateTypes >::reloadParam ( )
inline

Calls reloadParam on all parametric functions evaluators.

Definition at line 107 of file param_funcs_evaluator.hpp.

template<typename ObservedStateType , typename OutputStateType , typename ParamType , typename... ParamFuncs2StateTypes>
void tuw::ParamFuncsEvaluator< ObservedStateType, OutputStateType, ParamType, ParamFuncs2StateTypes >::reset ( )
inline

Resets all parametric functions evaluators.

Definition at line 97 of file param_funcs_evaluator.hpp.

Member Data Documentation

template<typename ObservedStateType , typename OutputStateType , typename ParamType , typename... ParamFuncs2StateTypes>
std::tuple<ParamFuncs2StateTypes...> tuw::ParamFuncsEvaluator< ObservedStateType, OutputStateType, ParamType, ParamFuncs2StateTypes >::paramFuncs2State_

Tuple storing the parametric functions evaluators.

Definition at line 116 of file param_funcs_evaluator.hpp.

template<typename ObservedStateType , typename OutputStateType , typename ParamType , typename... ParamFuncs2StateTypes>
bool tuw::ParamFuncsEvaluator< ObservedStateType, OutputStateType, ParamType, ParamFuncs2StateTypes >::processingParamFuncs_

Flags if any evaluator is active.

Definition at line 118 of file param_funcs_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:23