MRPT  2.0.1
CEmptyNRD.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | https://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2020, Individual contributors, see AUTHORS file |
6  | See: https://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See: https://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 
10 #pragma once
11 
13 #include <mrpt/obs/CSensoryFrame.h>
14 
16 
18 {
19 /**\brief Empty Node Registration Decider
20  *
21  * Handy when you are testing other parts of the application but not the
22  * specific registration procedure
23  *
24  * \ingroup mrpt_graphslam_grp
25  */
26 template <class GRAPH_T = typename mrpt::graphs::CNetworkOfPoses2DInf>
27 class CEmptyNRD
29 {
30  /**\brief Handy typedefs */
31  /**\{*/
32  using pose_t = typename GRAPH_T::constraint_t::type_value;
33  using global_pose_t = typename GRAPH_T::global_pose_t;
34  /**\}*/
35  public:
36  CEmptyNRD() = default;
37  ~CEmptyNRD() override = default;
38 
41  mrpt::obs::CSensoryFrame::Ptr observations,
42  mrpt::obs::CObservation::Ptr observation) override
43  {
44  return false;
45  }
47  {
48  return typename GRAPH_T::global_pose_t();
49  };
50 
51  private:
52  void registerNewNode(){};
53 };
54 } // namespace mrpt::graphslam::deciders
global_pose_t getCurrentRobotPosEstimation() const override
Getter method for fetching the currently estimated robot position.
Definition: CEmptyNRD.h:46
Interface for implementing node registration classes.
Empty Node Registration Decider.
Definition: CEmptyNRD.h:27
typename GRAPH_T::constraint_t::type_value pose_t
type of underlying poses (2D/3D).
bool updateState(mrpt::obs::CActionCollection::Ptr action, mrpt::obs::CSensoryFrame::Ptr observations, mrpt::obs::CObservation::Ptr observation) override
Generic method for fetching the incremental action-observations (or observation-only) measurements...
Definition: CEmptyNRD.h:39



Page generated by Doxygen 1.8.14 for MRPT 2.0.1 Git: 0fef1a6d7 Fri Apr 3 23:00:21 2020 +0200 at vie abr 3 23:20:28 CEST 2020