#include <stdlib.h>#include <string>#include <sstream>#include <iostream>#include <signal.h>#include <sicktoolbox/SickLMS2xx.hh>
Go to the source code of this file.
Defines | |
| #define | INVALID_OPTION_STRING " Invalid option!!! :o(" |
| #define | PROMPT_STRING "lms2xx?> " |
Functions | |
| int | getUserOption (bool &is_null_input) |
| int | main (int argc, char *argv[]) |
| void | setAvailabilityLevel () |
| Prompts the user and sets the desired availability level via the driver interface. | |
| void | setMeasuringMode () |
| Prompts the user and sets the desired measuring mode via the driver interface. | |
| void | setMeasuringUnits () |
| Prompts the user and sets the desired measuring units via the driver interface. | |
| void | setSensitivityLevel () |
| Prompts the user and sets the desired sensitivity level via the driver interface. | |
| void | sigintHandler (int signal) |
| int | strToInt (string input_str) |
| bool | writeToEEPROM () |
| Confirms the user actually wants to perform write. | |
Variables | |
| SickLMS2xx * | sick_lms_2xx = NULL |
| #define INVALID_OPTION_STRING " Invalid option!!! :o(" |
Definition at line 25 of file lms2xx/lms2xx_config/src/main.cc.
| #define PROMPT_STRING "lms2xx?> " |
Definition at line 26 of file lms2xx/lms2xx_config/src/main.cc.
| int getUserOption | ( | bool & | is_null_input | ) |
Reads in user input string and returns numeric representation
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 90 of file lms2xx/lms2xx_config/src/main.cc.
| void setAvailabilityLevel | ( | ) |
Prompts the user and sets the desired availability level via the driver interface.
Sets the measuring mode of the device
Definition at line 448 of file lms2xx/lms2xx_config/src/main.cc.
| void setMeasuringMode | ( | ) |
Prompts the user and sets the desired measuring mode via the driver interface.
Sets the measuring mode of the device
Definition at line 332 of file lms2xx/lms2xx_config/src/main.cc.
| void setMeasuringUnits | ( | ) |
Prompts the user and sets the desired measuring units via the driver interface.
Sets the measuring units of the device
Definition at line 272 of file lms2xx/lms2xx_config/src/main.cc.
| void setSensitivityLevel | ( | ) |
Prompts the user and sets the desired sensitivity level via the driver interface.
Sets the Sick LMS sensitivity level
Definition at line 556 of file lms2xx/lms2xx_config/src/main.cc.
| void sigintHandler | ( | int | signal | ) |
Handle the SIGINT signal
| int strToInt | ( | string | input_str | ) |
Converts ascii string to an integer
Definition at line 216 of file lms2xx/lms2xx_config/src/main.cc.
| bool writeToEEPROM | ( | ) |
Confirms the user actually wants to perform write.
Prompts the user to confirm requested operation
Definition at line 245 of file lms2xx/lms2xx_config/src/main.cc.
| SickLMS2xx* sick_lms_2xx = NULL |
Definition at line 88 of file lms2xx/lms2xx_config/src/main.cc.