Go to the documentation of this file.00001
00002
00003
00004
00024
00025
00026
00033
00034
00035 #include <sick_safetyscanners/datastructure/ScanPoint.h>
00036
00037 namespace sick {
00038 namespace datastructure {
00039
00040 ScanPoint::ScanPoint() {}
00041
00042 ScanPoint::ScanPoint(float angle,
00043 int16_t& distance,
00044 uint8_t& reflectivity,
00045 bool& valid_bit,
00046 bool& infinite_bit,
00047 bool& glare_bit,
00048 bool& reflector_bit,
00049 bool& contamination_bit,
00050 bool& contamination_warning_bit)
00051 : m_angle(angle)
00052 , m_distance(distance)
00053 , m_reflectivity(reflectivity)
00054 , m_valid_bit(valid_bit)
00055 , m_infinite_bit(infinite_bit)
00056 , m_glare_bit(glare_bit)
00057 , m_reflector_bit(reflector_bit)
00058 , m_contamination_bit(contamination_bit)
00059 , m_contamination_warning_bit(contamination_warning_bit)
00060 {
00061 }
00062
00063 float ScanPoint::getAngle() const
00064 {
00065 return m_angle;
00066 }
00067
00068 uint16_t ScanPoint::getDistance() const
00069 {
00070 return m_distance;
00071 }
00072
00073 uint8_t ScanPoint::getReflectivity() const
00074 {
00075 return m_reflectivity;
00076 }
00077
00078 bool ScanPoint::getValidBit() const
00079 {
00080 return m_valid_bit;
00081 }
00082
00083 bool ScanPoint::getInfiniteBit() const
00084 {
00085 return m_infinite_bit;
00086 }
00087
00088 bool ScanPoint::getGlareBit() const
00089 {
00090 return m_glare_bit;
00091 }
00092
00093 bool ScanPoint::getReflectorBit() const
00094 {
00095 return m_reflector_bit;
00096 }
00097
00098 bool ScanPoint::getContaminationBit() const
00099 {
00100 return m_contamination_bit;
00101 }
00102
00103 bool ScanPoint::getContaminationWarningBit() const
00104 {
00105 return m_contamination_warning_bit;
00106 }
00107
00108 }
00109 }