settings.cpp
Go to the documentation of this file.
1 
19 #include <ostream>
20 
21 namespace world_model {
22 
23 std::ostream& operator<<(std::ostream &strm, const std::vector<std::pair<std::string, std::string>> &objects_to_sample) {
24  strm << "\tobjects_to_sample:\n";
25  for (const std::pair<std::string, std::string> &object_type_to_id : objects_to_sample) {
26  strm << "\t\ttype: " << object_type_to_id.first << " id: " << object_type_to_id.second << "\n";
27  }
28 
29  return strm;
30 }
31 
32 
33 std::ostream& operator<<(std::ostream &strm, const Settings &settings) {
34  strm << '\t' << "enable_object_sampling: " << settings.enable_object_sampling << '\n';
35  strm << '\t' << "calculate_deviations: " << settings.calculate_deviations << '\n';
36  strm << '\t' << "deviation_number_of_samples_position: " << settings.deviation_number_of_samples_position << '\n';
37  strm << '\t' << "deviation_number_of_samples_orientation: " << settings.deviation_number_of_samples_orientation << '\n';
38  strm << settings.objects_to_sample;
39 
40  strm << '\t' << "object_position_distance_threshold: " << settings.object_position_distance_threshold << '\n';
41  strm << '\t' << "object_orientation_rad_distance_threshold: " << settings.object_orientation_rad_distance_threshold << '\n';
42  strm << '\t' << "viewport_position_distance_threshold: " << settings.viewport_position_distance_threshold << '\n';
43  strm << '\t' << "viewport_orientation_rad_distance_threshold: " << settings.viewport_orientation_rad_distance_threshold << '\n';
44 
45  strm << '\t' << "object_rating_min_count: " << settings.object_rating_min_count << '\n';
46 
47  strm << '\t' << "use_default_intermediate_object_weight: " << settings.use_default_intermediate_object_weight << '\n';
48  strm << '\t' << "default_intermediate_object_weight: " << settings.default_intermediate_object_weight << '\n';
49 
50  strm << '\t' << "intermediate_object_weight_file_name: " << settings.intermediate_object_weight_file_name << '\n';
51 
52  strm << '\t' << "use_world_description: " << settings.use_world_description << '\n';
53 
54  strm << '\t' << "dbfilename: " << settings.dbfilename << '\n';
55  strm << '\t' << "bin_size: " << settings.bin_size << '\n';
56  strm << '\t' << "maxProjectionAngleDeviation: " << settings.maxProjectionAngleDeviation << '\n';
57  return strm;
58 }
59 
60 std::ostream& operator<<(std::ostream &strm, const SettingsPtr &settings_ptr) {
61  return strm << *settings_ptr;
62 }
63 }
std::vector< std::pair< std::string, std::string > > objects_to_sample
Definition: settings.hpp:34
bool use_default_intermediate_object_weight
Definition: settings.hpp:45
double object_position_distance_threshold
Definition: settings.hpp:37
std::string dbfilename
Definition: settings.hpp:52
double viewport_orientation_rad_distance_threshold
Definition: settings.hpp:40
std::string intermediate_object_weight_file_name
Definition: settings.hpp:48
double object_orientation_rad_distance_threshold
Definition: settings.hpp:38
std::ostream & operator<<(std::ostream &strm, const CompletePatterns &complete_patterns)
double maxProjectionAngleDeviation
Definition: settings.hpp:54
int deviation_number_of_samples_orientation
Definition: settings.hpp:33
double default_intermediate_object_weight
Definition: settings.hpp:46
int deviation_number_of_samples_position
Definition: settings.hpp:32
double viewport_position_distance_threshold
Definition: settings.hpp:39


asr_world_model
Author(s): Aumann Florian, Borella Jocelyn, Hutmacher Robin, Karrenbauer Oliver, Meißner Pascal, Schleicher Ralf, Stöckle Patrick, Trautmann Jeremias
autogenerated on Thu Jan 9 2020 07:20:01