16 #ifndef __HEURISTICPARAMS_H 17 #define __HEURISTICPARAMS_H 90 config_file.
read_string(
"global",
"path_prev_pbmaps",
"",
false);
94 config_file.
read_bool(
"global",
"use_completeness",
true);
96 config_file.
read_int(
"global",
"min_planes_recognition", 4);
105 config_file.
read_float(
"unary",
"color_threshold", 0.09);
107 config_file.
read_float(
"unary",
"intensity_threshold", 175.0);
114 config_file.
read_float(
"unary",
"area_full_threshold", 1.6);
117 config_file.
read_float(
"unary",
"area_half_threshold", 2.0);
120 config_file.
read_float(
"unary",
"elongation_threshold", 2.9);
125 config_file.
read_float(
"binary",
"dist_threshold", 2.0);
128 config_file.
read_float(
"binary",
"angle_threshold", 7.0);
130 config_file.
read_float(
"binary",
"height_threshold", 0.2);
132 config_file.
read_float(
"binary",
"height_threshold_parallel", 0.2);
134 config_file.
read_float(
"binary",
"cos_angle_parallel", 0.985);
143 cout <<
"Unary thresholds:\n";
144 cout <<
"dist_d " <<
dist_d << endl;
145 cout <<
"angle " <<
angle << endl;
152 cout <<
"Binary thresholds:\n";
154 cout <<
"angle " <<
angle << endl;
std::string path_prev_pbmaps
void load_params(const std::string &config_file_name)
bool read_bool(const std::string §ion, const std::string &name, bool defaultValue, bool failIfNotFound=false) const
float area_half_threshold_inv
unsigned min_planes_recognition
float read_float(const std::string §ion, const std::string &name, float defaultValue, bool failIfNotFound=false) const
float intensity_threshold
This class allows loading and storing values and vectors of different types from ".ini" files easily.
std::string read_string(const std::string §ion, const std::string &name, const std::string &defaultValue, bool failIfNotFound=false) const
int read_int(const std::string §ion, const std::string &name, int defaultValue, bool failIfNotFound=false) const
float area_full_threshold_inv
float area_full_threshold
float height_threshold_parallel
GLsizei const GLchar ** string
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
float elongation_threshold
float elongation_threshold_inv
A class used to define the heuristic parameters and thresholds used to match sets of planes...
#define ASSERT_FILE_EXISTS_(FIL)
float area_half_threshold