Main MRPT website > C++ reference for MRPT 1.9.9
CEdgeRegistrationDecider_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 #ifndef CEDGEREGISTRATIONDECIDER_IMPL_H
10 #define CEDGEREGISTRATIONDECIDER_IMPL_H
11 
12 using namespace mrpt::graphslam::deciders;
13 using namespace std;
14 
15 #include <sstream>
16 
17 // Implementation of classes defined in the CNodeRegistrationDecider class
18 // template.
19 //
20 
21 template <class GRAPH_T>
23  : m_just_inserted_lc(false), m_override_registered_nodes_check(false)
24 {
25 }
26 
27 template <class GRAPH_T>
29 {
30 }
31 
32 template <class GRAPH_T>
34  std::string* report_str) const
35 {
36  stringstream ss("");
37  parent::getDescriptiveReport(report_str);
38 
39  ss << "Edge Registration Decider Strategy [ERD]: " << endl;
40  *report_str += ss.str();
41 }
42 
43 template <class GRAPH_T>
45  const mrpt::graphs::TNodeID& from, const mrpt::graphs::TNodeID& to,
46  const constraint_t& rel_edge)
47 {
48  using namespace std;
49 
51  "Registering new edge: " << from << " => " << to << endl
52  << "\tRelative Edge: "
53  << rel_edge.getMeanVal().asString()
54  << "\tNorm: " << rel_edge.getMeanVal().norm());
55 }
56 
57 #endif /* end of include guard: CEDGEREGISTRATIONDECIDER_IMPL_H */
mrpt::graphslam::deciders::CEdgeRegistrationDecider
Interface for implementing edge registration classes.
Definition: CEdgeRegistrationDecider.h:41
mrpt::graphs::TNodeID
uint64_t TNodeID
A generic numeric type for unique IDs of nodes or entities.
Definition: TNodeID.h:17
mrpt::graphslam::deciders::CEdgeRegistrationDecider< typename mrpt::graphs::CNetworkOfPoses2DInf >::constraint_t
typename typename mrpt::graphs::CNetworkOfPoses2DInf ::constraint_t constraint_t
type of graph constraints
Definition: CEdgeRegistrationDecider.h:50
mrpt::graphslam::deciders::CEdgeRegistrationDecider::CEdgeRegistrationDecider
CEdgeRegistrationDecider()
Default class constructor.
Definition: CEdgeRegistrationDecider_impl.h:22
MRPT_LOG_DEBUG_STREAM
#define MRPT_LOG_DEBUG_STREAM(__CONTENTS)
Use: MRPT_LOG_DEBUG_STREAM("Var=" << value << " foo=" << foo_var);
Definition: system/COutputLogger.h:471
string
GLsizei const GLchar ** string
Definition: glext.h:4101
mrpt::graphslam::deciders
Definition: CEmptyERD.h:21



Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST