ApplicationOutputs.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_APPLICATIONOUTPUTS_H
36 #define SICK_SAFETYSCANNERS_DATASTRUCTURE_APPLICATIONOUTPUTS_H
37 
38 #include <stdint.h>
39 #include <vector>
40 
41 
42 namespace sick {
43 namespace datastructure {
44 
49 {
50 public:
55 
61  std::vector<bool> getEvalOutVector() const;
67  void setEvalOutVector(const std::vector<bool>& eval_out_vector);
68 
74  std::vector<bool> getEvalOutIsSafeVector() const;
80  void setEvalOutIsSafeVector(const std::vector<bool>& eval_out_is_safe_vector);
81 
87  std::vector<bool> getEvalOutIsValidVector() const;
93  void setEvalOutIsValidVector(const std::vector<bool>& eval_out_is_valid_vector);
94 
100  std::vector<uint16_t> getMonitoringCaseVector() const;
106  void setMonitoringCaseVector(const std::vector<uint16_t>& monitoring_case_vector);
107 
113  std::vector<bool> getMonitoringCaseFlagsVector() const;
119  void setMonitoringCaseFlagsVector(const std::vector<bool>& monitoring_case_flags_vector);
120 
126  int8_t getSleepModeOutput() const;
132  void setSleepModeOutput(const int8_t& sleep_mode_output);
133 
145  void setHostErrorFlagContaminationWarning(bool host_error_flag_contamination_warning);
146 
158  void setHostErrorFlagContaminationError(bool host_error_flag_contamination_error);
159 
171  void setHostErrorFlagManipulationError(bool host_error_flag_manipulation_error);
172 
178  bool getHostErrorFlagGlare() const;
184  void setHostErrorFlagGlare(bool host_error_flag_glare);
185 
197  void setHostErrorFlagReferenceContourIntruded(bool host_error_flag_reference_contour_intruded);
198 
204  bool getHostErrorFlagCriticalError() const;
210  void setHostErrorFlagCriticalError(bool host_error_flag_critical_error);
211 
217  int16_t getVelocity0() const;
223  void setVelocity0(const int16_t& velocity_0);
224 
230  int16_t getVelocity1() const;
236  void setVelocity1(const int16_t& velocity_1);
237 
243  bool getVelocity0Valid() const;
249  void setVelocity0Valid(bool velocity_0_valid);
250 
256  bool getVelocity1Valid() const;
262  void setVelocity1Valid(bool velocity_1_valid);
263 
269  bool getVelocity0TransmittedSafely() const;
275  void setVelocity0TransmittedSafely(bool velocity_0_transmitted_safely);
276 
282  bool getVelocity1TransmittedSafely() const;
289  void setVelocity1TransmittedSafely(bool velocity_1_transmitted_safely);
290 
296  std::vector<int16_t> getResultingVelocityVector() const;
302  void setResultingVelocityVector(const std::vector<int16_t>& resulting_velocity_vector);
303 
309  std::vector<bool> getResultingVelocityIsValidVector() const;
310  void
316  setResultingVelocityIsValidVector(const std::vector<bool>& resulting_velocity_is_valid_vector);
317 
323  bool getFlagsSleepModeOutputIsValid() const;
329  void setFlagsSleepModeOutputIsValid(bool flags_sleep_mode_output_is_valid);
330 
336  bool getFlagsHostErrorFlagsAreValid() const;
342  void setFlagsHostErrorFlagsAreValid(bool flags_host_error_flags_are_valid);
343 
344 private:
345  std::vector<bool> m_eval_out_vector;
346  std::vector<bool> m_eval_out_is_safe_vector;
347  std::vector<bool> m_eval_out_is_valid_vector;
348 
349  std::vector<uint16_t> m_monitoring_case_vector;
351 
353 
360 
361  int16_t m_velocity_0;
362  int16_t m_velocity_1;
363 
368 
369  std::vector<int16_t> m_resulting_velocity_vector;
371 
374 };
375 
376 
377 } // namespace datastructure
378 } // namespace sick
379 
380 #endif // SICK_SAFETYSCANNERS_DATASTRUCTURE_APPLICATIONOUTPUTS_H
bool getVelocity1TransmittedSafely() const
Gets if the second linear velocity output is transmitted safely.
void setVelocity1TransmittedSafely(bool velocity_1_transmitted_safely)
Sets if the second linear velocity output is transmitted safely.
int16_t getVelocity1() const
Gets the second linear velocity output.
void setHostErrorFlagGlare(bool host_error_flag_glare)
Sets if glare is present.
bool getHostErrorFlagReferenceContourIntruded() const
Gets if a reference contour is intruded.
bool getHostErrorFlagContaminationError() const
Gets if a contamination error is present.
void setResultingVelocityIsValidVector(const std::vector< bool > &resulting_velocity_is_valid_vector)
Sets if the resulting velocities are valid.
bool getFlagsSleepModeOutputIsValid() const
Gets if the sleep mode is valid.
std::vector< bool > getResultingVelocityIsValidVector() const
Gets if the resulting velocities are valid.
bool getHostErrorFlagGlare() const
Gets if glare is present.
std::vector< bool > getEvalOutIsSafeVector() const
Gets if a cut-off path from the output paths is safe.
void setResultingVelocityVector(const std::vector< int16_t > &resulting_velocity_vector)
Sets the resulting velocity for each monitoring case table.
void setVelocity0Valid(bool velocity_0_valid)
Sets if the first linear velocity output is valid.
std::vector< uint16_t > getMonitoringCaseVector() const
Gets the currently active monitoring case numbers.
void setMonitoringCaseVector(const std::vector< uint16_t > &monitoring_case_vector)
Sets the currently active monitoring case numbers.
void setVelocity1Valid(bool velocity_1_valid)
Sets if the second linear velocity output is valid.
int16_t getVelocity0() const
Gets the first linear velocity output.
std::vector< uint16_t > m_monitoring_case_vector
std::vector< int16_t > m_resulting_velocity_vector
void setSleepModeOutput(const int8_t &sleep_mode_output)
Sets the state of the sleep mode.
void setVelocity0(const int16_t &velocity_0)
Sets the first linear velocity output.
std::vector< bool > getEvalOutVector() const
Gets the state of the non safe cut-off paths.
void setHostErrorFlagReferenceContourIntruded(bool host_error_flag_reference_contour_intruded)
Sets if a reference contour is intruded.
void setVelocity0TransmittedSafely(bool velocity_0_transmitted_safely)
Sets if the first linear velocity output is transmitted safely.
bool getHostErrorFlagContaminationWarning() const
Gets if a contamination warning is present.
void setEvalOutIsValidVector(const std::vector< bool > &eval_out_is_valid_vector)
Sets if an output path is valid.
void setHostErrorFlagContaminationWarning(bool host_error_flag_contamination_warning)
Sets if a contamination warning is present.
bool getFlagsHostErrorFlagsAreValid() const
Gets if the error flags are valid.
void setHostErrorFlagCriticalError(bool host_error_flag_critical_error)
Sets if a critical error is present.
void setEvalOutIsSafeVector(const std::vector< bool > &eval_out_is_safe_vector)
Sets if an cut-off path is safe.
void setFlagsSleepModeOutputIsValid(bool flags_sleep_mode_output_is_valid)
Sets if the sleep mode is valid.
void setMonitoringCaseFlagsVector(const std::vector< bool > &monitoring_case_flags_vector)
Set is the corresponding monitoring case number is valid.
void setHostErrorFlagContaminationError(bool host_error_flag_contamination_error)
Sets if a contamination error is present.
void setHostErrorFlagManipulationError(bool host_error_flag_manipulation_error)
Sets if a manipulation error is present.
std::vector< bool > getMonitoringCaseFlagsVector() const
Gets if the corresponding monitoring case number is valid.
ApplicationOutputs()
Constructor of the application outputs.
void setEvalOutVector(const std::vector< bool > &eval_out_vector)
Set the state of the non safe cut-off paths.
The application outputs from a udp data packet.
bool getHostErrorFlagManipulationError() const
Gets if a manipulation error is present.
bool getVelocity0TransmittedSafely() const
Gets if the first linear velocity output is transmitted safely.
void setFlagsHostErrorFlagsAreValid(bool flags_host_error_flags_are_valid)
Sets if the error flags are valid.
std::vector< bool > m_resulting_velocity_is_valid_vector
bool getHostErrorFlagCriticalError() const
Gets if a critical error is present.
std::vector< bool > getEvalOutIsValidVector() const
If the output path is valid.
int8_t getSleepModeOutput() const
Gets the state of the sleep mode.
bool getVelocity0Valid() const
Gets if the first linear velocity output is valid.
void setVelocity1(const int16_t &velocity_1)
Sets the second linear velocity output.
bool getVelocity1Valid() const
Gets if the second linear velocity output is valid.
std::vector< int16_t > getResultingVelocityVector() const
Gets the resulting velocity for each monitoring case table.


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