MRPT  1.9.9
CEmptyGSO.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 CEmptyGSO_H
11 #define CEmptyGSO_H
12 
13 #include <mrpt/obs/CObservation.h>
14 #include <mrpt/obs/CSensoryFrame.h>
15 
17 
19 {
20 /**\brief Empty Edge Registration Decider
21  *
22  * Handy when you are testing other parts of the application but not the
23  * specific registration procedure
24  */
25 template <class GRAPH_T = typename mrpt::graphs::CNetworkOfPoses2DInf>
26 class CEmptyGSO
28 {
29  public:
30  using constraint_t = typename GRAPH_T::constraint_t;
31 
32  CEmptyGSO();
33  ~CEmptyGSO();
34 
35  bool updateState(
37  mrpt::obs::CSensoryFrame::Ptr observations,
38  mrpt::obs::CObservation::Ptr observation);
39 
40  private:
41  void registerNewEdge(
42  const mrpt::graphs::TNodeID& from, const mrpt::graphs::TNodeID& to,
43  const constraint_t& rel_edge);
44 };
45 
46 //////////////////////////////////////////////////////////////////////////////
47 
48 template <class GRAPH_T>
50 {
51 }
52 template <class GRAPH_T>
54 {
55 }
56 
57 template <class GRAPH_T>
60  mrpt::obs::CSensoryFrame::Ptr observations,
61  mrpt::obs::CObservation::Ptr observation)
62 {
63  return true;
64 }
65 
66 template <class GRAPH_T>
68  const mrpt::graphs::TNodeID& from, const mrpt::graphs::TNodeID& to,
69  const constraint_t& rel_edge)
70 {
71 }
72 } // end of namespaces
73 
74 #endif /* end of include guard: CEmptyGSO_H */
75 
76 
void registerNewEdge(const mrpt::graphs::TNodeID &from, const mrpt::graphs::TNodeID &to, const constraint_t &rel_edge)
Definition: CEmptyGSO.h:67
typename GRAPH_T::constraint_t constraint_t
Definition: CEmptyGSO.h:30
Empty Edge Registration Decider.
Definition: CEmptyGSO.h:26
Interface for implementing graphSLAM optimizer classes.
uint64_t TNodeID
A generic numeric type for unique IDs of nodes or entities.
Definition: TNodeID.h:16
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: CEmptyGSO.h:58



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