ScanPoint.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 
41 
43  int16_t& distance,
44  uint8_t& reflectivity,
45  bool& valid_bit,
46  bool& infinite_bit,
47  bool& glare_bit,
48  bool& reflector_bit,
49  bool& contamination_bit,
50  bool& contamination_warning_bit)
51  : m_angle(angle)
52  , m_distance(distance)
53  , m_reflectivity(reflectivity)
54  , m_valid_bit(valid_bit)
55  , m_infinite_bit(infinite_bit)
56  , m_glare_bit(glare_bit)
57  , m_reflector_bit(reflector_bit)
58  , m_contamination_bit(contamination_bit)
59  , m_contamination_warning_bit(contamination_warning_bit)
60 {
61 }
62 
63 float ScanPoint::getAngle() const
64 {
65  return m_angle;
66 }
67 
68 uint16_t ScanPoint::getDistance() const
69 {
70  return m_distance;
71 }
72 
74 {
75  return m_reflectivity;
76 }
77 
79 {
80  return m_valid_bit;
81 }
82 
84 {
85  return m_infinite_bit;
86 }
87 
89 {
90  return m_glare_bit;
91 }
92 
94 {
95  return m_reflector_bit;
96 }
97 
99 {
100  return m_contamination_bit;
101 }
102 
104 {
106 }
107 
108 } // namespace datastructure
109 } // namespace sick
bool getInfiniteBit() const
Returns if the scanpoint is infinite.
Definition: ScanPoint.cpp:83
bool getContaminationBit() const
Returns if the scanpoint is contaminated.
Definition: ScanPoint.cpp:98
uint16_t getDistance() const
Getter for the distance of the scanpoint.
Definition: ScanPoint.cpp:68
bool getGlareBit() const
Returns if the scanpoint has glare.
Definition: ScanPoint.cpp:88
bool getValidBit() const
Returns if the scanpoint is valid.
Definition: ScanPoint.cpp:78
bool getReflectorBit() const
Returns if the scanpoint detects a reflector.
Definition: ScanPoint.cpp:93
bool getContaminationWarningBit() const
Returns if there is a contamination warning.
Definition: ScanPoint.cpp:103
float getAngle() const
Getter for the angle in sensor coordinates.
Definition: ScanPoint.cpp:63
uint8_t getReflectivity() const
Getter for the reflectivity value.
Definition: ScanPoint.cpp:73


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