ConfigData.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/ConfigData.h>
00036 
00037 namespace sick {
00038 namespace datastructure {
00039 
00040 ConfigData::ConfigData() {}
00041 
00042 float ConfigData::getStartAngle() const
00043 {
00044   return m_start_angle;
00045 }
00046 
00047 void ConfigData::setStartAngle(const int32_t& start_angle)
00048 {
00049   m_start_angle = (float)start_angle / ANGLE_RESOLUTION;
00050 }
00051 
00052 void ConfigData::setStartAngleDegrees(const float& start_angle)
00053 {
00054   m_start_angle = start_angle;
00055 }
00056 
00057 float ConfigData::getEndAngle() const
00058 {
00059   return m_end_angle;
00060 }
00061 
00062 void ConfigData::setEndAngle(const int32_t& end_angle)
00063 {
00064   m_end_angle = (float)end_angle / ANGLE_RESOLUTION;
00065 }
00066 
00067 void ConfigData::setEndAngleDegrees(const float& end_angle)
00068 {
00069   m_end_angle = end_angle;
00070 }
00071 
00072 float ConfigData::getAngularBeamResolution() const
00073 {
00074   return m_angular_beam_resolution;
00075 }
00076 
00077 void ConfigData::setAngularBeamResolution(const int32_t& angular_beam_resolution)
00078 {
00079   m_angular_beam_resolution = (float)angular_beam_resolution / ANGLE_RESOLUTION;
00080 }
00081 
00082 void ConfigData::setAngularBeamResolutionDegrees(const float& angular_beam_resolution)
00083 {
00084   m_angular_beam_resolution = angular_beam_resolution;
00085 }
00086 
00087 } // namespace datastructure
00088 } // namespace sick


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