Go to the documentation of this file.
40 namespace data_processing {
49 const std::shared_ptr<std::vector<uint8_t>
const> vec_ptr = buffer.
getBuffer();
50 std::vector<uint8_t>::const_iterator data_ptr = vec_ptr->begin();
67 std::vector<uint8_t>::const_iterator data_ptr)
const
75 std::vector<uint8_t>::const_iterator data_ptr)
const
81 std::vector<uint8_t>::const_iterator data_ptr)
const
87 std::vector<uint8_t>::const_iterator data_ptr)
const
93 std::vector<uint8_t>::const_iterator data_ptr)
const
99 std::vector<uint8_t>::const_iterator data_ptr)
const
105 std::vector<uint8_t>::const_iterator data_ptr)
const
108 boost::asio::ip::address_v4 addr(word);
113 std::vector<uint8_t>::const_iterator data_ptr)
const
119 std::vector<uint8_t>::const_iterator data_ptr)
const
125 std::vector<uint8_t>::const_iterator data_ptr)
const
131 std::vector<uint8_t>::const_iterator data_ptr)
const
137 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 persistent configuration of the sensor.
uint8_t readReleaseNumber(std::vector< uint8_t >::const_iterator data_ptr) const
ParseMeasurementPersistentConfigData()
Constructor of the parser.
void setEnabled(bool enabled)
Sets if the channel is enabled.
uint8_t readUint8(std::vector< uint8_t >::const_iterator it)
Read an unsigned 8-bit integer at offset.
uint32_t readEndAngle(std::vector< uint8_t >::const_iterator data_ptr) const
uint16_t readPublishingFreq(std::vector< uint8_t >::const_iterator data_ptr) const
void setHostUdpPort(const uint16_t &host_udp_port)
Sets the host udp port.
bool readEnabled(std::vector< uint8_t >::const_iterator data_ptr) const
void setFeatures(const uint16_t &features)
Set the enabled features.
uint32_t readUint32LittleEndian(std::vector< uint8_t >::const_iterator it)
Read an unsigned 32-bit integer at offset in little endian encoding.
void setVersionReleaseNumber(const uint8_t &version_release_number)
Sets the version release number for the scanner.
uint8_t readMajorNumber(std::vector< uint8_t >::const_iterator data_ptr) const
std::shared_ptr< std::vector< uint8_t > const > getBuffer() const
Getter to return a copy of the data saved in the PacketBuffer.
uint8_t readInterfaceType(std::vector< uint8_t >::const_iterator data_ptr) const
void setEInterfaceType(const uint8_t &e_interface_type)
Sets the eInterface type.
void setVersionMajorVersionNumber(const uint8_t &version_major_version_number)
Sets the major version number for the scanner.
void setPublishingFrequency(const uint16_t &publishing_frequency)
Sets the publishing frequency.
uint16_t readHostPort(std::vector< uint8_t >::const_iterator data_ptr) const
boost::asio::ip::address_v4 readHostIp(std::vector< uint8_t >::const_iterator data_ptr) const
uint16_t readFeatures(std::vector< uint8_t >::const_iterator data_ptr) const
void setStartAngle(const int32_t &start_angle)
Sets the start angle of the scan.
void setVersionMinorVersionNumber(const uint8_t &version_minor_version_number)
Sets the minor version number for the scanner.
Config data for current and persistent sensor config.
void setEndAngle(const int32_t &end_angle)
Sets the end angle of the scan.
uint32_t readStartAngle(std::vector< uint8_t >::const_iterator data_ptr) const
A packetbuffer for the raw data from the sensor.
void setHostIp(const boost::asio::ip::address_v4 &host_ip)
Sets the IP-address of the host from an IP-address.
uint16_t readUint16LittleEndian(std::vector< uint8_t >::const_iterator it)
Read an unsigned 16-bit integer at offset in little endian encoding.
void setVersionCVersion(const std::string &version_c_version)
Sets the version indicator for the scanner.
std::string readVersionIndicator(std::vector< uint8_t >::const_iterator data_ptr) const
uint8_t readMinorNumber(std::vector< uint8_t >::const_iterator data_ptr) const