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