Main MRPT website > C++ reference
MRPT logo
Public Member Functions | Private Attributes
mrpt::hwdrivers::CWirelessPower Class Reference

Detailed Description

This class implements a wireless power probe.

See also:
mrpt::slam::CWirelessPowerGridMap2D, mrpt::slam::CObservationWirelessPower

#include <mrpt/hwdrivers/CWirelessPower.h>

Inheritance diagram for mrpt::hwdrivers::CWirelessPower:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CWirelessPower ()
 Default constructor.
virtual ~CWirelessPower ()
void setNet (std::string ssid_, std::string guid_)
 Set the SSID and GUID of the target network.
void doProcess ()
 This method will be invoked at a minimum rate of "process_rate" (Hz)

Exceptions:
Thismethod must throw an exception with a descriptive message if some critical error is found.

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)

Exceptions:
Thismethod must throw an exception with a descriptive message if some critical parameter is missing or has an invalid value.

std::vector< std::string > ListInterfaces ()
 Gets a list of the interfaces

Exceptions:
std::exceptionIn case there is a failure.

int GetPower ()
 Gets the power of a given network

Exceptions:
std::exceptionIn case there is a failure.

bool getObservation (mrpt::slam::CObservationWirelessPower &outObservation)
 Gets the power of a given network as a timestamped observation.
std::vector< std::string > ListNetworks ()
 Gets a list of the networks available for an interface

Exceptions:
std::exceptionIn case there is a failure.

Private Attributes

std::string ssid
 SSID of the WiFi network.
std::string guid
 GUID of the WiFi interface.
void * hClient
 Handle to the WLAN server (Windows)

Constructor & Destructor Documentation

mrpt::hwdrivers::CWirelessPower::CWirelessPower ( )

Default constructor.

virtual mrpt::hwdrivers::CWirelessPower::~CWirelessPower ( ) [inline, virtual]

Definition at line 64 of file CWirelessPower.h.


Member Function Documentation

void mrpt::hwdrivers::CWirelessPower::doProcess ( ) [inline, virtual]

This method will be invoked at a minimum rate of "process_rate" (Hz)

Exceptions:
Thismethod must throw an exception with a descriptive message if some critical error is found.

Implements mrpt::hwdrivers::CGenericSensor.

Definition at line 73 of file CWirelessPower.h.

bool mrpt::hwdrivers::CWirelessPower::getObservation ( mrpt::slam::CObservationWirelessPower &  outObservation)

Gets the power of a given network as a timestamped observation.

Returns:
Returns true if the observation was correct, and false otherwise
int mrpt::hwdrivers::CWirelessPower::GetPower ( )

Gets the power of a given network

Exceptions:
std::exceptionIn case there is a failure.

Returns:
Returns the power (0-100).
std::vector<std::string> mrpt::hwdrivers::CWirelessPower::ListInterfaces ( )

Gets a list of the interfaces

Exceptions:
std::exceptionIn case there is a failure.

Returns:
std::vector returns the identifiers (GUID) of the available interfaces
std::vector<std::string> mrpt::hwdrivers::CWirelessPower::ListNetworks ( )

Gets a list of the networks available for an interface

Exceptions:
std::exceptionIn case there is a failure.

Returns:
std::vector returns handles to the available networks of a given interface
void mrpt::hwdrivers::CWirelessPower::loadConfig_sensorSpecific ( const mrpt::utils::CConfigFileBase &  configSource,
const std::string &  section 
) [virtual]

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)

Exceptions:
Thismethod must throw an exception with a descriptive message if some critical parameter is missing or has an invalid value.

Implements mrpt::hwdrivers::CGenericSensor.

void mrpt::hwdrivers::CWirelessPower::setNet ( std::string  ssid_,
std::string  guid_ 
)

Set the SSID and GUID of the target network.

Exceptions:
std::exceptionIn case there is a failure
Parameters:
ssid_SSID of the target network
guid_GUID of the network interface

Member Data Documentation

GUID of the WiFi interface.

Definition at line 54 of file CWirelessPower.h.

Handle to the WLAN server (Windows)

Definition at line 58 of file CWirelessPower.h.

SSID of the WiFi network.

Definition at line 50 of file CWirelessPower.h.




Page generated by Doxygen 1.7.5 for MRPT 0.9.5 SVN: at Sun Oct 16 12:16:33 UTC 2011