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



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