ParseMeasurementData.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_PARSEMEASUREMENTDATA_H
36 #define SICK_SAFETYSCANNERS_DATA_PROCESSING_PARSEMEASUREMENTDATA_H
37 
41 
43 
44 #include <ros/ros.h>
45 #include <string>
46 #include <vector>
47 
48 namespace sick {
49 namespace data_processing {
50 
55 {
56 public:
61 
72 
73 private:
74  float m_angle;
76  void setDataInMeasurementData(std::vector<uint8_t>::const_iterator data_ptr,
77  datastructure::MeasurementData& measurement_data);
78  void setNumberOfBeamsInMeasurementData(std::vector<uint8_t>::const_iterator data_ptr,
79  datastructure::MeasurementData& measurement_data) const;
81  void setScanPointsInMeasurementData(std::vector<uint8_t>::const_iterator data_ptr,
82  datastructure::MeasurementData& measurement_data);
83  void addScanPointToMeasurementData(uint16_t offset,
84  std::vector<uint8_t>::const_iterator data_ptr,
85  datastructure::MeasurementData& measurement_data) const;
86  bool checkIfPreconditionsAreMet(const datastructure::Data& data) const;
89 };
90 
91 } // namespace data_processing
92 } // namespace sick
93 
94 #endif // SICK_SAFETYSCANNERS_DATA_PROCESSING_PARSEMEASUREMENTDATA_H
bool checkIfPreconditionsAreMet(const datastructure::Data &data) const
bool checkIfDataContainsNeededParsedBlocks(const datastructure::Data &data) const
A packetbuffer for the raw data from the sensor.
Definition: PacketBuffer.h:61
bool checkIfMeasurementDataIsPublished(const datastructure::Data &data) const
data
The data class containing all data blocks of a measurement.
Definition: Data.h:55
void setScanPointsInMeasurementData(std::vector< uint8_t >::const_iterator data_ptr, datastructure::MeasurementData &measurement_data)
Parser for the measurement data from a udp sequence.
void addScanPointToMeasurementData(uint16_t offset, std::vector< uint8_t >::const_iterator data_ptr, datastructure::MeasurementData &measurement_data) const
void setStartAngleAndDelta(const datastructure::Data &data)
Class containing all scanpoints of a single measurement.
void setNumberOfBeamsInMeasurementData(std::vector< uint8_t >::const_iterator data_ptr, datastructure::MeasurementData &measurement_data) const
void setDataInMeasurementData(std::vector< uint8_t >::const_iterator data_ptr, datastructure::MeasurementData &measurement_data)
datastructure::MeasurementData parseUDPSequence(const datastructure::PacketBuffer &buffer, datastructure::Data &data)
Parses the measurement data if it is enabled.


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