Public Member Functions | Private Member Functions | Private Attributes | List of all members
sick::data_processing::ParseMeasurementData Class Reference

Parser for the measurement data from a udp sequence. More...

#include <ParseMeasurementData.h>

Public Member Functions

 ParseMeasurementData ()
 Constructor of the parser. More...
 
datastructure::MeasurementData parseUDPSequence (const datastructure::PacketBuffer &buffer, datastructure::Data &data)
 Parses the measurement data if it is enabled. More...
 

Private Member Functions

void addScanPointToMeasurementData (uint16_t offset, std::vector< uint8_t >::const_iterator data_ptr, datastructure::MeasurementData &measurement_data) const
 
bool checkIfDataContainsNeededParsedBlocks (const datastructure::Data &data) const
 
bool checkIfMeasurementDataIsPublished (const datastructure::Data &data) const
 
bool checkIfPreconditionsAreMet (const datastructure::Data &data) const
 
void setDataInMeasurementData (std::vector< uint8_t >::const_iterator data_ptr, datastructure::MeasurementData &measurement_data)
 
void setNumberOfBeamsInMeasurementData (std::vector< uint8_t >::const_iterator data_ptr, datastructure::MeasurementData &measurement_data) const
 
void setScanPointsInMeasurementData (std::vector< uint8_t >::const_iterator data_ptr, datastructure::MeasurementData &measurement_data)
 
void setStartAngleAndDelta (const datastructure::Data &data)
 

Private Attributes

float m_angle
 
float m_angle_delta
 

Detailed Description

Parser for the measurement data from a udp sequence.

Definition at line 54 of file ParseMeasurementData.h.

Constructor & Destructor Documentation

sick::data_processing::ParseMeasurementData::ParseMeasurementData ( )

Constructor of the parser.

Definition at line 40 of file ParseMeasurementData.cpp.

Member Function Documentation

void sick::data_processing::ParseMeasurementData::addScanPointToMeasurementData ( uint16_t  offset,
std::vector< uint8_t >::const_iterator  data_ptr,
datastructure::MeasurementData measurement_data 
) const
private

Definition at line 141 of file ParseMeasurementData.cpp.

bool sick::data_processing::ParseMeasurementData::checkIfDataContainsNeededParsedBlocks ( const datastructure::Data data) const
private

Definition at line 82 of file ParseMeasurementData.cpp.

bool sick::data_processing::ParseMeasurementData::checkIfMeasurementDataIsPublished ( const datastructure::Data data) const
private

Definition at line 76 of file ParseMeasurementData.cpp.

bool sick::data_processing::ParseMeasurementData::checkIfPreconditionsAreMet ( const datastructure::Data data) const
private

Definition at line 63 of file ParseMeasurementData.cpp.

datastructure::MeasurementData sick::data_processing::ParseMeasurementData::parseUDPSequence ( const datastructure::PacketBuffer buffer,
datastructure::Data data 
)

Parses the measurement data if it is enabled.

Parameters
bufferThe incoming udp sequence.
dataThe already parsed data to check if it is enabled.
Returns
The parsed measurement data.

Definition at line 43 of file ParseMeasurementData.cpp.

void sick::data_processing::ParseMeasurementData::setDataInMeasurementData ( std::vector< uint8_t >::const_iterator  data_ptr,
datastructure::MeasurementData measurement_data 
)
private

Definition at line 97 of file ParseMeasurementData.cpp.

void sick::data_processing::ParseMeasurementData::setNumberOfBeamsInMeasurementData ( std::vector< uint8_t >::const_iterator  data_ptr,
datastructure::MeasurementData measurement_data 
) const
private

Definition at line 104 of file ParseMeasurementData.cpp.

void sick::data_processing::ParseMeasurementData::setScanPointsInMeasurementData ( std::vector< uint8_t >::const_iterator  data_ptr,
datastructure::MeasurementData measurement_data 
)
private

Definition at line 117 of file ParseMeasurementData.cpp.

void sick::data_processing::ParseMeasurementData::setStartAngleAndDelta ( const datastructure::Data data)
private

Definition at line 111 of file ParseMeasurementData.cpp.

Member Data Documentation

float sick::data_processing::ParseMeasurementData::m_angle
private

Definition at line 74 of file ParseMeasurementData.h.

float sick::data_processing::ParseMeasurementData::m_angle_delta
private

Definition at line 75 of file ParseMeasurementData.h.


The documentation for this class was generated from the following files:


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