40 namespace data_processing {
44 m_reader_ptr = std::make_shared<sick::data_processing::ReadWriteHelper>();
51 const uint8_t* data_ptr(buffer.
getBuffer().data());
53 std::vector<uint16_t> geometry_distance_mm;
54 for (uint32_t i = 0; i < array_length; i++)
65 return m_reader_ptr->readuint32_tLittleEndian(data_ptr, 4);
69 uint32_t elem_number)
const 71 return m_reader_ptr->readuint16_tLittleEndian(data_ptr, 8 + elem_number * 2);
A packetbuffer for the raw data from the sensor.
bool parseTCPSequence(const datastructure::PacketBuffer &buffer, datastructure::FieldData &field_data) const
Parses a tcp sequence and return the field geometry data of the warning and protective fields...
ParseFieldGeometryData()
Constructor of the parser.
std::shared_ptr< sick::data_processing::ReadWriteHelper > m_reader_ptr
Field data for warning and protective fields.
const VectorBuffer & getBuffer() const
Getter to return the VectorBuffer saved in the PacketBuffer.
void setBeamDistances(const std::vector< uint16_t > &beam_distances)
Sets vector with beam distances for field.
uint32_t readArrayLength(const uint8_t *&data_ptr) const
uint16_t readArrayElement(const uint8_t *&data_ptr, uint32_t elem_number) const