DerivedValues.h
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 
35 #ifndef SICK_SAFETYSCANNERS_DATASTRUCTURE_DERIVEDVALUES_H
36 #define SICK_SAFETYSCANNERS_DATASTRUCTURE_DERIVEDVALUES_H
37 
38 #include <stdint.h>
39 
40 namespace sick {
41 namespace datastructure {
42 
43 
49 {
50 public:
54  DerivedValues();
55 
62  uint16_t getMultiplicationFactor() const;
63 
68  void setMultiplicationFactor(const uint16_t& multiplication_factor);
69 
74  uint16_t getNumberOfBeams() const;
75 
80  void setNumberOfBeams(const uint16_t& number_of_beams);
81 
86  uint16_t getScanTime() const;
87 
92  void setScanTime(const uint16_t& scan_time);
93 
98  float getStartAngle() const;
99 
104  void setStartAngle(const int32_t& start_angle);
105 
110  float getAngularBeamResolution() const;
111 
116  void setAngularBeamResolution(const int32_t& angular_beam_resolution);
117 
122  uint32_t getInterbeamPeriod() const;
123 
128  void setInterbeamPeriod(const uint32_t& interbeam_period);
129 
134  bool isEmpty() const;
135 
140  void setIsEmpty(bool is_empty);
141 
142 private:
146  const double m_ANGLE_RESOLUTION = 4194304.0;
147 
149 
152  uint16_t m_scan_time; // ms
155  uint32_t m_interbeam_period; // usecs
156 };
157 
158 } // namespace datastructure
159 } // namespace sick
160 
161 #endif // SICK_SAFETYSCANNERS_DATASTRUCTURE_DERIVEDVALUES_H
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.
The DerivedValues class Includes the derived configuration of the measurement data channel...
Definition: DerivedValues.h:48
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