FieldData.cpp
Go to the documentation of this file.
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/FieldData.h>
00036 
00037 namespace sick {
00038 namespace datastructure {
00039 
00040 FieldData::FieldData() {}
00041 
00042 bool FieldData::getIsValid() const
00043 {
00044   return m_is_valid;
00045 }
00046 
00047 void FieldData::setIsValid(bool is_valid)
00048 {
00049   m_is_valid = is_valid;
00050 }
00051 
00052 uint16_t FieldData::getFieldSetIndex() const
00053 {
00054   return m_field_set_index;
00055 }
00056 
00057 void FieldData::setFieldSetIndex(uint16_t& field_set_index)
00058 {
00059   m_field_set_index = field_set_index;
00060 }
00061 
00062 bool FieldData::getIsWarningField() const
00063 {
00064   return m_is_warning_field;
00065 }
00066 
00067 void FieldData::setIsWarningField(bool is_warning_field)
00068 {
00069   m_is_warning_field = is_warning_field;
00070 }
00071 
00072 bool FieldData::getIsProtectiveField() const
00073 {
00074   return m_is_protective_field;
00075 }
00076 
00077 void FieldData::setIsProtectiveField(bool is_protective_field)
00078 {
00079   m_is_protective_field = is_protective_field;
00080 }
00081 
00082 std::vector<uint16_t> FieldData::getBeamDistances() const
00083 {
00084   return m_beam_distances;
00085 }
00086 
00087 void FieldData::setBeamDistances(const std::vector<uint16_t>& beam_distance)
00088 {
00089   m_beam_distances = beam_distance;
00090 }
00091 
00092 float FieldData::getStartAngle() const
00093 {
00094   return m_start_angle;
00095 }
00096 
00097 void FieldData::setStartAngle(const int32_t& start_angle)
00098 {
00099   m_start_angle = (float)start_angle / ANGLE_RESOLUTION;
00100 }
00101 
00102 void FieldData::setStartAngleDegrees(const float& start_angle)
00103 {
00104   m_start_angle = start_angle;
00105 }
00106 
00107 float FieldData::getEndAngle() const
00108 {
00109   return m_end_angle;
00110 }
00111 
00112 void FieldData::setEndAngle(const int32_t& end_angle)
00113 {
00114   m_end_angle = (float)end_angle / ANGLE_RESOLUTION;
00115 }
00116 
00117 void FieldData::setEndAngleDegrees(const float& end_angle)
00118 {
00119   m_end_angle = end_angle;
00120 }
00121 
00122 float FieldData::getAngularBeamResolution() const
00123 {
00124   return m_angular_beam_resolution;
00125 }
00126 
00127 void FieldData::setAngularBeamResolution(const int32_t& angular_beam_resolution)
00128 {
00129   m_angular_beam_resolution = (float)angular_beam_resolution / ANGLE_RESOLUTION;
00130 }
00131 
00132 void FieldData::setAngularBeamResolutionDegrees(const float& angular_beam_resolution)
00133 {
00134   m_angular_beam_resolution = angular_beam_resolution;
00135 }
00136 
00137 } // namespace datastructure
00138 } // namespace sick


sick_safetyscanners
Author(s): Lennart Puck
autogenerated on Tue May 7 2019 03:27:36