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();
62 for (uint16_t i = 0; i < string_length; i++)
A packetbuffer for the raw data from the sensor.
ParseFirmwareVersion()
Constructor of the parser.
std::shared_ptr< std::vector< uint8_t > const > getBuffer() const
Getter to return a copy of the data saved in the PacketBuffer.
bool parseTCPSequence(const datastructure::PacketBuffer &buffer, datastructure::FirmwareVersion &firmware_version) const
Parses a tcp sequence to read the firmware version of the sensor.
std::string readFirmwareVersion(std::vector< uint8_t >::const_iterator data_ptr) const
Class containing the firmware version of a laser scanner.
void setFirmwareVersion(const std::string &firmware_version)
Sets the firmware version for the scanner.
uint16_t readUint16LittleEndian(std::vector< uint8_t >::const_iterator it)
Read an unsigned 16-bit integer at offset in little endian encoding.