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-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 
18 namespace mrpt
19 {
20 namespace graphslam
21 {
22 namespace deciders
23 {
24 /**\brief Empty Node Registration Decider
25  *
26  * Handy when you are testing other parts of the application but not the
27  * specific registration procedure
28  *
29  * \ingroup mrpt_graphslam_grp
30  */
31 template <class GRAPH_T = typename mrpt::graphs::CNetworkOfPoses2DInf>
32 class CEmptyNRD
34 {
35  /**\brief Handy typedefs */
36  /**\{*/
37  using pose_t = typename GRAPH_T::constraint_t::type_value;
38  using global_pose_t = typename GRAPH_T::global_pose_t;
39  /**\}*/
40  public:
41  CEmptyNRD();
42  ~CEmptyNRD();
43 
44  bool updateState(
46  mrpt::obs::CSensoryFrame::Ptr observations,
47  mrpt::obs::CObservation::Ptr observation);
49 
50  private:
51  void registerNewNode();
52 };
53 
54 //////////////////////////////////////////////////////////////////////////////
55 
56 template <class GRAPH_T>
58 {
59 }
60 template <class GRAPH_T>
62 {
63 }
64 
65 template <class GRAPH_T>
68  mrpt::obs::CSensoryFrame::Ptr observations,
69  mrpt::obs::CObservation::Ptr observation)
70 {
71  return false;
72 }
73 
74 template <class GRAPH_T>
76 {
77 }
78 
79 template <class GRAPH_T>
80 typename GRAPH_T::global_pose_t
82 {
83  return typename GRAPH_T::global_pose_t();
84 }
85 }
86 }
87 } // end of namespaces
88 
89 #endif /* end of include guard: CEMPTYNRD_H */
mrpt::obs::CObservation::Ptr
std::shared_ptr< CObservation > Ptr
Definition: CObservation.h:45
mrpt::graphslam::deciders::CNodeRegistrationDecider
Interface for implementing node registration classes.
Definition: CNodeRegistrationDecider.h:37
mrpt::obs::CSensoryFrame::Ptr
std::shared_ptr< CSensoryFrame > Ptr
Definition: CSensoryFrame.h:56
mrpt::graphslam::deciders::CEmptyNRD::registerNewNode
void registerNewNode()
Definition: CEmptyNRD.h:75
mrpt
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Definition: CKalmanFilterCapable.h:30
mrpt::graphslam::deciders::CEmptyNRD::~CEmptyNRD
~CEmptyNRD()
Definition: CEmptyNRD.h:61
mrpt::graphslam::deciders::CEmptyNRD::updateState
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:66
CActionCollection.h
mrpt::graphslam::deciders::CEmptyNRD::global_pose_t
typename GRAPH_T::global_pose_t global_pose_t
Definition: CEmptyNRD.h:38
CNodeRegistrationDecider.h
CSensoryFrame.h
mrpt::graphslam::deciders::CEmptyNRD::CEmptyNRD
CEmptyNRD()
Definition: CEmptyNRD.h:57
mrpt::graphslam::deciders::CEmptyNRD
Empty Node Registration Decider.
Definition: CEmptyNRD.h:32
mrpt::graphslam::deciders::CEmptyNRD::pose_t
typename GRAPH_T::constraint_t::type_value pose_t
Handy typedefs.
Definition: CEmptyNRD.h:37
mrpt::obs::CActionCollection::Ptr
std::shared_ptr< CActionCollection > Ptr
Definition: CActionCollection.h:30
mrpt::graphslam::deciders::CEmptyNRD::getCurrentRobotPosEstimation
global_pose_t getCurrentRobotPosEstimation() const
Definition: CEmptyNRD.h:81



Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST