Main MRPT website
>
C++ reference for MRPT 1.9.9
mrpt
obs
CObservationComment.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-2017, 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 CObservationComment_H
10
#define CObservationComment_H
11
12
#include <
mrpt/utils/CSerializable.h
>
13
#include <
mrpt/obs/CObservation.h
>
14
15
namespace
mrpt
16
{
17
namespace
obs
18
{
19
/** This "observation" is actually a placeholder for a text block with comments
20
* or additional parameters attached to a given rawlog file.
21
* There should be only one of this observations in a rawlog file, and it's
22
* recommended to insert/modify them from the application RawlogViewer.
23
*
24
* \sa CObservation
25
* \ingroup mrpt_obs_grp
26
*/
27
class
CObservationComment
:
public
CObservation
28
{
29
DEFINE_SERIALIZABLE
(
CObservationComment
)
30
31
public
:
32
/** Constructor.
33
*/
34
CObservationComment
() :
text
() {}
35
/** Destructor
36
*/
37
virtual
~CObservationComment
() {}
38
/** The text block. */
39
std::string
text
;
40
41
// See base class docs
42
void
getSensorPose
(
mrpt::poses::CPose3D
&)
const override
{}
43
void
setSensorPose
(
const
mrpt::poses::CPose3D
&)
override
{}
44
void
getDescriptionAsText
(std::ostream& o)
const override
;
45
46
};
// End of class def.
47
48
}
// End of namespace
49
}
// End of namespace
50
51
#endif
CSerializable.h
mrpt::obs::CObservationComment::~CObservationComment
virtual ~CObservationComment()
Destructor.
Definition:
CObservationComment.h:37
mrpt::obs::CObservationComment
This "observation" is actually a placeholder for a text block with comments or additional parameters ...
Definition:
CObservationComment.h:27
mrpt::obs::CObservationComment::getDescriptionAsText
void getDescriptionAsText(std::ostream &o) const override
Build a detailed, multi-line textual description of the observation contents and dump it to the outpu...
Definition:
CObservationComment.cpp:51
mrpt::obs::CObservationComment::CObservationComment
CObservationComment()
Constructor.
Definition:
CObservationComment.h:34
mrpt::obs::CObservationComment::getSensorPose
void getSensorPose(mrpt::poses::CPose3D &) const override
A general method to retrieve the sensor pose on the robot.
Definition:
CObservationComment.h:42
mrpt::obs::CObservationComment::setSensorPose
void setSensorPose(const mrpt::poses::CPose3D &) override
A general method to change the sensor pose on the robot.
Definition:
CObservationComment.h:43
string
GLsizei const GLchar ** string
Definition:
glext.h:4101
mrpt::obs::CObservationComment::text
std::string text
The text block.
Definition:
CObservationComment.h:39
mrpt
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Definition:
CParticleFilter.h:17
DEFINE_SERIALIZABLE
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
Definition:
CSerializable.h:159
mrpt::poses::CPose3D
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
Definition:
CPose3D.h:88
mrpt::obs::CObservation
Declares a class that represents any robot's observation.
Definition:
CObservation.h:41
CObservation.h
Page generated by
Doxygen 1.8.14
for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019