MRPT  1.9.9
CObservationWindSensor.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 
10 #ifndef CObservationWindSensor_H
11 #define CObservationWindSensor_H
12 
14 #include <mrpt/obs/CObservation.h>
15 #include <mrpt/poses/CPose3D.h>
16 #include <mrpt/poses/CPose2D.h>
17 
18 namespace mrpt::obs
19 {
20 /** Declares a class derived from "CObservation" that represents the wind
21  * measurements taken on the robot by an anemometer.
22  * The observation is composed by two magnitudes:
23  * wind speed (m/s)
24  * wind direction (deg)
25  *
26  * \sa CObservation
27  * \ingroup mrpt_obs_grp
28  */
30 {
32 
33  public:
34  /** @name The data members
35  * @{ */
36 
37  /** The wind speed in m/s */
38  double speed{.0};
39  /** The wind flow direction in deg */
40  double direction{.0};
41  /** The location of the sensing anemometer on the robot coordinate framework
42  */
44 
45  /** @} */
46 
47  // See base class docs
48  void getSensorPose(mrpt::poses::CPose3D& out_sensorPose) const override;
49  void setSensorPose(const mrpt::poses::CPose3D& newSensorPose) override;
50  void getDescriptionAsText(std::ostream& o) const override;
51 
52 }; // End of class def.
53 
54 }
55 #endif
56 
57 
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 direction
The wind flow direction in deg.
double speed
The wind speed in m/s.
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
void setSensorPose(const mrpt::poses::CPose3D &newSensorPose) override
A general method to change the sensor pose on the robot.
mrpt::poses::CPose3D sensorPoseOnRobot
The location of the sensing anemometer on the robot coordinate framework.
Declares a class derived from "CObservation" that represents the wind measurements taken on the robot...



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