ParseGeneralSystemState.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_PARSEGENERALSYSTEMSTATE_H
36 #define SICK_SAFETYSCANNERS_DATA_PROCESSING_PARSEGENERALSYSTEMSTATE_H
37 
41 
43 
44 #include <vector>
45 
46 namespace sick {
47 namespace data_processing {
48 
53 {
54 public:
59 
70  datastructure::Data& data) const;
71 
72 private:
73  std::shared_ptr<sick::data_processing::ReadWriteHelper> m_reader_ptr;
74 
75  void setDataInGeneralSystemState(const uint8_t*& data_ptr,
76  datastructure::GeneralSystemState& general_System_state) const;
77  void
78  setStatusBitsInGeneralSystemState(const uint8_t*& data_ptr,
79  datastructure::GeneralSystemState& general_System_state) const;
81  const uint8_t*& data_ptr, datastructure::GeneralSystemState& general_System_state) const;
83  const uint8_t*& data_ptr, datastructure::GeneralSystemState& general_System_state) const;
85  const uint8_t*& data_ptr, datastructure::GeneralSystemState& general_System_state) const;
87  const uint8_t*& data_ptr, datastructure::GeneralSystemState& general_System_state) const;
88  void setErrorsInGeneralSystemState(const uint8_t*& data_ptr,
89  datastructure::GeneralSystemState& general_System_state) const;
90  bool checkIfPreconditionsAreMet(const datastructure::Data& data) const;
93 };
94 
95 } // namespace data_processing
96 } // namespace sick
97 
98 #endif // SICK_SAFETYSCANNERS_DATA_PROCESSING_PARSEGENERALSYSTEMSTATE_H
The GeneralSystemState class. It includes a summary of the current system state, the state of the saf...
A packetbuffer for the raw data from the sensor.
Definition: PacketBuffer.h:61
bool checkIfPreconditionsAreMet(const datastructure::Data &data) const
bool checkIfGeneralSystemStateIsPublished(const datastructure::Data &data) const
void setCurrentMonitoringCasesInGeneralSystemState(const uint8_t *&data_ptr, datastructure::GeneralSystemState &general_System_state) const
void setDataInGeneralSystemState(const uint8_t *&data_ptr, datastructure::GeneralSystemState &general_System_state) const
std::shared_ptr< sick::data_processing::ReadWriteHelper > m_reader_ptr
The data class containing all data blocks of a measurement.
Definition: Data.h:55
void setErrorsInGeneralSystemState(const uint8_t *&data_ptr, datastructure::GeneralSystemState &general_System_state) const
void setSafeCutOffPathInGeneralSystemState(const uint8_t *&data_ptr, datastructure::GeneralSystemState &general_System_state) const
Parser to parse the general system state from the udp packets.
datastructure::GeneralSystemState parseUDPSequence(const sick::datastructure::PacketBuffer &buffer, datastructure::Data &data) const
Parses the udp sequence to read the general system state if enabled.
void setNonSafeCutOffPathInGeneralSystemState(const uint8_t *&data_ptr, datastructure::GeneralSystemState &general_System_state) const
bool checkIfDataContainsNeededParsedBlocks(const datastructure::Data &data) const
void setStatusBitsInGeneralSystemState(const uint8_t *&data_ptr, datastructure::GeneralSystemState &general_System_state) const
void setResetRequiredCutOffPathInGeneralSystemState(const uint8_t *&data_ptr, datastructure::GeneralSystemState &general_System_state) const


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