33 #ifndef STATE_MAPPING_HPP 34 #define STATE_MAPPING_HPP 47 template <
typename InputStateType,
typename OutputStateType,
typename ParamType>
78 virtual std::shared_ptr<OutputStateType>&
compute(std::shared_ptr<InputStateType>& _x,
const double& _t) = 0;
87 std::shared_ptr<OutputStateType>&
output()
99 #endif // STATE_MAPPING_HPP virtual std::shared_ptr< OutputStateType > & compute(std::shared_ptr< InputStateType > &_x, const double &_t)=0
Computes the output state after a (nonlinear) state mapping.
StateMapping(std::shared_ptr< ParamType > &_params)
std::shared_ptr< OutputStateType > & output()
Access to the last computed output state.
virtual ~StateMapping()=default
StateMapping & operator=(const StateMapping &)=default
Interface for a filter that performs a (nonlinear) mapping from the input state to an output state...
virtual void reloadParam()=0
Reloads class parameters. To be called when parameters that influence the class variables are changed...
std::shared_ptr< OutputStateType > output_
Last computet output state.
std::shared_ptr< ParamType > params_
Pointer to the class parameters object.