MRPT  2.0.1
CObservationWirelessPower.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | https://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2020, Individual contributors, see AUTHORS file |
6  | See: https://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See: https://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 #pragma once
10 
11 #include <mrpt/obs/CObservation.h>
12 #include <mrpt/poses/CPose2D.h>
13 #include <mrpt/poses/CPose3D.h>
15 
16 namespace mrpt::obs
17 {
18 /** This represents a measurement of the wireless strength perceived by the
19  * robot.
20  * The signal level is given as a percentage.
21  *
22  * \sa CObservation, mrpt::hwdrivers::CWirelessPower for a software sensor
23  * capable of reading this kind of observations.
24  * \ingroup mrpt_obs_grp
25  */
27 {
29 
30  public:
31  /** @name The data members
32  * @{ */
33 
34  /** The power or signal strength as sensed by the Wifi receiver (In
35  * percentage: [0-100]) */
36  double power{0};
37  /** The location of the sensing antenna on the robot coordinate framework */
39 
40  /** @} */
41 
42  void getSensorPose(mrpt::poses::CPose3D& out_sensorPose)
43  const override; // See base class docs
44  void setSensorPose(const mrpt::poses::CPose3D& newSensorPose)
45  override; // See base class docs
47  std::ostream& o) const override; // See base class docs
48 
49 }; // End of class def.
50 
51 } // namespace mrpt::obs
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.
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
Definition: CPose3D.h:85
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.
#define DEFINE_SERIALIZABLE(class_name, NS)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...



Page generated by Doxygen 1.8.14 for MRPT 2.0.1 Git: 0fef1a6d7 Fri Apr 3 23:00:21 2020 +0200 at vie abr 3 23:20:28 CEST 2020