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 #ifndef SICK_SAFETYSCANNERS_DATASTRUCTURE_CONFIGDATA_H 00036 #define SICK_SAFETYSCANNERS_DATASTRUCTURE_CONFIGDATA_H 00037 00038 #include <iostream> 00039 #include <vector> 00040 00041 namespace sick { 00042 namespace datastructure { 00043 00044 00048 class ConfigData 00049 { 00050 public: 00054 ConfigData(); 00055 00056 00061 float getStartAngle() const; 00062 00067 void setStartAngle(const int32_t& start_angle); 00068 00073 void setStartAngleDegrees(const float& start_angle); 00074 00079 float getEndAngle() const; 00080 00085 void setEndAngle(const int32_t& end_angle); 00086 00091 void setEndAngleDegrees(const float& end_angle); 00092 00097 float getAngularBeamResolution() const; 00098 00103 void setAngularBeamResolution(const int32_t& angular_beam_resolution); 00104 00109 void setAngularBeamResolutionDegrees(const float& angular_beam_resolution); 00110 00111 private: 00115 const double ANGLE_RESOLUTION = 4194304.0; 00116 00117 float m_start_angle; 00118 float m_end_angle; 00119 float m_angular_beam_resolution; 00120 }; 00121 00122 00123 } // namespace datastructure 00124 } // namespace sick 00125 00126 #endif // SICK_SAFETYSCANNERS_DATASTRUCTURE_CONFIGDATA_H