Main MRPT website > C++ reference for MRPT 1.9.9
CObservationRFID.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 CObservationRFID_H
10 #define CObservationRFID_H
11 
13 #include <mrpt/obs/CObservation.h>
14 #include <mrpt/poses/CPose3D.h>
15 #include <mrpt/poses/CPose2D.h>
16 
17 namespace mrpt
18 {
19 namespace obs
20 {
21 /** This represents one or more RFID tags observed by a receiver.
22  *
23  * \sa CObservation, mrpt::hwdrivers::CImpinjRFID for a software sensor capable
24  * of reading this kind of observations.
25  * \ingroup mrpt_obs_grp
26  */
28 {
30 
31  public:
32  /** Constructor */
34 
35  /** @name The data members
36  * @{ */
37  /** The location of the sensing antenna on the robot coordinate framework */
39 
40  /** Each of the individual readings of a RFID tag */
41  struct TTagReading
42  {
43  TTagReading() : power(-1000) {}
44  /** The power or signal strength as sensed by the RFID receiver (in dBm)
45  */
46  double power;
47  /** EPC code of the observed tag */
49  /** Port of the antenna that did the reading */
51  };
52 
53  /** The vector of individual tag observations */
54  std::vector<TTagReading> tag_readings;
55 
56  inline uint32_t getNtags() const { return tag_readings.size(); }
57  /** @} */
58 
59  void getSensorPose(mrpt::poses::CPose3D& out_sensorPose) const override;
60  /** A general method to change the sensor pose on the robot.
61  * It has no effects in this class
62  * \sa getSensorPose */
63  void setSensorPose(const mrpt::poses::CPose3D& newSensorPose) override;
64  // See base class docs
65  void getDescriptionAsText(std::ostream& o) const override;
66 
67 }; // End of class def.
68 
69 } // End of namespace
70 } // End of namespace
71 
72 #endif
mrpt::obs::CObservationRFID::CObservationRFID
CObservationRFID()
Constructor.
Definition: CObservationRFID.cpp:23
mrpt::obs::CObservationRFID::getNtags
uint32_t getNtags() const
Definition: CObservationRFID.h:56
mrpt::obs::CObservationRFID::TTagReading::antennaPort
std::string antennaPort
Port of the antenna that did the reading.
Definition: CObservationRFID.h:50
mrpt::obs::CObservationRFID::tag_readings
std::vector< TTagReading > tag_readings
The vector of individual tag observations.
Definition: CObservationRFID.h:54
mrpt::obs::CObservationRFID::setSensorPose
void setSensorPose(const mrpt::poses::CPose3D &newSensorPose) override
A general method to change the sensor pose on the robot.
Definition: CObservationRFID.cpp:100
mrpt
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Definition: CKalmanFilterCapable.h:30
CPose2D.h
mrpt::obs::CObservationRFID::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: CObservationRFID.cpp:105
mrpt::obs::CObservationRFID::sensorPoseOnRobot
mrpt::poses::CPose3D sensorPoseOnRobot
The location of the sensing antenna on the robot coordinate framework.
Definition: CObservationRFID.h:38
mrpt::obs::CObservationRFID::TTagReading::TTagReading
TTagReading()
Definition: CObservationRFID.h:43
mrpt::poses::CPose3D
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
Definition: CPose3D.h:88
CPose3D.h
mrpt::obs::CObservationRFID::getSensorPose
void getSensorPose(mrpt::poses::CPose3D &out_sensorPose) const override
A general method to retrieve the sensor pose on the robot.
Definition: CObservationRFID.cpp:95
CObservation.h
mrpt::obs::CObservationRFID
This represents one or more RFID tags observed by a receiver.
Definition: CObservationRFID.h:27
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::CObservationRFID::TTagReading
Each of the individual readings of a RFID tag.
Definition: CObservationRFID.h:41
string
GLsizei const GLchar ** string
Definition: glext.h:4101
mrpt::obs::CObservationRFID::TTagReading::power
double power
The power or signal strength as sensed by the RFID receiver (in dBm)
Definition: CObservationRFID.h:46
CSerializable.h
mrpt::obs::CObservationRFID::TTagReading::epc
std::string epc
EPC code of the observed tag.
Definition: CObservationRFID.h:48
uint32_t
unsigned __int32 uint32_t
Definition: rptypes.h:47



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