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  uint32_t readArrayLength(std::vector<uint8_t>::const_iterator data_ptr) const;
76  uint16_t readArrayElement(std::vector<uint8_t>::const_iterator data_ptr,
77  uint32_t elem_number) const;
78 };
79 
80 } // namespace data_processing
81 } // namespace sick
82 
83 #endif // SICK_SAFETYSCANNERS_DATA_PROCESSING_PARSEFIELDGEOMETRYDATA_H
FieldData.h
sick::data_processing::ParseFieldGeometryData::readArrayLength
uint32_t readArrayLength(std::vector< uint8_t >::const_iterator data_ptr) const
Definition: ParseFieldGeometryData.cpp:68
sick
Definition: ApplicationNameVariableCommand.h:43
sick::data_processing::ParseFieldGeometryData::readArrayElement
uint16_t readArrayElement(std::vector< uint8_t >::const_iterator data_ptr, uint32_t elem_number) const
Definition: ParseFieldGeometryData.cpp:73
sick::datastructure::FieldData
Field data for warning and protective fields.
Definition: FieldData.h:48
ReadWriteHelper.hpp
PacketBuffer.h
sick::data_processing::ParseFieldGeometryData::parseTCPSequence
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.
Definition: ParseFieldGeometryData.cpp:45
sick::data_processing::ParseFieldGeometryData::ParseFieldGeometryData
ParseFieldGeometryData()
Constructor of the parser.
Definition: ParseFieldGeometryData.cpp:42
sick::data_processing::ParseFieldGeometryData
Parser to read field geometry data.
Definition: ParseFieldGeometryData.h:54
sick::datastructure::PacketBuffer
A packetbuffer for the raw data from the sensor.
Definition: PacketBuffer.h:61
Data.h


sick_safetyscanners
Author(s): Lennart Puck
autogenerated on Fri Jun 21 2024 02:40:51