00001 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*- 00002 00003 // -- BEGIN LICENSE BLOCK ---------------------------------------------- 00004 00024 // -- END LICENSE BLOCK ------------------------------------------------ 00025 00026 //---------------------------------------------------------------------- 00033 //---------------------------------------------------------------------- 00034 00035 #include <sick_safetyscanners/datastructure/DerivedValues.h> 00036 00037 namespace sick { 00038 namespace datastructure { 00039 00040 DerivedValues::DerivedValues() 00041 : m_is_empty(false) 00042 { 00043 } 00044 00045 uint16_t DerivedValues::getMultiplicationFactor() const 00046 { 00047 return m_multiplication_factor; 00048 } 00049 00050 void DerivedValues::setMultiplicationFactor(const uint16_t& multiplication_factor) 00051 { 00052 m_multiplication_factor = multiplication_factor; 00053 } 00054 00055 uint16_t DerivedValues::getNumberOfBeams() const 00056 { 00057 return m_number_of_beams; 00058 } 00059 00060 void DerivedValues::setNumberOfBeams(const uint16_t& number_of_beams) 00061 { 00062 m_number_of_beams = number_of_beams; 00063 } 00064 00065 uint16_t DerivedValues::getScanTime() const 00066 { 00067 return m_scan_time; 00068 } 00069 00070 void DerivedValues::setScanTime(const uint16_t& scan_time) 00071 { 00072 m_scan_time = scan_time; 00073 } 00074 00075 00076 float DerivedValues::getStartAngle() const 00077 { 00078 return m_start_angle; 00079 } 00080 00081 void DerivedValues::setStartAngle(const int32_t& start_angle) 00082 { 00083 m_start_angle = (float)start_angle / ANGLE_RESOLUTION; 00084 } 00085 00086 float DerivedValues::getAngularBeamResolution() const 00087 { 00088 return m_angular_beam_resolution; 00089 } 00090 00091 void DerivedValues::setAngularBeamResolution(const int32_t& angular_beam_resolution) 00092 { 00093 m_angular_beam_resolution = (float)angular_beam_resolution / ANGLE_RESOLUTION; 00094 } 00095 00096 uint32_t DerivedValues::getInterbeamPeriod() const 00097 { 00098 return m_interbeam_period; 00099 } 00100 00101 void DerivedValues::setInterbeamPeriod(const uint32_t& interbeam_period) 00102 { 00103 m_interbeam_period = interbeam_period; 00104 } 00105 00106 bool DerivedValues::isEmpty() const 00107 { 00108 return m_is_empty; 00109 } 00110 00111 void DerivedValues::setIsEmpty(bool is_empty) 00112 { 00113 m_is_empty = is_empty; 00114 } 00115 00116 } // namespace datastructure 00117 } // namespace sick