ParseMeasurementCurrentConfigData.cpp
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 
36 
38 
39 namespace sick {
40 namespace data_processing {
41 
43 {
44  m_reader_ptr = std::make_shared<sick::data_processing::ReadWriteHelper>();
45 }
46 
47 
49  const datastructure::PacketBuffer& buffer, datastructure::ConfigData& config_data) const
50 {
51  const uint8_t* data_ptr(buffer.getBuffer().data());
52  config_data.setStartAngle(readStartAngle(data_ptr));
54  return true;
55 }
56 
57 uint32_t ParseMeasurementCurrentConfigData::readStartAngle(const uint8_t* data_ptr) const
58 {
59  return m_reader_ptr->readuint32_tLittleEndian(data_ptr, 36);
60 }
61 
62 uint32_t ParseMeasurementCurrentConfigData::readAngularBeamResolution(const uint8_t* data_ptr) const
63 {
64  return m_reader_ptr->readuint32_tLittleEndian(data_ptr, 40);
65 }
66 
67 } // namespace data_processing
68 } // namespace sick
bool parseTCPSequence(const datastructure::PacketBuffer &buffer, datastructure::ConfigData &config_data) const
Parses a tcp sequence to read the header for a warning or protective field.
A packetbuffer for the raw data from the sensor.
Definition: PacketBuffer.h:61
void setAngularBeamResolution(const int32_t &angular_beam_resolution)
Set the angular resolution between beams.
Definition: ConfigData.cpp:77
const VectorBuffer & getBuffer() const
Getter to return the VectorBuffer saved in the PacketBuffer.
std::shared_ptr< sick::data_processing::ReadWriteHelper > m_reader_ptr
Config data for current and persistent sensor config.
Definition: ConfigData.h:48
void setStartAngle(const int32_t &start_angle)
Set the start angle of the configuration.
Definition: ConfigData.cpp:47


sick_safetyscanners
Author(s): Lennart Puck
autogenerated on Thu May 9 2019 02:41:08