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  SickScanRadarObject
 
class  SickScanRadarRawTarget
 
class  SickScanRadarSingleton
 

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

◆ ExitCode

Enumerator
ExitSuccess 
ExitError 
ExitFatal 

Definition at line 44 of file abstract_parser.h.

Function Documentation

◆ convertScaledIntValue()

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

Definition at line 130 of file sick_generic_radar.cpp.

◆ emulateReply()

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

Definition at line 90 of file sick_scan_common_tcp.cpp.

◆ getFloatValue()

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

Definition at line 137 of file sick_generic_radar.cpp.

◆ getHexValue()

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

Definition at line 114 of file sick_generic_radar.cpp.

◆ getShortValue()

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

Definition at line 99 of file sick_generic_radar.cpp.

◆ sick_crc8()

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 175 of file sick_scan_common.cpp.

◆ stripControl()

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 193 of file sick_scan_common.cpp.



sick_scan
Author(s): Michael Lehning , Jochen Sprickerhof , Martin G√ľnther
autogenerated on Sun Oct 11 2020 03:32:45