ApplicationInputs.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 {
45 }
46 
48  const std::vector<bool>& unsafe_inputs_input_sources_vector)
49 {
50  m_unsafe_inputs_input_sources_vector = unsafe_inputs_input_sources_vector;
51 }
52 
54 {
56 }
57 
59  const std::vector<bool>& unsafe_inputs_flags_vector)
60 {
61  m_unsafe_inputs_flags_vector = unsafe_inputs_flags_vector;
62 }
63 
64 std::vector<uint16_t> ApplicationInputs::getMonitoringCasevector() const
65 {
67 }
68 
69 void ApplicationInputs::setMonitoringCaseVector(const std::vector<uint16_t>& monitoring_case_vector)
70 {
71  m_monitoring_case_vector = monitoring_case_vector;
72 }
73 
75 {
77 }
78 
80  const std::vector<bool>& monitoring_case_flags_vector)
81 {
82  m_monitoring_case_flags_vector = monitoring_case_flags_vector;
83 }
84 
86 {
87  return m_velocity_0;
88 }
89 
90 void ApplicationInputs::setVelocity0(const int16_t& velocity_0)
91 {
92  m_velocity_0 = velocity_0;
93 }
94 
96 {
97  return m_velocity_1;
98 }
99 
100 void ApplicationInputs::setVelocity1(const int16_t& velocity_1)
101 {
102  m_velocity_1 = velocity_1;
103 }
104 
106 {
107  return m_velocity_0_valid;
108 }
109 
110 void ApplicationInputs::setVelocity0Valid(bool velocity_0_valid)
111 {
112  m_velocity_0_valid = velocity_0_valid;
113 }
114 
116 {
117  return m_velocity_1_valid;
118 }
119 
120 void ApplicationInputs::setVelocity1Valid(bool velocity_1_valid)
121 {
122  m_velocity_1_valid = velocity_1_valid;
123 }
124 
126 {
128 }
129 
130 void ApplicationInputs::setVelocity0TransmittedSafely(bool velocity_0_transmitted_safely)
131 {
132  m_velocity_0_transmitted_safely = velocity_0_transmitted_safely;
133 }
134 
136 {
138 }
139 
140 void ApplicationInputs::setVelocity1TransmittedSafely(bool velocity_1_transmitted_safely)
141 {
142  m_velocity_1_transmitted_safely = velocity_1_transmitted_safely;
143 }
144 
146 {
147  return m_sleep_mode_input;
148 }
149 
150 void ApplicationInputs::setSleepModeInput(const int8_t& sleep_mode_input)
151 {
152  m_sleep_mode_input = sleep_mode_input;
153 }
154 
155 } // namespace datastructure
156 } // namespace sick
std::vector< uint16_t > getMonitoringCasevector() const
Gets the monitoring case numbers.
bool getVelocity0TransmittedSafely() const
Gets if first linear velocity input is transmitted safely.
int16_t getVelocity1() const
Gets the second linear velocity input.
bool getVelocity1TransmittedSafely() const
Gets if second linear velocity input is transmitted safely.
void setVelocity1(const int16_t &velocity_1)
Sets the second linear velocity input.
void setVelocity0TransmittedSafely(bool velocity_0_transmitted_safely)
Sets if first linear velocity input is transmitted safely.
bool getVelocity1Valid() const
Gets if second linear velocity input is valid.
std::vector< bool > getUnsafeInputsFlagsVector() const
Gets the flags for the unsafe input sources.
int16_t getVelocity0() const
Gets the first linear velocity input.
void setMonitoringCaseVector(const std::vector< uint16_t > &monitoring_case_vector)
Sets the monitoring case vector.
int8_t getSleepModeInput() const
Gets the state of the sleep mode.
bool getVelocity0Valid() const
Gets if first linear velocity input is valid.
void setSleepModeInput(const int8_t &sleep_mode_input)
Sets the state of the sleep mode.
void setVelocity0(const int16_t &velocity_0)
Sets the first linear velocity input.
void setUnsafeInputsFlagsVector(const std::vector< bool > &unsafe_inputs_flags_vector)
Sets the unsafe input sources flags.
std::vector< bool > m_unsafe_inputs_input_sources_vector
std::vector< uint16_t > m_monitoring_case_vector
ApplicationInputs()
Constructor of application inputs.
void setVelocity1Valid(bool velocity_1_valid)
If second linear velocity input is valid.
void setVelocity1TransmittedSafely(bool velocity_1_transmitted_safely)
Sets if second linear velocity input is transmitted safely.
std::vector< bool > m_monitoring_case_flags_vector
void setMonitoringCaseFlagsVector(const std::vector< bool > &monitoring_case_flags_vector)
Sets the monitoring case flags.
std::vector< bool > getMonitoringCaseFlagsVector() const
Gets the monitoring case flags.
void setUnsafeInputsInputSourcesVector(const std::vector< bool > &unsafe_inputs_input_sources_vector)
Sets the unsafe input sources.
std::vector< bool > getUnsafeInputsInputSourcesVector() const
Gets the unsafe input sources.
void setVelocity0Valid(bool velocity_0_valid)
Sets if first linear velocity input is valid.


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