MRPT  2.0.4
CEmptyERD.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 
12 #include <mrpt/obs/CSensoryFrame.h>
13 
15 
17 {
18 /**\brief Empty Edge Registration Decider
19  *
20  * Handy when you are testing other parts of the application but not the
21  * specific registration procedure
22  */
23 template <class GRAPH_T = typename mrpt::graphs::CNetworkOfPoses2DInf>
24 class CEmptyERD
26 {
27  public:
28  using constraint_t = typename GRAPH_T::constraint_t;
29 
30  CEmptyERD() = default;
31  ~CEmptyERD() override = default;
32 
35  mrpt::obs::CSensoryFrame::Ptr observations,
36  mrpt::obs::CObservation::Ptr observation) override
37  {
38  return true;
39  }
40 
41  private:
43  const mrpt::graphs::TNodeID& from, const mrpt::graphs::TNodeID& to,
44  const constraint_t& rel_edge) override
45  {
46  }
47 };
48 } // namespace mrpt::graphslam::deciders
mrpt::obs::CObservation::Ptr
std::shared_ptr< CObservation > Ptr
Definition: CObservation.h:45
mrpt::graphslam::deciders::CEmptyERD::registerNewEdge
void registerNewEdge(const mrpt::graphs::TNodeID &from, const mrpt::graphs::TNodeID &to, const constraint_t &rel_edge) override
Register a new constraint/edge in the current graph.
Definition: CEmptyERD.h:42
mrpt::graphslam::deciders::CEmptyERD::updateState
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: CEmptyERD.h:33
mrpt::graphslam::deciders::CEmptyERD::constraint_t
typename GRAPH_T::constraint_t constraint_t
Definition: CEmptyERD.h:28
mrpt::obs::CSensoryFrame::Ptr
std::shared_ptr< mrpt::obs ::CSensoryFrame > Ptr
Definition: CSensoryFrame.h:53
mrpt::graphslam::deciders::CEdgeRegistrationDecider
Interface for implementing edge registration classes.
Definition: CEdgeRegistrationDecider.h:38
mrpt::graphslam::deciders::CEmptyERD
Empty Edge Registration Decider.
Definition: CEmptyERD.h:26
mrpt::graphslam::deciders::CEmptyERD::CEmptyERD
CEmptyERD()=default
mrpt::graphs::TNodeID
uint64_t TNodeID
A generic numeric type for unique IDs of nodes or entities.
Definition: TNodeID.h:16
mrpt::obs::CActionCollection::Ptr
std::shared_ptr< mrpt::obs ::CActionCollection > Ptr
Definition: CActionCollection.h:28
CEdgeRegistrationDecider.h
CSensoryFrame.h
mrpt::graphslam::deciders::CEmptyERD::~CEmptyERD
~CEmptyERD() override=default
mrpt::graphslam::deciders
Definition: CEmptyERD.h:17



Page generated by Doxygen 1.8.18 for MRPT 2.0.4 at Thu Sep 24 07:14:18 UTC 2020