Main MRPT website > C++ reference for MRPT 1.9.9
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-2017, 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
14 {
15 namespace graphslam
16 {
17 template <class GRAPH_T>
19  std::string(80, '-');
20 template <class GRAPH_T>
22  std::string(2, '\n');
23 
24 template <class GRAPH_T>
26  : m_graph(NULL),
27  m_graph_section(NULL),
28  m_win_manager(NULL),
29  m_win(NULL),
30  m_win_observer(NULL),
31  m_initialized_visuals(false),
32  m_class_name("CRegistrationDeciderOrOptimizer"),
33  is_mr_slam_class(false)
34 {
35 }
36 
37 template <class GRAPH_T>
39 {
40 }
41 
42 template <class GRAPH_T>
44  const std::string& name)
45 {
46  using namespace std;
47  using namespace mrpt::utils;
48 
49  this->setClassName(name); // all the names in one call
50  this->logging_enable_keep_record = true;
51 
52  // just for the messages until reading the actual verbosity level, set it to
53  // debug.
54  this->setMinLoggingLevel(LVL_DEBUG);
55  MRPT_LOG_DEBUG_STREAM("Initialized time, output logger instances." << endl);
56 }
57 
58 template <class GRAPH_T>
60  const std::string& name)
61 {
62  this->m_class_name = name;
63  this->m_time_logger.setName(this->m_class_name);
64  this->setLoggerName(this->m_class_name);
65 }
66 
67 template <class GRAPH_T>
70 {
71  ASSERT_(win_manager);
72  m_win_manager = win_manager;
73 
74  if (m_win_manager)
75  {
76  m_win = m_win_manager->win;
77  m_win_observer = m_win_manager->observer;
78  }
79 }
80 
81 template <class GRAPH_T>
83  std::mutex* graph_section)
84 {
85  m_graph_section = graph_section;
86  this->logFmt(
87  mrpt::utils::LVL_DEBUG, "Fetched the CCRiticalSection successfully");
88 }
89 
90 template <class GRAPH_T>
92 {
93  this->assertVisualsVars();
94  m_initialized_visuals = true;
95 }
96 
97 template <class GRAPH_T>
99 {
100  ASSERTMSG_(this->m_win, "No CDisplayWindow3D* was provided");
101  ASSERTMSG_(this->m_win_manager, "No CWindowManager* was provided");
102  ASSERTMSG_(this->m_win_observer, "No CWindowObserver* was provided");
103 }
104 
105 template <class GRAPH_T>
107 {
108  ASSERT_(m_initialized_visuals);
109 }
110 
111 template <class GRAPH_T>
113  const std::map<std::string, bool>& events_occurred)
114 {
115  ASSERT_(m_initialized_visuals);
116 }
117 
118 template <class GRAPH_T>
120  const std::string& source_fname)
121 {
122  MRPT_LOG_DEBUG_STREAM("Loading corresponding parameters");
123 }
124 
125 template <class GRAPH_T>
127 {
128  MRPT_LOG_DEBUG_STREAM("Printing corresponding parameters");
129 }
130 
131 template <class GRAPH_T>
133  std::string* report_str) const
134 {
135  MRPT_LOG_DEBUG_STREAM("Generating corresponding report");
136  // TODO - give the compact form here!
137 }
138 
139 template <class GRAPH_T>
141 {
142  using namespace mrpt::utils;
143 
144  m_graph = graph;
145  MRPT_LOG_DEBUG_STREAM("Fetched the graph pointer successfully");
146 }
147 
148 template <class GRAPH_T>
150 {
151  return is_mr_slam_class;
152 }
153 }
154 } // end of namespaces
155 
156 #endif /* end of include guard: CREGISTRATIONDECIDEROROPTIMIZER_IMPL_H */
Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values, timewatch, extensions to STL.
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:4101
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
GLuint const GLchar * name
Definition: glext.h:4054
#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.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019