Class that reads the signal quality of a wifi device and serves it 1. As a topic 2. As a service The actual core functionality is taken from the iwconfig source code. More...
Public Member Functions | |
Signal (const char *wlan_dev) | |
~Signal () | |
Private Member Functions | |
wifi_signal | getSignal () |
Gets the signal quality property of the wifi device. | |
wifi_signal | getSignalAverage () |
Calculates an average of multiple signal quality measurements. | |
bool | openDevice () |
Fills in basic information like the essid and the maximum signal quality. | |
bool | srvGetSignal (heatmap::signal_service::Request &req, heatmap::signal_service::Response &res) |
Private Attributes | |
ros::NodeHandle | nh |
const char * | wifi_dev |
wireless_info * | wifi_info |
heatmap::wifi_signal | wifi_sig |
int | wifi_skfd |
iwreq | wifi_wrq |
Class that reads the signal quality of a wifi device and serves it 1. As a topic 2. As a service The actual core functionality is taken from the iwconfig source code.
Definition at line 29 of file signal.cpp.
heatmap::Signal::Signal | ( | const char * | wlan_dev | ) | [inline] |
Definition at line 133 of file signal.cpp.
heatmap::Signal::~Signal | ( | ) | [inline] |
Definition at line 157 of file signal.cpp.
wifi_signal heatmap::Signal::getSignal | ( | ) | [inline, private] |
Gets the signal quality property of the wifi device.
Definition at line 43 of file signal.cpp.
wifi_signal heatmap::Signal::getSignalAverage | ( | ) | [inline, private] |
Calculates an average of multiple signal quality measurements.
Definition at line 64 of file signal.cpp.
bool heatmap::Signal::openDevice | ( | ) | [inline, private] |
Fills in basic information like the essid and the maximum signal quality.
Definition at line 93 of file signal.cpp.
bool heatmap::Signal::srvGetSignal | ( | heatmap::signal_service::Request & | req, |
heatmap::signal_service::Response & | res | ||
) | [inline, private] |
Definition at line 83 of file signal.cpp.
ros::NodeHandle heatmap::Signal::nh [private] |
Definition at line 37 of file signal.cpp.
const char* heatmap::Signal::wifi_dev [private] |
Definition at line 35 of file signal.cpp.
wireless_info* heatmap::Signal::wifi_info [private] |
Definition at line 34 of file signal.cpp.
heatmap::wifi_signal heatmap::Signal::wifi_sig [private] |
Definition at line 36 of file signal.cpp.
int heatmap::Signal::wifi_skfd [private] |
Definition at line 32 of file signal.cpp.
iwreq heatmap::Signal::wifi_wrq [private] |
Definition at line 33 of file signal.cpp.