ParseMeasurementCurrentConfigData.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_PARSEMEASUREMENTCURRENTCONFIGDATA_H
36 #define SICK_SAFETYSCANNERS_DATA_PROCESSING_PARSEMEASUREMENTCURRENTCONFIGDATA_H
37 
38 #include <boost/asio/ip/address_v4.hpp>
42 
44 
45 namespace sick {
46 
47 namespace data_processing {
48 
49 
54 {
55 public:
60 
70  datastructure::ConfigData& config_data) const;
71 
72 private:
73  std::string readVersionIndicator(std::vector<uint8_t>::const_iterator data_ptr) const;
74  uint8_t readMajorNumber(std::vector<uint8_t>::const_iterator data_ptr) const;
75  uint8_t readMinorNumber(std::vector<uint8_t>::const_iterator data_ptr) const;
76  uint8_t readReleaseNumber(std::vector<uint8_t>::const_iterator data_ptr) const;
77  bool readEnabled(std::vector<uint8_t>::const_iterator data_ptr) const;
78  uint8_t readInterfaceType(std::vector<uint8_t>::const_iterator data_ptr) const;
79  boost::asio::ip::address_v4 readHostIp(std::vector<uint8_t>::const_iterator data_ptr) const;
80  uint16_t readHostPort(std::vector<uint8_t>::const_iterator data_ptr) const;
81  uint16_t readPublishingFreq(std::vector<uint8_t>::const_iterator data_ptr) const;
82  int32_t readEndAngle(std::vector<uint8_t>::const_iterator data_ptr) const;
83  int32_t readStartAngle(std::vector<uint8_t>::const_iterator data_ptr) const;
84  uint16_t readFeatures(std::vector<uint8_t>::const_iterator data_ptr) const;
85  uint16_t readDerivedMultiplicationFactor(std::vector<uint8_t>::const_iterator data_ptr) const;
86  uint16_t readDerivedNumBeams(std::vector<uint8_t>::const_iterator data_ptr) const;
87  uint16_t readDerivedScanTime(std::vector<uint8_t>::const_iterator data_ptr) const;
88  int32_t readDerivedStartAngle(std::vector<uint8_t>::const_iterator data_ptr) const;
89  int32_t readDerivedAngularBeamResolution(std::vector<uint8_t>::const_iterator data_ptr) const;
90  uint32_t readDerivedInterbeamPeriod(std::vector<uint8_t>::const_iterator data_ptr) const;
91 };
92 
93 } // namespace data_processing
94 } // namespace sick
95 
96 #endif // SICK_SAFETYSCANNERS_DATA_PROCESSING_PARSEMEASUREMENTCURRENTCONFIGDATA_H
boost::asio::ip::address_v4 readHostIp(std::vector< uint8_t >::const_iterator data_ptr) const
bool parseTCPSequence(const datastructure::PacketBuffer &buffer, datastructure::ConfigData &config_data) const
Parses a tcp sequence to read the current configuration of the sensor.
A packetbuffer for the raw data from the sensor.
Definition: PacketBuffer.h:61
uint16_t readPublishingFreq(std::vector< uint8_t >::const_iterator data_ptr) const
bool readEnabled(std::vector< uint8_t >::const_iterator data_ptr) const
std::string readVersionIndicator(std::vector< uint8_t >::const_iterator data_ptr) const
int32_t readDerivedStartAngle(std::vector< uint8_t >::const_iterator data_ptr) const
uint16_t readDerivedNumBeams(std::vector< uint8_t >::const_iterator data_ptr) const
uint8_t readMinorNumber(std::vector< uint8_t >::const_iterator data_ptr) const
Parser to read the current configuration of the sensor.
int32_t readStartAngle(std::vector< uint8_t >::const_iterator data_ptr) const
uint8_t readReleaseNumber(std::vector< uint8_t >::const_iterator data_ptr) const
int32_t readEndAngle(std::vector< uint8_t >::const_iterator data_ptr) const
int32_t readDerivedAngularBeamResolution(std::vector< uint8_t >::const_iterator data_ptr) const
uint16_t readFeatures(std::vector< uint8_t >::const_iterator data_ptr) const
uint32_t readDerivedInterbeamPeriod(std::vector< uint8_t >::const_iterator data_ptr) const
uint16_t readDerivedMultiplicationFactor(std::vector< uint8_t >::const_iterator data_ptr) const
Config data for current and persistent sensor config.
Definition: ConfigData.h:50
uint8_t readInterfaceType(std::vector< uint8_t >::const_iterator data_ptr) const
uint16_t readHostPort(std::vector< uint8_t >::const_iterator data_ptr) const
uint8_t readMajorNumber(std::vector< uint8_t >::const_iterator data_ptr) const
uint16_t readDerivedScanTime(std::vector< uint8_t >::const_iterator data_ptr) const


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