#include <sick_generic_parser.h>
|
int | checkForDistAndRSSI (std::vector< char * > &fields, int expected_number_of_data, int &distNum, int &rssiNum, std::vector< float > &distVal, std::vector< float > &rssiVal, int &distMask) |
| check for DIST and RSSI-entries in the datagram. Helper routine for parser More...
|
|
void | checkScanTiming (float time_increment, float scan_time, float angle_increment, float tol) |
|
float | get_range_max (void) |
| Getting maximum range. More...
|
|
float | get_range_min (void) |
| Getting minimum range. More...
|
|
ScannerBasicParam * | getCurrentParamPtr () |
| Gets Pointer to parameter object. More...
|
|
std::string | getScannerType (void) |
| getting scannertype More...
|
|
int | lookUpForAllowedScanner (std::string scannerName) |
| checks the given scannerName/scannerType of validity More...
|
|
virtual int | parse_datagram (char *datagram, size_t datagram_length, SickScanConfig &config, sensor_msgs::LaserScan &msg, int &numEchos, int &echoMask) |
| Parsing Ascii datagram. More...
|
|
void | set_range_max (float max) |
| Setting maximum range. More...
|
|
void | set_range_min (float min) |
| Setting minimum range. More...
|
|
void | set_time_increment (float time) |
| setting time increment between shots More...
|
|
void | setCurrentParamPtr (ScannerBasicParam *_ptr) |
| Set pointer to corresponding parameter object to the parser. More...
|
|
void | setScannerType (std::string s) |
| setting scannertype More...
|
|
| SickGenericParser (std::string scannerType) |
| Construction of parser object. More...
|
|
virtual | ~SickGenericParser () |
| Destructor of parser. More...
|
|
| AbstractParser () |
|
virtual | ~AbstractParser () |
|
Definition at line 159 of file sick_generic_parser.h.
◆ SickGenericParser()
sick_scan::SickGenericParser::SickGenericParser |
( |
std::string |
_scanType | ) |
|
Construction of parser object.
- Parameters
-
_scanType | Type of the Laserscanner |
Definition at line 405 of file sick_generic_parser.cpp.
◆ ~SickGenericParser()
sick_scan::SickGenericParser::~SickGenericParser |
( |
| ) |
|
|
virtual |
◆ checkForDistAndRSSI()
int sick_scan::SickGenericParser::checkForDistAndRSSI |
( |
std::vector< char * > & |
fields, |
|
|
int |
expected_number_of_data, |
|
|
int & |
distNum, |
|
|
int & |
rssiNum, |
|
|
std::vector< float > & |
distVal, |
|
|
std::vector< float > & |
rssiVal, |
|
|
int & |
distMask |
|
) |
| |
check for DIST and RSSI-entries in the datagram. Helper routine for parser
- Parameters
-
fields | String entries holding the information |
expected_number_of_data | Warning, if the number of found entries does not correspond to this entries |
distNum | Number of found DIST-entries |
rssiNum | Number of found RSSI-entries |
distVal | parsed istance values |
rssiVal | parsed RSSI-values |
distMask | Bit-Masking holds the information of found DIST-entries (e.g. DIST1 -> Bit 0, DIST2 -> BIT 1 and so on) |
- Returns
- Errorcode
- See also
- parse_datagram
Definition at line 728 of file sick_generic_parser.cpp.
◆ checkScanTiming()
void sick_scan::SickGenericParser::checkScanTiming |
( |
float |
time_increment, |
|
|
float |
scan_time, |
|
|
float |
angle_increment, |
|
|
float |
tol |
|
) |
| |
◆ get_range_max()
float sick_scan::SickGenericParser::get_range_max |
( |
void |
| ) |
|
◆ get_range_min()
float sick_scan::SickGenericParser::get_range_min |
( |
void |
| ) |
|
◆ getCurrentParamPtr()
Gets Pointer to parameter object.
- Returns
- Pointer to parameter object holding information about protocol usage and scanner type specific parameter
Definition at line 683 of file sick_generic_parser.cpp.
◆ getScannerType()
std::string sick_scan::SickGenericParser::getScannerType |
( |
void |
| ) |
|
◆ lookUpForAllowedScanner()
int sick_scan::SickGenericParser::lookUpForAllowedScanner |
( |
std::string |
scannerName | ) |
|
checks the given scannerName/scannerType of validity
- Parameters
-
scannerName | as string (e.g. "tim_5xx") |
- Returns
- index of found scanner. -1 corresponds to "not found"
Definition at line 693 of file sick_generic_parser.cpp.
◆ parse_datagram()
int sick_scan::SickGenericParser::parse_datagram |
( |
char * |
datagram, |
|
|
size_t |
datagram_length, |
|
|
SickScanConfig & |
config, |
|
|
sensor_msgs::LaserScan & |
msg, |
|
|
int & |
numEchos, |
|
|
int & |
echoMask |
|
) |
| |
|
virtual |
Parsing Ascii datagram.
- Parameters
-
datagram | Pointer to datagram data |
datagram_length | Number of bytes in datagram |
config | Pointer to Configdata |
msg | Holds result of Parsing |
numEchos | Number of DIST-blocks found in message |
echoMask | Mask corresponding to DIST-block-identifier |
- Returns
- set_range_max
Implements sick_scan::AbstractParser.
Definition at line 847 of file sick_generic_parser.cpp.
◆ set_range_max()
void sick_scan::SickGenericParser::set_range_max |
( |
float |
max | ) |
|
◆ set_range_min()
void sick_scan::SickGenericParser::set_range_min |
( |
float |
min | ) |
|
◆ set_time_increment()
void sick_scan::SickGenericParser::set_time_increment |
( |
float |
time | ) |
|
◆ setCurrentParamPtr()
◆ setScannerType()
void sick_scan::SickGenericParser::setScannerType |
( |
std::string |
_scannerType | ) |
|
◆ allowedScannerNames
std::vector<std::string> sick_scan::SickGenericParser::allowedScannerNames |
|
private |
◆ basicParams
◆ currentParamSet
◆ override_range_max_
float sick_scan::SickGenericParser::override_range_max_ |
|
private |
◆ override_range_min_
float sick_scan::SickGenericParser::override_range_min_ |
|
private |
◆ override_time_increment_
float sick_scan::SickGenericParser::override_time_increment_ |
|
private |
◆ scannerType
std::string sick_scan::SickGenericParser::scannerType |
|
private |
The documentation for this class was generated from the following files: