ApplicationInputs.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_APPLICATIONINPUTS_H
36 #define SICK_SAFETYSCANNERS_DATASTRUCTURE_APPLICATIONINPUTS_H
37 
38 #include <stdint.h>
39 #include <vector>
40 
41 namespace sick {
42 namespace datastructure {
43 
48 {
49 public:
54 
63  std::vector<bool> getUnsafeInputsInputSourcesVector() const;
64  void
70  setUnsafeInputsInputSourcesVector(const std::vector<bool>& unsafe_inputs_input_sources_vector);
71 
81  std::vector<bool> getUnsafeInputsFlagsVector() const;
87  void setUnsafeInputsFlagsVector(const std::vector<bool>& unsafe_inputs_flags_vector);
88 
94  std::vector<uint16_t> getMonitoringCasevector() const;
100  void setMonitoringCaseVector(const std::vector<uint16_t>& monitoring_case_vector);
101 
107  std::vector<bool> getMonitoringCaseFlagsVector() const;
113  void setMonitoringCaseFlagsVector(const std::vector<bool>& monitoring_case_flags_vector);
114 
120  int16_t getVelocity0() const;
126  void setVelocity0(const int16_t& velocity_0);
127 
133  int16_t getVelocity1() const;
139  void setVelocity1(const int16_t& velocity_1);
140 
146  bool getVelocity0Valid() const;
152  void setVelocity0Valid(bool velocity_0_valid);
153 
159  bool getVelocity1Valid() const;
165  void setVelocity1Valid(bool velocity_1_valid);
166 
172  bool getVelocity0TransmittedSafely() const;
178  void setVelocity0TransmittedSafely(bool velocity_0_transmitted_safely);
179 
185  bool getVelocity1TransmittedSafely() const;
191  void setVelocity1TransmittedSafely(bool velocity_1_transmitted_safely);
192 
198  int8_t getSleepModeInput() const;
204  void setSleepModeInput(const int8_t& sleep_mode_input);
205 
206 private:
208  std::vector<bool> m_unsafe_inputs_flags_vector;
209 
210  std::vector<uint16_t> m_monitoring_case_vector;
212 
213  int16_t m_velocity_0;
214  int16_t m_velocity_1;
215 
220 
222 };
223 
224 } // namespace datastructure
225 } // namespace sick
226 
227 #endif // SICK_SAFETYSCANNERS_DATASTRUCTURE_APPLICATIONINPUTS_H
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.
The applications inputs from a udp data packet.
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