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-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 CEMPTYNRD_H
11 #define CEMPTYNRD_H
12 
14 #include <mrpt/obs/CSensoryFrame.h>
15 
17 
19 {
20 /**\brief Empty Node Registration Decider
21  *
22  * Handy when you are testing other parts of the application but not the
23  * specific registration procedure
24  *
25  * \ingroup mrpt_graphslam_grp
26  */
27 template <class GRAPH_T = typename mrpt::graphs::CNetworkOfPoses2DInf>
28 class CEmptyNRD
30 {
31  /**\brief Handy typedefs */
32  /**\{*/
33  using pose_t = typename GRAPH_T::constraint_t::type_value;
34  using global_pose_t = typename GRAPH_T::global_pose_t;
35  /**\}*/
36  public:
37  CEmptyNRD();
38  ~CEmptyNRD();
39 
40  bool updateState(
42  mrpt::obs::CSensoryFrame::Ptr observations,
43  mrpt::obs::CObservation::Ptr observation);
45 
46  private:
47  void registerNewNode();
48 };
49 
50 //////////////////////////////////////////////////////////////////////////////
51 
52 template <class GRAPH_T>
54 {
55 }
56 template <class GRAPH_T>
58 {
59 }
60 
61 template <class GRAPH_T>
64  mrpt::obs::CSensoryFrame::Ptr observations,
65  mrpt::obs::CObservation::Ptr observation)
66 {
67  return false;
68 }
69 
70 template <class GRAPH_T>
72 {
73 }
74 
75 template <class GRAPH_T>
76 typename GRAPH_T::global_pose_t
78 {
79  return typename GRAPH_T::global_pose_t();
80 }
81 } // end of namespaces
82 
83 #endif /* end of include guard: CEMPTYNRD_H */
84 
85 
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:62
Empty Node Registration Decider.
Definition: CEmptyNRD.h:28
global_pose_t getCurrentRobotPosEstimation() const
Getter method for fetching the currently estimated robot position.
Definition: CEmptyNRD.h:77
typename GRAPH_T::constraint_t::type_value pose_t
type of underlying poses (2D/3D).



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