Main MRPT website
>
C++ reference for MRPT 1.4.0
mrpt
obs
obs/CAction.h
Go to the documentation of this file.
1
/* +---------------------------------------------------------------------------+
2
| Mobile Robot Programming Toolkit (MRPT) |
3
| http://www.mrpt.org/ |
4
| |
5
| Copyright (c) 2005-2016, Individual contributors, see AUTHORS file |
6
| See: http://www.mrpt.org/Authors - All rights reserved. |
7
| Released under BSD License. See details in http://www.mrpt.org/License |
8
+---------------------------------------------------------------------------+ */
9
#ifndef CAction_H
10
#define CAction_H
11
12
#include <
mrpt/utils/CSerializable.h
>
13
#include <
mrpt/system/datetime.h
>
14
15
#include <
mrpt/obs/link_pragmas.h
>
16
17
18
namespace
mrpt
19
{
20
/** \ingroup mrpt_obs_grp */
21
namespace
obs
22
{
23
// This must be added to any CSerializable derived class:
24
DEFINE_SERIALIZABLE_PRE_CUSTOM_BASE_LINKAGE
(
CAction
,
mrpt::utils::CSerializable
,
OBS_IMPEXP
)
25
26
/** Declares a class for storing a robot action. It is used in mrpt::obs::CRawlog,
27
* for logs storage and particle filter based simulations.
28
* See derived classes for implementations.
29
*
30
* \sa CActionCollection, CRawlog
31
* \ingroup mrpt_obs_grp
32
*/
33
class
OBS_IMPEXP
CAction
: public
mrpt
::utils::CSerializable
34
{
35
// This must be added to any CSerializable derived class:
36
DEFINE_VIRTUAL_SERIALIZABLE
(
CAction
)
37
38
/** Default constructor
39
*/
40
CAction
();
41
42
/** Constructor
43
*/
44
virtual ~
CAction
();
45
46
/** The associated time-stamp.
47
* This was added at 2-Dec-2007, new serialization versions have been added to derived classes to manage this time-stamp.
48
* Prior versions will be read as having a INVALID_TIMESTAMP value.
49
*/
50
mrpt
::system::
TTimeStamp
timestamp;
51
52
};
// End of class def.
53
DEFINE_SERIALIZABLE_POST_CUSTOM_BASE_LINKAGE
(
CAction
,
mrpt
::utils::CSerializable,
OBS_IMPEXP
)
54
55
56
}
// End of namespace
57
}
// End of namespace
58
59
#endif
link_pragmas.h
mrpt
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Definition:
CParticleFilter.h:17
mrpt::system::TTimeStamp
uint64_t TTimeStamp
A system independent time type, it holds the the number of 100-nanosecond intervals since January 1,...
Definition:
datetime.h:30
DEFINE_SERIALIZABLE_POST_CUSTOM_BASE_LINKAGE
#define DEFINE_SERIALIZABLE_POST_CUSTOM_BASE_LINKAGE(class_name, base_name, _LINKAGE_)
Definition:
CSerializable.h:174
DEFINE_VIRTUAL_SERIALIZABLE
#define DEFINE_VIRTUAL_SERIALIZABLE(class_name)
This declaration must be inserted in virtual CSerializable classes definition:
Definition:
CSerializable.h:192
mrpt::utils::CSerializable
The virtual base class which provides a unified interface for all persistent objects in MRPT.
Definition:
CSerializable.h:40
DEFINE_SERIALIZABLE_PRE_CUSTOM_BASE_LINKAGE
#define DEFINE_SERIALIZABLE_PRE_CUSTOM_BASE_LINKAGE(class_name, base_name, _LINKAGE_)
This declaration must be inserted in all CSerializable classes definition, before the class declarati...
Definition:
CSerializable.h:170
OBS_IMPEXP
#define OBS_IMPEXP
Definition:
obs/include/mrpt/obs/link_pragmas.h:90
mrpt::obs::CAction
Declares a class for storing a robot action.
Definition:
obs/CAction.h:34
CSerializable.h
datetime.h
Page generated by
Doxygen 1.8.20
for MRPT 1.4.0 SVN: at Thu Aug 27 02:40:23 UTC 2020