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();
uint8_t readDeviceStatus(std::vector< uint8_t >::const_iterator data_ptr) const
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.
void setDeviceStatus(const uint8_t &device_status)
Sets the device status for the scanner.
Class containing the device status of a laser scanner.
uint8_t readUint8(std::vector< uint8_t >::const_iterator it)
Read an unsigned 8-bit integer at offset.
bool parseTCPSequence(const datastructure::PacketBuffer &buffer, datastructure::DeviceStatus &device_status) const
Parses a tcp sequence to read the device status of the sensor.
ParseDeviceStatusData()
Constructor of the parser.