Main MRPT website > C++ reference for MRPT 1.9.9
CObservationReflectivity.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 CObservationReflectivity_H
10 #define CObservationReflectivity_H
11 
12 #include <mrpt/obs/CObservation.h>
13 #include <mrpt/poses/CPose3D.h>
14 
15 namespace mrpt
16 {
17 namespace obs
18 {
19 /** Declares a class derived from "CObservation" that encapsules a single
20  * short-range reflectivity measurement.
21  * This can be used for example to store readings from IR sensors (Lego
22  * Mindstorm NXT, etc...).
23  *
24  * \sa mrpt::obs::CReflectivityGridMap2D, CObservation
25  * \ingroup mrpt_obs_grp
26  */
28 {
30 
31  public:
32  /** Default constructor. */
34  virtual ~CObservationReflectivity();
35 
36  /** The read reflectivity level, in the range [0,1] (0=black, 1=white).
37  */
39 
40  /** The channel for this observation. If channel=-1, it can be inserted into
41  * any CReflectivityGridMap2D. Otherwise, it can only be inserted into
42  * reflectivity maps with the same channel. (Default=-1)
43  */
45 
46  /** The pose of this sensor in robot's local coordinates.
47  */
49 
50  /** 1-sigma of the sensor Gaussian noise (in the same normalized units than
51  * \a reflectivityLevel)
52  */
54 
55  // See base class docs
56  void getSensorPose(mrpt::poses::CPose3D& out_sensorPose) const override
57  {
58  out_sensorPose = sensorPose;
59  }
60  void setSensorPose(const mrpt::poses::CPose3D& newSensorPose) override
61  {
62  sensorPose = newSensorPose;
63  }
64  void getDescriptionAsText(std::ostream& o) const override;
65 
66 }; // End of class def.
67 
68 } // End of namespace
69 } // End of namespace
70 
71 #endif
void setSensorPose(const mrpt::poses::CPose3D &newSensorPose) override
A general method to change the sensor pose on the robot.
float reflectivityLevel
The read reflectivity level, in the range [0,1] (0=black, 1=white).
Declares a class derived from "CObservation" that encapsules a single short-range reflectivity measur...
void getDescriptionAsText(std::ostream &o) const override
Build a detailed, multi-line textual description of the observation contents and dump it to the outpu...
float sensorStdNoise
1-sigma of the sensor Gaussian noise (in the same normalized units than reflectivityLevel) ...
mrpt::poses::CPose3D sensorPose
The pose of this sensor in robot&#39;s local coordinates.
__int16 int16_t
Definition: rptypes.h:43
void getSensorPose(mrpt::poses::CPose3D &out_sensorPose) const override
A general method to retrieve the sensor pose on the robot.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
Definition: CPose3D.h:88
Declares a class that represents any robot&#39;s observation.
Definition: CObservation.h:41
int16_t channel
The channel for this observation.



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