MRPT
2.0.4
mrpt
obs
CObservationComment.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
11
#include <
mrpt/obs/CObservation.h
>
12
#include <
mrpt/serialization/CSerializable.h
>
13
14
namespace
mrpt::obs
15
{
16
/** This "observation" is actually a placeholder for a text block with comments
17
* or additional parameters attached to a given rawlog file.
18
* There should be only one of this observations in a rawlog file, and it's
19
* recommended to insert/modify them from the application RawlogViewer.
20
*
21
* \sa CObservation
22
* \ingroup mrpt_obs_grp
23
*/
24
class
CObservationComment
:
public
CObservation
25
{
26
DEFINE_SERIALIZABLE
(
CObservationComment
,
mrpt::obs
)
27
28
public
:
29
/** Constructor.
30
*/
31
CObservationComment
() :
text
() {}
32
/** Destructor
33
*/
34
~CObservationComment
()
override
=
default
;
35
/** The text block. */
36
std::string
text
;
37
38
// See base class docs
39
void
getSensorPose
(
mrpt::poses::CPose3D
&)
const override
{}
40
void
setSensorPose
(
const
mrpt::poses::CPose3D
&)
override
{}
41
void
getDescriptionAsText
(std::ostream& o)
const override
;
42
43
};
// End of class def.
44
45
}
// namespace mrpt::obs
CSerializable.h
mrpt::obs::CObservationComment
This "observation" is actually a placeholder for a text block with comments or additional parameters ...
Definition:
CObservationComment.h:24
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:31
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:39
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:40
mrpt::obs
This namespace contains representation of robot actions and observations.
Definition:
CParticleFilter.h:17
mrpt::obs::CObservationComment::text
std::string text
The text block.
Definition:
CObservationComment.h:36
mrpt::poses::CPose3D
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
Definition:
CPose3D.h:85
mrpt::obs::CObservation
Declares a class that represents any robot's observation.
Definition:
CObservation.h:43
DEFINE_SERIALIZABLE
#define DEFINE_SERIALIZABLE(class_name, NS)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
Definition:
CSerializable.h:152
CObservation.h
mrpt::obs::CObservationComment::~CObservationComment
~CObservationComment() override=default
Destructor.
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