ScanPoint.h
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 
35 #ifndef SICK_SAFETYSCANNERS_DATASTRUCTURE_SCANPOINT_H
36 #define SICK_SAFETYSCANNERS_DATASTRUCTURE_SCANPOINT_H
37 
38 #include <stdint.h>
39 
40 namespace sick {
41 namespace datastructure {
42 
46 class ScanPoint
47 {
48 public:
49  ScanPoint();
50 
63  ScanPoint(float angle,
64  int16_t& distance,
65  uint8_t& reflectivity,
66  bool& valid_bit,
67  bool& infinite_bit,
68  bool& glare_bit,
69  bool& reflector_bit,
70  bool& contamination_bit,
71  bool& contamination_warning_bit);
72 
77  float getAngle() const;
78 
83  uint16_t getDistance() const;
84 
89  uint8_t getReflectivity() const;
90 
95  bool getValidBit() const;
96 
101  bool getInfiniteBit() const;
102 
107  bool getGlareBit() const;
108 
113  bool getReflectorBit() const;
114 
119  bool getContaminationBit() const;
120 
125  bool getContaminationWarningBit() const;
126 
127 
128 private:
129  float m_angle;
130  int16_t m_distance; // in mm
131  uint8_t m_reflectivity;
138 };
139 
140 
141 } // namespace datastructure
142 } // namespace sick
143 
144 #endif // SICK_SAFETYSCANNERS_DATASTRUCTURE_SCANPOINT_H
bool getInfiniteBit() const
Returns if the scanpoint is infinite.
Definition: ScanPoint.cpp:83
Class containing the data of a single scan point.
Definition: ScanPoint.h:46
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