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++)
void setOrderNumber(const std::string &order_number)
Sets the order number for the scanner.
bool parseTCPSequence(const datastructure::PacketBuffer &buffer, datastructure::OrderNumber &order_number) const
Parses a tcp sequence to read the order number of the sensor.
A packetbuffer for the raw data from the sensor.
std::string readOrderNumber(std::vector< uint8_t >::const_iterator data_ptr) const
std::shared_ptr< std::vector< uint8_t > const > getBuffer() const
Getter to return a copy of the data saved in the PacketBuffer.
ParseOrderNumber()
Constructor of the parser.
Class containing the order 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.