ParseIntrusionData.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_PARSEINTRUSIONDATA_H
36 #define SICK_SAFETYSCANNERS_DATA_PROCESSING_PARSEINTRUSIONDATA_H
37 
41 
43 
44 #include <vector>
45 
46 namespace sick {
47 namespace data_processing {
48 
53 {
54 public:
59 
70  uint16_t getNumScanPoints() const;
71  void setNumScanPoints(const uint16_t& num_scan_points);
72 
73 private:
75 
76  void setDataInIntrusionData(std::vector<uint8_t>::const_iterator data_ptr,
77  datastructure::IntrusionData& intrusion_data) const;
79  std::vector<uint8_t>::const_iterator data_ptr,
80  std::vector<sick::datastructure::IntrusionDatum>& intrusion_datums) const;
81  uint16_t setSizeInIntrusionDatum(const uint16_t& offset,
82  std::vector<uint8_t>::const_iterator data_ptr,
84  uint16_t setFlagsInIntrusionDatum(const uint16_t& offset,
85  std::vector<uint8_t>::const_iterator data_ptr,
87  bool checkIfPreconditionsAreMet(const datastructure::Data& data) const;
90 };
91 
92 } // namespace data_processing
93 } // namespace sick
94 
95 #endif // SICK_SAFETYSCANNERS_DATA_PROCESSING_PARSEINTRUSIONDATA_H
void setDataInIntrusionDatums(std::vector< uint8_t >::const_iterator data_ptr, std::vector< sick::datastructure::IntrusionDatum > &intrusion_datums) const
bool checkIfIntrusionDataIsPublished(const datastructure::Data &data) const
datastructure::IntrusionData parseUDPSequence(const datastructure::PacketBuffer &buffer, datastructure::Data &data)
Parse a udp sequence to read the intrusion data if enabled.
Parser to read the intrusion data from a udp sequence.
A packetbuffer for the raw data from the sensor.
Definition: PacketBuffer.h:61
void setDataInIntrusionData(std::vector< uint8_t >::const_iterator data_ptr, datastructure::IntrusionData &intrusion_data) const
Class containing a single IntrusionDatum.
data
uint16_t setSizeInIntrusionDatum(const uint16_t &offset, std::vector< uint8_t >::const_iterator data_ptr, sick::datastructure::IntrusionDatum &datum) const
The data class containing all data blocks of a measurement.
Definition: Data.h:55
Class containing all IntrusionDatums.
Definition: IntrusionData.h:48
bool checkIfPreconditionsAreMet(const datastructure::Data &data) const
bool checkIfDataContainsNeededParsedBlocks(const datastructure::Data &data) const
uint16_t setFlagsInIntrusionDatum(const uint16_t &offset, std::vector< uint8_t >::const_iterator data_ptr, sick::datastructure::IntrusionDatum &datum) const
ParseIntrusionData()
Constructor of the parser.
void setNumScanPoints(const uint16_t &num_scan_points)


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