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.
uint8_t readUint8LittleEndian(std::vector< uint8_t >::const_iterator it)
Read an unsigned 8-bit integer at offset in big little encoding.
bool parseTCPSequence(const datastructure::PacketBuffer &buffer, datastructure::ProjectName &project_name) const
Parses a tcp sequence to read the project name of the sensor.
void setProjectName(const std::string &project_name)
Sets the project name for the scanner.
std::string readProjectName(std::vector< uint8_t >::const_iterator data_ptr) const
Class containing the project name 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.
ParseProjectName()
Constructor of the parser.