Go to the documentation of this file.
63 #ifndef SICK_SCAN_MESSAGES_H_
64 #define SICK_SCAN_MESSAGES_H_
75 if((
int)
sizeof(value) > bufferlen)
77 ROS_ERROR_STREAM(
"## ERROR SickScanMessages::readBinaryBuffer(): bufferlen=" << bufferlen <<
" byte, " <<
sizeof(value) <<
" byte required.");
80 memcpy(&value, buffer,
sizeof(value));
81 swap_endian((
unsigned char *) &value,
sizeof(value));
82 buffer +=
sizeof(value);
83 bufferlen -= (int)
sizeof(value);
143 static std::string
getSopasCmdKeyword(
const uint8_t* sopasRequest,
int requestLength);
void swap_endian(unsigned char *ptr, int numBytes)
Universal swapping function.
SickScanMessages(rosNodePtr nh=0)
::sick_scan_xd::LFErecMsg_< std::allocator< void > > LFErecMsg
bool readBinaryBuffer(uint8_ptr &buffer, int &bufferlen, T &value)
static std::string getSopasCmdKeyword(const uint8_t *sopasRequest, int requestLength)
::sick_scan_xd::LIDoutputstateMsg_< std::allocator< void > > LIDoutputstateMsg
static bool parseLFErecMsg(const rosTime &timeStamp, uint8_t *receiveBuffer, int receiveLength, bool useBinaryProtocol, EVAL_FIELD_SUPPORT eval_field_logic, const std::string &frame_id, sick_scan_msg::LFErecMsg &output_msg)
virtual ~SickScanMessages()
#define ROS_ERROR_STREAM(...)
ros::Time * timeStamp(M &m)
returns TimeStamp<M>::pointer(m);
static bool parseLIDoutputstateMsg(const rosTime &timeStamp, uint8_t *receiveBuffer, int receiveLength, bool useBinaryProtocol, const std::string &frame_id, sick_scan_msg::LIDoutputstateMsg &output_msg)
sick_scan_xd
Author(s): Michael Lehning
, Jochen Sprickerhof , Martin Günther
autogenerated on Fri Oct 25 2024 02:47:11