MeasurementData.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 
37 namespace sick {
38 namespace datastructure {
39 
40 
42  : m_is_empty(false)
43 {
44 }
45 
47 {
48  return m_number_of_beams;
49 }
50 
51 void MeasurementData::setNumberOfBeams(const uint32_t& number_of_beams)
52 {
53  m_number_of_beams = number_of_beams;
54 }
55 
56 std::vector<ScanPoint> MeasurementData::getScanPointsVector() const
57 {
58  return m_scan_points_vector;
59 }
60 
62 {
63  m_scan_points_vector.push_back(scan_point);
64 }
65 
67 {
68  return m_is_empty;
69 }
70 
71 void MeasurementData::setIsEmpty(bool is_empty)
72 {
73  m_is_empty = is_empty;
74 }
75 
76 
77 } // namespace datastructure
78 } // namespace sick
std::vector< ScanPoint > m_scan_points_vector
Class containing the data of a single scan point.
Definition: ScanPoint.h:46
uint32_t getNumberOfBeams() const
Getter for the number of beams.
void setIsEmpty(bool is_empty)
Set if measurement data is enabled.
void setNumberOfBeams(const uint32_t &number_of_beams)
Setter for the number of beams.
std::vector< ScanPoint > getScanPointsVector() const
Getter for all contained scanpoints.
MeasurementData()
Constructor of an empty measurement.
void addScanPoint(ScanPoint scan_point)
Add a single scanpoint to the vector of scanpoints.
bool isEmpty() const
Returns if measurement data has been enabled.


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