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-2018, 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::graphslam
14 {
15 template <class GRAPH_T>
17  std::string(80, '-');
18 template <class GRAPH_T>
20  std::string(2, '\n');
21 
22 template <class GRAPH_T>
24  : m_graph(NULL),
25  m_graph_section(NULL),
26  m_win_manager(NULL),
27  m_win(NULL),
28  m_win_observer(NULL),
29  m_initialized_visuals(false),
30  m_class_name("CRegistrationDeciderOrOptimizer"),
31  is_mr_slam_class(false)
32 {
33 }
34 
35 template <class GRAPH_T>
37 {
38 }
39 
40 template <class GRAPH_T>
42  const std::string& name)
43 {
44  using namespace std;
45 
46  this->setClassName(name); // all the names in one call
47  this->logging_enable_keep_record = true;
48 
49  // just for the messages until reading the actual verbosity level, set it to
50  // debug.
51  this->setMinLoggingLevel(mrpt::system::LVL_DEBUG);
52  MRPT_LOG_DEBUG_STREAM("Initialized time, output logger instances." << endl);
53 }
54 
55 template <class GRAPH_T>
57  const std::string& name)
58 {
59  this->m_class_name = name;
60  this->m_time_logger.setName(this->m_class_name);
61  this->setLoggerName(this->m_class_name);
62 }
63 
64 template <class GRAPH_T>
67 {
68  ASSERTDEB_(win_manager);
69  m_win_manager = win_manager;
70 
71  if (m_win_manager)
72  {
73  m_win = m_win_manager->win;
74  m_win_observer = m_win_manager->observer;
75  }
76 }
77 
78 template <class GRAPH_T>
80  std::mutex* graph_section)
81 {
82  m_graph_section = graph_section;
83  this->logFmt(
84  mrpt::system::LVL_DEBUG, "Fetched the CCRiticalSection successfully");
85 }
86 
87 template <class GRAPH_T>
89 {
90  this->assertVisualsVars();
91  m_initialized_visuals = true;
92 }
93 
94 template <class GRAPH_T>
96 {
97  ASSERTDEBMSG_(this->m_win, "No CDisplayWindow3D* was provided");
98  ASSERTDEBMSG_(this->m_win_manager, "No CWindowManager* was provided");
99  ASSERTDEBMSG_(this->m_win_observer, "No CWindowObserver* was provided");
100 }
101 
102 template <class GRAPH_T>
104 {
105  ASSERTDEB_(m_initialized_visuals);
106 }
107 
108 template <class GRAPH_T>
110  const std::map<std::string, bool>& events_occurred)
111 {
112  ASSERTDEB_(m_initialized_visuals);
113 }
114 
115 template <class GRAPH_T>
117  const std::string& source_fname)
118 {
119  MRPT_LOG_DEBUG_STREAM("Loading corresponding parameters");
120 }
121 
122 template <class GRAPH_T>
124 {
125  MRPT_LOG_DEBUG_STREAM("Printing corresponding parameters");
126 }
127 
128 template <class GRAPH_T>
130  std::string* report_str) const
131 {
132  MRPT_LOG_DEBUG_STREAM("Generating corresponding report");
133  // TODO - give the compact form here!
134 }
135 
136 template <class GRAPH_T>
138 {
139  m_graph = graph;
140  MRPT_LOG_DEBUG_STREAM("Fetched the graph pointer successfully");
141 }
142 
143 template <class GRAPH_T>
145 {
146  return is_mr_slam_class;
147 }
148 } // end of namespaces
149 
150 #endif /* end of include guard: CREGISTRATIONDECIDEROROPTIMIZER_IMPL_H */
151 
152 
static const std::string header_sep
Separator string to be used in debugging messages.
STL namespace.
SLAM methods related to graphs of pose constraints.
mrpt::gui::CDisplayWindow3D * win
CDisplayWindow instance.
Interface for implementing node/edge registration deciders or optimizer classes.
#define MRPT_LOG_DEBUG_STREAM(__CONTENTS)
Use: MRPT_LOG_DEBUG_STREAM("Var=" << value << " foo=" << foo_var);
GLsizei const GLchar ** string
Definition: glext.h:4101
#define ASSERTDEBMSG_(f, __ERROR_MSG)
Definition: exceptions.h:208
#define ASSERTDEB_(f)
Defines an assertion mechanism - only when compiled in debug.
Definition: exceptions.h:205
GLuint const GLchar * name
Definition: glext.h:4054
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: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020