MRPT  2.0.4
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 
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 2.0.4 Git: 33de1d0ad Sat Jun 20 11:02:42 2020 +0200 at sáb jun 20 17:35:17 CEST 2020