TypeCode.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_TYPECODE_H
36 #define SICK_SAFETYSCANNERS_DATASTRUCTURE_TYPECODE_H
37 
38 #include <iostream>
39 
40 
41 namespace sick {
42 namespace datastructure {
43 
45 {
50 };
51 
53 {
56 };
57 
58 
62 class TypeCode
63 {
64 public:
68  TypeCode();
69 
75  std::string getTypeCode() const;
81  void setTypeCode(const std::string& type_code);
87  uint8_t getInterfaceType() const;
93  void setInterfaceType(const uint8_t& interface_type);
94 
100  float getMaxRange() const;
106  void setMaxRange(const float& max_distance);
107 
108 private:
109  std::string m_type_code;
111  float m_max_range;
112 };
113 
114 
115 } // namespace datastructure
116 } // namespace sick
117 
118 #endif // SICK_SAFETYSCANNERS_DATASTRUCTURE_TYPECODE_H
float getMaxRange() const
Gets the max range for the scanner.
Definition: TypeCode.cpp:61
TypeCode()
Constructor of the type code.
Definition: TypeCode.cpp:40
void setInterfaceType(const uint8_t &interface_type)
Sets the interface type for the scanner.
Definition: TypeCode.cpp:56
std::string getTypeCode() const
Gets the type code for the scanner.
Definition: TypeCode.cpp:42
uint8_t getInterfaceType() const
Gets the interface type for the scanner.
Definition: TypeCode.cpp:51
void setMaxRange(const float &max_distance)
Sets the max range for the scanner.
Definition: TypeCode.cpp:66
void setTypeCode(const std::string &type_code)
Sets the type code for the scanner.
Definition: TypeCode.cpp:47
Class containing the type code of a laser scanner.
Definition: TypeCode.h:62


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