ParseStatusOverview.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_PARSESTATUSOVERVIEW_H
36 #define SICK_SAFETYSCANNERS_DATA_PROCESSING_PARSESTATUSOVERVIEW_H
37 
41 
43 
44 namespace sick {
45 
46 namespace data_processing {
47 
48 
53 {
54 public:
59 
69  datastructure::StatusOverview& status_overview) const;
70 
71 private:
72  std::string readVersionIndicator(std::vector<uint8_t>::const_iterator data_ptr) const;
73  uint8_t readMajorNumber(std::vector<uint8_t>::const_iterator data_ptr) const;
74  uint8_t readMinorNumber(std::vector<uint8_t>::const_iterator data_ptr) const;
75  uint8_t readReleaseNumber(std::vector<uint8_t>::const_iterator data_ptr) const;
76  uint8_t readDeviceState(std::vector<uint8_t>::const_iterator data_ptr) const;
77  uint8_t readConfigState(std::vector<uint8_t>::const_iterator data_ptr) const;
78  uint8_t readApplicationState(std::vector<uint8_t>::const_iterator data_ptr) const;
79  uint32_t readPowerOnCount(std::vector<uint8_t>::const_iterator data_ptr) const;
80  uint32_t readCurrentTime(std::vector<uint8_t>::const_iterator data_ptr) const;
81  uint16_t readCurrentDate(std::vector<uint8_t>::const_iterator data_ptr) const;
82  uint32_t readErrorInfoCode(std::vector<uint8_t>::const_iterator data_ptr) const;
83  uint32_t readErrorInfoTime(std::vector<uint8_t>::const_iterator data_ptr) const;
84  uint16_t readErrorInfoDate(std::vector<uint8_t>::const_iterator data_ptr) const;
85 };
86 
87 } // namespace data_processing
88 } // namespace sick
89 
90 #endif // SICK_SAFETYSCANNERS_DATA_PROCESSING_PARSESTATUSOVERVIEW_H
uint32_t readErrorInfoTime(std::vector< uint8_t >::const_iterator data_ptr) const
uint8_t readReleaseNumber(std::vector< uint8_t >::const_iterator data_ptr) const
A packetbuffer for the raw data from the sensor.
Definition: PacketBuffer.h:61
uint32_t readPowerOnCount(std::vector< uint8_t >::const_iterator data_ptr) const
uint8_t readMinorNumber(std::vector< uint8_t >::const_iterator data_ptr) const
uint8_t readApplicationState(std::vector< uint8_t >::const_iterator data_ptr) const
uint8_t readConfigState(std::vector< uint8_t >::const_iterator data_ptr) const
uint8_t readDeviceState(std::vector< uint8_t >::const_iterator data_ptr) const
uint32_t readCurrentTime(std::vector< uint8_t >::const_iterator data_ptr) const
uint16_t readErrorInfoDate(std::vector< uint8_t >::const_iterator data_ptr) const
Class containing the serial number of a laser scanner.
bool parseTCPSequence(const datastructure::PacketBuffer &buffer, datastructure::StatusOverview &status_overview) const
Parses a tcp sequence to read the status overview of the sensor.
Parser to read the status overview of a tcp sequence.
uint8_t readMajorNumber(std::vector< uint8_t >::const_iterator data_ptr) const
uint16_t readCurrentDate(std::vector< uint8_t >::const_iterator data_ptr) const
std::string readVersionIndicator(std::vector< uint8_t >::const_iterator data_ptr) const
uint32_t readErrorInfoCode(std::vector< uint8_t >::const_iterator data_ptr) const


sick_safetyscanners
Author(s): Lennart Puck
autogenerated on Fri Apr 2 2021 02:45:41