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();
73 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 110 boost::asio::ip::address_v4
114 boost::asio::ip::address_v4 addr(word);
125 std::vector<uint8_t>::const_iterator data_ptr)
const 131 std::vector<uint8_t>::const_iterator data_ptr)
const 150 std::vector<uint8_t>::const_iterator data_ptr)
const 156 std::vector<uint8_t>::const_iterator data_ptr)
const 162 std::vector<uint8_t>::const_iterator data_ptr)
const 168 std::vector<uint8_t>::const_iterator data_ptr)
const 174 std::vector<uint8_t>::const_iterator data_ptr)
const 180 std::vector<uint8_t>::const_iterator data_ptr)
const boost::asio::ip::address_v4 readHostIp(std::vector< uint8_t >::const_iterator data_ptr) const
void setDerivedNumberOfBeams(const uint16_t &number_of_beams)
Sets the number of beams for the current scan.
void setHostIp(const boost::asio::ip::address_v4 &host_ip)
Sets the IP-address of the host from an IP-address.
void setDerivedMultiplicationFactor(const uint16_t &multiplication_factor)
Sets the multiplication factor.
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.
std::shared_ptr< std::vector< uint8_t > const > getBuffer() const
Getter to return a copy of the data saved in the PacketBuffer.
uint16_t readPublishingFreq(std::vector< uint8_t >::const_iterator data_ptr) const
void setVersionReleaseNumber(const uint8_t &version_release_number)
Sets the version release number for the scanner.
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
void setHostUdpPort(const uint16_t &host_udp_port)
Sets the host udp port.
void setEInterfaceType(const uint8_t &e_interface_type)
Sets the eInterface type.
uint16_t readDerivedNumBeams(std::vector< uint8_t >::const_iterator data_ptr) const
void setFeatures(const uint16_t &features)
Set the enabled features.
void setDerivedInterbeamPeriod(const uint32_t &interbeam_period)
Set the time between two consecutive beams.
uint32_t readUint32LittleEndian(std::vector< uint8_t >::const_iterator it)
Read an unsigned 32-bit integer at offset in little endian encoding.
int32_t readInt32LittleEndian(std::vector< uint8_t >::const_iterator it)
Read an unsigned 32-bit integer at offset in little endian encoding.
uint8_t readMinorNumber(std::vector< uint8_t >::const_iterator data_ptr) const
int32_t readStartAngle(std::vector< uint8_t >::const_iterator data_ptr) const
void setVersionMajorVersionNumber(const uint8_t &version_major_version_number)
Sets the major version number for the scanner.
uint8_t readReleaseNumber(std::vector< uint8_t >::const_iterator data_ptr) const
void setPublishingFrequency(const uint16_t &publishing_frequency)
Sets the publishing frequency.
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
void setVersionMinorVersionNumber(const uint8_t &version_minor_version_number)
Sets the minor version number for the scanner.
uint16_t readDerivedMultiplicationFactor(std::vector< uint8_t >::const_iterator data_ptr) const
Config data for current and persistent sensor config.
void setStartAngle(const int32_t &start_angle)
Sets the start angle of the scan.
void setDerivedStartAngle(const int32_t &start_angle)
Set the start angle of the scan.
void setDerivedAngularBeamResolution(const int32_t &angular_beam_resolution)
Set the angular resolution between beams.
uint8_t readInterfaceType(std::vector< uint8_t >::const_iterator data_ptr) const
uint8_t readUint8(std::vector< uint8_t >::const_iterator it)
Read an unsigned 8-bit integer at offset.
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.
uint16_t readHostPort(std::vector< uint8_t >::const_iterator data_ptr) const
void setDerivedScanTime(const uint16_t &scan_time)
Sets the time of the scan.
ParseMeasurementCurrentConfigData()
Constructor of the parser.
void setEndAngle(const int32_t &end_angle)
Sets the end angle of the scan.
uint8_t readMajorNumber(std::vector< uint8_t >::const_iterator data_ptr) const
uint16_t readDerivedScanTime(std::vector< uint8_t >::const_iterator data_ptr) const
void setEnabled(bool enabled)
Sets if the channel is enabled.