00001 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*- 00002 00003 // -- BEGIN LICENSE BLOCK ---------------------------------------------- 00004 00024 // -- END LICENSE BLOCK ------------------------------------------------ 00025 00026 //---------------------------------------------------------------------- 00033 //---------------------------------------------------------------------- 00034 00035 #ifndef SICK_SAFETYSCANNERS_DATA_PROCESSING_PARSEMEASUREMENTPERSISTENTCONFIGDATA_H 00036 #define SICK_SAFETYSCANNERS_DATA_PROCESSING_PARSEMEASUREMENTPERSISTENTCONFIGDATA_H 00037 00038 #include <sick_safetyscanners/datastructure/ConfigData.h> 00039 #include <sick_safetyscanners/datastructure/Data.h> 00040 #include <sick_safetyscanners/datastructure/PacketBuffer.h> 00041 00042 #include <sick_safetyscanners/data_processing/ReadWriteHelper.h> 00043 00044 namespace sick { 00045 00046 namespace data_processing { 00047 00048 00052 class ParseMeasurementPersistentConfigData 00053 { 00054 public: 00058 ParseMeasurementPersistentConfigData(); 00059 00068 bool parseTCPSequence(const datastructure::PacketBuffer& buffer, 00069 datastructure::ConfigData& config_data) const; 00070 00071 private: 00072 std::shared_ptr<sick::data_processing::ReadWriteHelper> m_reader_ptr; 00073 00074 uint32_t readStartAngle(const uint8_t* data_ptr) const; 00075 uint32_t readEndAngle(const uint8_t* data_ptr) const; 00076 }; 00077 00078 } // namespace data_processing 00079 } // namespace sick 00080 00081 #endif // SICK_SAFETYSCANNERS_DATA_PROCESSING_PARSEMEASUREMENTPERSISTENTCONFIGDATA_H