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 
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
Declares a class that represents any robot's observation.
Definition: CObservation.h:44
Declares a class derived from "CObservation" that represents the wind measurements taken on the robot...
mrpt::poses::CPose3D sensorPoseOnRobot
The location of the sensing anemometer on the robot coordinate framework.
double speed
The wind speed in m/s.
double direction
The wind flow direction in deg.
void getSensorPose(mrpt::poses::CPose3D &out_sensorPose) const override
A general method to retrieve the sensor pose on the robot.
void setSensorPose(const mrpt::poses::CPose3D &newSensorPose) override
A general method to change the sensor pose on the robot.
void getDescriptionAsText(std::ostream &o) const override
Build a detailed, multi-line textual description of the observation contents and dump it to the outpu...
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
Definition: CPose3D.h:87
This namespace contains representation of robot actions and observations.



Page generated by Doxygen 1.9.1 for MRPT 1.9.9 Git: 814d80880 Fri Aug 24 01:51:28 2018 +0200 at mar 26 may 2026 12:30:59 CEST