49 int decide(
const std::vector<mrpt::nav::TCandidateMovementPTG> &movs,
TResultInfo &extra_info);
88 std::map<std::string, mrpt::math::CRuntimeCompiledExpression>
m_score_exprs;
#define DEFINE_MRPT_OBJECT_POST_CUSTOM_LINKAGE(class_name, _LINKAGE_)
#define DEFINE_VIRTUAL_MRPT_OBJECT(class_name)
This declaration must be inserted in virtual CSerializable classes definition:
#define DEFINE_MRPT_OBJECT_PRE_CUSTOM_LINKAGE(class_name, _LINKAGE_)
Virtual base class for multi-objective motion choosers, as used for reactive navigation engines.
virtual void loadConfigFile(const mrpt::utils::CConfigFileBase &c)=0
std::map< std::string, double > m_expr_vars
std::map< std::string, mrpt::math::CRuntimeCompiledExpression > m_score_exprs
score names -> score compiled expressions
std::vector< mrpt::math::CRuntimeCompiledExpression > m_movement_assert_exprs
virtual int impl_decide(const std::vector< mrpt::nav::TCandidateMovementPTG > &movs, TResultInfo &extra_info)=0
TParamsBase & m_params_base
virtual void saveConfigFile(mrpt::utils::CConfigFileBase &c) const =0
This class allows loading and storing values and vectors of different types from a configuration text...
This is a virtual base class for sets of options than can be loaded from and/or saved to configuratio...
GLenum const GLfloat * params
GLsizei const GLchar ** string
GLsizei GLsizei GLchar * source
#define MRPT_OVERRIDE
C++11 "override" for virtuals:
#define MRPT_NO_THROWS
C++11 noexcept: Used after member declarations.
void clear()
Clear the contents of this container.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Common params for all children.
std::vector< std::string > movement_assert
A list of exprtk expressions for conditions that any candidate movement must fulfill in order to get ...
std::map< std::string, std::string > formula_score
A list of name -> mathematical expression (in the format of the exprtk library) for the list of "scor...
std::vector< std::string > scores_to_normalize
List of score names (as defined in the key of formula_score) that must be normalized across all candi...
std::vector< std::string > log_entries
Optionally, debug logging info will be stored here by the implementor classes.
std::vector< double > final_evaluation
The final evaluation score for each candidate.
std::vector< std::map< std::string, double > > score_values
For each candidate (vector indices), the numerical evaluation of all scores defined in TParamsBase::f...