Main MRPT website > C++ reference for MRPT 1.9.9
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-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 CGillAnemometer_H
10 #define CGillAnemometer_H
11 
13 #include <mrpt/comms/CSerialPort.h>
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:
25  *http://gillinstruments.com/data/manuals/WindSonic-Web-Manual.pdf
26  * Configure for single <CR> return, at 2Hz
27  * \sa mrpt::obs::CObservationWindSensor
28  * \ingroup mrpt_hwdrivers_grp
29  */
31 {
33 
34  private:
35  /** COM port name
36  */
38  int com_bauds;
39 
40  /** COM port
41  */
43 
44  /** Poses
45  */
47 
48  /** Returns true if the COM port is already open, or try to open it in other
49  * case.
50  * \return true if everything goes OK, or false if there are problems
51  * opening the port.
52  */
53  bool tryToOpenTheCOM();
54 
55  public:
56  /** Default constructor.
57  */
59  /** Default destructor.
60  */
61  virtual ~CGillAnemometer() { COM.close(); };
62  void doProcess();
63 
65  const mrpt::config::CConfigFileBase& configSource,
66  const std::string& section);
67 }; // End of class def.
68 
69 } // End of namespace
70 } // End of namespace
71 #endif
mrpt::hwdrivers::CGillAnemometer::~CGillAnemometer
virtual ~CGillAnemometer()
Default destructor.
Definition: CGillAnemometer.h:61
mrpt::comms::CSerialPort::close
void close()
Close the port.
Definition: CSerialPort.cpp:638
mrpt::hwdrivers::CGillAnemometer::loadConfig_sensorSpecific
void loadConfig_sensorSpecific(const mrpt::config::CConfigFileBase &configSource, const std::string &section)
Loads specific configuration for the device from a given source of configuration parameters,...
Definition: CGillAnemometer.cpp:31
CSerialPort.h
mrpt::hwdrivers::CGillAnemometer::CGillAnemometer
CGillAnemometer()
Default constructor.
Definition: CGillAnemometer.cpp:27
mrpt::comms::CSerialPort
A communications serial port built as an implementation of a utils::CStream.
Definition: CSerialPort.h:43
mrpt
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Definition: CKalmanFilterCapable.h:30
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:314
mrpt::hwdrivers::CGillAnemometer::pose_pitch
float pose_pitch
Definition: CGillAnemometer.h:46
mrpt::hwdrivers::CGillAnemometer::pose_roll
float pose_roll
Definition: CGillAnemometer.h:46
mrpt::hwdrivers::CGillAnemometer::com_bauds
int com_bauds
Definition: CGillAnemometer.h:38
mrpt::hwdrivers::CGillAnemometer::pose_y
float pose_y
Definition: CGillAnemometer.h:46
CObservationWindSensor.h
CConfigFileBase.h
mrpt::hwdrivers::CGillAnemometer::pose_x
float pose_x
Poses.
Definition: CGillAnemometer.h:46
mrpt::config::CConfigFileBase
This class allows loading and storing values and vectors of different types from a configuration text...
Definition: config/CConfigFileBase.h:44
CGenericSensor.h
mrpt::hwdrivers::CGillAnemometer::com_port
std::string com_port
COM port name.
Definition: CGillAnemometer.h:37
mrpt::hwdrivers::CGenericSensor
A generic interface for a wide-variety of sensors designed to be used in the application RawLogGrabbe...
Definition: CGenericSensor.h:70
mrpt::hwdrivers::CGillAnemometer::tryToOpenTheCOM
bool tryToOpenTheCOM()
Returns true if the COM port is already open, or try to open it in other case.
Definition: CGillAnemometer.cpp:56
mrpt::hwdrivers::CGillAnemometer::pose_z
float pose_z
Definition: CGillAnemometer.h:46
mrpt::hwdrivers::CGillAnemometer::doProcess
void doProcess()
This method will be invoked at a minimum rate of "process_rate" (Hz)
Definition: CGillAnemometer.cpp:95
string
GLsizei const GLchar ** string
Definition: glext.h:4101
mrpt::hwdrivers::CGillAnemometer
This class implements a driver for the Gill Windsonic Option 1 Anemometer The sensor is accessed via ...
Definition: CGillAnemometer.h:30
mrpt::hwdrivers::CGillAnemometer::COM
mrpt::comms::CSerialPort COM
COM port.
Definition: CGillAnemometer.h:42
mrpt::hwdrivers::CGillAnemometer::pose_yaw
float pose_yaw
Definition: CGillAnemometer.h:46



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