Main MRPT website > C++ reference for MRPT 1.9.9
CEmptyERD.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 CEmptyERD_H
11 #define CEmptyERD_H
12 
14 #include <mrpt/obs/CSensoryFrame.h>
15 #include <mrpt/obs/CRawlog.h>
16 
18 
19 namespace mrpt
20 {
21 namespace graphslam
22 {
23 namespace deciders
24 {
25 /**\brief Empty Edge Registration Decider
26  *
27  * Handy when you are testing other parts of the application but not the
28  * specific registration procedure
29  */
30 template <class GRAPH_T = typename mrpt::graphs::CNetworkOfPoses2DInf>
31 class CEmptyERD
33 {
34  public:
35  typedef typename GRAPH_T::constraint_t constraint_t;
36 
37  CEmptyERD();
38  ~CEmptyERD();
39 
40  bool updateState(
42  mrpt::obs::CSensoryFrame::Ptr observations,
43  mrpt::obs::CObservation::Ptr observation);
44 
45  private:
46  void registerNewEdge(
47  const mrpt::utils::TNodeID& from, const mrpt::utils::TNodeID& to,
48  const constraint_t& rel_edge);
49 };
50 
51 //////////////////////////////////////////////////////////////////////////////
52 
53 template <class GRAPH_T>
55 {
56 }
57 template <class GRAPH_T>
59 {
60 }
61 
62 template <class GRAPH_T>
65  mrpt::obs::CSensoryFrame::Ptr observations,
66  mrpt::obs::CObservation::Ptr observation)
67 {
68  return true;
69 }
70 
71 template <class GRAPH_T>
73  const mrpt::utils::TNodeID& from, const mrpt::utils::TNodeID& to,
74  const constraint_t& rel_edge)
75 {
76 }
77 }
78 }
79 } // end of namespaces
80 
81 #endif /* end of include guard: CEmptyERD_H */
void registerNewEdge(const mrpt::utils::TNodeID &from, const mrpt::utils::TNodeID &to, const constraint_t &rel_edge)
Register a new constraint/edge in the current graph.
Definition: CEmptyERD.h:72
Interface for implementing edge registration classes.
bool updateState(mrpt::obs::CActionCollection::Ptr action, mrpt::obs::CSensoryFrame::Ptr observations, mrpt::obs::CObservation::Ptr observation)
Generic method for fetching the incremental action/observation readings from the calling function...
Definition: CEmptyERD.h:63
uint64_t TNodeID
The type for node IDs in graphs of different types.
std::shared_ptr< CSensoryFrame > Ptr
Definition: CSensoryFrame.h:56
std::shared_ptr< CObservation > Ptr
Definition: CObservation.h:43
GRAPH_T::constraint_t constraint_t
Definition: CEmptyERD.h:35
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
std::shared_ptr< CActionCollection > Ptr
Empty Edge Registration Decider.
Definition: CEmptyERD.h:31



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