MRPT
2.0.4
mrpt
apps
BaseAppDataSource.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
#pragma once
10
11
#include <
mrpt/obs/CActionCollection.h
>
12
#include <
mrpt/obs/CObservation.h
>
13
#include <
mrpt/obs/CSensoryFrame.h
>
14
15
namespace
mrpt::apps
16
{
17
/** Virtual interface for offline datasets (rawlog) or live sensors.
18
*
19
* \ingroup mrpt_apps_grp
20
*/
21
class
BaseAppDataSource
22
{
23
public
:
24
BaseAppDataSource
() =
default
;
25
virtual
~BaseAppDataSource
() =
default
;
26
27
protected
:
28
/** Get next sensory data. Return false on any error, true if success. */
29
virtual
bool
impl_get_next_observations
(
30
mrpt::obs::CActionCollection::Ptr
& action,
31
mrpt::obs::CSensoryFrame::Ptr
& observations,
32
mrpt::obs::CObservation::Ptr
& observation) = 0;
33
};
34
35
}
// namespace mrpt::apps
mrpt::apps::BaseAppDataSource::impl_get_next_observations
virtual bool impl_get_next_observations(mrpt::obs::CActionCollection::Ptr &action, mrpt::obs::CSensoryFrame::Ptr &observations, mrpt::obs::CObservation::Ptr &observation)=0
Get next sensory data.
mrpt::apps::BaseAppDataSource::~BaseAppDataSource
virtual ~BaseAppDataSource()=default
CSensoryFrame.h
std::shared_ptr< mrpt::obs ::CActionCollection >
mrpt::apps
Definition:
BaseAppDataSource.h:15
mrpt::apps::BaseAppDataSource::BaseAppDataSource
BaseAppDataSource()=default
CObservation.h
CActionCollection.h
mrpt::apps::BaseAppDataSource
Virtual interface for offline datasets (rawlog) or live sensors.
Definition:
BaseAppDataSource.h:21
Page generated by
Doxygen 1.8.14
for MRPT 2.0.4 Git: 33de1d0ad Sat Jun 20 11:02:42 2020 +0200 at sáb jun 20 17:35:17 CEST 2020