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::obs::CObservation::Ptr
std::shared_ptr< CObservation > Ptr
Definition:
CObservation.h:45
mrpt::obs::CSensoryFrame::Ptr
std::shared_ptr< mrpt::obs ::CSensoryFrame > Ptr
Definition:
CSensoryFrame.h:53
mrpt::obs::CActionCollection::Ptr
std::shared_ptr< mrpt::obs ::CActionCollection > Ptr
Definition:
CActionCollection.h:28
mrpt::apps::BaseAppDataSource
Virtual interface for offline datasets (rawlog) or live sensors.
Definition:
BaseAppDataSource.h:22
CActionCollection.h
mrpt::apps::BaseAppDataSource::~BaseAppDataSource
virtual ~BaseAppDataSource()=default
mrpt::apps::BaseAppDataSource::BaseAppDataSource
BaseAppDataSource()=default
mrpt::apps
Definition:
BaseAppDataSource.h:16
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.
CSensoryFrame.h
CObservation.h
Page generated by
Doxygen 1.8.18
for MRPT 2.0.4 at Thu Sep 24 07:14:18 UTC 2020