Main MRPT website
>
C++ reference
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
mrpt
slam
CObservationReflectivity.h
Go to the documentation of this file.
1
/* +---------------------------------------------------------------------------+
2
| The Mobile Robot Programming Toolkit (MRPT) C++ library |
3
| |
4
| http://www.mrpt.org/ |
5
| |
6
| Copyright (C) 2005-2012 University of Malaga |
7
| |
8
| This software was written by the Machine Perception and Intelligent |
9
| Robotics Lab, University of Malaga (Spain). |
10
| Contact: Jose-Luis Blanco <jlblanco@ctima.uma.es> |
11
| |
12
| This file is part of the MRPT project. |
13
| |
14
| MRPT is free software: you can redistribute it and/or modify |
15
| it under the terms of the GNU General Public License as published by |
16
| the Free Software Foundation, either version 3 of the License, or |
17
| (at your option) any later version. |
18
| |
19
| MRPT is distributed in the hope that it will be useful, |
20
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
21
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
22
| GNU General Public License for more details. |
23
| |
24
| You should have received a copy of the GNU General Public License |
25
| along with MRPT. If not, see <http://www.gnu.org/licenses/>. |
26
| |
27
+---------------------------------------------------------------------------+ */
28
#ifndef CObservationReflectivity_H
29
#define CObservationReflectivity_H
30
31
#include <
mrpt/slam/CObservation.h
>
32
#include <
mrpt/poses/CPose3D.h
>
33
34
namespace
mrpt
35
{
36
namespace
slam
37
{
38
DEFINE_SERIALIZABLE_PRE_CUSTOM_BASE_LINKAGE
(
CObservationReflectivity
,
CObservation
,
OBS_IMPEXP
)
39
40
/** Declares a class derived from "CObservation" that encapsules a single short-range reflectivity measurement.
41
* This can be used for example to store readings from IR sensors (Lego Mindstorm NXT, etc...).
42
*
43
* \sa mrpt::slam::CReflectivityGridMap2D, CObservation
44
* \ingroup mrpt_obs_grp
45
*/
46
class
OBS_IMPEXP
CObservationReflectivity
: public
CObservation
47
{
48
// This must be added to any CSerializable derived class:
49
DEFINE_SERIALIZABLE
(
CObservationReflectivity
)
50
51
public:
52
CObservationReflectivity
( );
//!< Default constructor.
53
virtual ~CObservationReflectivity();
54
55
/** The read reflectivity level, in the range [0,1] (0=black, 1=white).
56
*/
57
float
reflectivityLevel;
58
59
/** The pose of this sensor in robot's local coordinates.
60
*/
61
CPose3D
sensorPose;
62
63
/** 1-sigma of the sensor Gaussian noise (in the same normalized units than \a reflectivityLevel)
64
*/
65
float
sensorStdNoise;
66
67
/** A general method to retrieve the sensor pose on the robot.
68
* Note that most sensors will return a full (6D) CPose3D, but see the derived classes for more details or special cases.
69
* \sa setSensorPose
70
*/
71
void
getSensorPose(
CPose3D
&out_sensorPose )
const
{ out_sensorPose = sensorPose; }
72
73
/** A general method to change the sensor pose on the robot.
74
* Note that most sensors will use the full (6D) CPose3D, but see the derived classes for more details or special cases.
75
* \sa getSensorPose
76
*/
77
void
setSensorPose
(
const
CPose3D
&newSensorPose ) { sensorPose = newSensorPose; }
78
79
};
// End of class def.
80
81
}
// End of namespace
82
}
// End of namespace
83
84
#endif
Page generated by
Doxygen 1.8.3
for MRPT 0.9.6 SVN: at Fri Feb 15 22:05:02 EST 2013