38 namespace data_processing {
42 m_reader_ptr = std::make_shared<sick::data_processing::ReadWriteHelper>();
55 return derived_values;
57 const uint8_t* data_ptr(buffer.
getBuffer().data() +
60 return derived_values;
void setScanTime(const uint16_t &scan_time)
Sets the time of the scan.
void setMultiplicationFactorInDerivedValues(const uint8_t *&data_ptr, datastructure::DerivedValues &derived_values) const
void setAngularBeamResolution(const int32_t &angular_beam_resolution)
Set the angular resolution between beams.
bool checkIfPreconditionsAreMet(const datastructure::Data &data) const
A packetbuffer for the raw data from the sensor.
void setIsEmpty(bool is_empty)
Set if derived values are enabled.
void setNumberOfBeams(const uint16_t &number_of_beams)
Sets the number of beams for the current scan.
bool checkIfDataContainsNeededParsedBlocks(const datastructure::Data &data) const
void setAngularBeamResolutionInDerivedValues(const uint8_t *&data_ptr, datastructure::DerivedValues &derived_values) const
ParseDerivedValues()
Constructor of the parser.
void setMultiplicationFactor(const uint16_t &multiplication_factor)
Sets the multiplication factor.
The data class containing all data blocks of a measurement.
datastructure::DerivedValues parseUDPSequence(const datastructure::PacketBuffer &buffer, datastructure::Data &data) const
Parsed the packet buffer and returns the derived values.
bool checkIfDerivedValuesIsPublished(const datastructure::Data &data) const
const VectorBuffer & getBuffer() const
Getter to return the VectorBuffer saved in the PacketBuffer.
void setNumberOfBeamsInDerivedValues(const uint8_t *&data_ptr, datastructure::DerivedValues &derived_values) const
The DerivedValues class Includes the derived configuration of the measurement data channel...
void setInterbeamPeriodInDerivedValues(const uint8_t *&data_ptr, datastructure::DerivedValues &derived_values) const
void setDataInDerivedValues(const uint8_t *&data_ptr, datastructure::DerivedValues &derived_values) const
void setStartAngle(const int32_t &start_angle)
Set the start angle of the scan.
std::shared_ptr< DataHeader > getDataHeaderPtr() const
Gets the data header.
void setStartAngleInDerivedValues(const uint8_t *&data_ptr, datastructure::DerivedValues &derived_values) const
void setScanTimeInDerivedValues(const uint8_t *&data_ptr, datastructure::DerivedValues &derived_values) const
std::shared_ptr< sick::data_processing::ReadWriteHelper > m_reader_ptr
void setInterbeamPeriod(const uint32_t &interbeam_period)
Set the time between two consecutive beams.