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