ConfigData.cpp
Go to the documentation of this file.
1 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
2 
3 // -- BEGIN LICENSE BLOCK ----------------------------------------------
4 
24 // -- END LICENSE BLOCK ------------------------------------------------
25 
26 //----------------------------------------------------------------------
33 //----------------------------------------------------------------------
34 
36 
37 namespace sick {
38 namespace datastructure {
39 
41 
43 {
44  return m_start_angle;
45 }
46 
47 void ConfigData::setStartAngle(const int32_t& start_angle)
48 {
49  m_start_angle = (float)start_angle / ANGLE_RESOLUTION;
50 }
51 
52 void ConfigData::setStartAngleDegrees(const float& start_angle)
53 {
54  m_start_angle = start_angle;
55 }
56 
58 {
59  return m_end_angle;
60 }
61 
62 void ConfigData::setEndAngle(const int32_t& end_angle)
63 {
64  m_end_angle = (float)end_angle / ANGLE_RESOLUTION;
65 }
66 
67 void ConfigData::setEndAngleDegrees(const float& end_angle)
68 {
69  m_end_angle = end_angle;
70 }
71 
73 {
75 }
76 
77 void ConfigData::setAngularBeamResolution(const int32_t& angular_beam_resolution)
78 {
79  m_angular_beam_resolution = (float)angular_beam_resolution / ANGLE_RESOLUTION;
80 }
81 
82 void ConfigData::setAngularBeamResolutionDegrees(const float& angular_beam_resolution)
83 {
84  m_angular_beam_resolution = angular_beam_resolution;
85 }
86 
87 } // namespace datastructure
88 } // namespace sick
float getStartAngle() const
Get the start angle of the configuration.
Definition: ConfigData.cpp:42
void setAngularBeamResolution(const int32_t &angular_beam_resolution)
Set the angular resolution between beams.
Definition: ConfigData.cpp:77
void setStartAngleDegrees(const float &start_angle)
Set the start angle of the configuration from degrees.
Definition: ConfigData.cpp:52
ConfigData()
The constructor of the config data.
Definition: ConfigData.cpp:40
void setAngularBeamResolutionDegrees(const float &angular_beam_resolution)
Set the angular resolution between beams from degrees.
Definition: ConfigData.cpp:82
void setStartAngle(const int32_t &start_angle)
Set the start angle of the configuration.
Definition: ConfigData.cpp:47
float getEndAngle() const
Get the end angle of the configuration.
Definition: ConfigData.cpp:57
float getAngularBeamResolution() const
Returns the angular resolution between the beams.
Definition: ConfigData.cpp:72
void setEndAngleDegrees(const float &end_angle)
Set the end angle of the configuration from degrees.
Definition: ConfigData.cpp:67
const double ANGLE_RESOLUTION
Defined angle resolution to convert sensor input to the right frame.
Definition: ConfigData.h:115
void setEndAngle(const int32_t &end_angle)
Set the end angle of the configuration.
Definition: ConfigData.cpp:62


sick_safetyscanners
Author(s): Lennart Puck
autogenerated on Thu May 9 2019 02:41:08