55 void setNet(std::string ssid_, std::string guid_);
60 const std::string& section)
override;
A generic interface for a wide-variety of sensors designed to be used in the application RawLogGrabbe...
~CWirelessPower() override=default
Contains classes for various device interfaces.
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.
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...
std::vector< std::string > ListNetworks()
Gets a list of the networks available for an interface.
void loadConfig_sensorSpecific(const mrpt::config::CConfigFileBase &configSource, const std::string §ion) override
Loads specific configuration for the device from a given source of configuration parameters, for example, an ".ini" file, loading from the section "[iniSection]" (see config::CConfigFileBase and derived classes)
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.
void doProcess() override
This method will be invoked at a minimum rate of "process_rate" (Hz)
int GetPower()
Gets the power of a given network.
void * hClient
Handle to the WLAN server (Windows)