DerivedValues.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  : m_is_empty(false)
42 {
43 }
44 
46 {
48 }
49 
50 void DerivedValues::setMultiplicationFactor(const uint16_t& multiplication_factor)
51 {
52  m_multiplication_factor = multiplication_factor;
53 }
54 
56 {
57  return m_number_of_beams;
58 }
59 
60 void DerivedValues::setNumberOfBeams(const uint16_t& number_of_beams)
61 {
62  m_number_of_beams = number_of_beams;
63 }
64 
66 {
67  return m_scan_time;
68 }
69 
70 void DerivedValues::setScanTime(const uint16_t& scan_time)
71 {
72  m_scan_time = scan_time;
73 }
74 
75 
77 {
78  return m_start_angle;
79 }
80 
81 void DerivedValues::setStartAngle(const int32_t& start_angle)
82 {
83  m_start_angle = (float)start_angle / m_ANGLE_RESOLUTION;
84 }
85 
87 {
89 }
90 
91 void DerivedValues::setAngularBeamResolution(const int32_t& angular_beam_resolution)
92 {
93  m_angular_beam_resolution = (float)angular_beam_resolution / m_ANGLE_RESOLUTION;
94 }
95 
97 {
98  return m_interbeam_period;
99 }
100 
101 void DerivedValues::setInterbeamPeriod(const uint32_t& interbeam_period)
102 {
103  m_interbeam_period = interbeam_period;
104 }
105 
107 {
108  return m_is_empty;
109 }
110 
111 void DerivedValues::setIsEmpty(bool is_empty)
112 {
113  m_is_empty = is_empty;
114 }
115 
116 } // namespace datastructure
117 } // namespace sick
void setScanTime(const uint16_t &scan_time)
Sets the time of the scan.
void setAngularBeamResolution(const int32_t &angular_beam_resolution)
Set the angular resolution between beams.
DerivedValues()
Constructor of an empty DerivedValues instance.
void setIsEmpty(bool is_empty)
Set if derived values are enabled.
void setNumberOfBeams(const uint16_t &number_of_beams)
Sets the number of beams for the current scan.
uint16_t getNumberOfBeams() const
Returns the number of beams of the current scan.
uint16_t getScanTime() const
Return the time of the scan.
uint16_t getMultiplicationFactor() const
Return the multiplication factor. Multiplication factor to be applied to the beam distance values to ...
void setMultiplicationFactor(const uint16_t &multiplication_factor)
Sets the multiplication factor.
float getStartAngle() const
Get the start angle of the scan.
float getAngularBeamResolution() const
Returns the angular resolution between the beams.
bool isEmpty() const
Returns if derived values have been enabled.
const double m_ANGLE_RESOLUTION
Defined angle resolution to convert sensor input to the right frame.
void setStartAngle(const int32_t &start_angle)
Set the start angle of the scan.
uint32_t getInterbeamPeriod() const
Return the time between consecutive beams.
void setInterbeamPeriod(const uint32_t &interbeam_period)
Set the time between two consecutive beams.


sick_safetyscanners
Author(s): Lennart Puck
autogenerated on Fri Apr 2 2021 02:45:41