Main MRPT website > C++ reference
MRPT logo
CRaePID.h
Go to the documentation of this file.
1 /* +---------------------------------------------------------------------------+
2  | The Mobile Robot Programming Toolkit (MRPT) C++ library |
3  | |
4  | http://www.mrpt.org/ |
5  | |
6  | Copyright (C) 2005-2012 University of Malaga |
7  | |
8  | This software was written by the Machine Perception and Intelligent |
9  | Robotics Lab, University of Malaga (Spain). |
10  | Contact: Jose-Luis Blanco <jlblanco@ctima.uma.es> |
11  | |
12  | This file is part of the MRPT project. |
13  | |
14  | MRPT is free software: you can redistribute it and/or modify |
15  | it under the terms of the GNU General Public License as published by |
16  | the Free Software Foundation, either version 3 of the License, or |
17  | (at your option) any later version. |
18  | |
19  | MRPT is distributed in the hope that it will be useful, |
20  | but WITHOUT ANY WARRANTY; without even the implied warranty of |
21  | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
22  | GNU General Public License for more details. |
23  | |
24  | You should have received a copy of the GNU General Public License |
25  | along with MRPT. If not, see <http://www.gnu.org/licenses/>. |
26  | |
27  +---------------------------------------------------------------------------+ */
28 #ifndef CRaePID_H
29 #define CRaePID_H
30 
34 
35 namespace mrpt
36 {
37  namespace hwdrivers
38  {
39  /** This class implements a driver for the RAE Systems gas PhotoIonization Detector (PID) (Tested on a MiniRAE Lite)
40  * The sensor is accessed via a standard (or USB) serial port.
41  *
42  * Refer to the manufacturer website for details on this sensor: http://www.raesystems.com/products/minirae-lite
43  *
44  * \sa mrpt::slam::CObservationGasSensors
45  * \ingroup mrpt_hwdrivers_grp
46  */
48  {
50 
51  private:
52  /** COM port name
53  */
54  std::string com_port;
55 
56  /** COM port
57  */
59 
60  /** Poses
61  */
62  float pose_x, pose_y, pose_z, pose_yaw, pose_pitch, pose_roll;
63 
64  public:
65  /** Default constructor.
66  */
67  CRaePID();
68  virtual ~CRaePID(){COM.close();};
69 
70 
71  void doProcess();
72  void loadConfig_sensorSpecific(
73  const mrpt::utils::CConfigFileBase &configSource,
74  const std::string &section);
75 
76  /** Get firmware version string.
77  */
78  std::string getFirmware();
79 
80  /** Get model string.
81  */
82  std::string getModel();
83 
84  /** Get serial number as a string.
85  */
86  std::string getSerialNumber();
87 
88  /** Get name string.
89  */
90  std::string getName();
91 
92  /** Switch power on or off (returns true if turned on).
93  */
94  bool switchPower();
95 
96  /** Get full reading (see PID documentation). In the returned observation, each reding is saved as a separate e-nose
97  */
98  CObservationGasSensors getFullInfo();
99 
100  /** Get error status (true if an error was found). errorString shows the error code (see PID documentation)
101  */
102  bool errorStatus(std::string &errorString);
103 
104  /** Get alarm limits
105  */
106  void getLimits(float &min, float &max);
107 
108 
109  }; // End of class def.
110 
111  } // End of namespace
112 } // End of namespace
113 #endif



Page generated by Doxygen 1.8.3 for MRPT 0.9.6 SVN: at Fri Feb 15 22:05:02 EST 2013