40 namespace data_processing {
49 const std::shared_ptr<std::vector<uint8_t>
const> vec_ptr = buffer.
getBuffer();
50 std::vector<uint8_t>::const_iterator data_ptr = vec_ptr->begin();
61 for (uint16_t i = 0; i < string_length; i++)
A packetbuffer for the raw data from the sensor.
std::shared_ptr< std::vector< uint8_t > const > getBuffer() const
Getter to return a copy of the data saved in the PacketBuffer.
std::string readSerialNumber(std::vector< uint8_t >::const_iterator data_ptr) const
ParseSerialNumber()
Constructor of the parser.
bool parseTCPSequence(const datastructure::PacketBuffer &buffer, datastructure::SerialNumber &serial_number) const
Parses a tcp sequence to read the serial number of the sensor.
Class containing the serial number of a laser scanner.
uint16_t readUint16LittleEndian(std::vector< uint8_t >::const_iterator it)
Read an unsigned 16-bit integer at offset in little endian encoding.
void setSerialNumber(const std::string &serial_number)
Sets the serial number for the scanner.