Main MRPT website > C++ reference for MRPT 1.4.0
CGillAnemometer.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-2016, 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 CGillAnemometer_H
10 #define CGillAnemometer_H
11 
16 
17 namespace mrpt
18 {
19  namespace hwdrivers
20  {
21  /** This class implements a driver for the Gill Windsonic Option 1 Anemometer
22  * The sensor is accessed via a standard serial port.
23  *
24  * Refer to the manufacturer website for details on this sensor: http://gillinstruments.com/data/manuals/WindSonic-Web-Manual.pdf
25  * Configure for single <CR> return, at 2Hz
26  * \sa mrpt::obs::CObservationWindSensor
27  * \ingroup mrpt_hwdrivers_grp
28  */
30  {
32 
33  private:
34  /** COM port name
35  */
36  std::string com_port;
37  int com_bauds;
38 
39  /** COM port
40  */
42 
43  /** Poses
44  */
45  float pose_x, pose_y, pose_z, pose_yaw, pose_pitch, pose_roll;
46 
47  /** Returns true if the COM port is already open, or try to open it in other case.
48  * \return true if everything goes OK, or false if there are problems opening the port.
49  */
50  bool tryToOpenTheCOM();
51 
52  public:
53  /** Default constructor.
54  */
56  /** Default destructor.
57  */
58  virtual ~CGillAnemometer(){COM.close();};
59 
60  void doProcess();
61 
62  void loadConfig_sensorSpecific(
63  const mrpt::utils::CConfigFileBase &configSource,
64  const std::string &section);
65  }; // End of class def.
66 
67  } // End of namespace
68 } // End of namespace
69 #endif
mrpt::hwdrivers::CGillAnemometer::~CGillAnemometer
virtual ~CGillAnemometer()
Default destructor.
Definition: CGillAnemometer.h:58
CObservationWindSensor.h
CSerialPort.h
mrpt
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Definition: CParticleFilter.h:16
DEFINE_GENERIC_SENSOR
#define DEFINE_GENERIC_SENSOR(class_name)
This declaration must be inserted in all CGenericSensor classes definition, within the class declarat...
Definition: CGenericSensor.h:251
mrpt::hwdrivers::CGillAnemometer::com_bauds
int com_bauds
Definition: CGillAnemometer.h:37
mrpt::utils::CConfigFileBase
This class allows loading and storing values and vectors of different types from a configuration text...
Definition: CConfigFileBase.h:30
CGenericSensor.h
mrpt::hwdrivers::CGillAnemometer::com_port
std::string com_port
COM port name.
Definition: CGillAnemometer.h:36
mrpt::hwdrivers::CSerialPort
A communications serial port built as an implementation of a utils::CStream.
Definition: CSerialPort.h:43
mrpt::hwdrivers::CGenericSensor
A generic interface for a wide-variety of sensors designed to be used in the application RawLogGrabbe...
Definition: CGenericSensor.h:63
CConfigFileBase.h
mrpt::hwdrivers::CSerialPort::close
void close()
Close the port.
mrpt::hwdrivers::CGillAnemometer::pose_z
float pose_z
Definition: CGillAnemometer.h:45
mrpt::hwdrivers::CGillAnemometer::COM
CSerialPort COM
COM port.
Definition: CGillAnemometer.h:41
mrpt::hwdrivers::CGillAnemometer
This class implements a driver for the Gill Windsonic Option 1 Anemometer The sensor is accessed via ...
Definition: CGillAnemometer.h:29
HWDRIVERS_IMPEXP
#define HWDRIVERS_IMPEXP
Definition: hwdrivers_impexp.h:82



Page generated by Doxygen 1.8.17 for MRPT 1.4.0 SVN: at Tue Mar 3 09:15:16 UTC 2020