Main MRPT website > C++ reference for MRPT 1.9.9
CEmptyNRD.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 CEMPTYNRD_H
11 #define CEMPTYNRD_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 Node Registration Decider
26  *
27  * Handy when you are testing other parts of the application but not the
28  * specific registration procedure
29  *
30  * \ingroup mrpt_graphslam_grp
31  */
32 template <class GRAPH_T = typename mrpt::graphs::CNetworkOfPoses2DInf>
33 class CEmptyNRD
35 {
36  /**\brief Handy typedefs */
37  /**\{*/
38  typedef typename GRAPH_T::constraint_t::type_value pose_t;
39  typedef typename GRAPH_T::global_pose_t global_pose_t;
40  /**\}*/
41  public:
42  CEmptyNRD();
43  ~CEmptyNRD();
44 
45  bool updateState(
47  mrpt::obs::CSensoryFrame::Ptr observations,
48  mrpt::obs::CObservation::Ptr observation);
50 
51  private:
52  void registerNewNode();
53 };
54 
55 //////////////////////////////////////////////////////////////////////////////
56 
57 template <class GRAPH_T>
59 {
60 }
61 template <class GRAPH_T>
63 {
64 }
65 
66 template <class GRAPH_T>
69  mrpt::obs::CSensoryFrame::Ptr observations,
70  mrpt::obs::CObservation::Ptr observation)
71 {
72  return false;
73 }
74 
75 template <class GRAPH_T>
77 {
78 }
79 
80 template <class GRAPH_T>
81 typename GRAPH_T::global_pose_t
83 {
84  return typename GRAPH_T::global_pose_t();
85 }
86 }
87 }
88 } // end of namespaces
89 
90 #endif /* end of include guard: CEMPTYNRD_H */
Interface for implementing node 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-observations (or observation-only) depending on th...
Definition: CEmptyNRD.h:67
Empty Node Registration Decider.
Definition: CEmptyNRD.h:33
global_pose_t getCurrentRobotPosEstimation() const
Getter method for fetching the currently estimated robot position.
Definition: CEmptyNRD.h:82
std::shared_ptr< CSensoryFrame > Ptr
Definition: CSensoryFrame.h:56
GRAPH_T::global_pose_t global_pose_t
Definition: CEmptyNRD.h:39
std::shared_ptr< CObservation > Ptr
Definition: CObservation.h:43
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
std::shared_ptr< CActionCollection > Ptr
GRAPH_T::constraint_t::type_value pose_t
Handy typedefs.
Definition: CEmptyNRD.h:38



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