MRPT  1.9.9
CObservationWirelessPower.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 CObservationWirelessPower_H
10 #define CObservationWirelessPower_H
11 
13 #include <mrpt/obs/CObservation.h>
14 #include <mrpt/poses/CPose3D.h>
15 #include <mrpt/poses/CPose2D.h>
16 
17 namespace mrpt::obs
18 {
19 /** This represents a measurement of the wireless strength perceived by the
20  * robot.
21  * The signal level is given as a percentage.
22  *
23  * \sa CObservation, mrpt::hwdrivers::CWirelessPower for a software sensor
24  * capable of reading this kind of observations.
25  * \ingroup mrpt_obs_grp
26  */
28 {
30 
31  public:
32  /** @name The data members
33  * @{ */
34 
35  /** The power or signal strength as sensed by the Wifi receiver (In
36  * percentage: [0-100]) */
37  double power{0};
38  /** The location of the sensing antenna on the robot coordinate framework */
40 
41  /** @} */
42 
43  void getSensorPose(mrpt::poses::CPose3D& out_sensorPose)
44  const override; // See base class docs
45  void setSensorPose(const mrpt::poses::CPose3D& newSensorPose)
46  override; // See base class docs
48  std::ostream& o) const override; // See base class docs
49 
50 }; // End of class def.
51 
52 }
53 #endif
54 
55 
void getDescriptionAsText(std::ostream &o) const override
Build a detailed, multi-line textual description of the observation contents and dump it to the outpu...
void getSensorPose(mrpt::poses::CPose3D &out_sensorPose) const override
A general method to retrieve the sensor pose on the robot.
double power
The power or signal strength as sensed by the Wifi receiver (In percentage: [0-100]) ...
This namespace contains representation of robot actions and observations.
void setSensorPose(const mrpt::poses::CPose3D &newSensorPose) override
A general method to change the sensor pose on the robot.
This represents a measurement of the wireless strength perceived by the robot.
#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
mrpt::poses::CPose3D sensorPoseOnRobot
The location of the sensing antenna on the robot coordinate framework.



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