Go to the documentation of this file.
62 #ifndef __SIM_LOC_COLA_PARSER_H_INCLUDED
63 #define __SIM_LOC_COLA_PARSER_H_INCLUDED
118 const std::string & command_name,
const std::vector<std::string> & parameter = std::vector<std::string>());
153 const std::vector<std::string> & parameter = std::vector<std::string>(),
bool parameter_is_ascii =
true);
202 static int32_t
convertColaArg(
const std::string & cola_arg,
int base = 10, int32_t default_value = 0);
211 static uint32_t
convertColaArg(
const std::string & cola_arg,
int base = 10, uint32_t default_value = 0);
231 #endif // __SIM_LOC_COLA_PARSER_H_INCLUDED
@ sWA
Write answer (response)
static std::vector< uint8_t > binaryETX(void)
Returns the binary "end of text" tag in a Cola-Binary command, i.e. {0x03}.
static std::vector< uint8_t > binarySTX(void)
Returns the binary "start of text" tag in a Cola-Binary command, i.e. {0x02}.
static sick_scan_xd::SickLocColaTelegramMsg createColaTelegram(const COLA_SOPAS_COMMAND &command_type, const std::string &command_name, const std::vector< std::string > ¶meter=std::vector< std::string >())
Creates and returns a Cola telegram (type SickLocColaTelegramMsg).
static const std::string s_command_type_string[MAX_COLA_COMMAND_NUMBER]
static table to convert COLA_SOPAS_COMMAND to string, f.e. s_command_type_string[sRN]:="sRN",...
static std::vector< uint8_t > encodeColaTelegram(const sick_scan_xd::SickLocColaTelegramMsg &cola_telegram, bool parameter_is_ascii=true)
Encodes and returns a Cola Binary telegram from ros message SickLocColaTelegramMsg.
@ sRA
Read by name (response)
static const std::map< std::string, COLA_SOPAS_COMMAND > s_command_type_map
static map to convert COLA_SOPAS_COMMANDs from string to enum, f.e. s_command_type_map["sRN"]:=sRN,...
@ sWN
Write by name (request)
static bool convertColaResponseBool(const std::string &cola_response_arg, bool default_value)
static sick_scan_xd::SickLocColaTelegramMsg decodeColaTelegram(const std::vector< uint8_t > &cola_binary)
Decodes and returns a Cola message of type SickLocColaTelegramMsg from a Cola-Binary telegram....
static int32_t convertColaArg(const std::string &cola_arg, int base=10, int32_t default_value=0)
static const std::string & asciiETX(void)
Returns the "end of text" tag in a Cola ASCII command, i.e. "<ETX>".
@ MAX_COLA_COMMAND_NUMBER
Number of possible COLA_SOPAS_COMMANDs incl. invalid command.
@ sINVALID
uninitialized, command_type should never have this value)
@ sRN
Read by name (request)
enum sick_scan_xd::ColaParser::COLA_SOPAS_COMMAND_ENUM COLA_SOPAS_COMMAND
Enumeration of SOPAS commands in cola telegrams: The command_type in SickLocColaTelegramMsg is one of...
class ColaParser parses and converts binary Cola telegrams to ros messages SickLocColaTelegramMsg and...
@ sMA
Method by name (response)
COLA_SOPAS_COMMAND_ENUM
Enumeration of SOPAS commands in cola telegrams: The command_type in SickLocColaTelegramMsg is one of...
@ sEA
Event answer (response)
static std::string convertSopasCommand(COLA_SOPAS_COMMAND command_type)
Converts and returns a COLA_SOPAS_COMMAND to string. Example: convertSopasCommand(sMN) returns "sMN".
@ sEN
Event by name (request)
static std::string ConvertColaAscii(const std::vector< uint8_t > &cola_telegram)
Converts and returns a Cola-ASCII telegram to string.
@ sFA
Error Answer with error code (response)
static const std::string s_cola_ascii_end_tag
All Cola-ACSII telegrams start with s_cola_ascii_start_tag := "<ETX>" ("End of TeXt")
static const std::string & asciiSTX(void)
Returns the "start of text" tag in a Cola ASCII command, i.e. "<STX>".
static const std::string s_cola_ascii_start_tag
All Cola-ACSII telegrams start with s_cola_ascii_start_tag := "<STX>" ("Start of TeXt")
@ sMN
Method by name (request)
sick_scan_xd
Author(s): Michael Lehning
, Jochen Sprickerhof , Martin Günther
autogenerated on Fri Oct 25 2024 02:47:07