Main MRPT website > C++ reference for MRPT 1.5.7
CRegistrationDeciderOrOptimizer_impl.h
Go to the documentation of this file.
1 /* +---------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2016, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +---------------------------------------------------------------------------+ */
9 
10 #ifndef CREGISTRATIONDECIDEROROPTIMIZER_IMPL_H
11 #define CREGISTRATIONDECIDEROROPTIMIZER_IMPL_H
12 
13 namespace mrpt { namespace graphslam {
14 
15 template<class GRAPH_T>
17 template<class GRAPH_T>
19 
20 template<class GRAPH_T>
22  m_graph(NULL),
23  m_graph_section(NULL),
24  m_win_manager(NULL),
25  m_win(NULL),
26  m_win_observer(NULL),
27  m_initialized_visuals(false),
28  m_class_name("CRegistrationDeciderOrOptimizer"),
29  is_mr_slam_class(false) { }
30 
31 
32 template<class GRAPH_T>
34 
35 }
36 
37 template<class GRAPH_T>
39  const std::string& name) {
40  using namespace std;
41  using namespace mrpt::utils;
42 
43  this->setClassName(name); // all the names in one call
44  this->logging_enable_keep_record = true;
45 
46  // just for the messages until reading the actual verbosity level, set it to debug.
47  this->setMinLoggingLevel(LVL_DEBUG);
48  MRPT_LOG_DEBUG_STREAM("Initialized time, output logger instances." << endl);
49 }
50 
51 template<class GRAPH_T>
53  const std::string& name) {
54  this->m_class_name = name;
55  this->m_time_logger.setName(this->m_class_name);
56  this->setLoggerName(this->m_class_name);
57 }
58 
59 
60 template<class GRAPH_T>
62  mrpt::graphslam::CWindowManager* win_manager) {
63  ASSERT_(win_manager);
64  m_win_manager = win_manager;
65 
66  if (m_win_manager) {
67  m_win = m_win_manager->win;
68  m_win_observer = m_win_manager->observer;
69  }
70 }
71 
72 template<class GRAPH_T>
74  mrpt::synch::CCriticalSection* graph_section) {
75 
76  m_graph_section = graph_section;
77  this->logFmt(mrpt::utils::LVL_DEBUG, "Fetched the CCRiticalSection successfully");
78 }
79 
80 template<class GRAPH_T>
82  this->assertVisualsVars();
83  m_initialized_visuals = true;
84 }
85 
86 template<class GRAPH_T>
88  ASSERTMSG_(this->m_win, "No CDisplayWindow3D* was provided");
89  ASSERTMSG_(this->m_win_manager, "No CWindowManager* was provided");
90  ASSERTMSG_(this->m_win_observer, "No CWindowObserver* was provided");
91 }
92 
93 template<class GRAPH_T>
95  ASSERT_(m_initialized_visuals);
96 }
97 
98 template<class GRAPH_T>
100  const std::map<std::string, bool>& events_occurred) {
101  ASSERT_(m_initialized_visuals);
102 }
103 
104 template<class GRAPH_T>
106  const std::string& source_fname) {
107  MRPT_LOG_DEBUG_STREAM("Loading corresponding parameters");
108 }
109 
110 template<class GRAPH_T>
112  MRPT_LOG_DEBUG_STREAM("Printing corresponding parameters");
113 }
114 
115 template<class GRAPH_T>
117  std::string* report_str) const {
118  MRPT_LOG_DEBUG_STREAM("Generating corresponding report");
119  // TODO - give the compact form here!
120 
121 }
122 
123 template<class GRAPH_T>
125  using namespace mrpt::utils;
126 
127  m_graph = graph;
128  MRPT_LOG_DEBUG_STREAM("Fetched the graph pointer successfully");
129 }
130 
131 template<class GRAPH_T>
133  return is_mr_slam_class;
134 }
135 
136 } } // end of namespaces
137 
138 #endif /* end of include guard: CREGISTRATIONDECIDEROROPTIMIZER_IMPL_H */
This class provides simple critical sections functionality.
Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values, timewatch, extensions to STL.
Definition: zip.h:16
static const std::string header_sep
Separator string to be used in debugging messages.
STL namespace.
mrpt::gui::CDisplayWindow3D * win
CDisplayWindow instance.
Interface for implementing node/edge registration deciders or optimizer classes.
GLsizei const GLchar ** string
Definition: glext.h:3919
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
GLuint const GLchar * name
Definition: glext.h:3891
#define ASSERT_(f)
#define MRPT_LOG_DEBUG_STREAM(__CONTENTS)
#define ASSERTMSG_(f, __ERROR_MSG)
Class acts as a container for storing pointers to mrpt::gui::CDisplayWindow3D, mrpt::graphslam::CWind...



Page generated by Doxygen 1.8.14 for MRPT 1.5.7 Git: 5902e14cc Wed Apr 24 15:04:01 2019 +0200 at lun oct 28 01:39:17 CET 2019