MRPT
1.9.9
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-2018, 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/serialization/CSerializable.h
>
13
#include <
mrpt/obs/CObservation.h
>
14
15
namespace
mrpt::obs
16
{
17
/** This "observation" is actually a placeholder for a text block with comments
18
* or additional parameters attached to a given rawlog file.
19
* There should be only one of this observations in a rawlog file, and it's
20
* recommended to insert/modify them from the application RawlogViewer.
21
*
22
* \sa CObservation
23
* \ingroup mrpt_obs_grp
24
*/
25
class
CObservationComment
:
public
CObservation
26
{
27
DEFINE_SERIALIZABLE
(
CObservationComment
)
28
29
public
:
30
/** Constructor.
31
*/
32
CObservationComment
() :
text
() {}
33
/** Destructor
34
*/
35
virtual
~CObservationComment
() {}
36
/** The text block. */
37
std::string
text
;
38
39
// See base class docs
40
void
getSensorPose
(
mrpt::poses::CPose3D
&)
const override
{}
41
void
setSensorPose
(
const
mrpt::poses::CPose3D
&)
override
{}
42
void
getDescriptionAsText
(std::ostream& o)
const override
;
43
44
};
// End of class def.
45
46
}
47
#endif
48
49
CSerializable.h
mrpt::obs::CObservationComment::~CObservationComment
virtual ~CObservationComment()
Destructor.
Definition:
CObservationComment.h:35
mrpt::obs::CObservationComment
This "observation" is actually a placeholder for a text block with comments or additional parameters ...
Definition:
CObservationComment.h:25
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:41
mrpt::obs::CObservationComment::CObservationComment
CObservationComment()
Constructor.
Definition:
CObservationComment.h:32
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:40
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:41
mrpt::obs
This namespace contains representation of robot actions and observations.
Definition:
CParticleFilter.h:17
string
GLsizei const GLchar ** string
Definition:
glext.h:4101
mrpt::obs::CObservationComment::text
std::string text
The text block.
Definition:
CObservationComment.h:37
DEFINE_SERIALIZABLE
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
Definition:
CSerializable.h:100
mrpt::poses::CPose3D
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
Definition:
CPose3D.h:86
mrpt::obs::CObservation
Declares a class that represents any robot's observation.
Definition:
CObservation.h:43
CObservation.h
Page generated by
Doxygen 1.8.14
for MRPT 1.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020