ParseFieldGeometryData.h
Go to the documentation of this file.
1 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
2 
3 // -- BEGIN LICENSE BLOCK ----------------------------------------------
4 
24 // -- END LICENSE BLOCK ------------------------------------------------
25 
26 //----------------------------------------------------------------------
33 //----------------------------------------------------------------------
34 
35 #ifndef SICK_SAFETYSCANNERS_DATA_PROCESSING_PARSEFIELDGEOMETRYDATA_H
36 #define SICK_SAFETYSCANNERS_DATA_PROCESSING_PARSEFIELDGEOMETRYDATA_H
37 
41 
43 
44 #include <vector>
45 
46 namespace sick {
47 
48 namespace data_processing {
49 
50 
55 {
56 public:
61 
72  datastructure::FieldData& field_data) const;
73 
74 private:
75  std::shared_ptr<sick::data_processing::ReadWriteHelper> m_reader_ptr;
76  uint32_t readArrayLength(const uint8_t*& data_ptr) const;
77  uint16_t readArrayElement(const uint8_t*& data_ptr, uint32_t elem_number) const;
78 };
79 
80 } // namespace data_processing
81 } // namespace sick
82 
83 #endif // SICK_SAFETYSCANNERS_DATA_PROCESSING_PARSEFIELDGEOMETRYDATA_H
A packetbuffer for the raw data from the sensor.
Definition: PacketBuffer.h:61
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...
std::shared_ptr< sick::data_processing::ReadWriteHelper > m_reader_ptr
Parser to read field geometry data.
Field data for warning and protective fields.
Definition: FieldData.h:48
uint32_t readArrayLength(const uint8_t *&data_ptr) const
uint16_t readArrayElement(const uint8_t *&data_ptr, uint32_t elem_number) const


sick_safetyscanners
Author(s): Lennart Puck
autogenerated on Thu May 9 2019 02:41:08