10 #define CHolonomicND_H
77 SITUATION_TARGET_DIRECTLY = 1,
80 SITUATION_NO_WAY_FOUND
109 unsigned int direction2sector(
const double a,
const unsigned int N);
114 const std::vector<double> & obstacles,
122 const std::vector<double> & in_obstacles,
123 const double in_maxObsRange,
126 unsigned int & out_selDirection,
127 double & out_selEvaluation,
129 double & out_riskEvaluation,
130 CLogFileRecord_NDPtr log);
134 void calcRepresentativeSectorForGap(
137 const std::vector<double> & obstacles);
142 const std::vector<double> & in_obstacles,
143 const double in_maxObsRange,
145 const unsigned int TargetSector,
146 const float TargetDist,
147 std::vector<double> & out_gaps_evaluation );
#define DEFINE_SERIALIZABLE_POST_CUSTOM_BASE_LINKAGE(class_name, base_name, _LINKAGE_)
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
#define DEFINE_SERIALIZABLE_PRE_CUSTOM_BASE_LINKAGE(class_name, base_name, _LINKAGE_)
This declaration must be inserted in all CSerializable classes definition, before the class declarati...
A base class for holonomic reactive navigation methods.
A base class for log records for different holonomic navigation methods.
An implementation of the holonomic reactive navigation method "Nearness-Diagram".
TOptions options
Parameters of the algorithm (can be set manually or loaded from CHolonomicND::initialize or options....
void setTargetApproachSlowDownDistance(const double dist) MRPT_OVERRIDE
Sets the actual value of this parameter [m].
std::vector< TGap > TGapArray
unsigned int m_last_selected_sector
double getTargetApproachSlowDownDistance() const MRPT_OVERRIDE
Returns the actual value of this parameter [m], as set via the children class options structure.
TSituations
The set of posible situations for each trajectory.
@ SITUATION_TARGET_DIRECTLY
A class for storing extra information about the execution of CHolonomicND navigation.
std::vector< double > gaps_eval
CHolonomicND::TSituations situation
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...
A bidirectional version of std::map, declared as bimap<KEY,VALUE> and which actually contains two std...
void insert(const KEY &k, const VALUE &v)
Insert a new pair KEY<->VALUE in the bi-map.
GLubyte GLubyte GLubyte a
GLsizei const GLchar ** string
GLsizei GLsizei GLchar * source
std::vector< int32_t > vector_int
#define MRPT_OVERRIDE
C++11 "override" for virtuals:
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Output for CAbstractHolonomicReactiveMethod::navigate()
The structure used to store a detected gap in obstacles.
unsigned int representative_sector
double MAX_SECTOR_DIST_FOR_D2_PERCENT
std::vector< double > factorWeights
Vector of 4 weights: [0]=Free space, [1]=Dist. in sectors, [2]=Closer to target (Euclidean),...
double TARGET_SLOW_APPROACHING_DISTANCE
double RISK_EVALUATION_SECTORS_PERCENT
static void fill(bimap< enum_t, std::string > &m_map)
nav::CHolonomicND::TSituations enum_t
Only specializations of this class are defined for each enum type of interest.