Go to the documentation of this file.
141 std::vector<double>& dir_evals,
const NavInput& ni,
142 unsigned int trg_idx);
A class for storing extra information about the execution of CHolonomicFullEval navigation.
virtual void initialize(const mrpt::config::CConfigFileBase &INI_FILE) override
Initialize the parameters of the navigator, reading from the default section name (see derived classe...
mrpt::math::CMatrixD dirs_scores
Individual scores for each direction: (i,j), i (row) are directions, j (cols) are scores.
double HYSTERESIS_SECTOR_COUNT
Range of "sectors" (directions) for hysteresis over successive timesteps.
double gap_width_ratio_threshold
Ratio [0,1], times path_count, gives the minimum gap width to accept a direct motion towards target.
CLogFileRecord_FullEval()
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
std::vector< std::vector< int32_t > > PHASE_FACTORS
Factor indices [0,4] for the factors to consider in each phase 1,2,...N of the movement decision (Def...
double TARGET_SLOW_APPROACHING_DISTANCE
Start to reduce speed when closer than this to target [m].
void saveToConfigFile(mrpt::config::CConfigFileBase &cfg, const std::string §ion) const override
This method saves the options to a ".ini"-like file or memory-stored string list.
GLsizei GLsizei GLchar * source
std::vector< int32_t > factorNormalizeOrNot
0/1 to normalize factors.
virtual void postProcessDirectionEvaluations(std::vector< double > &dir_evals, const NavInput &ni, unsigned int trg_idx)
const mrpt::math::CMatrixD * getDirectionScores() const override
A base class for holonomic reactive navigation methods.
double OBSTACLE_SLOW_DOWN_DISTANCE
Start to reduce speed when clearance is below this value ([0,1] ratio wrt obstacle reference/max dist...
This class allows loading and storing values and vectors of different types from a configuration text...
A smart look-up-table (LUT) of sin/cos values for 2D laser scans.
void setTargetApproachSlowDownDistance(const double dist) override
Sets the actual value of this parameter [m].
This is a virtual base class for sets of options than can be loaded from and/or saved to configuratio...
void evalSingleTarget(unsigned int target_idx, const NavInput &ni, EvalOutput &eo)
Evals one single target of the potentially many of them in NavInput.
bool LOG_SCORE_MATRIX
(default:false, to save space)
std::vector< double > factorWeights
See docs above.
void loadFromConfigFile(const mrpt::config::CConfigFileBase &source, const std::string §ion) override
This method load the options from a ".ini"-like file or memory-stored string list.
mrpt::math::CMatrixD m_dirs_scores
Individual scores for each direction: (i,j), i (row) are directions, j (cols) are scores.
std::vector< double > PHASE_THRESHOLDS
Phase 1,2,N-1...
double getTargetApproachSlowDownDistance() const override
Returns the actual value of this parameter [m], as set via the children class options structure.
mrpt::obs::CSinCosLookUpTableFor2DScans m_sincos_lut
unsigned int direction2sector(const double a, const unsigned int N)
std::vector< std::vector< double > > phase_scores
TOptions options
Parameters of the algorithm (can be set manually or loaded from CHolonomicFullEval::initialize or opt...
double TOO_CLOSE_OBSTACLE
Directions with collision-free distances below this threshold are not elegible.
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
Output for CAbstractHolonomicReactiveMethod::navigate()
A base class for log records for different holonomic navigation methods.
This class is a "CSerializable" wrapper for "CMatrixTemplateNumeric<double>".
GLsizei const GLchar ** string
virtual void saveConfigFile(mrpt::config::CConfigFileBase &c) const override
saves all available parameters, in a forma loadable by initialize()
CHolonomicFullEval(const mrpt::config::CConfigFileBase *INI_FILE=nullptr)
Initialize the parameters of the navigator, from some configuration file, or default values if set to...
int32_t selectedTarget
Normally = 0.
unsigned int m_last_selected_sector
double clearance_threshold_ratio
Ratio [0,1], times path_count, gives the minimum number of paths at each side of a target direction t...
void navigate(const NavInput &ni, NavOutput &no) override
Invokes the holonomic navigation algorithm itself.
GLubyte GLubyte GLubyte a
int32_t selectedSector
Member data.
Full evaluation of all possible directions within the discrete set of input directions.
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |