MRPT  1.9.9
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-2019, 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 
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  */
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(
31  mrpt::obs::CSensoryFrame::Ptr& observations,
32  mrpt::obs::CObservation::Ptr& observation) = 0;
33 };
34 
35 } // namespace mrpt::apps
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.
virtual ~BaseAppDataSource()=default
Virtual interface for offline datasets (rawlog) or live sensors.



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 24b95e159 Thu Jan 23 01:15:46 2020 +0100 at jue ene 23 01:30:10 CET 2020