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::obs
16 {
17 /** Declares a class derived from "CObservation" that encapsules a single
18  * short-range reflectivity measurement.
19  * This can be used for example to store readings from IR sensors (Lego
20  * Mindstorm NXT, etc...).
21  *
22  * \sa mrpt::obs::CReflectivityGridMap2D, CObservation
23  * \ingroup mrpt_obs_grp
24  */
26 {
28 
29  public:
30  /** The read reflectivity level, in the range [0,1] (0=black, 1=white).
31  */
32  float reflectivityLevel{0.5f};
33 
34  /** The channel for this observation. If channel=-1, it can be inserted into
35  * any CReflectivityGridMap2D. Otherwise, it can only be inserted into
36  * reflectivity maps with the same channel. (Default=-1)
37  */
39 
40  /** The pose of this sensor in robot's local coordinates.
41  */
43 
44  /** 1-sigma of the sensor Gaussian noise (in the same normalized units than
45  * \a reflectivityLevel)
46  */
47  float sensorStdNoise{0.2f};
48 
49  // See base class docs
50  void getSensorPose(mrpt::poses::CPose3D& out_sensorPose) const override
51  {
52  out_sensorPose = sensorPose;
53  }
54  void setSensorPose(const mrpt::poses::CPose3D& newSensorPose) override
55  {
56  sensorPose = newSensorPose;
57  }
58  void getDescriptionAsText(std::ostream& o) const override;
59 
60 }; // End of class def.
61 
62 }
63 #endif
64 
65 
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 namespace contains representation of robot actions and observations.
#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:86
Declares a class that represents any robot&#39;s observation.
Definition: CObservation.h:43
int16_t channel
The channel for this observation.



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