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-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 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::config::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
mrpt::obs::CObservationWirelessPower
This represents a measurement of the wireless strength perceived by the robot.
Definition: CObservationWirelessPower.h:29
mrpt::hwdrivers::CWirelessPower::pose_y
float pose_y
Definition: CWirelessPower.h:44
mrpt::hwdrivers::CWirelessPower::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: CWirelessPower.cpp:554
mrpt::hwdrivers::CWirelessPower::GetPower
int GetPower()
Gets the power of a given network.
Definition: CWirelessPower.cpp:441
CObservationWirelessPower.h
mrpt::hwdrivers::CWirelessPower::pose_x
float pose_x
Poses.
Definition: CWirelessPower.h:44
mrpt::hwdrivers::CWirelessPower::pose_roll
float pose_roll
Definition: CWirelessPower.h:44
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::CWirelessPower::~CWirelessPower
virtual ~CWirelessPower()
Definition: CWirelessPower.h:50
mrpt::hwdrivers::CWirelessPower
This class implements a wireless power probe.
Definition: CWirelessPower.h:25
mrpt::hwdrivers::CWirelessPower::ListNetworks
std::vector< std::string > ListNetworks()
Gets a list of the networks available for an interface.
Definition: CWirelessPower.cpp:377
mrpt::hwdrivers::CWirelessPower::pose_yaw
float pose_yaw
Definition: CWirelessPower.h:44
mrpt::hwdrivers::CWirelessPower::ListInterfaces
std::vector< std::string > ListInterfaces()
Gets a list of the interfaces.
Definition: CWirelessPower.cpp:316
mrpt::hwdrivers::CWirelessPower::pose_pitch
float pose_pitch
Definition: CWirelessPower.h:44
mrpt::hwdrivers::CWirelessPower::setNet
void setNet(std::string ssid_, std::string guid_)
Set the SSID and GUID of the target network.
CConfigFileBase.h
mrpt::hwdrivers::CWirelessPower::hClient
void * hClient
Handle to the WLAN server (Windows)
Definition: CWirelessPower.h:40
mrpt::config::CConfigFileBase
This class allows loading and storing values and vectors of different types from a configuration text...
Definition: config/CConfigFileBase.h:44
mrpt::hwdrivers::CWirelessPower::getObservation
bool getObservation(mrpt::obs::CObservationWirelessPower &outObservation)
Gets the power of a given network as a timestamped observation NOTE: Deprecated, use getObservations ...
Definition: CWirelessPower.cpp:515
mrpt::hwdrivers::CWirelessPower::doProcess
void doProcess()
This method will be invoked at a minimum rate of "process_rate" (Hz)
Definition: CWirelessPower.cpp:542
CGenericSensor.h
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::CWirelessPower::ssid
std::string ssid
SSID of the WiFi network.
Definition: CWirelessPower.h:32
mrpt::hwdrivers::CWirelessPower::CWirelessPower
CWirelessPower()
Default constructor.
Definition: CWirelessPower.cpp:20
string
GLsizei const GLchar ** string
Definition: glext.h:4101
mrpt::hwdrivers::CWirelessPower::pose_z
float pose_z
Definition: CWirelessPower.h:44
mrpt::hwdrivers::CWirelessPower::guid
std::string guid
GUID of the WiFi interface.
Definition: CWirelessPower.h:36



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