15 #ifndef __HEURISTICPARAMS_H 16 #define __HEURISTICPARAMS_H 72 path_prev_pbmaps = config_file.
read_string(
"global",
"path_prev_pbmaps",
"",
false);
74 use_structure = config_file.
read_bool(
"global",
"use_structure",
true);
75 use_completeness = config_file.
read_bool(
"global",
"use_completeness",
true);
76 min_planes_recognition = config_file.
read_int(
"global",
"min_planes_recognition",4);
77 graph_mode = config_file.
read_int(
"global",
"graph_mode",1);
80 dist_d = config_file.
read_float(
"unary",
"dist_d",0.5);
81 angle = config_file.
read_float(
"unary",
"angle",50);
82 angle = cos(angle*3.14159/180);
84 color_threshold = config_file.
read_float(
"unary",
"color_threshold",0.09);
85 intensity_threshold = config_file.
read_float(
"unary",
"intensity_threshold",175.0);
86 hue_threshold = config_file.
read_float(
"unary",
"hue_threshold",0.3);
88 area_threshold = config_file.
read_float(
"unary",
"area_threshold",3.0);
89 area_threshold_inv = 1/area_threshold;
90 area_full_threshold = config_file.
read_float(
"unary",
"area_full_threshold",1.6);
91 area_full_threshold_inv = 1/area_full_threshold;
92 area_half_threshold = config_file.
read_float(
"unary",
"area_half_threshold",2.0);
93 area_half_threshold_inv = 1/area_half_threshold;
94 elongation_threshold = config_file.
read_float(
"unary",
"elongation_threshold",2.9);
95 elongation_threshold_inv = 1/elongation_threshold;
98 dist_threshold = config_file.
read_float(
"binary",
"dist_threshold",2.0);
99 dist_threshold_inv = 1/dist_threshold;
100 angle_threshold = config_file.
read_float(
"binary",
"angle_threshold",7.0);
101 height_threshold = config_file.
read_float(
"binary",
"height_threshold",0.2);
102 height_threshold_parallel = config_file.
read_float(
"binary",
"height_threshold_parallel",0.2);
103 cos_angle_parallel = config_file.
read_float(
"binary",
"cos_angle_parallel",0.985);
110 using std::cout;
using std::endl;
112 cout <<
"Unary thresholds:\n";
113 cout <<
"dist_d " << dist_d << endl;
114 cout <<
"angle " << angle << endl;
115 cout <<
"color_threshold " << color_threshold << endl;
116 cout <<
"intensity_threshold " << intensity_threshold << endl;
117 cout <<
"hue_threshold " << hue_threshold << endl;
118 cout <<
"area_threshold " << area_threshold << endl;
119 cout <<
"elongation_threshold " << elongation_threshold << endl;
121 cout <<
"Binary thresholds:\n";
122 cout <<
"angle_threshold " << angle_threshold << endl;
123 cout <<
"angle " << angle << endl;
124 cout <<
"height_threshold " << height_threshold << 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 height_threshold_parallel
GLsizei const GLchar ** string
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
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)