Classes | Enumerations | Functions
sick_scan Namespace Reference

Classes

class  AbstractParser
 
class  DatagramWithTimeStamp
 
class  ScannerBasicParam
 
class  SickGenericParser
 
class  SickScanCommon
 
class  SickScanCommonTcp
 
class  SickScanImu
 
class  SickScanImuValue
 
class  SickScanRadar
 
class  SickScanRadarObject
 
class  SickScanRadarRawTarget
 

Enumerations

enum  ExitCode { ExitSuccess = 0, ExitError = 1, ExitFatal = 2 }
 

Functions

float convertScaledIntValue (int value, float scale, float offset)
 
bool emulateReply (UINT8 *requestData, int requestLen, std::vector< unsigned char > *replyVector)
 
float getFloatValue (std::string str)
 
int getHexValue (std::string str)
 
int16_t getShortValue (std::string str)
 
unsigned char sick_crc8 (unsigned char *msgBlock, int len)
 calculate crc-code for last byte of binary message XOR-calucation is done ONLY over message content (i.e. skipping the first 8 Bytes holding 0x02020202 <Length Information as 4-byte long>) More...
 
std::string stripControl (std::vector< unsigned char > s)
 Converts a SOPAS command to a human readable string. More...
 

Enumeration Type Documentation

Enumerator
ExitSuccess 
ExitError 
ExitFatal 

Definition at line 43 of file abstract_parser.h.

Function Documentation

float sick_scan::convertScaledIntValue ( int  value,
float  scale,
float  offset 
)

Definition at line 101 of file sick_generic_radar.cpp.

bool sick_scan::emulateReply ( UINT8 requestData,
int  requestLen,
std::vector< unsigned char > *  replyVector 
)

Definition at line 88 of file sick_scan_common_tcp.cpp.

float sick_scan::getFloatValue ( std::string  str)

Definition at line 108 of file sick_generic_radar.cpp.

int sick_scan::getHexValue ( std::string  str)

Definition at line 85 of file sick_generic_radar.cpp.

int16_t sick_scan::getShortValue ( std::string  str)

Definition at line 70 of file sick_generic_radar.cpp.

unsigned char sick_scan::sick_crc8 ( unsigned char *  msgBlock,
int  len 
)

calculate crc-code for last byte of binary message XOR-calucation is done ONLY over message content (i.e. skipping the first 8 Bytes holding 0x02020202 <Length Information as 4-byte long>)

Parameters
msgBlockmessage content
lenLength of message content in byte
Returns
XOR-calucation abount message content (msgBlock[0] ^ msgBlock[1] .... msgBlock[len-1]

Definition at line 174 of file sick_scan_common.cpp.

std::string sick_scan::stripControl ( std::vector< unsigned char >  s)

Converts a SOPAS command to a human readable string.

Parameters
sASCII-Sopas command including 0x02 and 0x03
Returns
Human readable string 0x02 and 0x02 are converted to "<STX>" and "<ETX>"

Definition at line 192 of file sick_scan_common.cpp.



sick_scan
Author(s): Michael Lehning , Jochen Sprickerhof , Martin Günther
autogenerated on Tue Jul 9 2019 04:55:32