Main MRPT website > C++ reference for MRPT 1.9.9
CWirelessPower.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-2017, 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 CWirelessPower_H
10 #define CWirelessPower_H
11 
15 
16 namespace mrpt
17 {
18 namespace hwdrivers
19 {
20 /** This class implements a wireless power probe.
21  * \sa mrpt::maps::CWirelessPowerGridMap2D,
22  * mrpt::obs::CObservationWirelessPower
23  * \ingroup mrpt_hwdrivers_grp
24  */
26 {
28 
29  private:
30  /** SSID of the WiFi network
31  */
33 
34  /** GUID of the WiFi interface
35  */
37 
38  /** Handle to the WLAN server (Windows)
39  */
40  void* hClient;
41 
42  /** Poses
43  */
45 
46  public:
47  /** Default constructor.
48  */
50  virtual ~CWirelessPower(){};
51 
52  /** Set the SSID and GUID of the target network.
53  * \exception std::exception In case there is a failure
54  * \param ssid_ SSID of the target network
55  * \param guid_ GUID of the network interface
56  */
57  void setNet(std::string ssid_, std::string guid_);
58 
59  void doProcess();
61  const mrpt::utils::CConfigFileBase& configSource,
62  const std::string& section);
63 
64  /** Gets a list of the interfaces
65  * \exception std::exception In case there is a failure
66  * \return std::vector returns the identifiers (GUID) of the available
67  * interfaces
68  */
69  std::vector<std::string> ListInterfaces();
70 
71  /** Gets the power of a given network
72  * \exception std::exception In case there is a failure
73  * \return Returns the power (0-100).
74  */
75  int GetPower();
76 
77  /** Gets the power of a given network as a timestamped observation
78  * NOTE: Deprecated, use getObservations instead. See CGenericSensor
79  * documentation. This function is kept for internal use of the module
80  * \return Returns true if the observation was correct, and false otherwise
81  * \sa mrpt::hwdrivers::CGenericSensor
82  */
83 
85 
86  /** Gets a list of the networks available for an interface
87  * \exception std::exception In case there is a failure
88  * \return std::vector returns handles to the available networks of a given
89  * interface
90  */
91  std::vector<std::string> ListNetworks();
92 
93 }; // End of class def.
94 
95 } // End of namespace
96 } // End of namespace
97 #endif
A generic interface for a wide-variety of sensors designed to be used in the application RawLogGrabbe...
void loadConfig_sensorSpecific(const mrpt::utils::CConfigFileBase &configSource, const std::string &section)
Loads specific configuration for the device from a given source of configuration parameters, for example, an ".ini" file, loading from the section "[iniSection]" (see utils::CConfigFileBase and derived classes)
std::string guid
GUID of the WiFi interface.
CWirelessPower()
Default constructor.
This class allows loading and storing values and vectors of different types from a configuration text...
bool getObservation(mrpt::obs::CObservationWirelessPower &outObservation)
Gets the power of a given network as a timestamped observation NOTE: Deprecated, use getObservations ...
This class implements a wireless power probe.
std::string ssid
SSID of the WiFi network.
GLsizei const GLchar ** string
Definition: glext.h:4101
This represents a measurement of the wireless strength perceived by the robot.
#define DEFINE_GENERIC_SENSOR(class_name)
This declaration must be inserted in all CGenericSensor classes definition, within the class declarat...
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
std::vector< std::string > ListNetworks()
Gets a list of the networks available for an interface.
std::vector< std::string > ListInterfaces()
Gets a list of the interfaces.
void setNet(std::string ssid_, std::string guid_)
Set the SSID and GUID of the target network.
int GetPower()
Gets the power of a given network.
void doProcess()
This method will be invoked at a minimum rate of "process_rate" (Hz)
void * hClient
Handle to the WLAN server (Windows)



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019