40 namespace data_processing {
44 m_reader_ptr = std::make_shared<sick::data_processing::ReadWriteHelper>();
49 std::string& device_name)
const 51 const uint8_t* data_ptr(buffer.
getBuffer().data());
59 uint16_t string_length =
m_reader_ptr->readuint16_tLittleEndian(data_ptr, 0);
62 for (uint16_t i = 0; i < string_length; i++)
64 name.push_back(
m_reader_ptr->readuint16_tLittleEndian(data_ptr, 2 + i));
bool parseTCPSequence(const datastructure::PacketBuffer &buffer, std::string &device_name) const
Parses a tcp sequence to read the device name of the sensor.
std::string readDeviceName(const uint8_t *&data_ptr) const
A packetbuffer for the raw data from the sensor.
std::shared_ptr< sick::data_processing::ReadWriteHelper > m_reader_ptr
const VectorBuffer & getBuffer() const
Getter to return the VectorBuffer saved in the PacketBuffer.
ParseDeviceName()
Constructor of the parser.