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-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 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  /** The read reflectivity level, in the range [0,1] (0=black, 1=white).
33  */
34  float reflectivityLevel{0.5f};
35 
36  /** The channel for this observation. If channel=-1, it can be inserted into
37  * any CReflectivityGridMap2D. Otherwise, it can only be inserted into
38  * reflectivity maps with the same channel. (Default=-1)
39  */
41 
42  /** The pose of this sensor in robot's local coordinates.
43  */
45 
46  /** 1-sigma of the sensor Gaussian noise (in the same normalized units than
47  * \a reflectivityLevel)
48  */
49  float sensorStdNoise{0.2f};
50 
51  // See base class docs
52  void getSensorPose(mrpt::poses::CPose3D& out_sensorPose) const override
53  {
54  out_sensorPose = sensorPose;
55  }
56  void setSensorPose(const mrpt::poses::CPose3D& newSensorPose) override
57  {
58  sensorPose = newSensorPose;
59  }
60  void getDescriptionAsText(std::ostream& o) const override;
61 
62 }; // End of class def.
63 
64 } // End of namespace
65 } // End of namespace
66 
67 #endif
mrpt::obs::CObservationReflectivity
Declares a class derived from "CObservation" that encapsules a single short-range reflectivity measur...
Definition: CObservationReflectivity.h:27
mrpt::obs::CObservationReflectivity::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: CObservationReflectivity.cpp:48
mrpt::obs::CObservationReflectivity::sensorStdNoise
float sensorStdNoise
1-sigma of the sensor Gaussian noise (in the same normalized units than reflectivityLevel)
Definition: CObservationReflectivity.h:49
mrpt::obs::CObservationReflectivity::reflectivityLevel
float reflectivityLevel
The read reflectivity level, in the range [0,1] (0=black, 1=white).
Definition: CObservationReflectivity.h:34
mrpt
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Definition: CKalmanFilterCapable.h:30
mrpt::obs::CObservationReflectivity::channel
int16_t channel
The channel for this observation.
Definition: CObservationReflectivity.h:40
int16_t
__int16 int16_t
Definition: rptypes.h:43
mrpt::obs::CObservationReflectivity::getSensorPose
void getSensorPose(mrpt::poses::CPose3D &out_sensorPose) const override
A general method to retrieve the sensor pose on the robot.
Definition: CObservationReflectivity.h:52
mrpt::poses::CPose3D
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
Definition: CPose3D.h:88
CPose3D.h
CObservation.h
DEFINE_SERIALIZABLE
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
Definition: CSerializable.h:102
mrpt::obs::CObservation
Declares a class that represents any robot's observation.
Definition: CObservation.h:43
mrpt::obs::CObservationReflectivity::setSensorPose
void setSensorPose(const mrpt::poses::CPose3D &newSensorPose) override
A general method to change the sensor pose on the robot.
Definition: CObservationReflectivity.h:56
mrpt::obs::CObservationReflectivity::sensorPose
mrpt::poses::CPose3D sensorPose
The pose of this sensor in robot's local coordinates.
Definition: CObservationReflectivity.h:44



Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST